Create a new Claude Code skill with proper structure, YAML frontmatter, and supporting files. Use when the user asks to create, scaffold, or generate a skill.
Create a new Claude Code skill following the official Agent Skills standard. Follow these steps in order.
Ask the user for:
my-skill) — if already provided, use it directlyUse ask_user with choices:
Use ask_user with choices:
Ask one question at a time using ask_user:
Invocation: "Who should invoke this skill?"
Execution context: "Where should this skill run?"
If context: fork was chosen, ask agent type:
Tool restrictions: "Restrict tools for this skill?"
Arguments: "Does this skill accept arguments?"
[filename], [issue-number]).Use the template in templates/skill-template.md to generate the skill directory. Key rules:
<scope-path>/<skill-name>/SKILL.md with YAML frontmatter + markdown bodydescription is always includedFor supporting files:
Print:
✅ Skill "<name>" created at <path>/<name>/SKILL.md
Invoke with: /<name>
If context: fork:
Runs in: forked <agent-type> subagent