Best practices for planning
1. Start with Clear Requirements
"I want to migrate our authentication from OAuth1 to OAuth2.
Context:
- Current implementation: src/auth/oauth1.ts
- 50K active users, zero downtime required
- Must support both flows during 2-week migration window
- Need to preserve all existing session data
- Compliance requirement: audit trail for all auth changes
Success criteria:
- All existing users can continue logging in
- New users use OAuth2 automatically
- Complete migration data report for compliance
- No performance degradation"2. Reference Your Codebase
"Follow the repository pattern established in src/repositories/
Each repository should:
- Extend BaseRepository
- Use dependency injection for the database client
- Include CRUD operations and custom queries
- Have corresponding tests in tests/repositories/"3. Iterate in Small Steps
4. Provide Examples from Your Codebase
5. Set Expectations for Testing
6. Use Step Editing for Precision
7. Provide Feedback Continuously
8. Share Test Results
9. Request Explanations When Needed
10. Collaborate on Complex Decisions
Last updated
Was this helpful?
