> **Command Development** — chapter 5 of 10 in [anthropics/claude-code](https://skillsdocs.com/anthropics/claude-code).
>
> Book (all chapters, one file): https://skillsdocs.com/anthropics/claude-code.md
> Machine manifest: https://skillsdocs.com/anthropics/claude-code/.well-known/agent-skills/index.json
> Install the book: `npx skills add anthropics/claude-code`
> Upstream: https://github.com/anthropics/claude-code/blob/main/plugins/plugin-dev/skills/command-development/SKILL.md @ `main`
> Raw bytes, no header: https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/SKILL.md
> Base for relative paths: https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/
> Licence: No licence detected — all rights reserved by its authors
>
> Bundled files (10), referenced from this skill's directory:
>   - `examples/plugin-commands.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/examples/plugin-commands.md
>   - `examples/simple-commands.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/examples/simple-commands.md
>   - `README.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/README.md
>   - `references/advanced-workflows.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/references/advanced-workflows.md
>   - `references/documentation-patterns.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/references/documentation-patterns.md
>   - `references/frontmatter-reference.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/references/frontmatter-reference.md
>   - `references/interactive-commands.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/references/interactive-commands.md
>   - `references/marketplace-considerations.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/references/marketplace-considerations.md
>   - `references/plugin-features-reference.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/references/plugin-features-reference.md
>   - `references/testing-strategies.md` — https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/references/testing-strategies.md
>
> Content © its authors. This chapter's body is not served here; the links above are. Takedown: https://github.com/kyleledbetter/skillsdocs/issues/new?labels=takedown&title=Takedown+request

# Command Development

This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.

No licence could be detected for this skill at either the repository or the skill level, so its body is not reproduced here. Read it upstream:

https://raw.githubusercontent.com/anthropics/claude-code/main/plugins/plugin-dev/skills/command-development/SKILL.md
