What problem does it solve?
Provides clear, practical guidance for creating, organizing, and validating Claude Code slash commands so teams and individuals can automate common workflows without accidental misuse or broken commands.
Core Features & Use Cases
- Frontmatter & Configuration: Explains required and optional YAML fields (description, allowed-tools, model, argument-hint, disable-model-invocation) and best practices for discoverability.
- Dynamic Arguments & File Inclusion: Shows how to author positional and aggregated arguments, include file contents for context, and safely combine inputs for robust commands.
- Bash Execution, Validation & Plugins: Documents safe inline bash execution patterns, validation and error-handling strategies, multi-step workflows, AskUserQuestion interactive patterns, and plugin conventions using ${CLAUDE_PLUGIN_ROOT} for portable scripts and templates.
- Use Case Example: Author a project-level review command that reads changed files, runs targeted scripts, validates inputs, and composes a human-readable report.
Quick Start
Create a command file with a concise description in YAML frontmatter, document expected arguments with argument-hint, include any required allowed-tools, and write the prompt instructing Claude what to do in imperative form.