Custom Slash Commands
9.1 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} |
9.2 Using /create-command to Generate Commands
- Command name
- Command purpose
- Files to read
- Execution steps
9.3 Command Design Best Practices
Good command structure:Step 2: Analyze [AI]
Describe what to analyze…
Step 3: Report
Output format…Step 2: 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