What problem does it solve?
This Skill empowers users to create, configure, and organize custom slash commands for Claude Code, streamlining workflows and enhancing productivity.
Core Features & Use Cases
- Command Creation: Learn the structure, file format, and best practices for writing new commands.
- Frontmatter Configuration: Understand and utilize YAML frontmatter fields like
description, allowed-tools, model, and argument-hint for command control and discovery.
- Dynamic Arguments & File References: Master using
$1, $ARGUMENTS, and @path/to/file for flexible command inputs.
- Bash Execution: Integrate shell commands (`!``) for dynamic context gathering.
- Organization & Namespacing: Structure commands logically using directories for better discoverability.
- Plugin Integration: Leverage
${CLAUDE_PLUGIN_ROOT} and understand plugin-specific command patterns.
- Interactive Commands: Design commands that use
AskUserQuestion for dynamic user input.
- Validation & Error Handling: Implement robust checks for arguments, files, and script execution.
- Use Case: A developer needs to create a new command to automate code reviews. They use this Skill to learn the file structure, how to define arguments for pull request numbers, how to reference the code files, and how to use
allowed-tools to permit Git commands.
Quick Start
Use the command development skill to create a new slash command for Claude Code.