Systematic Debugging logo

Systematic Debugging

Community
AlexAI-MCP
systematic-debugging

Run a disciplined multi-phase debugging loop for Claude Code tasks. Use when failures are ambiguous, regressions are hard to localize, logs are noisy, or a bug fix must be proven rather than guessed.

Overview

PublisherAlexAI-MCP
Repositoryhermes-CCC
Skill namesystematic-debugging
Stars
134
Forks
22
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by AlexAI-MCP 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/AlexAI-MCP/hermes-CCC/tree/master/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/AlexAI-MCP/hermes-CCC.git /tmp/hermes-CCC
mkdir -p .claude/skills
cp -r /tmp/hermes-CCC/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

Purpose

  • Prevent guess-driven bug fixing.
  • Turn a vague failure into a proved root cause.
  • Separate symptom collection from patching.
  • Minimize regressions while repairing defects.
  • Leave behind a reproducible explanation of the failure.

Activation Signals

  • Use this skill when the root cause is unknown.
  • Use this skill when a previous fix attempt failed.
  • Use this skill when the bug spans multiple files or layers.
  • Use this skill when logs, stack traces, or user reports disagree.
  • Use this skill when the fix must be defensible in review.

Debugging Phases

  1. Stabilize the report.
  2. Reproduce the failure.
  3. Narrow the surface area.
  4. Instrument the system.
  5. Generate hypotheses.
  6. Prove or kill hypotheses.
  7. Patch the true cause.
  8. Verify the fix.
  9. Add regression protection.
  10. Save the lesson if durable.

Phase 1: Stabilize The Report

  • Write the exact symptom in one sentence.
  • Record expected behavior.
  • Record actual behavior.
  • Capture environment assumptions.
  • Capture whether the issue is deterministic or flaky.
  • Capture whether it is new, old, or recently regressed.
  • Avoid editing code during this phase.

Phase 2: Reproduce The Failure

  • Find the smallest reproducible path.
  • Prefer automated reproduction over manual UI clicking.
  • Save the failing command when possible.
  • If no test exists, create a reproduction harness.
  • Record exact inputs, flags, and fixtures.
  • If the bug is flaky, measure frequency instead of pretending it is stable.

Phase 3: Narrow The Surface Area

  • Identify likely subsystem boundaries.
  • Diff recent changes when history is relevant.
  • Check whether the failure begins before or after I/O boundaries.
  • Compare passing and failing code paths.
  • Use binary search over scope when the change window is large.
  • Reduce the problem before adding more instrumentation.

Phase 4: Instrument The System

  • Add temporary logging only where uncertainty exists.
  • Prefer cheap inspection over permanent noisy logging.
  • Log invariant checkpoints, not everything.
  • Print or inspect the variables that decide branching behavior.
  • If async behavior is involved, log timestamps and ordering.
  • Remove temporary instrumentation after the fix unless it becomes useful observability.

Phase 5: Generate Hypotheses

  • Generate multiple plausible causes, not one favorite theory.
  • Rank hypotheses by explanatory power and test cost.
  • Prefer hypotheses that explain all observed symptoms.
  • Write down what evidence would falsify each one.
  • Do not patch based on intuition alone.

Phase 6: Prove Or Kill Hypotheses

  • Design the smallest experiment that differentiates the top hypotheses.
  • Run one high-signal experiment at a time.
  • Keep notes on what each result means.
  • Kill hypotheses aggressively when evidence contradicts them.
  • Escalate instrumentation only when the current evidence is insufficient.

Phase 7: Patch The True Cause

  • Change only the code implicated by evidence.
  • Prefer the smallest change that restores the invariant.
  • Avoid bundling unrelated cleanup in the debug patch.
  • If the bug exposed a missing boundary, add the boundary explicitly.
  • Preserve readability even for emergency fixes.

Phase 8: Verify The Fix

  • Re-run the original reproduction.
  • Re-run nearby tests.
  • Check negative cases, not just the positive happy path.
  • Validate that logs or state transitions now match expectation.
  • If the bug was flaky, run enough repetitions to earn confidence.

Phase 9: Add Regression Protection

  • Add or strengthen a test that would have caught the bug.
  • Place the test at the lowest layer that reliably expresses the defect.
  • If a test is impossible, document the missing seam.
  • Prefer deterministic tests over timing-sensitive ones.

Phase 10: Save The Lesson

  • Save a durable memory entry if the issue reflects a reusable pattern.
  • Save a trajectory if the investigation is valuable for QA or training data.
  • Update docs only if the bug revealed a workflow or contract gap.

Evidence Sources

  • failing tests
  • stack traces
  • logs
  • diffs
  • recent commits
  • config files
  • environment variables
  • production reports
  • screenshots or traces

Useful Commands

bash
pytest -k "failing_case" -vv
rg "relevant_symbol|error_text" .
git diff --stat
git log --oneline -- path/to/file

Decision Rules

  • If you cannot reproduce the issue, stop calling it fixed.
  • If two symptoms disagree, debug the disagreement first.
  • If a bug appears after a refactor, compare invariants, not just syntax.
  • If instrumentation grows large, your narrowing step failed.
  • If the patch is broad, your hypothesis is still weak.

Anti-Patterns

  • editing first, explaining later
  • assuming the first stack trace frame is the root cause
  • mixing refactor work into a debug patch
  • adding logs everywhere
  • declaring victory after one pass on a flaky issue

Output Contract

Return a compact debug summary with:

  • symptom
  • reproduction
  • root cause
  • patch
  • verification
  • regression protection
  • residual risk

Example Output

markdown
Symptom: login succeeds but redirect loops back to /signin
Reproduction: pytest tests/test_auth.py::test_redirect_loop -vv
Root cause: middleware treated a partially hydrated session as unauthenticated
Patch: guard now waits for the session token before redirecting
Verification: targeted auth test passed; manual flow rechecked
Regression protection: added test for partially hydrated session state
Residual risk: none observed outside auth middleware

Failure Modes

  • no reliable reproduction
  • incomplete instrumentation
  • hypothesis chosen before evidence
  • patch fixes symptom but not cause
  • missing regression test

Recovery Moves

  • Build a reproduction harness if one does not exist.
  • Re-scope the failing boundary if evidence stays noisy.
  • Revert speculative changes and return to a known failing baseline.
  • Reduce the diff until each change has a reason.

Checklist

  1. Stabilize the report.
  2. Reproduce the failure.
  3. Narrow the surface area.
  4. Instrument selectively.
  5. Rank hypotheses.
  6. Prove or kill them.
  7. Patch the true cause.
  8. Verify with evidence.
  9. Add regression protection.
  10. Save durable lessons.

Frequently asked questions

What does the Systematic Debugging AI skill do?

Run a disciplined multi-phase debugging loop for Claude Code tasks. Use when failures are ambiguous, regressions are hard to localize, logs are noisy, or a bug fix must be proven rather than guessed.

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/AlexAI-MCP/hermes-CCC/tree/master/skills/systematic-debugging. TypingMind reads its SKILL.md 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 AlexAI-MCP 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 👇