Custom Slash Commands
Command File Format and Location
| Platform | Location | Naming Convention |
|---|---|---|
| Claude Code | .claude/commands/trellis/{name}.md | Invoked as: /{name} |
| Cursor | .cursor/commands/{name}.md | Invoked as: /{name} |
Using /create-command to Generate Commands
- Command name
- Command purpose
- Files to read
- Execution steps
Command Design Best Practices
Good command structure:Analyze [AI]
Describe what to analyze…
Report
Output format…Verify [AI]
Check these items:
- All tests pass
- No TODO comments in production code
- Environment variables are set
- Database migrations are up to date
- API endpoints are documented