RPI = Research → Plan → Implement
A systematic development workflow with validation gates at each phase. Prevents wasted effort on non-viable features and ensures comprehensive documentation.
| ← Back to Claude Code Best Practice |
Copy the .claude folder (containing agents/ and commands/rpi/) to your repository root, then create the rpi/plans directory.
Step 1: Describe
User: "Add OAuth2 authentication with Google and GitHub providers"
1. Claude generates plan
→ Output: rpi/plans/oauth2-authentication.md
2. Create feature folder: rpi/oauth2-authentication/
3. Copy the plan into the feature folder
4. Rename the plan to REQUEST.md
→ Final: rpi/oauth2-authentication/REQUEST.md
Step 2: Research
/rpi:research rpi/oauth2-authentication/REQUEST.mdOutput:
research/RESEARCH.mdwith analysis- Verdict: GO (feasible, aligned with strategy)
Step 3: Plan
/rpi:plan oauth2-authenticationOutput:
plan/pm.md- User stories and acceptance criteriaplan/ux.md- Login UI flowsplan/eng.md- Technical architectureplan/PLAN.md- 3 phases, 15 tasks
Step 4: Implement
/rpi:implement oauth2-authenticationProgress:
- Phase 1: Backend Foundation → PASS
- Phase 2: Frontend Integration → PASS
- Phase 3: Testing & Polish → PASS
Result: Feature complete, ready for PR.
All feature work lives in rpi/{feature-slug}/:
rpi/{feature-slug}/
├── REQUEST.md # Step 1: Initial feature description
├── research/
│ └── RESEARCH.md # Step 2: GO/NO-GO analysis
├── plan/
│ ├── PLAN.md # Step 3: Implementation roadmap
│ ├── pm.md # Product requirements
│ ├── ux.md # UX design
│ └── eng.md # Technical specification
└── implement/
└── IMPLEMENT.md # Step 4: Implementation record
| Command | Agents Used |
|---|---|
/rpi:research |
requirement-parser, product-manager, Explore, senior-software-engineer, technical-cto-advisor, documentation-analyst-writer |
/rpi:plan |
senior-software-engineer, product-manager, ux-designer, documentation-analyst-writer |
/rpi:implement |
Explore, senior-software-engineer, code-reviewer |