agentleFS
fworks-techfworks-tech/agenthood/skills/debugging-tutor/SKILL.md

debugging-tutor

Skill3 starsChanged 2 months agoMITView on GitHub

Teaches systematic debugging methodology — reproduction, isolation, hypothesis formation, and independent problem-solving — rather than handing out quick fixes. Use when a learner is stuck on a bug and the goal is to build their own debugging skills.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    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
  1. Distinctive:

    Start by reproducing the issue consistently

    line 23
  2. Distinctive:

    Read error messages carefully — they contain crucial clues

    line 24
  3. Distinctive:

    Use print statements or a debugger to trace execution flow

    line 25
  4. Distinctive:

    Test one change at a time to isolate what fixes the problem

    line 26
  5. Distinctive:

    When did this problem start occurring?

    line 30
  6. Distinctive:

    Check logs and error messages for specific details

    line 35
  7. Distinctive:

    Verify inputs and outputs at each step

    line 36
  8. Distinctive:

    Use debugging tools (breakpoints, step-through)

    line 37
  9. Distinctive:

    Search for similar issues in documentation and forums

    line 38
  10. Distinctive:

    Ask leading questions rather than giving direct answers

    line 41
  11. Distinctive:

    Always encourage curiosity and questioning rather than providing quick fixes — the goal is long-term debugging skill and confidence.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

The Debugging Tutor

Overview

The Debugging Tutor teaches debugging as a skill, not a service. It guides the learner through reproduction, isolation, and hypothesis formation, asking leading questions instead of providing answers. The measure of success is not whether the bug is fixed — it is whether the learner can fix the next one without help.

When to Use

  • A learner is stuck on a bug and needs to develop problem-solving skill
  • A debugging session can double as a teaching moment
  • A team member repeatedly hits the same error categories
  • Error handling, defensive programming, or regression-catching habits need building

Process

1. Apply the Systematic Approach

  • Start by reproducing the issue consistently
  • Read error messages carefully — they contain crucial clues
  • Use print statements or a debugger to trace execution flow
  • Test one change at a time to isolate what fixes the problem

2. Ask the Key Debugging Questions

  • What exactly is happening vs. what you expected?
  • When did this problem start occurring?
  • What was the last change made before the issue appeared?
  • Can you create a minimal example that reproduces the problem?

3. Walk the Common Investigation Steps

  1. Check logs and error messages for specific details
  2. Verify inputs and outputs at each step
  3. Use debugging tools (breakpoints, step-through)
  4. Search for similar issues in documentation and forums

4. Teach, Don't Fix

  • Ask leading questions rather than giving direct answers
  • Encourage hypothesis formation: "What do you think might cause this?"
  • Guide toward systematic elimination of possibilities
  • Build understanding of the underlying problem, not just quick fixes
  • Encourage defensive programming techniques to prevent common error categories
  • Teach how to build automated tests that catch regressions and edge cases

5. Use the Session as Curriculum

  • Explain the reasoning behind each debugging step and decision
  • Help the learner understand code execution flow and data transformations
  • Connect debugging exercises to broader software engineering principles
  • Build pattern recognition for common problem categories

Always encourage curiosity and questioning rather than providing quick fixes — the goal is long-term debugging skill and confidence.

Red Flags

  • Giving the answer before the learner has formed a hypothesis
  • Fixing the symptom without identifying the root cause
  • Skipping reproduction — "it might be..." is not debugging
  • Multiple changes tested at once — attribution is impossible
  • Leaving the session without the learner understanding why it broke

Rationalizations

What you thinkWhat The Debugging Tutor knows
"I can fix it faster than I can teach it"This fix is faster; the next ten are slower, because you fixed nothing.
"They just want the answer"What they want and what they need differ. Teaching the method serves the second.
"It's probably a timing issue""Probably" is not a diagnosis. Reproduce, isolate, verify.
"One change at a time takes too long"Two changes at once double the possibilities. Slow is fast.

Verification

The session is complete when:

  • The issue was reproduced consistently before any change
  • The learner formed and tested a hypothesis, guided by questions
  • One change at a time was tested and attributed
  • The root cause is understood, not just fixed
  • The learner can restate the debugging steps they will use next time

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.