The slash commands are semantic intents. They do not require a shell extension.
Use the host's native skill invocation and normalize the trailing arguments into this
document's /pair ... protocol:
Codex: $pair-programming <command> ...
Cursor / Claude Code / OpenCode: /pair-programming <command> ...
Gemini CLI: activate pair-programming, then provide /pair <command> ...
GitHub Copilot: use /pair-programming skill to run /pair <command> ...
Internal semantic form: /pair <command> ...
Example: $pair-programming review step 2 and
/pair-programming review step 2 both mean /pair review step 2.
Input may be:
- a feature goal / requirement;
- an implementation-ready design;
- a design-document/spec reference;
- optional acceptance criteria / constraints.
First classify the input.
- Inspect relevant existing code.
- Design the solution.
- Save the canonical design to
.pair/design.md. - Set
manifest.design.source: ai_generated. - Set
manifest.design.status: awaiting_approval. - Report the design summary and ask the user to confirm it.
- STOP.
Do not create a Shadow worktree/branch or implement source code before explicit approval.
After the user approves the saved design, continue the same plan:
- bind approval to the current design revision;
- set design status to
approved; - set phase to
shadow; - create Shadow;
- fully implement and verify;
- build the Guide commit chain.
Normalize/save it to .pair/design.md, record it as user-provided and approved, then
proceed to Shadow implementation unless the user explicitly asked for planning/review only.
Output after the implementation phase:
- feature summary;
- approved design reference;
- Shadow verification status;
- number of Guide steps;
- concise list of steps;
- major risks;
- current action: ready for
/pair next.
Do not paste the whole solution.
Before any command that could create or apply implementation code, read the current design state.
Implementation is allowed only when:
design.status == approved
AND
design.approved_revision == design.revision
While awaiting approval:
/pair statusreports the pending design revision./pair explain designand design-review discussion are allowed.- requests to revise the design update
.pair/design.md, increment the revision, and keep the gate closed. /pair next,/pair take, or other implementation requests must not create Shadow or modify implementation code; remind the user that the current design revision needs explicit approval.- an explicit phrase such as "implement this design" counts as approval and may immediately continue into Shadow implementation in the same turn.
If no step is supplied, pick the first incomplete step with satisfied dependencies.
Output:
- goal;
- why;
- context;
- constraints;
- files/symbols;
- validation;
- relevant Shadow pitfalls matched by step/file/symbol/context;
- first coding move.
Stop at Human coding checkpoint.
Default scope:
- current step.
May review:
- step;
- file;
- symbol;
- current diff.
Output:
- must_fix;
- should_consider;
- nice_to_have;
- known Shadow-pitfall checks relevant to the reviewed scope;
- validation result;
- whether step can be marked complete.
Avoid empty headings; omit categories with no content.
Default scope: current blocker/current step. Default level: previous level + 1, starting at 1.
Do not modify code for levels 1–4. Level 5 becomes takeover.
No modifications.
No modifications. Use Guide commit where possible. Mark output as reference.
Modifies Human Workspace.
Before source modification:
- run recovery reconciliation;
- refuse to start if another takeover is non-terminal;
- create checkpoint;
- create
.pair/operations/<id>.yaml; - record scope, strategy, dependencies, conflicts, and matched Pitfalls.
Lifecycle:
prepared -> applying -> applied -> validating -> completed.
If interrupted, reconcile the recorded operation before applying anything again. Distinguish not-applied, partially-applied, applied-but-unvalidated, stale-metadata, and ambiguous drift. Never blindly replay a patch.
Validate after application. Clear progress.active_operation only after completion or an
explicitly recorded abandonment.
Ask 1–3 questions. No code modification.
Read metadata + actual git status. Do not trust stale metadata blindly.
Also report:
- recovery classification and workspace drift, if any;
- active/non-terminal takeover operation;
- unresolved Shadow pitfalls;
- pitfalls relevant by step/file/symbol/context;
- pitfall entries that have not yet been surfaced to the user;
- Guide quality warnings/failures when reconstruction depends on the Guide.
/pair dashboard [--watch] [--interval <seconds>] [--json] [--pair-dir <path> | --workspace <path>] [--output <path>]
Read reference/dashboard.md and reference/state-model.md.
Generate a static, read-only view of existing Pair state. This command is available even while design approval is pending or workflow recovery needs attention. It does not run recovery mutations, initialize state, create branches, or modify Human source.
Resolve scripts/dashboard/main.py relative to the loaded skill's directory, then run it
from the user's project root so the default .pair points to that project:
python3 /absolute/path/to/pair-programming/scripts/dashboard/main.py
Forward only the supported --watch, --interval, --json, --pair-dir, --workspace, and --output options. Relative option
paths resolve from the user's project root. If YAML support is unavailable, report the
dependency instructions in scripts/dashboard/README.md; do not silently create empty
state or claim successful generation.
With --watch, generate once and keep polling in a terminal session; do not block the
conversation waiting for the process to finish. Report the session and how to stop it
with Ctrl-C. --interval is a positive, finite number of seconds (default: 1).
Changes regenerate static files and report step transitions; the browser displays the
new state after a page reload. Malformed state during watching leaves the last valid
business values in place and is retried without rewriting Pair state. Freshness metadata
and a stale warning may change while those values remain intact.
--workspace and --pair-dir are mutually exclusive. Workspace mode scans only direct
child project directories, isolates per-project read errors, and defaults to
<workspace>/.pair/dashboard. It supports Watch and JSON-only exports.
Report per-project progress; never invent an aggregate completion percentage.
JSON-only mode includes data.json and derived history/*.json; it does not create HTML
or assets. Suggested /pair commands are text for the user, never an execution API.
Output:
- paths to generated
index.htmlanddata.json(onlydata.jsonfor--json); - how to open the static HTML directly in a browser;
- any generation failure or missing-state limitation.
This is workflow replanning, not git rebase.
Preserve Human Workspace.
Create a new Shadow generation if needed.