| name | skill-creation |
| description | Authors AI agent skills for Cursor, Claude Code, and similar tools using SKILL.md structure and progressive disclosure. Use when creating, writing, or refactoring a skill; when the user mentions SKILL.md, skill frontmatter, or skill best practices; or when the user invokes slash commands that map here (includes create-skill). |
Skill creation (canonical)
Guides authoring of reusable agent skills per Claude skill best practices. Cursor’s bundled create-skill under skills-cursor/ is reference-only; this folder is authoritative for this repository’s skill tree (skills/ junctioned from ~/.cursor/skills when using the standard layout).
When to read this skill
- New or rewritten skills, sub-skills, or meta-skills under
skills/
- Questions about YAML frontmatter, description wording, layout, or token budget
- Ported workflows from Cursor-only docs into portable, Claude-aligned shape
Deep patterns, anti-patterns, phased workflow, checklists, and optional project-facing trim live in reference.md.
Discovery (gather before drafting)
Infer from context where possible; otherwise confirm:
- Purpose / scope — one capability per skill folder
- Location — personal (
~/.cursor/skills/ or synced skills/) vs repo-local .cursor/skills/ for team-only overlays
- Triggers — when the agent should apply the skill automatically vs only when invoked
- Domain facts — only what models do not reliably know already
- Output shapes — templates, headings, or review formats required
- Precedent — existing skills in this tree to mirror
Verbatim user copy: If the user supplies exact wording for the skill body, place it verbatim in SKILL.md (same words, same order). Do not paraphrase or wrap with extra headings unless they asked.
Clarification: Prefer the AskQuestion tool when available; otherwise ask in chat (e.g. personal vs project path, whether to add scripts/).
Directory layout
skill-name/
├── SKILL.md # required
├── reference.md # optional (detail, patterns)
├── examples.md # optional
└── scripts/ # optional (stable helpers; document run vs read)
Do not author new skills under ~/.cursor/skills-cursor/ (Cursor-managed). Do keep skills in this repo under skills/<name>/ or in a project’s .cursor/skills/<name>/ when the skill is repository-specific.
YAML frontmatter
---
name: skill-name
description: >-
What the skill does in third person; include trigger terms and "Use when …".
WHAT + WHEN; max 1024 chars.
---
| Field | Rule |
|---|
name | ≤64 chars; lowercase letters, digits, hyphens only |
description | Non-empty; third person; concrete triggers (not "helps with X" only) |
Keep frontmatter compatible with skills-ref; do not add tool-specific invocation fields.
Writing descriptions
Third person only. Prefer: "Analyzes spreadsheets and suggests pivots. Use when working with .xlsx or tabular exports."
Avoid vague one-liners and first/second person ("I", "you can").
Further examples and pitfalls: reference.md.
Principles
- Single responsibility — Compose multiple skills instead of one mega skill.
- One-liners — Each section earns its tokens; subsection titles + tight bullets; defer essays to
reference.md.
- Progressive disclosure — Keep
SKILL.md ≤ ~300 lines; split oversized content into reference.md / examples.md (prefer single-level links from SKILL.md).
- Self-improvement — After errors or strong user feedback, update this meta-skill or the child skill accordingly.
Degrees of freedom
| Level | When | Example |
|---|
| High | Several valid approaches | Code review judgement |
| Medium | Preferred pattern, some slack | Report template |
| Low | Fragile or compliance-sensitive steps | Scripted migration |
SKILL.md body shape (minimal template)
Use this scaffold when starting a new skill:
---
name: example-skill
description: Does X in third person. Use when Y or Z.
---
# Title
## When to use
- …
## Instructions
1. …
## Output format (if needed)
…
## Additional resources
- [reference.md](reference.md)
Architecture-aligned skills
For skills that encode architecture workflows, align with arc42 themes (sections 1–12): goals, constraints, context, solution strategy, building blocks, runtime, deployment, crosscutting concepts, decisions, quality, risks, glossary.
Next steps for the agent
- Resolve discovery items above (or infer safely).
- Draft
SKILL.md respecting size and linking rules.
- Add
reference.md / examples.md / scripts/ only when justified.
- Run the checklist in reference.md.