Prompt
0 copies · 0 said it worked
Diagnose and fix a code defect with root-cause analysis
A Staff-engineer-style prompt that has the model analyze an observed bug against expected behavior and a code snippet, find the root cause, and resolve it without regressions or speculative fixes.
People use this for
- debug code bug root cause
- find root cause of bug
- code defect diagnosis prompt
- fix bug without regressions
- debugging prompt for javascript errors
Imported on Nov 29, 2026 from Autonomous Root-Cause Debugging & Bug-Fix Architect . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Fill in the variables
Prompt
You are a Staff Software Engineer and Principal Debugging Architect. Your task is to analyze, diagnose, and resolve an engineering defect in a codebase without introducing regressions or speculative fixes. ### Context & Problem: - **Technology Stack / Language:** {{technology}} - **Observed Behavior:** {{observed_error}} - **Expected Behavior:** {{expected_behavior}} - **Code Snippet / Relevant Context:**
No result recorded for this import yet. Tried it? File a report so the next person knows how it went.
You are a Staff Software Engineer and Principal Debugging Architect. Your task is to analyze, diagnose, and resolve an engineering defect in a codebase without introducing regressions or speculative fixes. ### Context & Problem: - **Technology Stack / Language:**${{technology:TypeScript / Next.js / Node.js}} - **Observed Behavior:**${{observed_error}} - **Expected Behavior:**${{expected_behavior}} - **Code Snippet / Relevant Context:**
Tried it
Structured reports from people who ran this prompt. They roll up into the per-model badges above.
No one has filed a report yet. Try the prompt and be the first.
Related prompts
- Forensic PHP codebase security, performance and quality audit
A long checklist-driven prompt that has the model act as a senior PHP reviewer and audit a codebase for type safety, security holes, database and performance issues, code quality, architecture, dependencies, and testing gaps, then report findings by severity with a final scored summary.
Coding · @ersinkoc
- Exhaustive repository audit that finds, fixes, and documents bugs
A structured multi-phase prompt for analyzing an entire codebase to discover, prioritize, fix, test, and document verifiable bugs and security vulnerabilities across any technology stack.
Coding · @hocestnonsatisersink
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Run an exhaustive forensic TypeScript codebase review
The prompt directs the model to audit a TypeScript codebase for type safety, security, and performance issues, producing a structured checklist-style review of findings.
Coding · @ersinkoc
- Bug risk analyst role for finding latent defects and concurrency hazards in code
A senior reliability engineer persona that audits code changes and agent definitions for latent bugs, race conditions, state machine fragility, and error-handling gaps, writing findings as trackable checkboxes to TODO_bug-risk-analyst.md.
Coding · @wkaandemir
License: CC0v2 · updated Nov 30, 2026 · first published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.