GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pair-programming-skill/reference/command-protocol.md at main · CPythoner/pair-programming-skill

Expand file tree

/

command-protocol.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
232 lines (170 loc) · 7.46 KB
/

command-protocol.md

Copy path

File metadata and controls

232 lines (170 loc) · 7.46 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Command Protocol

The slash commands are semantic intents. They do not require a shell extension.

Host invocation normalization

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.

/pair plan <goal-or-design>

Input may be:

  • a feature goal / requirement;
  • an implementation-ready design;
  • a design-document/spec reference;
  • optional acceptance criteria / constraints.

First classify the input.

If the input is NOT implementation-ready

  1. Inspect relevant existing code.
  2. Design the solution.
  3. Save the canonical design to .pair/design.md.
  4. Set manifest.design.source: ai_generated.
  5. Set manifest.design.status: awaiting_approval.
  6. Report the design summary and ask the user to confirm it.
  7. 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.

If the input IS implementation-ready

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.

Design approval gate for all commands

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 status reports the pending design revision.
  • /pair explain design and 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.

/pair next [step]

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.

/pair review [scope]

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.

/pair hint [scope] [level]

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.

/pair explain <scope>

No modifications.

/pair show <scope>

No modifications. Use Guide commit where possible. Mark output as reference.

/pair take <scope>

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.

/pair challenge [scope]

Ask 1–3 questions. No code modification.

/pair status

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.html and data.json (only data.json for --json);
  • how to open the static HTML directly in a browser;
  • any generation failure or missing-state limitation.

/pair rebase-plan

This is workflow replanning, not git rebase. Preserve Human Workspace. Create a new Shadow generation if needed.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.