/skill-authoring:skill-creatorfrom skill-authoring
Guides authoring, reviewing, and validating agent skills (SKILL.md + metadata.json + references/ + scripts/). Covers trigger design, reference indexes, verification sections, and lint-skills fixes.
Ships in skill-authoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write skills that load at the right moment, teach what the model does not already know, and prove their own results.
TRIGGER when:
bun run lint-skills fails, or a skill must be registered in a plugin or the marketplace.Do not use when:
Only load a reference when its topic is in play.
| File | Load when |
|---|---|
references/repo-layout.md | Adding, renaming, or registering a skill in this repository, mirroring into plugins/, or reading lint errors |
references/authoring-patterns.md | Writing the body: trigger design, reference index, traps, verification, version tags, subagent skills, project inspection |
---
name: my-skill # lowercase, hyphenated, equals the folder name
description: <what it does>. Use when <symptoms, APIs, file names, error strings>. Do not use for <case> (sibling-skill).
---
when_to_use: is appended to description in Claude Code's skill listing. The combined text is truncated at 1,536 characters, so put the key use case first. Other agents ignore it, so never move the core trigger out of description.allowed-tools; the host controls tool permissions.Target fewer than about 250 lines. Use this order:
## When to Use: TRIGGER bullets and a Do not use when list that points to sibling skills by name. Lint requires the ## When to Use heading.## Reference Index: a table of each file and when to load it, with "Only load a reference when its topic is in play."## Procedure: numbered steps. Inspect before you edit, and report findings before invasive changes.## Traps: the non-obvious failures. Skip basics the model already knows.## Verification: exact commands or checks that prove success.## Error Handling: exact error strings mapped to fixes.Move dense tables, long code, and per-topic depth into references/<topic>.md, one level deep. Put fragile or repetitive logic in scripts/.
--help, its type definitions, or its repo over memory.npm / npx examples. Capacitor and Capgo CLI examples use npx ...@latest.bun / bunx only for this repository's own development and CI commands, or in Bun-specific skills.When a skill edits user files, tell the agent never to replace user-provided tokens, keys, certificates, or passwords with placeholders unless asked. Placeholders are for new generic examples only. Do not suggest rotating secrets unless the user asks.
Follow references/repo-layout.md: canonical folder in skills/, metadata.json, an entry in package.json skills, exposure through a plugin folder plus .claude-plugin/marketplace.json, then bun run sync-skills and bun run lint-skills.
Use skillgrade (eval.yaml + graders/). Prefer deterministic graders for structure. Use an LLM rubric only for qualitative judgement. Run it with bun run lint-skills-skillgrade, or ENABLE_SKILLGRADE=1 with an API key during lint.
plugins/<plugin>/skills/ is wrong. Edit the canonical skills/<name>/, then sync.bun run lint-skills passes. It checks the name against the folder, the description length, the ## When to Use heading, valid metadata.json, marketplace exposure, and byte-identical mirrors.wc -l skills/<name>/SKILL.md is about 250 or less, and every file in references/ is named in the Reference Index.--help or source.| Lint message | Fix |
|---|---|
<skill>: name "<x>" does not match folder name | Make the frontmatter name equal the directory |
<skill>: description exceeds 1024 characters | Cut filler, keep concrete triggers and the negative clause |
<skill>: missing usage guidance | Add a ## When to Use heading |
<skill>: missing metadata.json / invalid metadata.json | Create or fix the JSON (see references/repo-layout.md) |
claude marketplace: skill "<x>" is not exposed by any plugin | Create plugins/<plugin>/skills/<x>/, then bun run sync-skills |
mirrored skills: ... (run bun run sync-skills) | Run bun run sync-skills. Never hand-edit the mirror |
<plugin>: unknown skill "<x>" | The plugin folder has no matching skills/<x>. Create the canonical skill or remove the folder |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
skill-authoring, skill-validation, trigger-design, skillgrade
npx claudepluginhub cap-go/capgo-skills --plugin skill-authoringOther plugins' skills for the same job