Prompt

0 copies · 0 said it worked

Shakil Ur Rehman@shakilurrehman21·
Coding· Chat UI

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
role promptingtemplate variables
Imported · UnclaimedCC0

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.

Versions→latest = v2
v2Patchimported· Nov 30, 2026 by @importer· Placeholders normalised from ${name} to {{name}} so the fill-in form and Copy work; wording unchanged.Permalink
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.

License: CC0v2 · updated Nov 30, 2026 · first published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.