Command Development for Claude Code
Enables the creation, configuration, and optimization of custom slash commands to automate repetitive development workflows.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- YAML frontmatter configuration for tool permissions and model selection
- Inline bash execution for gathering real-time repository and environment state
- Smart file referencing using the '@' syntax for context injection
- Dynamic argument handling using positional variables ($1, $2, $ARGUMENTS)
- Hierarchical command organization and namespacing for project-wide sharing
Use cases
- Standardizing code review processes with project-specific security and style checks
- Creating custom wrappers for CI/CD tasks, test runners, or git workflows directly in the terminal
- Automating documentation generation using source file references and standard templates
FAQ
Can commands run bash scripts for context?
Yes, commands can execute bash strings inside backticks to pull in dynamic context like git status, environment variables, or file lists before Claude processes the prompt.
What are Claude Code slash commands?
Slash commands are reusable Markdown-based prompts stored in .claude/commands/ that allow you to execute complex, standardized workflows using natural language shortcuts.
What is the purpose of YAML frontmatter in a command?
Frontmatter allows you to configure metadata like the command description shown in help, specify allowed tools (like Read or Bash), and select the specific AI model for execution.
How do I pass arguments to a custom command?
You can use positional arguments like $1, $2 for specific inputs, or capture the entire input string using $ARGUMENTS within your command's Markdown file.
Where should I store my custom commands?
Store project-specific commands in .claude/commands/ for team use, or global personal commands in ~/.claude/commands/ to use them across all your projects.
Related skills
Hook Development
Guides the development of event-driven automation scripts (hooks) to extend and secure Claude Code plugin workflows.
Productivity Workflow412 ptsSkill Factory
Orchestrates a comprehensive, research-backed workflow for creating, validating, and auditing new Claude Code skills.
Productivity Workflow412 ptsHome Assistant
Manages and automates Home Assistant smart home environments by discovering entities, generating YAML configurations, and debugging automation traces.
Productivity Workflow6512 pts