---
name: skill-creator
version: 1.0.0
description: "Author and refine skills for a plugin/toolkit efficiently. Use when creating a new skill, trimming or splitting an existing one, writing a skill's description, or choosing skill vs command vs agent vs CLAUDE.md. Encodes the house rules - lean SKILL.md as an index, progressive disclosure into bundled files, the reference (descriptive) vs workflow (imperative) split, no-prefix naming, and growing a skill from observed failures. Bundles a template, a pre-ship checklist, and good/bad description examples."
user-invocable: true
argument-hint: [new | trim | description]
allowed-tools: Read, Write, Edit, Glob
---

# skill-creator - how to write skills here

> **Layer:** reference (knowledge)
> **Use when:** creating/trimming a skill, writing a description, or choosing skill vs command/agent/CLAUDE.md.
> **Bundled (read on demand):** [template.md](template.md) · [checklist.md](checklist.md) · [examples.md](examples.md) · [label-check.md](label-check.md) · [audit.md](audit.md)

## 1. Is a skill the right tool?
- **CLAUDE.md** - broad facts/rules true *every* session.
- **Skill** - on-demand procedure or knowledge for a recurring task.
- **Subagent/agent** - needs independent reasoning + its own context/tools.
- **MCP server** - structured integration with an external system's API.

## 2. The description is discovery (the 90% lever)
It's the *only* thing the model sees when deciding to load the skill. **Write it first.** Include **what + when + trigger words + one example trigger**, in third person. (Anthropic's data: vague→specific lifts activation ~20%→50%; adding examples ~72%→90%.) Good/bad pairs in [examples.md](examples.md).

## 3. Keep it lean (it stays in context every turn once loaded)
- `SKILL.md` is an **index** - aim for ~1 page, hard cap ~500 lines.
- Push detail into bundled files **one level deep** (reference, examples, scripts). They cost zero tokens until read; nested-deeper files get partially read - don't nest.
- A **script executes without its source entering context** - prefer a script over asking the model to regenerate code.
- Challenge every line: *"would Claude err without this?"* If no, cut it.

## 4. Pick the right degree of freedom (= our layers)
- **reference skill → descriptive:** invariants, conventions + pointers to canonical files, decision heuristics, pitfalls, escape hatches. **No numbered procedures.**
- **workflow skill → imperative spine:** a numbered procedure **only** for deterministic/irreversible steps (branch/PR, codegen, build/verify). Cite reference skills for the judgment.
- **tool skill → thin index over a script/CLI:** lean SKILL.md (when + the run command + sub-commands at a glance), heavy detail in a bundled `reference.md`; the script is the engine (e.g. `tools/figma-utility`).

## 5. Naming
No platform prefix - the toolkit name + description already carry it. Reference = aspect noun (`navigation`); workflow = verb-phrase (`branch-and-pr`). Avoid vague/reserved (`helper`, `utils`, `claude-*`). For a name/title/strict-rule label that must carry its **whole intent**, validate it with the fresh-subagent inference test in [label-check.md](label-check.md) before committing.

## 6. Grow it from real usage - don't pre-write
1. Do the task **without** a skill; note where Claude actually fails.
2. Write the **minimum** that fixes those gaps.
3. Watch Claude use it: move reused detail up into SKILL.md, cut detail it ignores, sharpen the description if it didn't trigger.

## Before shipping
Start from [template.md](template.md); run [checklist.md](checklist.md). For a new or
substantially-changed skill that must be trusted, run the **multi-architect audit**
([audit.md](audit.md)) - a panel of distinct-lens reviewers + synthesis, looped
fix → re-audit until no blockers/majors remain.
