🔬 Anatomy Guide
Skill File Structure
A perfect skill file has six possible sections — only three are required. Here's exactly what each one does and when to include it.
1. YAML Frontmatter
Requiredexample
--- name: kebab-case-skill-name description: One sentence saying WHEN to invoke this and what it does. ---
- name
- Kebab-case, verb-first. E.g. creating-feature-branch, reviewing-pull-request, debugging-flaky-test
- description
- Must answer "when should I invoke this?" — not just what it does. Include the trigger context.
2. Context Section
Requiredexample
## Context When this skill applies and what problem it solves. 1–3 sentences maximum. The agent reads this to confirm it has the right skill for the situation.
- Length
- 1–3 sentences. Never a full paragraph.
- Focus
- Explain the why and when, not the how. The how is in Process.
3. Process Section
Requiredexample
## Process 1. **First step** — what to do and why. 2. **Second step** — specific action with enough detail to execute without guessing. 3. **Third step** — if a step has sub-steps, nest them: - Sub-step A - Sub-step B 4. **Final step** — what done looks like.
- Numbering
- Use numbered lists for ordered processes. Use bullet points for unordered options.
- Detail level
- Each step should be specific enough to execute without asking a follow-up question.
- Headers
- For complex processes, use sub-headings inside Process instead of a flat list.
4. Checklist (optional)
Optionalexample
## Checklist - [ ] Step one complete - [ ] Step two verified - [ ] Step three done - [ ] Final confirmation
- When to include
- Only when there are 5+ discrete, verifiable steps that must all be done and could be accidentally skipped.
- When to omit
- For narrative processes or anything with fewer than 5 steps — a checklist adds noise without value.
5. Anti-Patterns (optional)
Optionalexample
## Anti-Patterns - **Never do X** — because it causes Y. - **Avoid Z** — use W instead.
- When to include
- Only when there are well-known mistakes that are easy to make and costly to undo.
- Format
- Bold the bad thing. Explain the consequence in plain English.
6. Examples (optional)
Optionalexample
## Examples ```bash # Good: specific, actionable git commit -m "feat(auth): add JWT refresh token rotation" # Bad: vague git commit -m "fix stuff" ```
- When to include
- Only when an example materially reduces ambiguity. If the process is already clear, skip it.
- Size
- Minimal. One good example beats three mediocre ones.
Rigid vs. Flexible Skills
Not all skill files should be treated the same way. Some must be followed to the letter; others are guiding principles that require judgment.
🔒 Rigid Skills
Follow exactly, in order. Non-compliance causes failures. Include a checklist.
- • Production deployment checklist
- • Security vulnerability response
- • Database migration procedure
🌊 Flexible Skills
Principles and preferences. Apply judgment to context. No checklist needed.
- • Code review philosophy
- • How to name variables
- • Architecture decision style
Naming Conventions
Kebab-case only
✓ creating-feature-branchVerb-first
✓ reviewing-pull-requestSpecific
✓ debugging-flaky-e2e-testsAction-oriented
✓ writing-commit-messagesBlank Template
Copy this template and fill in the sections. Delete the ones you don't need.
skill-template.mdSelect all to copy
--- name: your-skill-name description: One sentence: when should this be invoked and what does it accomplish? --- # Skill Title ## Context 1–3 sentences explaining when this skill applies and what problem it solves. ## Process 1. **First step** — specific enough to execute without guessing. 2. **Second step** — include the why if it is not obvious. 3. **Third step** — what does "done" look like? ## Checklist (remove if fewer than 5 steps) - [ ] Step one complete - [ ] Step two verified - [ ] Step three done ## Anti-Patterns (remove if no common mistakes) - **Never do X** — because it causes Y. ## Examples (remove if process is already clear) ``` Concrete minimal example here ```
Tip: Use the generator to create a skill file from your actual process in seconds.
Skip the template — generate from your real process
Describe or upload your process and get a complete, properly structured skill file instantly. Runs entirely in your browser.
Open Generator