Pair Programming
できること
このスキルは、AIがあなたと一緒にペアプログラマーとして働き、役割を切り替えて、進めながらコードをレビューできるようにします。作りながら、または学びながら、もう一組の目がほしい開発者向けです。
使う場面
- ✓コードを書きながら、チェックしてくれるパートナーがほしいとき。
- ✓新しいコードベースを学んでいて、段階的な指導がほしいとき。
- ✓テストファーストの開発で機能を作りたいとき。
スキルのリンク
https://github.com/ruvnet/RuView/blob/main/.claude/skills/pair-programming/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“この機能をペアで作りましょう。あなたはナビゲーターの役割で、私が行う変更のひとつずつをレビューしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、コードを書くドライバーか、それをレビューするナビゲーターのどちらかの役割を取り、役割を切り替えます。セッションが進むにつれて、作業の品質とセキュリティを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Pair Programming
Collaborative AI pair programming with intelligent role management, real-time quality monitoring, and comprehensive development workflows.
What This Skill Does
This skill provides professional pair programming capabilities with AI assistance, supporting multiple collaboration modes, continuous verification, and integrated testing. It manages driver/navigator roles, performs real-time code review, tracks quality metrics, and ensures high standards through truth-score verification.
Key Capabilities:
- Multiple Modes: Driver, Navigator, Switch, TDD, Review, Mentor, Debug
- Real-Time Verification: Automatic quality scoring with rollback on failures
- Role Management: Seamless switching between driver/navigator roles
- Testing Integration: Auto-generate tests, track coverage, continuous testing
- Code Review: Security scanning, performance analysis, best practice enforcement
- Session Persistence: Auto-save, recovery, export, and sharing
Prerequisites
Required:
- Claude Flow CLI installed (
npm install -g claude-flow@alpha) - Git repository (optional but recommended)
Recommended:
- Testing framework (Jest, pytest, etc.)
- Linter configured (ESLint, pylint, etc.)
- Code formatter (Prettier, Black, etc.)
Quick Start
Basic Session
# Start simple pair programming
claude-flow pair --start
TDD Session
# Test-driven development
claude-flow pair --start \
--mode tdd \
--test-first \
--coverage 90
Complete Guide
Session Control Commands
Starting Sessions
# Basic start
claude-flow pair --start
# Expert refactoring session
claude-flow pair --start \
--agent senior-dev \
--focus refactor \
--verify \
--threshold 0.98
# Debugging session
claude-flow pair --start \
--agent debugger-expert \
--focus debug \
--review
# Learning session
claude-flow pair --start \
--mode mentor \
--pace slow \
--examples
Session Management
# Check status
claude-flow pair --status
# View history
claude-flow pair --history
# Pause session
/pause [--reason <reason>]
# Resume session
/resume
# End session
claude-flow pair --end [--save] [--report]
Available Modes
Driver Mode
You write code while AI provides guidance.
claude-flow pair --start --mode driver
Your Responsibilities:
- Write actual code
- Implement solutions
- Make immediate decisions
- Handle syntax and structure
AI Navigator:
- Strategic guidance
- Spot potential issues
- Suggest improvements
- Real-time review
- Track overall direction
Best For:
- Learning new patterns
- Implementing familiar features
- Quick iterations
- Hands-on debugging
Commands:
/suggest - Get implementation suggestions
/review - Request code review
/explain - Ask for explanations
/optimize - Request optimization ideas
/patterns - Get pattern recommendations
Navigator Mode
AI writes code while you provide direction.
claude-flow pair --start --mode navigator
Your Responsibilities:
- Provide high-level direction
- Review generated code
- Make architectural decisions
- Ensure business requirements
AI Driver:
- Write implementation code
- Handle syntax details
- Implement your guidance
- Manage boilerplate
- Execute refactoring
Best For:
- Rapid prototyping
- Boilerplate generation
- Learning from AI patterns
- Exploring solutions
Commands:
/implement - Direct implementation
/refactor - Request refactoring
/test - Generate tests
/document - Add documentation
/alternate - See alternative approaches
Switch Mode
Automatically alternates roles at intervals.
# Default 10-minute intervals
claude-flow pair --start --mode switch
# 5-minute intervals (rapid)
claude-flow pair --start --mode switch --interval 5m
# 15-minute intervals (deep focus)
claude-flow pair --start --mode switch --interval 15m
Handoff Process:
- 30-second warning before switch
- Current driver completes thought
- Context summary generated
- Roles swap smoothly
- New driver continues
Best For:
- Balanced collaboration
- Knowledge sharing
- Complex features
- Extended sessions
Specialized Modes
TDD Mode - Test-Driven Development:
claude-flow pair --start \
--mode tdd \
--test-first \
--coverage 100
Workflow: Write failing test → Implement → Refactor → Repeat
Review Mode - Continuou
よくある質問
どんなモードがありますか?
ドライバー、ナビゲーター、切り替え、テスト駆動、レビュー、メンター、デバッグのモードが挙げられています。
セッションの進捗は保存されますか?
はい。スキルは自動保存とセッションの復旧を扱います。
先に何を用意すべきですか?
claude-flowツールと、できればGitリポジトリとテストフレームワークです。
詳細
作者による元の説明
AI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD, debugging, refactoring, and learning sessions. Features automatic role switching, continuous code review, security scanning, and performance optimization with truth-score verification.
repo: ruvnet/RuView
人気
- GitHubのスター
- 102k
- ランキング
- #835
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
AgentDB Advanced Features
102kエージェントが、複数のマシンにまたがるデータベースの同期や、ベクトル検索とメタデータによる絞り込みの組み合わせなど、AgentDBの高度な機能を示します。
AgentDB Learning Plugins
102kエージェントが、過去の経験から改善する強化学習の手法を使って、AgentDB向けの学習プラグインを作成・学習できるよう支援します。
AgentDB Memory Patterns
102kエージェントが、AgentDBを永続メモリとして使い、セッションをまたいで会話と文脈を覚えられるよう支援します。
AgentDB Performance Optimization
102kエージェントが、圧縮、高速な検索インデックス、キャッシュを使って、AgentDBの検索を高速化し、メモリ使用量を減らす方法を示します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。