A skill's SKILL.md is written for agents. Put what people need, how to use it, examples, answers to questions, in a docs/ folder beside it. Its pages show in a Docs tab on the skill's page, open first, every page on one scroll.
release-notes/
SKILL.md
docs/
index.md the first page
what-goes-in.md
guides/labels.md
SUMMARY.md optional: the order, titles and groups
Pages
- Each page is a Markdown file.
docs/index.mdcomes first. - A page's title is its frontmatter
title, else its first#heading, else its file name. - Without a SUMMARY.md, the order is
index.md, then frontmatterorder, then by name, from the files directly indocs/. - A link to another page stays in Docs; a link to another file in the skill opens it in Files.
- Up to 50 pages.
Order, groups and children: SUMMARY.md
docs/SUMMARY.md is the same format mdBook and GitBook use. When it's there, it decides what Docs shows:
# Summary
- [Getting started](index.md)
## Using it
- [What goes in](what-goes-in.md)
- [Labels](guides/labels.md)
- [Your own style](your-style.md)
- Each link is a page, in this order, with this title (it wins over frontmatter). Paths are from
docs/; subfolders work. - A
##heading starts a group. An indented link is a child page, shown under its parent. Two levels show in the contents list; deeper pages show at the second. - A page the list doesn't name isn't in Docs (it's still in Files). A link to a missing file, or an empty link, is skipped.
spacesheep skills lint warns about a link to a missing page, and a page the list leaves out.
Agents and private repos
Docs ship with the skill like its other files, so an agent can read them too. Keep what the agent must do in SKILL.md: that's what it loads. A skill from a private repo keeps its docs off its page, as it does its files.
Was this page helpful?