Skip to content
Back to skills

Pair Programming

ASecurity

Implement a turn-based Driver-Navigator pair programming workflow. One agent (Driver) focuses on implementation and writes code, while the other (Navigator) reviews, validates, and suggests improvements in real time. Roles can swap dynamically based on tasks. Triggers: "페어 프로그래밍", "공동 작업", "드라이버 네비게이터", "pair programming", "driver navigator", "collaborative coding".

  • 12 stars
  • 0 votes
  • 2 copies
  • 2 views
  • Added September 28, 2026
ai-agentsgit

Works with

  • mcp

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add fritzprix/libr-agent --skill pair-programming --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pair Programming?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pair Programming
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fritzprix-pair-programming/badge)](https://www.skillsdirectory.com/skills/fritzprix-pair-programming)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: pair-programming
description: >
  Implement a turn-based Driver-Navigator pair programming workflow. One agent (Driver)
  focuses on implementation and writes code, while the other (Navigator) reviews, validates,
  and suggests improvements in real time. Roles can swap dynamically based on tasks.
  Triggers: "페어 프로그래밍", "공동 작업", "드라이버 네비게이터", "pair programming", "driver navigator", "collaborative coding".
---

# Pair Programming

The Pair Programming pattern binds two sessions to a shared workspace (`workspaceOverride`) where one acts as the Driver (editing files, implementing logic) and the other acts as the Navigator (reviewing code, checking architecture, guiding steps) in a turn-based collaborative loop.

## Driver-Navigator Loop

```
┌────────────────────────────────────────────────────────┐
│                   Shared Workspace                     │
│               (Same Workspace Override)                │
└──────────────────────────┬─────────────────────────────┘
             ┌─────────────┴─────────────┐
             ▼                           ▼
      [ Driver Session ] ◄────────► [ Navigator Session ]
        - Write code and implement   - Review design, guide structure
        - Direct file modifications  - Provide feedback (turn-based)
```

## 5-Stage Workflow

1. **Session Selection**: Inspect existing child sessions and reuse an Idle Driver/Navigator session with the matching assistant ID and exact workspace contract through `agent__messageToSession`. Use `reset=true` when beginning a fresh pairing task. Start a new session only when no compatible pair member exists or the required role/workspace differs.
2. **Workspace Configuration**: Ensure both sessions share the exact same `workspaceOverride` directory.
3. **Assign Roles**: Allocate the Driver role to a code-generation model and the Navigator role to an analysis-focused model.
4. **Turn-based Interaction**:
   - The Driver implements a section of code and writes a summary of the edits for the Navigator.
   - The Navigator runs `workspace__readFile` or `git diff` on the workspace, checks for issues, and sends feedback/next instructions to the Driver.
5. **Role Rotation**: Swap roles when moving between tasks (e.g., swapping to write test suites). See [role-rotation.md](references/role-rotation.md).
6. **Validation**: Run the final project test pipeline to verify correctness.

---

## 🛠️ MCP Tools Guide

- **Turn Coordination**: The parent session collects the Driver's changes summary and forwards them to the Navigator via `agent__messageToSession` to invoke the next turn, maintaining a lock-step loop.

## References

- [Role rotation](references/role-rotation.md)
- [Turn protocol](references/turn-protocol.md)
- [Diff review checklist](references/diff-review-checklist.md)

Files in this skill

  • SKILL.md3.1 KB
  • references/diff-review-checklist.md1.1 KB
  • references/role-rotation.md1.4 KB
  • references/turn-protocol.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.