Long reference files start with a contents list

A bundled Markdown reference file over 100 lines with no contents list near the top. Files under assets/ or templates/, templates and test data are skipped.

TipRuns on uploaded foldersFails on 706 of 4462 indexed skills
share

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."
Anthropic: skill authoring best practices, table of contents

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
...