AI-Driven Development Workflow
Recommended workflow for AI-assisted development: Plan Mode with Sonnet, review and iterate, execute with Composer, work in small incremental tasks.
Philosophy
Optimized for AI-assisted development with a proven workflow that maximizes quality while maintaining velocity.
Documentation as AI Reference
MDX files can be used directly in prompts as reference material. Reference any documentation page:
"Using the patterns from /docs/contracts, create a new API endpoint..."The Recommended Workflow
1. Plan Mode with Sonnet (Always Start Here)
- Use Claude Sonnet for planning (better reasoning)
- Break down complex tasks into clear steps
- Get a reviewed plan before coding
Why start with planning? Better results, fewer iterations, identifies edge cases early.
2. Review and Iterate the Plan
- Read the plan carefully
- Ask clarifying questions
- Refine until you're satisfied
- Don't rush to execution
Key questions: Edge cases covered? Scope appropriate? Dependencies identified? Approach optimal?
3. Execute with Composer
- Use Composer for multi-file edits
- Follow the plan step-by-step
- Make small, incremental changes
Best practices: Execute one step at a time, test between steps, review before proceeding.
4. Small Incremental Tasks
- Break work into < 30-minute chunks
- Commit after each complete task
- Test between commits
- Easy to review, easy to revert
Benefits: Easier reviews, simple reverts, clear progress tracking.
CI/CD Integration
- CodeRabbit - Automated code reviews on PRs
- Linters - Biome (formatting, pre-commit) + ESLint (correctness)
- GitHub Actions - Tests, type checking, build verification, lint checks
Development Tools
Commands available:
pnpm dev- Start all appspnpm build- Build all packagespnpm lint- Run linterspnpm checktypes- Check typespnpm format- Format code (Biome)
Best Practices
- Always use plan mode first
- Review before executing
- Small commits (< 30 min chunks)
- Test incrementally
- Use MCP servers
- Follow Cursor rules
- Document decisions
Common Workflows
Adding a New Feature
- Plan - Use Sonnet to create a detailed plan
- Review - Check the plan with team/yourself
- Execute - Use Composer to implement step-by-step
- Test - Verify each step works
- Commit - Small, focused commits
- Review - CodeRabbit + human review
- Iterate - Refine based on feedback
Fixing a Bug
- Reproduce - Understand the issue
- Plan - Create a fix plan with Sonnet
- Execute - Implement the fix
- Test - Verify the fix works
- Commit - Document the fix
Refactoring
- Plan - Map out the refactoring approach
- Review - Ensure no breaking changes
- Execute - Small, incremental changes
- Test - Verify behavior unchanged
- Commit - Document the refactoring
Next Steps
- Cursor Setup - Configure your IDE
- Cursor Rules - Understand the coding standards
- Using MCP Servers - Practical MCP usage