Greenfield Projects
Starting from Scratch
When building new projects with no existing codebase: Phase 1: Research and Design (30-60 minutes)Example: REST API Project
Existing Codebases
Understand First, Modify Second
Discovery workflow:Feature Addition to Existing Code
For well-tested codebases:Incremental Integration Pattern
For large changes to existing code:Research and Analysis Projects
Competitive Analysis
Technical Due Diligence
Before adopting a library or framework:Migration Projects
System Migration Strategy
For large-scale migrations, use phased approach: Phase 1: AssessmentDatabase Migration Example
Session 1: PreparationPerformance Optimization Projects
Systematic Optimization
Workflow:Example: API Performance Optimization
Debugging Projects
Systematic Bug Investigation
Multi-Session Strategies
Parallel Development
For independent features:Serial Deep Work
For complex, dependent features:Domain-Specific Patterns
Machine Learning Projects
Distributed Systems
Avoid These Anti-Patterns
The Everything Session
Don’t bundle:Scope Creep
Don’t expand mid-session:Validation-Light
Don’t skip validation:Measure Session Success
Quality Indicators
Good sessions produce:- Working code (all tests pass)
- Evidence of performance (benchmarks shown)
- Comprehensive documentation
- Clear understanding
- Reusable knowledge
- Code “should work” (not tested)
- Optimization without measurements
- Missing documentation
- Unclear accomplishments
Post-Session Checklist
After significant work:- All tests passing (full suite run)
- Performance validated (benchmarks if relevant)
- Documentation updated
- Code follows conventions
- Edge cases handled
- Ready for PR or delivery
Next Steps
Apply these strategies to your work:- How to Write Effective Requests: Core prompting techniques
- How to Collaborate Effectively: Iteration and validation
- How to Use the Sandbox: Execution environment patterns
- How to Work with Source Control: GitHub workflows

