Skip to main content
Every skill is a Markdown file with YAML frontmatter. Here is a complete example:
SKILL.md

Frontmatter fields

Sections

Instructions

The core of the skill. Write clear, numbered steps that tell the agent exactly what to do. Be specific; agents follow instructions literally.
Use imperative mood: “Create a file” not “You should create a file.”

Constraints

Rules the agent must follow. Constraints prevent common mistakes and enforce your team’s conventions.
Vague constraints like “write clean code” are not useful. Be specific: “Keep functions under 50 lines” or “Never use console.log in production code.”

Verification

A checklist the agent can use to validate its own output. Each item should be independently verifiable.

Examples

Concrete input/output pairs show the agent exactly what behavior you expect.

Multi-file skills

Complex skills can span multiple files in a directory:
react-component
SKILL.md
templates/component.tsx.template
templates/test.tsx.template
examples/Button.tsx
The SKILL.md file is the entry point. Additional files provide templates, examples, or reference material that the skill can point to.
Last modified on March 19, 2026