Best practices for planning

1. Start with Clear Requirements

Before Runbooks generates the plan, provide comprehensive context:

"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

Point to specific files, patterns, and conventions:

"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

Don't wait until everything is wrong to provide feedback:

4. Provide Examples from Your Codebase

5. Set Expectations for Testing

6. Use Step Editing for Precision

When you need exact changes, edit the step directly rather than describing changes in chat. This ensures:

  • No ambiguity in requirements

  • Exact specifications are captured

  • Changes are tracked in the runbook version

7. Provide Feedback Continuously

Don't wait for all steps to execute. Review and comment as you go:

  • After runbook generation: Review the overall plan

  • During execution: Check each PR as it's created

  • After testing: Report results and issues immediately

8. Share Test Results

9. Request Explanations When Needed

10. Collaborate on Complex Decisions

Last updated

Was this helpful?