Systematic Debugging logo

Systematic Debugging

Community
sangrokjung
systematic-debugging

Structured debugging methodology — use before proposing fixes for any error or failure. Covers: code bugs, build errors, deploy failures, config conflicts, dependency issues, infra problems. Also use when previous fix attempts failed or root cause is unclear.

Overview

Publishersangrokjung
Repositoryclaude-forge
Skill namesystematic-debugging
Stars
853
Forks
183
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by sangrokjung on GitHub. Read the source before you install it.

Installation

Install the Systematic Debugging AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/sangrokjung/claude-forge/tree/main/skills/systematic-debugging
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sangrokjung/claude-forge.git /tmp/claude-forge
mkdir -p .claude/skills
cp -r /tmp/claude-forge/skills/systematic-debugging .claude/skills/systematic-debugging
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Systematic Debugging in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Systematic Debugging on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Systematic Debugging is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Systematic Debugging

Overview

Guessing fixes wastes time and creates new bugs. Quick patches hide root problems.

Core principle: Never fix before finding the root cause. Symptom fixing is failure.

Iron Law

Never propose a fix without root cause investigation.

Phase 0 or Phase 1 must be completed before any fix is proposed. Phase 0 fixes are ONLY allowed when ALL of these are true:

  • External research found an official solution or known issue for this exact error
  • Change is single file, single point (config value, import, typo)
  • No logic changes

When to Use

All technical problems:

  • Test failures, build errors, deploy errors
  • Config conflicts, dependency issues
  • Infrastructure/environment problems
  • Unexpected behavior, performance issues

Especially when:

  • Under time pressure (urgency breeds guessing)
  • "Let me just quickly fix this" comes to mind
  • Multiple fix attempts have already been tried
  • Previous fixes didn't work
  • You don't fully understand the problem

The Phases

Each Phase must complete before proceeding to the next.

Phase 0: Quick Assessment

Run immediately when an error occurs. Before any fix attempt.

  1. Classify the error — read the error message/symptoms:

    • Same code works in different environment? → Environment issue
    • After recent dependency/version change? → Dependency issue
    • Only fails in specific code path? → Code issue
  2. External research (exact match, 5 min max) — check official docs and GitHub Issues for known issues. Don't rely on self-knowledge alone.

    • See: references/external-research-guide.md
  3. Branch decision:

    • All Iron Law conditions met → Fix in Phase 0
    • Any condition unmet → Enter Phase 1 full process
    • Phase 0 quick-fix fails: Undo (git checkout/undo), enter Phase 1. This attempt counts in the fix counter.

Phase 1: Root Cause Investigation

Before any fix attempt:

  1. Read the error carefully

    • Don't skip errors/warnings
    • Read the entire stack trace
    • Record line numbers, file paths, error codes
  2. Reproduce consistently

    • Get exact reproduction steps
    • Every time? If intermittent, collect more data
  3. Check recent changes

    • git diff, recent commits
    • New dependencies, config changes
    • Environment differences (env vars, Node/runtime version, OS)
  4. Research external sources (deep read)

    • Based on Phase 0 exact match results, investigate further
    • Read official docs for the failure mechanism
    • Check release notes for breaking changes
    • See: references/external-research-guide.md
  5. Collect evidence in multi-component systems

    • Log data in/out at each component boundary
    • Run once to find where it breaks
    • Then deep-dive into that component
  6. Trace data flow

    • Where does the wrong value originate?
    • Trace the call stack backwards to the source
    • See: references/root-cause-tracing.md

Phase 2: Pattern Analysis

  1. Find similar working code in the same codebase
  2. Compare with reference implementations — read the full reference docs, don't skim
  3. Identify all differences between working and broken — don't assume "that's irrelevant"
  4. Map dependencies — what config, environment, other components are needed

Phase 3: Hypothesis and Testing

Before entering Phase 3:

  • Verify clean state (git status)
  • If not clean: git stash or save checkpoint
  • On hypothesis failure: rollback to safe point, try new hypothesis (no cumulative fixes)
  1. Form a single hypothesis: "X is the root cause because Y" — specific, not vague
  2. Test minimally: smallest change to verify the hypothesis. One variable at a time.
  3. Verify before proceeding:
    • Success → Phase 4
    • Failure → New hypothesis (don't stack fixes on top of failed ones)

Phase 4: Implementation

  1. Write a failing test — simplest reproduction, automated if possible, before fixing
  2. Apply a single fix — only the identified root cause, one change at a time, no "while I'm at it"
  3. Verify the fix — test passes? No other tests broken? Problem actually resolved?
  4. If fix doesn't work:
    • How many fix attempts so far?
    • Under 3: return to Phase 1 with new information
    • 3 or more: proceed to Phase 4.5

Phase 4.5: Architecture Question

Pattern of 3+ failed fixes:

  • Each fix reveals new problems elsewhere
  • Fix requires "major refactoring"
  • Each fix creates symptoms in other places

Stop immediately and ask fundamental questions:

  • Is this pattern itself sound?
  • Are we clinging to it out of inertia?
  • Should we refactor the architecture instead of fixing symptoms?

Report to user and discuss before any more fix attempts.

Red Flags — If you think this, STOP

  • "Let me quickly fix it and investigate later"
  • "Let me try changing X and see if it works"
  • "Let me bundle multiple changes and test once"
  • "Skip tests, just check manually"
  • "It's probably X, let me fix it"
  • "I don't fully understand but this might work"
  • "Let me just try one more fix" (after 2+ attempts)
  • "I don't need to check external docs for this one"
  • "This is definitely a code issue" (without checking environment)

Any of the above: STOP. Return to Phase 0/1. 3+ fix failures: Architecture Question (Phase 4.5)

Common Rationalizations

ExcuseReality
"Simple problem, don't need the process"Simple problems have root causes too. The process is fast for simple bugs.
"Too urgent for process"Systematic debugging is faster than guessing.
"Let me try this first, then investigate"First fix sets the pattern. Start right.
"I'll write tests after fixing"Fixes without tests don't last. Test first.
"Bundle changes to save time"Can't tell what worked. Creates new bugs.
"Docs are too long, I'll wing it"Partial understanding = guaranteed bugs. Read it all.
"I can see the problem, just fix it"Seeing symptoms ≠ understanding root cause.
"One more fix" (2+ failures)3+ failures = architecture problem. Ask, don't fix.
"I know this error, no need to check docs"LLM confidence ≠ accuracy. Verify externally.

Supporting Techniques

See references in this directory:

  • references/external-research-guide.md — External docs/GitHub Issues lookup procedure
  • references/root-cause-tracing.md — Call stack backtracing to find bug origins

Quick Reference

PhaseKey ActivitySuccess Criteria
0. Quick AssessmentError classification, external research (exact match)Error type classified + 1+ external search done
1. Root CauseRead errors, reproduce, check changes, deep researchUnderstand what breaks and why
2. PatternFind working similar code, compareDifferences identified
3. HypothesisSingle hypothesis, minimal testConfirmed or new hypothesis
4. ImplementationWrite test, fix, verifyBug fixed, tests pass
4.5. ArchitectureStop after 3 failures, reportArchitecture review decision

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Systematic Debugging AI skill do?

Structured debugging methodology — use before proposing fixes for any error or failure. Covers: code bugs, build errors, deploy failures, config conflicts, dependency issues, infra problems. Also use when previous fix attempts failed or root cause is unclear.

Why use Systematic Debugging on TypingMind?

Because you install it once and use it with any model. Systematic Debugging is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Systematic Debugging in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/sangrokjung/claude-forge/tree/main/skills/systematic-debugging. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Systematic Debugging?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Systematic Debugging?

As many as you like. As long as a model supports skills, you can use Systematic Debugging with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Systematic Debugging AI skill free?

Yes. It is published on GitHub by sangrokjung under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇