What problem does it solve?
Creating and maintaining effective slash commands can be challenging, leading to inconsistent behavior, poor organization, and difficult debugging. This skill provides a structured approach to manage commands throughout their lifecycle, ensuring they are well-defined, portable, and easy to use.
Core Features & Use Cases
- Command Lifecycle Management: Guides through creating, reviewing, debugging, and maintaining Claude Code slash commands, including namespace organization.
- Thin Wrapper Architecture: Promotes designing commands as lightweight orchestrators that delegate logic to reusable skills, boosting portability and reducing bloat.
- Schema Validation: Ensures command frontmatter adheres to the official Claude Code schema, preventing common errors and promoting consistency.
- Delegation Best Practices: Offers clear guidelines on what logic belongs in commands (orchestration) versus skills (reusable knowledge), and patterns for efficient delegation.
- Use Case: When building a new command like
/commit, use this skill to define its arguments, integrate it with existing skills like git-commit, validate its structure, and ensure it's a lean orchestrator, not a bloated logic container.
Quick Start
Use claude-commands to understand how to apply the 'thin wrapper' pattern for the /commit command.