💡 How to use these prompts:
Replace everything in [BRACKETS] with your specific details before sending.
Click Copy to copy any prompt to your clipboard instantly.
Before you write any code, list every file you intend to change and why, and every file you considered and decided not to touch.\n\nThen stop and wait. Do not start editing.\n\nIf the change touches more than five files, tell me what the smallest useful subset would be instead.
Write a failing test that reproduces this bug before you fix anything. Run it and show me the failure output.\n\nOnly once I confirm the test fails for the right reason should you write the fix.\n\nIf you cannot reproduce it in a test, say so plainly and tell me what you would need - do not guess at a fix.
Implement this using only what is already in the project's dependency manifest.\n\nIf you believe a new dependency is genuinely necessary, stop and make the case: what it does, what it would replace, and roughly how much code it saves. Do not add it.\n\nPrefer twenty lines of our own code over a package we have to track.
Before applying this change, tell me everything that calls the code you are about to modify, directly or transitively, as far as you can trace it.\n\nFor each caller, say whether the change is safe for it and how you know.\n\nList anything you could not trace. That list is the risk.
You have made the change. Now do the parts that usually get skipped.\n\nUpdate any comment or docstring that is now wrong. Update the README if behaviour changed. Check whether any test now asserts the old behaviour. Check whether any error message still names the old thing.\n\nList what you changed in each category, or write NONE for that category.
Read back the diff you just produced as if someone else wrote it and you are reviewing it.\n\nName the three things most likely to be wrong, in order. For each one, say what input or state would expose it.\n\nIf you genuinely believe there is nothing wrong, say NOTHING FOUND rather than inventing something - but say it only if you mean it.