Frontmatter
Definition
A block of YAML metadata between two lines of three dashes at the top of a Markdown file, which tools read before the body that follows.
In more detail
Static site generators made frontmatter common, and AI tooling adopted it for instruction files. In a SKILL.md file the frontmatter holds the skill's name and description, which the agent loads at startup to decide when the skill applies; the specification also defines optional fields such as license, compatibility, metadata and allowed-tools.
Because it is parsed, small mistakes matter: a missing closing line, a tab instead of spaces or an unquoted colon in a description can stop a skill from loading at all. Cursor rule files and many prompt files use the same pattern.
Related terms
Agent Skill
A folder with a SKILL.md file, plus optional scripts and references, that gives an agent instructions for a task and is loaded only when needed.
Cursor rules
Instruction files in a project's .cursor/rules folder that tell Cursor's agent about conventions, applied always, by file pattern or on request.
SKILL.md
The required file in an Agent Skill: YAML frontmatter with at least a name and description, followed by the Markdown instructions.
Read more about Frontmatter
- SKILL.md format reference
Every SKILL.md frontmatter field in the Agent Skills spec, the extra fields each agent adds, size budgets, folder layout and the mistakes that stop loading.
- SKILL.md template and frontmatter cheat sheet
A copy-ready SKILL.md template with frontmatter and body, the six frontmatter fields in the Agent Skills spec with their limits, and the YAML mistakes to avoid.
- How to create a Claude skill (Agent Skill) from scratch
Create a Claude skill in ~/.claude/skills: write a SKILL.md with a description that triggers, add a script, test it, then make it work in other agents too.