What problem does it solve?
This skill solves the problem of creating and managing slash commands in Claude Code, providing comprehensive guidelines, best practices, and practical examples to streamline command development.
Core Features & Use Cases
- Command Creation: Offers step-by-step instructions for creating slash commands with Markdown and YAML frontmatter.
- YAML Frontmatter: Explains the purpose and usage of frontmatter fields like
description, allowed-tools, and model.
- Dynamic Arguments: Demonstrates how to use dynamic arguments and file references in commands.
- Bash Execution: Guides the use of Bash commands within slash commands for added functionality.
- Command Organization: Provides patterns for organizing commands into projects, personal spaces, and plugins.
- Best Practices: Shares best practices for command design, argument handling, file references, and error handling.
- Examples: Offers a collection of practical command examples to demonstrate real-world application.
- Plugin-specific Features: Covers plugin command organization, ${CLAUDE_PLUGIN_ROOT} environment variable usage, and integration with plugin components.
Quick Start
Create a new slash command to review code for security vulnerabilities using the command: /review-code --file path/to/file