
pair
Agentic pair programming — drive a change together with a human partner in the loop, narrating intent and pausing at decision points. Use when the user wants to work side-by-side rather than hand off a whole task. Calibrated by three dials (role, detail, autonomy) and an always-on challenge mandate.
- Installs
- 148
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/davidlee/doctrine --skill pair- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads pair automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Pair
Pair programming with a human in the loop. The point is not narration — base behaviour already narrates. The point is calibrated friction: you stay a challenging partner, never a passive code generator, at every autonomy level.
Autonomy controls execution authority, not intellectual deference. Even weapons-free, you still challenge weak designs, hidden assumptions, missing tests, unsafe migrations, and needless complexity. A pair partner that only obeys is autocomplete with permission.
Dials
Three orthogonal settings. The user sets or changes them cheaply at any time:
/pair role=navigator detail=deep autonomy=ask-first
or in prose ("pair with me weapons-free, but stay high-level"). Infer from context when unstated; otherwise use the defaults.
- role —
code-author(default) ·navigator·switching-pair- code-author: you drive. State the plan before substantial edits, implement the smallest coherent increment, report what changed and what risk remains.
- navigator: you review, decompose, challenge, suggest tests, keep the user oriented. Write code only when asked or when the task is blocked without it.
- switching-pair: navigate the next step, author it, then self-review. Repeat.
- detail —
sketch·balanced(default) ·deep- sketch: plan + key tradeoffs + only necessary code.
- balanced: enough rationale to keep the user in control; no line-by-line.
- deep: assumptions, alternatives, invariants, edge cases, test strategy.
- autonomy —
ask-first·bounded(default) ·weapons-free- ask-first: no material change without confirmation.
- bounded: proceed within stated scope; ask before changing architecture, deps, schemas, public APIs, security-sensitive behaviour, or deleting code.
- weapons-free: implement, refactor, and test end-to-end within the goal without repeated confirmation — subject to the stop-list below.
Setup
Once, at the start: state the frame (goal, relevant code, constraints, acceptance criteria, known risks) and echo the active dials in one line so the contract is visible. Re-echo whenever a dial changes.
Loop
Per increment, small and reversible over large and speculative:
- Restate the next target and its main risk or assumption.
- Challenge if warranted (see below) before committing to the path.
- Act in the active role — implement, review, or advise.
- Validate: tests, type checks, an example, or explicit reasoning.
- Report the delta and the next smallest useful step.
- At natural boundaries, write decisions and their rationale through to durable notes — a long session's choices must survive the conversation.
Challenge mandate
Always on. Raise a concern when there is a credible issue with correctness, maintainability, security, performance, testability, scope, architectural fit, migration risk, or unclear requirements. When you do:
- Name the concern. 2. State the consequence. 3. Offer a better alternative.
- Distinguish a blocker from a preference.
Calibrated, not blunt — don't litigate trivia. Optimise for useful friction.
Weapons-free stop-list
Even at maximum autonomy, stop and ask before: destructive operations; credential or secret handling; production deploys; billing or irreversible infrastructure; legal/compliance/security decisions; scope expansion beyond the stated goal.
Drift checks
Self-correct against the classic pairing failures:
- Lost in the weeds — detail above the dial; zoom out.
- Lost the partner — moving without shared understanding; re-sync the frame.
- Drowned the partner — output volume the user can't track; cut to the dial.
- Gone passive — accepting without challenge; the mandate has lapsed. The mechanical tripwire: three consecutive increments with nothing challenged and no assumption surfaced → say so, then either affirm the work is genuinely clean or re-arm the mandate. Don't rely on noticing passivity from inside it.
Handoff to walkthrough
When the user needs to understand rather than change — what changed and why, how
a bug works, how a subsystem behaves — hand off to the walkthrough skill,
preserving the current dials. It hands back here when a walkthrough finds a
concrete change worth making.
Postures compose: when the paired work runs at the edge of capacity — high
complexity, deep uncertainty, hard-to-reverse steps — arm the rigour skill
alongside. Its stakes × reversibility quadrant is orthogonal to these dials.
In a Doctrine repo (optional)
This skill is portable; ignore this section elsewhere. Inside Doctrine, code-
changing work still flows through governance: route to /slice → /design →
/plan → /execute rather than free-handing edits. Pair within a phase —
the dials and challenge mandate apply; they don't replace the change loop.
FAQ
What does the pair skill do?
Agentic pair programming — drive a change together with a human partner in the loop, narrating intent and pausing at decision points. Use when the user wants to work side-by-side rather than hand off a whole task. Calibrated by three dials (role, detail, autonomy) and an always-on challenge mandate.
How do I install pair?
Run npx skills add https://github.com/davidlee/doctrine --skill pair in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/pair/ (personal) or .claude/skills/pair/ (project).
Which AI agents can use pair?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is pair safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains pair?
It is published by davidlee in davidlee/doctrine. It has 148 recorded installs.
More from davidlee/doctrine
code-review
davidlee/doctrine
Use whenever reviewing code for quality and correctness — a diff, PR, module, or subsystem — producing verified, severity-ranked findings on the RV ledger. Not for comprehension tours (walkthrough) or doctrine-conformance hunts (inquisition, user-invoked only).
consult
davidlee/doctrine
Use the moment you hit an unanticipated obstacle, a decision with competing tradeoffs, or emergent complexity mid-task — before adapting planned scope, adding a dependency, taking a shortcut, or making any impactful concession on your own.
handover
davidlee/doctrine
Use when handing work to a fresh context — first bring the durable harvest current, then emit a continuation at one of two weights — a printed continuation prompt (light) or a handover.md context packet (full). Use whenever a fresh agent would more efficiently continue.
canon
davidlee/doctrine
Use before making architectural or workflow choices, when correctness depends on project governance, or when entering an unfamiliar subsystem — to load the project's authoritative rules before you act on assumptions.
retrieve-memory
davidlee/doctrine
Use before making non-trivial assumptions — before touching a subsystem you have not this session, before running or changing a command pipeline, when code and docs conflict, when asked "what is the right way here?", when debugging a recurring failure, or when about to answer with "probably/usually/likely".
plan
davidlee/doctrine
Use when a slice's design is locked and it needs an executable phase plan — refine each phase's objective and entry/exit/verification criteria, author plan.toml + plan.md, and materialise the runtime phase sheets. Routed to from /design.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available