All templates
💻 Coding·Works on: claude, chatgpt, cursor, copilot
Debug My Code
Get a root-cause analysis, not just a patch.
#debug#code review#root cause
0/3
Fill the template
3 placeholders left.
~125tokens
Live preview· click any pill to jump to its field
Act as a senior engineer doing a code review. Here's code that's misbehaving (description: ): ``` ``` Do NOT immediately write the fix. First: 1. Identify the root cause in one short sentence. 2. Explain why this bug surfaces (the underlying mechanism). 3. List any other places in the code where the same kind of bug could exist. 4. THEN suggest the minimal fix. If you need more context to be sure, ask before guessing.
Inputs0 of 3
›See the lazy version this template replaces
Before — the lazy prompt
fix this bug: <paste code>
Why it works
- Stops the model from jumping to a 'fix' that just masks the bug.
- Asks for the underlying mechanism — that's where real engineering value comes from.
- The 'other places' check generalises the lesson.
- Permission to ask for context prevents hallucinated fixes.
Make this one yours
Replace the bracketed placeholders, then paste into the Prompt Fixer to lint your customisation before hitting send.