2.2 KiB
2.2 KiB
title, description, command_type, last_updated, related_docs
| title | description | command_type | last_updated | related_docs | ||
|---|---|---|---|---|---|---|
| Use Command Template | Create new Claude Code command following established patterns | development | 2025-11-02 |
|
Use Command Template
I need to create a new command using the standard template for: $ARGUMENTS
Your Task
Create a new Claude Code command following our established patterns and templates.
Execution Steps
-
Determine Command Type
- Parse command purpose from $ARGUMENTS
- Identify appropriate category (analysis/development/quality/etc)
- Choose suitable command name (verb-noun format)
-
Apply Template
- Start with base template from command-template.md
- Customize sections for specific command purpose
- Ensure all required sections are included
- Add command-specific flags if needed
-
Configure Integration
- Check command-patterns.yml for workflow placement
- Identify prerequisite commands
- Define what context this command produces
- Add to appropriate workflow chains
-
Create Command File
- Determine correct folder based on category
- Create .md file with command content
- Verify @include references work correctly
- Test with example usage
Template Structure
The standard template includes:
- Purpose (single sentence)
- Task description with $ARGUMENTS
- Phased execution steps
- Context preservation rules
- Expected output format
- Integration guidance
Best Practices
- Keep commands focused on a single responsibility
- Use clear verb-noun naming (analyze-dependencies, create-component)
- Include at least 3 example usages
- Define what gets cached for reuse
- Specify prerequisite and follow-up commands
Example Usage
# Create a new analysis command
/development:use-command-template analyze API endpoints for rate limiting needs
# Create a new validation command
/development:use-command-template validate database migrations for safety
# Create a new generation command
/development:use-command-template generate Pydantic classes from API schema