Implementation plan first
Before writing code: restate the requirement, list affected files/modules, propose 2 approaches with trade-offs, pick one and outline the steps and tests. Requirement: [DESCRIBE]. Stack: [STACK].
Copy-ready prompts built for developers. Replace the [BRACKETS] with your details and paste into ChatGPT, Claude, Gemini or Le Chat.
Before writing code: restate the requirement, list affected files/modules, propose 2 approaches with trade-offs, pick one and outline the steps and tests. Requirement: [DESCRIBE]. Stack: [STACK].
Bug: [SYMPTOM]. Expected: [EXPECTED]. Relevant code/logs: [PASTE]. List the 3–5 most likely causes ranked by probability, how to confirm each with one quick check, and the fix for the most likely one.
Write unit tests for this function using [FRAMEWORK]: [PASTE]. Cover normal cases, edge cases and error handling. Name tests by behaviour. Tell me which bugs the tests would reveal, if any.
Explain this code to a new team member: what it does, the data flow, hidden assumptions, risky parts and how you would safely change [X]. [PASTE]
Replace the [BRACKETS] with your own content.