prompt-debugger
Skill1 starsChanged 5 months agoMITView on GitHub
Diagnose poor LLM outputs by comparing the prompt, input, expected output, and actual output. Use this skill when a prompt is already being used but the model response is wrong, vague, off-format, too generic, overconfident, or not useful.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- khalilbenaz/claude-skills-collectiontheir own version, first seen Nov 1, 2026
- megandmartin/agent-skills-repotheir own version, first seen Jul 24, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- khalilbenaz/claude-skills-collection★ 28same name
- megandmartin/agent-skills-repo★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 14 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to diagnose why a prompt produced a poor result.
- Distinctive: line 14
Do not randomly rewrite the prompt without analyzing the failure.
- Distinctive: line 18
Use this skill when the user says:
- Distinctive: line 30
Ask for or infer:
- Distinctive: line 40
If actual output is not available, run a structural diagnosis of the prompt instead.
- Distinctive: line 63
Write the difference in plain language.
- Distinctive: line 86
Check whether the input provided enough information.
- Distinctive: line 88
If the prompt asks the model to infer unavailable facts, mark this as a context problem, not only a prompt problem.
- Distinctive: line 92
If the issue is formatting, check whether the prompt defines:
- Distinctive: line 103
Prefer small targeted changes:
- Distinctive: line 105
add a missing rule;
- Distinctive: line 110
add a test case;
- Distinctive: line 113
Do not rewrite everything unless necessary.
- Distinctive: line 121
Add one test case that would verify the fix.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prompt Debugger Skill
Purpose
Use this skill to diagnose why a prompt produced a poor result.
The goal is to identify the likely failure cause before rewriting the prompt.
Do not randomly rewrite the prompt without analyzing the failure.
When to use
Use this skill when the user says:
- the prompt does not work;
- the model output is bad;
- the output is too generic;
- the model ignores the format;
- the assistant gives wrong or unsupported details;
- the prompt works sometimes but not consistently;
- the output is not useful for the workflow.
Required input
Ask for or infer:
- current prompt;
- user input;
- actual model output;
- expected output;
- target model/platform;
- known constraints;
- whether the output is for a human or software.
If actual output is not available, run a structural diagnosis of the prompt instead.
Diagnosis procedure
1. Identify the observed failure
Classify the issue:
- unclear task;
- missing context;
- weak role;
- conflicting instructions;
- poor output format;
- insufficient examples;
- unsupported claims;
- too much freedom;
- wrong level of detail;
- bad input data;
- model limitation;
- tool/source limitation.
2. Compare expected vs actual behavior
Write the difference in plain language.
Example:
Expected: concise JSON extraction.
Actual: long Markdown explanation with extra fields.3. Identify prompt-level causes
Look for:
- vague verbs;
- missing constraints;
- missing source-of-truth policy;
- missing output contract;
- missing examples;
- no incomplete-data behavior;
- too many goals in one instruction.
4. Identify context-level causes
Check whether the input provided enough information.
If the prompt asks the model to infer unavailable facts, mark this as a context problem, not only a prompt problem.
5. Identify output-contract causes
If the issue is formatting, check whether the prompt defines:
- exact sections;
- JSON keys;
- field types;
- required vs optional fields;
- examples;
- no-extra-text rules.
6. Recommend the smallest fix
Prefer small targeted changes:
- add a missing rule;
- add output format;
- add incomplete-context behavior;
- add examples;
- split the task;
- add a test case;
- define source of truth.
Do not rewrite everything unless necessary.
7. Create a revised prompt
Rewrite the prompt only after the diagnosis.
8. Create a confirmation test
Add one test case that would verify the fix.
Output format
Return the diagnosis as:
# Prompt Debug Report
## Observed Problem
- Expected behavior:
- Actual behavior:
- Main failure type:
## Likely Causes
### 1. Cause name
- Evidence:
- Why it matters:
- Fix:
## Prompt-Level Issues
- ...
## Context-Level Issues
- ...
## Output-Format Issues
- ...
## Smallest Useful Fix
...
## Revised Prompt
```text
<revised prompt>Confirmation Test
Input
...Expected behavior
...
Follow-Up Improvements
- ...
## Quality checklist
A good debug report should:
- separate prompt issues from context issues;
- identify the actual failure type;
- recommend the smallest fix;
- include a revised prompt;
- include a confirmation test.
## Boundaries
This skill diagnoses prompt behavior based on available examples. It does not guarantee that the revised prompt will work across all models without testing.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

