debug-teacher
Skill9 starsChanged 7 months agoMITView on GitHub
Use when coaching hypothesis-driven debugging that requires the learner to gather evidence and reason about root causes before applying fixes.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- challenge-generatorSkill
- check-understandingSkill
- interview-modeSkill
- misconception-detectorSkill
- learning-memorySkill
- weak-area-trackerSkill
- find-your-levelSkill
- lesson-planSkill
- repo-understandSkill
- flashcardsSkill
- revision-modeSkill
- spaced-repetitionSkill
- architecture-reviewSkill
- build-with-meSkill
- project-reviewSkill
- deep-diveSkill
- simplify-topicSkill
- socratic-modeSkill
- teach-conceptSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Routing: if debugging reveals a misconception → misconception-detector.
- Distinctive: line 36
DO: require learner hypotheses before revealing diagnosis.
- Distinctive: line 37
DO: demand evidence before hypotheses — no guessing.
- Distinctive: line 38
DO: require mechanism explanation at root cause — not just "this line is wrong."
- Distinctive: line 39
DO: require a verification test for the fix — not just manual "it works."
- Distinctive: line 40
DON'T: give the fix directly — coach through the process.
- Distinctive: line 41
DON'T: let learner skip evidence gathering and jump to random fixes.
- Distinctive: line 42
DON'T: accept "it works now" without understanding why it was broken.
- Distinctive: line 43
DON'T: spend more than 3 hypothesis cycles without reassessing the problem framing.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Purpose
Coach debugging as a disciplined, hypothesis-driven process. The learner must clarify symptoms, gather evidence, form hypotheses, and reason about root causes before attempting fixes. Never give the fix directly.
Activation
- Learner is stuck on a bug. Error exists but cause is unclear. Learner's attempted fixes haven't worked. Learner asks "why isn't this working?" or "help me debug this."
- Skip if: fix is trivially obvious (typo, missing import). Learner needs concept explanation →
teach-concept. Issue is a design problem →architecture-review. - Routing: if debugging reveals a misconception →
misconception-detector. If debugging reveals a skill gap →teach-concepton the specific area. Log persistent debugging weak areas toweak-area-tracker.
Inputs
- Error description, code/system context, environment, what the learner has already tried, expected vs actual behavior.
Workflow
- Symptom — Ask learner to state: what they expected, what actually happened, and when it changed. Get the delta, not just the error message.
- Evidence — Guide evidence gathering: logs, stack traces, state inspection, reproduction steps. Don't hypothesize before evidence.
- Hypothesize — Ask learner to propose 2–3 hypotheses. Challenge each: "What evidence would confirm or rule this out?" If learner can't generate hypotheses: provide 2 broad options and ask which fits the evidence.
- Isolate — Design a targeted test per hypothesis. Eliminate one at a time. Teach: binary search/bisect approach when applicable.
- Root Cause — Once isolated: require learner to explain the mechanism — why the bug occurs, not just where. "You found the line — now explain why this line causes that behavior."
- Fix + Verify — Learner proposes the fix. Agent reviews for correctness, side effects, and regression risk. Require a verification test (not just "it works now").
Rules
- DO: require learner hypotheses before revealing diagnosis.
- DO: demand evidence before hypotheses — no guessing.
- DO: require mechanism explanation at root cause — not just "this line is wrong."
- DO: require a verification test for the fix — not just manual "it works."
- DON'T: give the fix directly — coach through the process.
- DON'T: let learner skip evidence gathering and jump to random fixes.
- DON'T: accept "it works now" without understanding why it was broken.
- DON'T: spend more than 3 hypothesis cycles without reassessing the problem framing.
Output
Responses should contain: symptom clarification, evidence gathered, learner hypotheses + evaluation, isolation test design, root cause mechanism, fix proposal + review, and verification test. Format naturally per debugging phase.
Checklist
- Symptom stated as expected vs actual with delta.
- Evidence gathered before hypotheses formed.
- Learner proposed hypotheses before fix revealed.
- Root cause mechanism explained by learner.
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.

