Apply XP practices including pair programming, ensemble programming, continuous integration, and sustainable pace...
Core XP Practices (Prioritized):
| Practice | Start Here | Why First |
|---|---|---|
| TDD | ā Yes | Foundation for everything |
| Continuous Integration | ā Yes | Fast feedback |
| Pair Programming | ā Yes | Knowledge sharing |
| Collective Ownership | After CI+TDD | Needs safety net |
| Small Releases | After CI | Infrastructure dependent |
Pairing Quick Start:
Driver-Navigator (Classic):
- Driver: Writes code
- Navigator: Reviews, thinks ahead
- Rotate every 20-30 min
Ping-Pong (with TDD):
A: Write failing test
B: Make test pass + refactor
B: Write next failing test
A: Make test pass + refactor
| Context | Pair? | Why |
|---|---|---|
| Complex/risky code | ā Always | Needs multiple perspectives |
| New technology | ā Always | Learning accelerator |
| Onboarding | ā Always | Knowledge transfer |
| Critical bugs | ā Always | Two heads better |
| Simple tasks | ā Skip | Not worth overhead |
| Research spikes | ā Skip | Pair to discuss findings |
// Agent-human pair testing
const charter = "Test payment edge cases";
const tests = await Task("Generate Tests", { charter }, "qe-test-generator");
const reviewed = await human.review(tests);
await Task("Implement", { tests: reviewed }, "qe-test-generator");
// Continuous integration with agents
await Task("Risk Analysis", { prDiff }, "qe-regression-risk-analyzer");
await Task("Generate Tests", { changes: prDiff }, "qe-test-generator");
await Task("Execute Tests", { scope: 'affected' }, "qe-test-executor");
// Sustainable pace: agents handle grunt work
const agentWork = ['regression', 'data-generation', 'coverage-analysis'];
const humanWork = ['exploratory', 'risk-assessment', 'strategy'];
aqe/xp-practices/
āāā pairing-sessions/* - Pair/ensemble session logs
āāā ci-metrics/* - CI health metrics
āāā velocity/* - Team velocity data
āāā retrospectives/* - XP retrospective notes
const xpFleet = await FleetManager.coordinate({
strategy: 'xp-workflow',
agents: [
'qe-test-generator', // TDD support
'qe-test-executor', // CI integration
'qe-code-reviewer' // Collective ownership
],
topology: 'parallel'
});
XP practices work as a system - TDD enables collective ownership, CI enables small releases, pairing enables collective ownership. Don't cherry-pick randomly.
With Agents: Pair humans with agents. Agents handle repetitive work (regression, data generation, coverage analysis), humans provide judgment and creativity.