Scaffolds a new Claude Code skill — creates the skill directory and a well-formed SKILL.md with frontmatter and instructions.
Ships in cc-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create a new skill for the user.
Determine save location: Check the first argument token(s).
global → save to ~/.claude/skills/<skill-name>/SKILL.md, and treat the remaining tokens as the skill description.to ~/Projects/cc-skills) → save to ~/Projects/cc-skills/.claude/skills/<skill-name>/ (skills live under .claude/skills/, NOT the repo root). Follow that repo's CLAUDE.md: gen-image is the reference template, no secrets in committed files (public repo), and finish with its "Adding a skill" checklist (.sync-targets.json + bun run sync + bun run readme)../.claude/skills/<skill-name>/SKILL.md (project scope), and treat all tokens as the skill description.The command name comes from the directory name (my-skill/ → /my-skill), not from the name field.
Decide the skill type — this drives the frontmatter:
disable-model-invocation: true so it only runs as /name and Claude never fires it on its own — especially for anything with side effects.Gather information (use arguments if provided, otherwise ask):
description is the field that decides auto-loading. Pack in (a) what it does, (b) when to use it, (c) the trigger words a user would naturally type — lead with the top use case. description + when_to_use are merged and truncated to 1536 chars in the skill listing, so front-load the essentials. If there are many trigger phrases, split them into a when_to_use field.
Create the skill directory and SKILL.md. Only description is recommended; every other field is optional (name defaults to the directory name). Minimal frontmatter:
---
name: <skill-name> # display name only; usually = directory name
description: <what it does + when to use + the words a user would actually say>
# disable-model-invocation: true # task skills / side effects — run only as /command
# argument-hint: '<args>' # autocomplete hint if it takes arguments
# allowed-tools: Bash(git commit *) ... # pre-approve only the tools it needs
# paths: ["**/*.ts"] # auto-activate only when matching files are touched
# user-invocable: false # hide from / menu for pure background knowledge
---
For the full field set (when_to_use, arguments, disallowed-tools, model, effort, context/agent, hooks, shell), string-substitution variables, dynamic context injection, and the companion-file pattern, see reference.md.
Keep the body lean. Say WHAT to do, not why. Once loaded, the rendered SKILL.md stays resident across turns, so write standing instructions, not one-shot steps. Keep it under ~500 lines; move big reference/examples/long scripts into companion files and load them on demand. Reference scripts via ${CLAUDE_SKILL_DIR}/foo.sh, never a hardcoded .claude/skills path.
After creating, suggest a test: try the natural phrasing (auto-trigger) and the direct /skill-name (manual) — confirm it both fires and does the right thing.
Propose the complete SKILL.md draft and the exact save path first. Create the directory and write the files only after the user confirms. If the skill's intent, name, or scope is unclear, ask before drafting.
$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
/cc-skills:create-skill [global] [skill description...]from cc-skills
npx claudepluginhub sorrycc/skills --plugin cc-skillsOther plugins' skills for the same job