π€ AI Pair Programming Skill
name: ai-pair-programming
description: Collaborate with AI in real-time pair programming sessions for enhanced productivity
π― Purpose
ΰΈΰΈ³ΰΈΰΈ²ΰΈΰΈ£ΰΉΰΈ§ΰΈ‘ΰΈΰΈ±ΰΈ AI ΰΉΰΈΰΈ pair programming ΰΉΰΈΰΈ·ΰΉΰΈΰΉΰΈΰΈ΄ΰΉΰΈ‘ productivity ΰΉΰΈ₯ΰΈ° code quality
π When to Use
- ΰΈΰΈ³ΰΈΰΈ²ΰΈ complex features
- Need second opinion
- Learning new technology
- Debugging difficult issues
- Code review in real-time
π§ Pair Programming Modes
1. Driver-Navigator Mode
Human = Driver (writes code)
AI = Navigator (reviews, suggests, catches errors)
Flow:
1. Human writes code
2. AI reviews each change
3. AI suggests improvements
4. Human decides to accept/modify
2. Ping-Pong Mode
Alternate writing code:
1. Human writes test
2. AI writes code to pass
3. Human refactors
4. AI suggests improvements
3. AI-First Mode
AI = Driver (writes code)
Human = Navigator (reviews, directs)
Flow:
1. Human describes what's needed
2. AI writes code
3. Human reviews and provides feedback
4. AI refines code
π Session Flow
START SESSION
β
βΌ
βββββββββββββββββββ
β Define Goal β β What are we building?
ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββ
β Discuss Approachβ β How will we build it?
ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββ
β Write Code β β Collaborate on implementation
β (iterative) β
ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββ
β Review Together β β Check quality, bugs
ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββ
β Refine β β Improve based on feedback
ββββββββββ¬βββββββββ
β
βΌ
COMPLETE β
π― Best Practices
Communication
| Do |
Don't |
| Be specific about goals |
Give vague instructions |
| Ask for alternatives |
Accept first solution |
| Explain context |
Assume AI knows everything |
| Give feedback |
Silently reject |
Code Quality
| Practice |
Description |
| Review all AI code |
Don't blindly accept |
| Test suggestions |
Verify they work |
| Understand changes |
Ask for explanations |
| Keep it simple |
Avoid over-engineering |
π Session Template
## π€ Pair Programming Session
### Goal
{What we're building}
### Approach
{How we'll build it}
### Progress
- [x] Step 1: Setup
- [ ] Step 2: Core logic
- [ ] Step 3: Testing
### Decisions Made
- Decision 1: Why
- Decision 2: Why
### Questions/Blockers
- Question 1?
β
Session Checklist
π Related Skills
code-review - Review code quality
debugging - Debug issues together
testing - Write tests together