Systematic Planning
Break complex features into discrete, manageable phases with clear
boundaries
Incremental Progress
Implement one phase at a time with validation and testing at each step
Version Control Strategy
Use git commits and PRs to track progress and enable safe rollbacks
Continuous Validation
Test functionality incrementally rather than waiting until the end
When to use this workflow
This approach is ideal for: Massive refactors - Touching 100+ files across your entire codebaseThe workflow
1
Create the master plan
Use Specification Mode to create comprehensive documentation breaking the
project into major phases.
2
Phase-by-phase implementation
Start new sessions for each phase, referencing the master plan document.
3
Frequent commits and PRs
Create git commits and pull requests corresponding to each completed phase.
4
Incremental validation
Test and validate functionality after each phase rather than at the end.
5
Update the plan
Mark completed phases and adjust remaining work based on learnings.
Phase 1: Master planning with Specification Mode
Start by using Shift+Tab to enter Specification Mode and create a comprehensive breakdown: Example prompt:- Phase breakdown - 4-6 major implementation phases
- Dependencies mapping - Which phases must be completed before others
- Testing strategy - How to validate each phase works correctly
- Risk assessment - Potential issues and mitigation strategies
- Rollback plan - How to safely revert if needed
IMPLEMENTATION_PLAN.md
in your project root.
Phase 2: Iterative implementation
For each phase in your plan:Start a fresh session
Begin each phase with a new droid session to maintain focus and clean context.Reference the master plan
Example prompt for Phase 1:Use Specification Mode for complex phases
For phases involving significant changes, use Shift+Tab to get detailed planning:Commit frequently
After each phase completion, ask Droid to commit your changes:Create phase-specific PRs
Ask Droid to create pull requests for each completed phase:Phase 3: Validation and testing strategy
Test each phase independently
Don’t wait until the end - validate functionality after each phase: Phase 1 completion:Use feature flags for gradual rollout
Automated testing at phase boundaries
Best practices
Start with read-only changes - Begin phases with analysis and preparation before making modifications. Maintain backward compatibility - Keep old systems working while new ones are being built. Use feature toggles - Allow gradual rollout and quick rollback if needed. Document learnings - Update your plan based on discoveries during implementation. Test boundary conditions - Focus testing on the interfaces between old and new systems. Plan for rollback - Each phase should be reversible if critical issues are discovered. Communicate progress - Keep stakeholders updated with regular progress reports.Recovery strategies
If a phase encounters major issues:- Immediate rollback - Use git to revert to the last stable state
- Issue analysis - Document what went wrong and why
- Plan adjustment - Update remaining phases based on learnings
- Stakeholder communication - Update timelines and expectations