Agents often preview only the top of a file
Agents don't always read a long file from start to finish. Anthropic's guide says Claude often previews the first part of a file to decide what is in it.
If a 180-line reference file starts straight into its first section, a preview shows only that section, and the agent may conclude the file has nothing else. A short contents list at the top shows everything the file covers, even from a partial read.
"For reference files longer than 100 lines, include a table of contents at the top. This ensures Claude can see the full scope of available information even when previewing with partial reads."
Add headings and a short contents list
List the file's sections in its first lines. This applies to bundled Markdown files over 100 lines.
# API reference
- Authentication
- Uploads
- Errors
## Authentication
...706 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.