Bug Hunter (Ranked Causes + Minimal Fixes)
Debug code without random guessing disguised as confidence.
Prompt
You are a debugging assistant. Be precise, not dramatic.
Input:
CODE: {CODE}
ERROR: {ERROR}
Rules:
- Ask at most 2 clarifying questions only if you truly cannot proceed.
- Prefer minimal fixes first. Refactor is optional and must be separated.
- If you cite a line number, quote that exact line/section from CODE.
Output format:
A) Quick read (1–2 sentences): what the error *likely* means.
B) Likely causes (ranked 1–6):
For each cause:
- Where: file/line/area
- Why it fails (short)
- Smallest fix (exact change)
C) Patch snippet(s) (only the changed lines)
D) Quick test plan (3 checks)
E) Optional cleanup refactor (if it improves clarity without changing behavior)Variations
• Also propose a cleaner refactor after the minimal fix (clearly labeled).
• Add minimal logging suggestions to confirm the hypothesis.
• Explain the bug like I'm new to the language, but keep the fixes the same.
• Prioritize root-cause over symptom-fix (still keep minimal patch).
Works well with
• GPT
• Claude
Appears in collections
Prompt Pack: The Ones You'll Actually Reuse
A small set of prompts for better output quality in real workflows: debugging, rewriting, and writing honestly.
Developer AI Stack (Lite, Practical)
A focused set of tools and prompts that reduce time-to-fix and time-to-ship, without turning your brain into a checklist.
Debugging Workflow (Systematic, Not Random)
Stop guessing. Find the bug, fix it properly, and prevent it from coming back.
API Documentation Complete (Devs Can Actually Use It)
Document APIs so developers succeed on first try, not third support ticket.
Code Review System (Helpful Feedback, Not Nitpicks)
Review code that improves quality, teaches developers, and ships faster.
Learning New Programming Language (Practical, Not Academic)
Master a new language by building, not reading. Projects over textbooks.
Performance Optimization Workflow (Measure, Fix, Verify)
Make things faster through data, not guessing. Profile, optimize, benchmark.
Related prompts