| name | planning-and-building |
| description | Approach for planning and implementing code changes. Use when starting new features, starting bug fixes, beginning any implementation work, or when unsure how to approach a coding task. Covers learning the codebase first, verifying approaches match existing patterns, and writing simple maintainable code. |
Planning and Building
Before You Build
- Learn first - Study the codebase before implementing. Search for similar functionality to understand how problems are typically solved in this project.
- Verify approach - Search for relevant code to confirm your approach matches existing patterns. Don't assume—verify with existing code.
- Consider improvements - Consider if there's a better solution than what was described.
Code Principles
- Simplicity above all - Write simple, readable, maintainable code. When in doubt, choose the more obvious approach.
- Single responsibility - One purpose per method and class
- No premature abstractions - Wait until patterns emerge
- Clear intent over clever code - Be boring and obvious