The whole body stays in context for the rest of the session
When a skill triggers, the agent loads its whole SKILL.md into context, and it stays there for the rest of the session. Every line costs room, whether the current task needs it or not.
The specification and Anthropic's guide both put the limit at 500 lines. Past that, a skill is usually carrying reference material, such as API tables, long examples or option lists, that only some tasks need. Those can sit in separate files that the agent opens only when a step asks for them.
"Keep your main SKILL.md under 500 lines. Move detailed reference material to separate files."
"Keep the SKILL.md body under 500 lines for optimal performance. If your content exceeds this, split it into separate files using the progressive disclosure patterns described earlier."
"SKILL.md should stay at or below 500 lines; larger files receive an advisory finding."
Move tables and long examples into reference files
Keep the procedure in SKILL.md and link the detail from the step that uses it.
| Fails | Passes | |
|---|---|---|
| SKILL.md | 720 lines, including a 300-line API table | 180 lines |
| references/api.md | none | the API table, linked from step 3 |
199 of 4462 indexed skills fail this check
This check against the 10 that fire most often in the index:
Run the same check on your own skill in the validator, or from a terminal with the skillland CLI.