Logo von Systematic Debugging

Systematic Debugging

Community
nahid-sparktales
systematic-debugging

Find the cause of a failure by evidence — reproduce it, read what the system actually did, form hypotheses that predict something you have not looked at yet, bisect to the smallest failing case, fix where all callers route through, then re-run the original reproduction. Use when something is broken and the cause is not yet known, when a previous fix did not hold, or when an edit is about to be made because the code "looks wrong". Not for an outage still burning (mitigate first), not for a cause already established that only needs implementing, and not a licence to skip reading the stack trace.

Übersicht

Herausgebernahid-sparktales
Repositoryagent-dispatcher
Skill-Namesystematic-debugging
Sterne
58
Forks
5
Mitgelieferte Dateien
1
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 1

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von nahid-sparktales auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Systematic Debugging in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/quality/systematic-debugging
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/quality/systematic-debugging .claude/skills/systematic-debugging
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Systematic Debugging in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Systematic Debugging automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Systematic Debugging nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Systematic debugging

The symptom is where the failure surfaced, not where it came from. Editing the line the report names is how a bug gets moved rather than fixed.

When this fires

  • A defect, crash, wrong output, corrupted state or failing test whose cause is not yet known.
  • A second attempt at a fix, after the first one did not hold or held for reasons unknown.
  • Before any edit whose only justification is that the code looks suspicious.

It does not fire during a live outage — mitigation comes first and the explanation comes after — and it does not fire when the mechanism is already established and only the patch remains.

Procedure

  1. State the failure precisely. Expected versus actual, the exact input, the version and environment, and when it started. "Login is broken" is not a failure statement. "POST /login returns 500 on staging for accounts created before the column was added" is one.
  2. Reproduce it before touching anything. Record the exact command or step list and its output. If it will not reproduce, that is the finding — report how you tried and how often it fires. Do not proceed to a fix whose effect you have no way to observe.
  3. Capture evidence before theorising. The full stack trace, not the last frame. The log lines either side of the failure. The failing input. What changed recently in the code and in its dependencies. Read all of it. A large share of bugs are already named in evidence nobody read.
  4. Bound it. Which inputs fail and which succeed, which callers, which versions, which environments. A failure confined to one input class is already half diagnosed.
  5. Write hypotheses down, ranked. Each one must predict something you have not yet looked at — "if it is the stale cache, this key holds the old value" — and then you go and look. A hypothesis that only explains what you have already seen cannot be tested.
  6. Test one at a time, cheapest first. Change one variable per experiment. A log line, a breakpoint or a query beats a speculative edit: reading adds no new variables, editing does.
  7. Isolate to the smallest failing case. Bisect whichever axis you can halve — the history, the input, the configuration, the code path. Stop when removing one more thing makes it pass.
  8. Name the causal mechanism in one sentence before you edit. If the best you have is "something about async timing", you are not ready to fix; you are ready to keep isolating.
  9. Fix the cause where all callers route through it. Grep every caller of the function you are about to change. Patching only the path the ticket named leaves the siblings broken; one guard in the shared function is both the smaller diff and the actual fix.
  10. Prove it. Re-run the reproduction from step 2. Add a regression test that fails on the old code (regression-testing). Run the surrounding suite to see the fix broke nothing adjacent.
  11. Remove your instrumentation — debug prints, extra logging, loosened timeouts. Anything worth keeping is kept deliberately and said out loud, not left in the diff by accident.

Anti-patterns — the random-patch loop

The loop this skill exists to break: change something plausible, see whether the symptom moves, repeat. Every round adds a variable, and the run that finally passes is indistinguishable from coincidence.

  • Fix by disappearance. The symptom stopped after five edits, so one of them worked. You do not know which, or whether it merely became less frequent.
  • A delay is not a fix. A sleep or a retry makes a race rarer. Report it as a mitigation with the race still unexplained, never as a root cause.
  • Suppression is not a fix. A broad catch, a disabled assertion, a loosened check — the failure is now invisible rather than absent.
  • Anchoring. The first plausible story gets all the evidence read into it. Ask what the evidence would look like if that story were wrong, then check for that.
  • Rewriting the region. A rewrite that happens to pass has not been diagnosed; it has replaced a known bug with unknown ones.

Checklist

  • Reproduction captured as an exact command or step list, and run before any edit
  • Full stack trace and surrounding logs read
  • Hypotheses written down, each predicting something unobserved
  • Smallest failing case in hand
  • Causal mechanism stated in one sentence
  • Every caller of the changed code checked, not only the reported path
  • Original reproduction re-run after the fix
  • Regression test confirmed to fail against the old code
  • Instrumentation removed, or deliberately kept and said so

Failure handling

  • Will not reproduce — report it as not reproduced, with the conditions tried. If a low-risk speculative fix ships anyway, label it unverified in plain words. An intermittent failure announced as fixed is worse than one announced as intermittent.
  • Reproduction is slow or manual — build a cheap one first, a script or a failing test. You are going to run it dozens of times.
  • No logs, no traces, nothing to read — adding instrumentation is a step, not a fix. Record the observability gap as a finding in its own right.
  • Every hypothesis falls — widen the frame to what you assumed and never checked: the environment, a dependency version, the data, the clock, another process, the build itself.
  • Testing it needs something destructive or outward-facing — deleting data, writing to a shared environment, calling a live third party, deploying. Stop and ask. Reproduce against a local or throwaway copy instead.

Evidence to report

The reproduction command and its output before the fix; the evidence that ruled each hypothesis in or out; the causal mechanism in one sentence; the diff; the regression test with proof it fails without the fix; and the reproduction re-run and now passing. Name what remains untested and any hypothesis you could not eliminate. A fix that was written and a fix that was proven are different claims — "fixed" without the re-run reproduction is the first one wearing the second one's clothes.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Systematic Debugging?

Find the cause of a failure by evidence — reproduce it, read what the system actually did, form hypotheses that predict something you have not looked at yet, bisect to the smallest failing case, fix where all callers route through, then re-run the original reproduction. Use when something is broken and the cause is not yet known, when a previous fix did not hold, or when an edit is about to be made because the code "looks wrong". Not for an outage still burning (mitigate first), not for a cause already established that only needs implementing, and not a licence to skip reading the stack trace.

Warum Systematic Debugging in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Systematic Debugging besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Systematic Debugging in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/quality/systematic-debugging ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Systematic Debugging nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Systematic Debugging verwenden?

So viele Sie möchten. In TypingMind können Sie Systematic Debugging mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Systematic Debugging kostenlos?

Ja. Der Skill wird von nahid-sparktales auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇