/new-skill
Scaffold a new skill following the Claude Code SKILL.md spec.
Usage
/new-skill <bucket>/<kebab-name>
E.g.: /new-skill general/find-duplicates or /new-skill research-pkg/new-experiment
Pre-flight
- Verify
skills/<bucket>/<kebab-name>/does not already exist - Verify
<bucket>is one of:general/,research-pkg/,static-site/,productivity/,personal/— or ask the user to add a new bucket if needed
⚠️ Claude Code plugin discovery is TOP-LEVEL only. CC auto-discovers
skills/<name>/SKILL.mdone level deep — it does NOT scanskills/<bucket>/<name>/. So a skill you want Claude to auto-discover MUST live at the top levelskills/<kebab-name>/(likememory-flywheel,tui-installer,figma-design-fetch). Theskills/general/*copies are reached by Codex (skills/glob) and opencode (deploy-skills), NOT by the CC plugin. If the skill should be Claude-discoverable, create it atskills/<kebab-name>/(bucket is then just an organizational tag in INVENTORY, not a path level).
Steps
Create directory:
mkdir -p skills/<bucket>/<kebab-name>Ask the user for:
- One-line description (becomes
description:frontmatter — this is what Claude reads to decide auto-invocation) - Trigger:
auto(Claude invokes when matched) / slash-only (user must type/<name>) / both - Skill body content — what does the skill do?
- One-line description (becomes
Write
skills/<bucket>/<kebab-name>/SKILL.md:--- name: <kebab-name> description: <one-line — be specific; this is what Claude matches against> <if user-only:> disable-model-invocation: true --- # /<kebab-name> <opening summary line> ## Master TOC - [Pre-flight](#pre-flight) - [Steps](#steps) - [Notes for the agent](#notes-for-the-agent) - [Companion](#companion) ## Pre-flight <any verification, e.g. plugin-preflight checks> ## Steps 1. <step> 2. <step> ... ## Notes for the agent <gotchas, anti-patterns, things to avoid> ## Companion <related rules / skills / hooks>Update
skills/README.md— add a row to the skill index table.Update
INVENTORY.mdANDINVENTORY.zh.md— add a row to the Skills section.Show the user the diff and ask for confirmation before committing.
Frontmatter conventions
name— kebab-case, matches the directory namedescription— be specific about WHEN the skill fires. Claude uses this to decide auto-invocation. Vague descriptions cause both false positives and false negatives.disable-model-invocation: true— set for skills with side effects (deploy, force-push, etc.) that should only fire on explicit user request
Companion
docs/CONTRIBUTING.md§"Adding a skill" — formal specskills/README.md— index of all skills + bucket conventions- Anthropic's
skill-creatorplugin — for more sophisticated skill authoring with evals