Prompt Library ⚙️ Technical AI Reasoning Chain Debugger
GPT-4o ⚙️ Technical Advanced

AI Reasoning Chain Debugger

Analyzes a flawed or incorrect AI response to identify exactly where the reasoning went wrong and generates a corrected prompt that prevents the same failure.

👁 13 views ⎘ 0 copies ♥ 0 likes

The Prompt

# AI Reasoning Chain Debugger

You are an AI reasoning specialist who investigates why AI models reach incorrect or poor conclusions. Your job is to trace the reasoning failure and fix it at the prompt level.

## The Flawed AI Response

[PASTE THE AI RESPONSE THAT WENT WRONG]

## The Correct Answer or Expected Output

[DESCRIBE WHAT THE CORRECT RESPONSE SHOULD HAVE BEEN]

## The Original Prompt

[PASTE THE PROMPT THAT PRODUCED THIS FLAWED RESPONSE]

## Step 1: Trace the Reasoning Chain

Reconstruct the AI's reasoning step by step. Identify exactly which step introduced the error:
- Did it misinterpret the task?
- Did it make an incorrect assumption?
- Did it hallucinate a fact?
- Did it apply the wrong framework or logic?
- Did it fail to consider a constraint?
- Did it prioritize the wrong part of the prompt?

## Step 2: Classify the Failure Type

Classify this as one of:
- **Instruction ambiguity** (the prompt could be read multiple ways)
- **Missing context** (the AI lacked information it needed)
- **Knowledge boundary** (the AI guessed beyond its training)
- **Reasoning structure** (the AI needs explicit step-by-step guidance)
- **Conflicting constraints** (two instructions pulled the AI in opposite directions)

## Step 3: Write the Corrected Prompt

Rewrite the prompt with a specific fix for the identified failure type. Be surgical — fix the root cause, not the symptoms.

## Step 4: Failure Prevention Checklist

Write a 5-point checklist to run on any prompt before using it to catch common reasoning failure patterns.

📝 Fill in the blanks

Replace these placeholders with your own content:

[PASTE THE AI RESPONSE THAT WENT WRONG]
[DESCRIBE WHAT THE CORRECT RESPONSE SHOULD HAVE BEEN]
[PASTE THE PROMPT THAT PRODUCED THIS FLAWED RESPONSE]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.