Skip to content

Slash Commands

CAP Pro adds 27 slash commands to your AI runtime. They fall into three groups: per-feature workflow (the 5 main steps), project-wide tooling (status, snapshots, memory), and migration / maintenance.

Most of the time you don't need to type these — CAP Pro auto-recognises the workflow moment and invokes the right command. The commands exist as power-user explicit triggers.

Per-feature workflow

CommandAgentPurpose
/cap:brainstormcap-brainstormerDiscover features, draft Feature Map entries with ACs
/cap:prototypecap-prototyperBuild code from a planned feature, embed @cap-* tags
/cap:iteratecap-prototyper (iterate mode)Refine prototype, close @cap-todo tags
/cap:testcap-validator (TEST)RED-GREEN tests against ACs
/cap:reviewcap-validator (REVIEW)Two-stage review: AC + code quality
/cap:debugcap-debuggerScientific-method debugger with persistent state
/cap:designcap-designerUI/UX review against the 9-family aesthetic system
/cap:annotatecap-prototyper (annotate mode)Retroactively tag existing code

Project-wide

CommandBackendPurpose
/cap:statuscap-curator (STATUS)Feature dashboard, drift indicators
/cap:startcap-historian (CONTINUE)Resume the last session, mtime-diff for changes
/cap:savecap-historian (SAVE)Snapshot the current session for later
/cap:continuecap-historian (CONTINUE)Resume a specific snapshot
/cap:checkpointcap-historianMid-session marker without full save
/cap:scantag-scannerRe-extract @cap-* tags, refresh Feature Map
/cap:tracetag-scanner + gitWalk a feature: Feature Map → tags → tests → commits
/cap:memorymemory pipelineManage .cap/memory/ (decisions, pitfalls, patterns, hotspots)
/cap:learnmemory pipelineExtract a learning from the current session
/cap:reconciletag-scanner + Feature MapFind and resolve mismatches between code and Feature Map
/cap:completenesscap-validator (AUDIT)Compute the F-048 completeness score
/cap:test-auditanalyserTest-quality analysis: assertion density, mutation testing, anti-patterns
/cap:depsanalyserDependency graph + freshness check
/cap:uicap-designerUI-specific review

Initialisation

CommandPurpose
/cap:initInitialise project — create .cap/, FEATURE-MAP.md, run brownfield analysis

Migration

CommandBackendPurpose
/cap:migratecap-migrator (GSD)Migrate legacy gsd-* files
/cap:migrate-tagscap-migrator (TAGS)Convert old tag formats
/cap:migrate-feature-mapcap-migrator (FEATURE-MAP)Monolithic → sharded
/cap:migrate-memorycap-migrator (MEMORY)V5 → V6 memory layout

Per-runtime command syntax

The slash-prefix syntax depends on the runtime:

RuntimeSyntax
Claude Code, Gemini, OpenCode/cap:prototype
Codex$cap-prototype
GitHub Copilot, Antigravity/cap-prototype
Cursorcap-prototype (mention the skill name)
Windsurf/cap-prototype

CAP Pro's installer handles the runtime-specific renaming for you.

Retired commands

If you used code-as-plan@7.x, these commands are gone in CAP Pro 1.0:

RetiredReplacement
/cap:cluster/cap:status (calls cap-curator MODE: CLUSTERS)
/cap:report/cap:status (calls cap-curator MODE: REPORT)
/cap:refresh-docs/cap:memory status + native Context7
/cap:switch-app/cap:start --app=<name>
/cap:quick, /cap:finalizeAuto Frontend Sprint mode
/cap:doctor, /cap:update, /cap:upgradeRe-run npx cap-pro@latest
/cap:new-project/cap:init

The CAP Pro installer auto-cleans these from previous installs. See Migrating from code-as-plan@7.x.

Released under the MIT License.