Agent skill
ai-pair-programming
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/ai-pair-programming
SKILL.md
π€ 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
markdown
## π€ 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
- Goal clearly defined
- Approach agreed
- Code reviewed
- Tests written
- Documentation updated
- Knowledge shared
π Related Skills
code-review- Review code qualitydebugging- Debug issues togethertesting- Write tests together
Didn't find tool you were looking for?