What Are Commands?
Commands are explicit actions you invoke with slash commands like/sales:call-summary or /finance:reconciliation. Unlike skills that activate automatically, commands are triggered on-demand when you need a specific, structured workflow.
Commands are perfect for:
- Processing structured input (call notes, transcripts, data files)
- Generating templated outputs (reports, summaries, follow-ups)
- Executing multi-step procedures (analysis, reconciliation, review)
- Workflows with clear start and end points
Command File Structure
Commands are individual markdown files in thecommands/ directory:
- YAML frontmatter: Metadata including description and argument hints
- Markdown body: Instructions for Claude to follow
Basic Command Format
Frontmatter Fields
description (required)
A concise description of what the command does. This appears in command palette and help text:argument-hint (optional)
Shows users what arguments the command expects:"<company name>"- Single required argument"<start-date> <end-date>"- Multiple arguments"[options]"- Optional arguments"<file>"- File input expected
Additional Fields
Accessing Arguments
Claude can access command arguments with variables:$ARGUMENTS
All arguments as a single string:Positional Arguments
@$1- First argument@$2- Second argument@$3- Third argument, etc.
File References
If a user provides a file path:Writing Effective Commands
1. Clear Usage Section
Start with how to invoke the command:2. Explain Input Requirements
Be explicit about what you need:3. Step-by-Step Instructions
Commands are instructions FOR Claude. Use imperative language:4. Specify Output Format
Show exactly what Claude should produce:Customer Follow-Up Email
6. Add Tips
Help users get better results:Referencing Placeholders
If your command references tools that might vary by organization, use placeholders:CONNECTORS.md file at the plugin root.
Real-World Example
Here’s a complete command file:Tips
- Connect your CRM for automated deal analysis
- Specify confidence level for different planning scenarios
- Review weekly to track forecast changes over time
- Quote for 20 seats at $480/seat/year
- W9 and supplier onboarding docs
- Point of contact for the contract
- Quote for 20 seats at $480/seat/year