What This Document Covers:
- Complete reference of slash commands in Claude Code PM system
- Context commands (/context:create, /context:update, /context:prime)
- Documentation commands (/docs:update)
- Testing commands (/testing:prime, /testing:run)
- Git commands (/commit with session, all, and scoped modes)
- Utility and review commands
- Command patterns and custom command creation
Sections in This Document:
- Context Commands
- Documentation Commands
- Testing Commands
- Git Commands
- Utility Commands
- Review Commands
- Command Patterns
- Creating Custom Commands
- Integration with Agents
Related Documentation:
- → ../../README.md - Project overview and PM commands reference
- → ./GIT_WORKFLOW.md - Detailed git workflow guide
- → ./AGENTS.md - Specialized agents documentation
- → ./.claude/commands/ - Command implementations
Context Tags: #commands #slash-commands #cli #pm-system #automation
Complete reference of all commands available in the Claude Code PM system.
Note: Project Management commands (
/pm:*) are documented in the main README.md.
- Context Commands
- Documentation Commands
- Testing Commands
- Git Commands
- Utility Commands
- Review Commands
Commands for managing project context in .claude/context/.
- Purpose: Create initial project context documentation
- Usage:
/context:create - Description: Analyzes the project structure and creates comprehensive baseline documentation in
.claude/context/. Includes project overview, architecture, dependencies, and patterns. - When to use: At project start or when context needs full rebuild
- Output: Multiple context files covering different aspects of the project
- Purpose: Update existing context with recent changes
- Usage:
/context:update - Description: Refreshes context documentation based on recent code changes, new features, or architectural updates. Preserves existing context while adding new information.
- When to use: After significant changes or before major work sessions
- Output: Updated context files with change tracking
- Purpose: Load context into current conversation
- Usage:
/context:prime - Description: Reads all context files and loads them into the current conversation's memory. Essential for maintaining project awareness.
- When to use: At the start of any work session
- Output: Confirmation of loaded context
Commands for maintaining documentation accuracy after code changes.
- Purpose: Validate and update documentation after code changes
- Usage:
/docs:update - Description: Uses the doc-updater agent to analyze recent session changes, identify adjacent documentation files (README.md, CLAUDE.md, etc.), validate documentation against actual implementation, and update docs to reflect current reality. The agent trusts code over documentation and questions all assumptions.
- When to use:
- After implementing new features
- After refactoring code
- After changing APIs or workflows
- At the end of coding sessions
- When documentation accuracy is uncertain
- Features:
- Session-aware (analyzes files modified today)
- Proximity-based doc search (same dir, parent, root)
- Skeptical validation (questions all assumptions)
- Precise updates (only changes inaccurate documentation)
- Detailed reporting (lists specific changes made)
- Output: Structured report showing which docs were checked, what was updated, and specific changes made
Commands for test configuration and execution.
- Purpose: Configure testing setup
- Usage:
/testing:prime - Description: Detects and configures the project's testing framework, creates testing configuration, and prepares the test-runner agent.
- When to use: Initial project setup or when testing framework changes
- Output:
.claude/testing-config.mdwith test commands and patterns
- Purpose: Execute tests with intelligent analysis
- Usage:
/testing:run [test_target] - Description: Runs tests using the test-runner agent which captures output to logs and returns only essential results to preserve context.
- Options:
- No arguments: Run all tests
- File path: Run specific test file
- Pattern: Run tests matching pattern
- Output: Test summary with failures analyzed, no verbose output in main thread
Commands for intelligent git operations.
- Purpose: Create intelligent, conventional git commits
- Usage:
/commit- Commit session changes only/commit -a,/commit --all,/commit all- Commit all pending changes/commit <scope>- Commit changes matching specified scope
- Description: Uses the commit-manager agent to analyze git status, filter files based on scope or session context, group related changes into logical commits, and create conventional format commits with proper Claude signatures.
- Features:
- Session-aware (focuses on recently modified files by default)
- Dynamic scope filtering (intelligently matches any user-specified scope)
- Logical grouping (related files in same commit)
- Conventional commit format (feat, fix, chore, etc.)
- Atomic commits (one logical change per commit)
- Output: Commit plan showing grouped changes, then execution results
General utility and maintenance commands.
- Purpose: Handle complex prompts with multiple references
- Usage: Write your prompt in the file, then type
/prompt - Description: Ephemeral command for when complex prompts with numerous @ references fail in direct input. The prompt is written to the command file first, then executed.
- When to use: When Claude's UI rejects complex prompts
- Output: Executes the written prompt
- Purpose: Update or create CLAUDE.md with PM rules
- Usage:
/re-init - Description: Updates the project's CLAUDE.md file with rules from
.claude/CLAUDE.md, ensuring Claude instances have proper instructions. - When to use: After cloning PM system or updating rules
- Output: Updated CLAUDE.md in project root
Commands for handling external code review tools.
- Purpose: Process CodeRabbit review comments intelligently
- Usage:
/code-rabbitthen paste comments - Description: Evaluates CodeRabbit suggestions with context awareness, accepting valid improvements while ignoring context-unaware suggestions. Spawns parallel agents for multi-file reviews.
- Features:
- Understands CodeRabbit lacks full context
- Accepts: Real bugs, security issues, resource leaks
- Ignores: Style preferences, irrelevant patterns
- Parallel processing for multiple files
- Output: Summary of accepted/ignored suggestions with reasoning
All commands follow consistent patterns:
Each command specifies its required tools in frontmatter:
Read, Write, LS- File operationsBash- System commandsTask- Sub-agent spawningGrep- Code searching
Commands follow fail-fast principles:
- Check prerequisites first
- Clear error messages with solutions
- Never leave partial state
Commands that process lots of information:
- Use agents to shield main thread from verbose output
- Return summaries, not raw data
- Preserve only essential information
To add new commands:
-
Create file:
commands/category/command-name.md -
Add frontmatter:
--- allowed-tools: Read, Write, LS ---
-
Structure content:
- Purpose and usage
- Preflight checks
- Step-by-step instructions
- Error handling
- Output format
-
Follow patterns:
- Keep it simple (no over-validation)
- Fail fast with clear messages
- Use agents for heavy processing
- Return concise output
Commands often use agents for heavy lifting:
- test-runner: Executes tests, analyzes results
- file-analyzer: Summarizes verbose files
- code-analyzer: Hunts bugs across codebase
- parallel-worker: Coordinates parallel execution
- commit-manager: Creates intelligent git commits
- doc-updater: Validates and updates documentation after code changes
This keeps the main conversation context clean while doing complex work.
- Commands are markdown files interpreted as instructions
- The
/prefix triggers command execution - Commands can spawn agents for context preservation
- All PM commands (
/pm:*) are documented in the main README - Commands follow rules defined in
/rules/
Last Updated: January 2025 - LaunchAgencyBot v2.0