Claude may read only the first lines of a file two links away
When a skill triggers, the agent reads SKILL.md in full. The files SKILL.md links to are opened when a step calls for them, and they are read in full too.
The problem is one level further down. Say SKILL.md links deploy.md, and deploy.md says "see regions.md for the region list". Anthropic's authoring guide says that in this case Claude often previews regions.md with a command like head -100 instead of reading the whole file. If the region list starts on line 120, the agent never sees it, and nothing tells it that it missed something.
The Agent Skills specification gives the same advice for every agent: keep file references one level deep.
"When encountering nested references, Claude might use commands such as head -100 to preview content rather than reading entire files, resulting in incomplete information. Keep references one level deep from SKILL.md."
"Keep file references one level deep from SKILL.md. Avoid deeply nested reference chains."
Link every reference file straight from SKILL.md
Add a line to SKILL.md for each reference file, with a few words on when to open it. Reference files can still point at each other, as long as SKILL.md links them too.
| Fails | Passes | |
|---|---|---|
| SKILL.md links | deploy.md | deploy.md and regions.md |
| deploy.md links | regions.md | regions.md |
## Reference files
- [Deploy steps](references/deploy.md): read before any deploy
- [Regions](references/regions.md): region names and their limits67 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.