I need to implement: [DESCRIBE FEATURE]. My codebase: [TECH STACK, RELEVANT FILES/MODULES]. Constraints: [PERFORMANCE REQUIREMENTS, BACKWARD COMPATIBILITY, CODING STANDARDS].
Before writing code, outline: 1) Approach options with tradeoffs, 2) Which files/modules will be affected, 3) Any data model changes needed, 4) Edge cases to handle. Then implement the feature with: 1) Clean, production-ready code, 2) Error handling, 3) Unit tests for the key logic, 4) A brief comment explaining non-obvious decisions. If you need to make assumptions, state them explicitly.