Use this skill proactively when the user is about to start implementation work. Trigger on: - Starting new features: "create a", "build a", "implement", "add a feature", "I want to make" - Planning work: "how should I approach", "where do I start", "help me plan", "let's design" - Complex tasks: "refactor", "migrate", "rewrite", "redesign", "overhaul" - Unfamiliar code: "I don't know this codebase", "new to this project", "first time working on" - Explicit mentions: "RPI", "research plan implement", "harness methodology" - Large scope: "multiple files", "across the codebase", "system-wide", "end-to-end" - Context concerns: "don't want to lose track", "keep organized", "structured approach" This skill provides tiered guidance: trivial tasks get light documentation, complex tasks get full RPI workflow. Always document work—projects evolve.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
examples/plan-template.mdexamples/research-template.mdreferences/workflow-details.mdA structured approach for working effectively on large, complex codebases with AI assistance.
AI coding tools have a paradox:
The root cause: context degradation. As conversations grow, AI loses coherence and makes increasingly poor decisions. Stanford research shows AI tools often create negative net productivity due to rework cycles.
"The contents of your context window are the ONLY lever you have to affect the quality of your output."
Context quality optimizes for (in order):
Design workflows around context management, maintaining 40-60% utilization through strategic human review points.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ RESEARCH │────▶│ PLANNING │────▶│ IMPLEMENT │
│ │ │ │ │ │
│ • Understand│ │ • Precise │ │ • Execute │
│ codebase │ │ steps │ │ phases │
│ • Map files │ │ • File list │ │ • Verify │
│ • Hypotheses│ │ • Test plan │ │ • Compact │
└─────────────┘ └─────────────┘ └─────────────┘
│ │ │
▼ ▼ ▼
[Document] [Document] [Updated Doc]
│ │ │
└───────── Human Review Points ─────────┘
Purpose: Understand the codebase as it exists today.
Key principles:
Research outputs:
Template: See examples/research-template.md
Purpose: Create a detailed, verifiable implementation plan.
Key principles:
Planning outputs:
Template: See examples/plan-template.md
Purpose: Execute the approved plan with verification.
Key principles:
Where human attention multiplies impact:
| Phase | Error Multiplier | Human Focus |
|---|---|---|
| Research | 1 mistake → 1000s of bad lines | HIGH |
| Planning | 1 mistake → 100s of bad lines | HIGH |
| Implementation | 1 mistake → isolated issue | Lower |
Key insight: Review research and plans, not code details.
Use full RPI for:
Skip to planning for:
Skip to implementation for:
Compact context when:
Compaction preserves:
For any complex task, begin with:
I need to [task description].
Before implementing, let's follow the RPI methodology:
1. **Research Phase**: Help me understand the relevant parts of this codebase.
- What files are involved?
- How does the current implementation work?
- What patterns should I follow?
2. **Planning Phase**: Once we understand the codebase, create a detailed plan.
- Break into verifiable phases
- Include success criteria for each phase
3. **Implementation Phase**: Execute the plan phase by phase.
- Verify each phase before proceeding
- Compact context between major phases
For detailed workflow guidance and patterns:
references/workflow-details.md - Comprehensive phase-by-phase instructionsWorking templates in examples/:
examples/research-template.md - Research document structureexamples/plan-template.md - Implementation plan structure