|
| 1 | +# Commands Quick Reference |
| 2 | + |
| 3 | +> 59 slash commands installed globally. Type `/` in any Claude Code session to invoke. |
| 4 | +
|
| 5 | +--- |
| 6 | + |
| 7 | +## Core Workflow |
| 8 | + |
| 9 | +| Command | What it does | |
| 10 | +|---------|-------------| |
| 11 | +| `/plan` | Restate requirements, assess risks, write step-by-step implementation plan — **waits for your confirm before touching code** | |
| 12 | +| `/tdd` | Enforce test-driven development: scaffold interface → write failing test → implement → verify 80%+ coverage | |
| 13 | +| `/code-review` | Full code quality, security, and maintainability review of changed files | |
| 14 | +| `/build-fix` | Detect and fix build errors — delegates to the right build-resolver agent automatically | |
| 15 | +| `/verify` | Run the full verification loop: build → lint → test → type-check | |
| 16 | +| `/quality-gate` | Quality gate check against project standards | |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +## Testing |
| 21 | + |
| 22 | +| Command | What it does | |
| 23 | +|---------|-------------| |
| 24 | +| `/tdd` | Universal TDD workflow (any language) | |
| 25 | +| `/e2e` | Generate + run Playwright end-to-end tests, capture screenshots/videos/traces | |
| 26 | +| `/test-coverage` | Report test coverage, identify gaps | |
| 27 | +| `/go-test` | TDD workflow for Go (table-driven, 80%+ coverage with `go test -cover`) | |
| 28 | +| `/kotlin-test` | TDD for Kotlin (Kotest + Kover) | |
| 29 | +| `/rust-test` | TDD for Rust (cargo test, integration tests) | |
| 30 | +| `/cpp-test` | TDD for C++ (GoogleTest + gcov/lcov) | |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +## Code Review |
| 35 | + |
| 36 | +| Command | What it does | |
| 37 | +|---------|-------------| |
| 38 | +| `/code-review` | Universal code review | |
| 39 | +| `/python-review` | Python — PEP 8, type hints, security, idiomatic patterns | |
| 40 | +| `/go-review` | Go — idiomatic patterns, concurrency safety, error handling | |
| 41 | +| `/kotlin-review` | Kotlin — null safety, coroutine safety, clean architecture | |
| 42 | +| `/rust-review` | Rust — ownership, lifetimes, unsafe usage | |
| 43 | +| `/cpp-review` | C++ — memory safety, modern idioms, concurrency | |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +## Build Fixers |
| 48 | + |
| 49 | +| Command | What it does | |
| 50 | +|---------|-------------| |
| 51 | +| `/build-fix` | Auto-detect language and fix build errors | |
| 52 | +| `/go-build` | Fix Go build errors and `go vet` warnings | |
| 53 | +| `/kotlin-build` | Fix Kotlin/Gradle compiler errors | |
| 54 | +| `/rust-build` | Fix Rust build + borrow checker issues | |
| 55 | +| `/cpp-build` | Fix C++ CMake and linker problems | |
| 56 | +| `/gradle-build` | Fix Gradle errors for Android / KMP | |
| 57 | + |
| 58 | +--- |
| 59 | + |
| 60 | +## Planning & Architecture |
| 61 | + |
| 62 | +| Command | What it does | |
| 63 | +|---------|-------------| |
| 64 | +| `/plan` | Implementation plan with risk assessment | |
| 65 | +| `/multi-plan` | Multi-model collaborative planning | |
| 66 | +| `/multi-workflow` | Multi-model collaborative development | |
| 67 | +| `/multi-backend` | Backend-focused multi-model development | |
| 68 | +| `/multi-frontend` | Frontend-focused multi-model development | |
| 69 | +| `/multi-execute` | Multi-model collaborative execution | |
| 70 | +| `/orchestrate` | Guide for tmux/worktree multi-agent orchestration | |
| 71 | +| `/devfleet` | Orchestrate parallel Claude Code agents via DevFleet | |
| 72 | + |
| 73 | +--- |
| 74 | + |
| 75 | +## Session Management |
| 76 | + |
| 77 | +| Command | What it does | |
| 78 | +|---------|-------------| |
| 79 | +| `/save-session` | Save current session state to `~/.claude/session-data/` | |
| 80 | +| `/resume-session` | Load the most recent saved session from the canonical session store and resume from where you left off | |
| 81 | +| `/sessions` | Browse, search, and manage session history with aliases from `~/.claude/session-data/` (with legacy reads from `~/.claude/sessions/`) | |
| 82 | +| `/checkpoint` | Mark a checkpoint in the current session | |
| 83 | +| `/aside` | Answer a quick side question without losing current task context | |
| 84 | +| `/context-budget` | Analyse context window usage — find token overhead, optimise | |
| 85 | + |
| 86 | +--- |
| 87 | + |
| 88 | +## Learning & Improvement |
| 89 | + |
| 90 | +| Command | What it does | |
| 91 | +|---------|-------------| |
| 92 | +| `/learn` | Extract reusable patterns from the current session | |
| 93 | +| `/learn-eval` | Extract patterns + self-evaluate quality before saving | |
| 94 | +| `/evolve` | Analyse learned instincts, suggest evolved skill structures | |
| 95 | +| `/promote` | Promote project-scoped instincts to global scope | |
| 96 | +| `/instinct-status` | Show all learned instincts (project + global) with confidence scores | |
| 97 | +| `/instinct-export` | Export instincts to a file | |
| 98 | +| `/instinct-import` | Import instincts from a file or URL | |
| 99 | +| `/skill-create` | Analyse local git history → generate a reusable skill | |
| 100 | +| `/skill-health` | Skill portfolio health dashboard with analytics | |
| 101 | +| `/rules-distill` | Scan skills, extract cross-cutting principles, distill into rules | |
| 102 | + |
| 103 | +--- |
| 104 | + |
| 105 | +## Refactoring & Cleanup |
| 106 | + |
| 107 | +| Command | What it does | |
| 108 | +|---------|-------------| |
| 109 | +| `/refactor-clean` | Remove dead code, consolidate duplicates, clean up structure | |
| 110 | +| `/prompt-optimize` | Analyse a draft prompt and output an optimised ECC-enriched version | |
| 111 | + |
| 112 | +--- |
| 113 | + |
| 114 | +## Docs & Research |
| 115 | + |
| 116 | +| Command | What it does | |
| 117 | +|---------|-------------| |
| 118 | +| `/docs` | Look up current library/API documentation via Context7 | |
| 119 | +| `/update-docs` | Update project documentation | |
| 120 | +| `/update-codemaps` | Regenerate codemaps for the codebase | |
| 121 | + |
| 122 | +--- |
| 123 | + |
| 124 | +## Loops & Automation |
| 125 | + |
| 126 | +| Command | What it does | |
| 127 | +|---------|-------------| |
| 128 | +| `/loop-start` | Start a recurring agent loop on an interval | |
| 129 | +| `/loop-status` | Check status of running loops | |
| 130 | +| `/claw` | Start NanoClaw v2 — persistent REPL with model routing, skill hot-load, branching, and metrics | |
| 131 | + |
| 132 | +--- |
| 133 | + |
| 134 | +## Project & Infrastructure |
| 135 | + |
| 136 | +| Command | What it does | |
| 137 | +|---------|-------------| |
| 138 | +| `/projects` | List known projects and their instinct statistics | |
| 139 | +| `/harness-audit` | Audit the agent harness configuration for reliability and cost | |
| 140 | +| `/eval` | Run the evaluation harness | |
| 141 | +| `/model-route` | Route a task to the right model (Haiku / Sonnet / Opus) | |
| 142 | +| `/pm2` | PM2 process manager initialisation | |
| 143 | +| `/setup-pm` | Configure package manager (npm / pnpm / yarn / bun) | |
| 144 | + |
| 145 | +--- |
| 146 | + |
| 147 | +## Quick Decision Guide |
| 148 | + |
| 149 | +``` |
| 150 | +Starting a new feature? → /plan first, then /tdd |
| 151 | +Code just written? → /code-review |
| 152 | +Build broken? → /build-fix |
| 153 | +Need live docs? → /docs <library> |
| 154 | +Session about to end? → /save-session or /learn-eval |
| 155 | +Resuming next day? → /resume-session |
| 156 | +Context getting heavy? → /context-budget then /checkpoint |
| 157 | +Want to extract what you learned? → /learn-eval then /evolve |
| 158 | +Running repeated tasks? → /loop-start |
| 159 | +``` |
0 commit comments