What problem does it solve?
This skill solves the challenge of creating effective, reusable slash commands for Claude Code by providing comprehensive guidance on command structure, frontmatter configuration, dynamic arguments, plugin integration patterns, and best practices for team collaboration.
Core Features & Use Cases
- Slash Command Fundamentals: Learn file format, YAML frontmatter fields, dynamic arguments like $ARGUMENTS and positional $1 $2, file references using @ syntax, and bash execution using backtick syntax for creating powerful prompts.
- Plugin-Specific Patterns: Master CLAUDE_PLUGIN_ROOT environment variable usage, plugin command discovery, namespacing, and integration with agents, skills, and hooks for distributed plugin ecosystems.
- Advanced Workflows: Build multi-step workflows, state-carrying commands, conditional branching, interactive commands using AskUserQuestion, and production-grade error handling with validation patterns.
- Use Case: A developer building a Claude Code plugin needs to create commands that automate code reviews, run tests, and generate documentation while maintaining proper security boundaries and user interaction patterns.
Quick Start
Use the Command Development skill to create a new slash command by defining its purpose, adding YAML frontmatter with description and allowed-tools, and writing the prompt content with dynamic arguments and file references.