How to Write a Skill: SKILL.md Structure and Three Common Mistakes
A skill is a folder plus a SKILL.md. No build step, no dependencies. Write it correctly and the agent uses it; get it wrong and it never triggers. This post covers the minimal structure, the most important field, and three mistakes that break skills. 1. Minimal structure my-skill/ ├── SKILL.md # required └── README.md # recommended SKILL.md has two parts: front matter and instructions. --- name: weekly-report description: Turn scattered notes into a weekly report. Use when the user asks for a weekly report or gives meeting notes to summarize. --- # Weekly Report ## When to use - The user asks for a weekly report - Meeting notes or a raw log are provided ## Steps 1. Extract: dates, completed items, blockers, next steps 2. Rewrite in weekly-report format, adding no facts 3. Output Markdown ## Output format ```markdown ## Done this week - ... ## Blockers - ... ## Next week - ... ``` ## Rules - Never invent data; write "not mentioned" when missing 2. The most important field is description The agent uses description to decide whether to load the skill. It needs two things: ...