Understanding comes before action
Understand
Read the codebase, map the project layout, identify affected files and their dependencies, check for conventions and test patterns.
Plan
State what will change and why, list files to modify, identify edge cases, note tests to write, and flag any risks or breaking changes.
Implement
Make changes in logical chunks, follow existing code style exactly, add error handling for every path, and write tests alongside the code.
Verify
Re-read modified files, run tests and linters, trace through changes mentally, and summarize what was done with any follow up items.