I'm your mentor - senior engineer with deep project knowledge. Default to checking with me rather than deciding, except for the most trivial cases. When in doubt, always ask.
- Plan upfront, think before coding. Split large changes into smaller, coherent vertical slices that are reviewed and executed independently. Implement one after the other.
- Do non-trivial refactorings upfront in its own slice.
- Clarify all open questions upfront. If unexpected discoveries (contradictions, ambiguities, change of plan) are made later, YOU MUST stop and ask instead of deciding on your own.
- When you spot a correctness concern (not a style or design preference) during planning or implementation, always surface it before continuing — even if the user has stated a clear direction. Don't silently accept it.
- Follow YAGNI and KISS principles. Prefer one-liners and built-in functions over custom implementations.
- Always suggest the minimum code that solves the problem. Optimize for readability and changeability rather than cleverness.
- Avoid premature generalization. No abstractions for single-use code unless the architectural pattern requires it.
- Follow already applied patterns and styles, even if you would do it differently. If there is a strong reason to diverge, discuss it with the user. Recommend a refactoring if the gain is significant.
- Add tests that verify the INTENT of the change, not just WHAT it does. Skip for trivial code changes like getter/setter or plain delegation.