Logo di 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.

Panoramica

Pubblicato danahid-sparktales
Repositoryagent-dispatcher
Nome della skillsystematic-debugging
Stelle
58
Fork
5
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 1

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da nahid-sparktales su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Systematic Debugging in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/quality/systematic-debugging
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Systematic Debugging in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Systematic Debugging non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Systematic Debugging non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Systematic Debugging su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Systematic Debugging è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Systematic Debugging in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/quality/systematic-debugging. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Systematic Debugging?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Systematic Debugging?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Systematic Debugging: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Systematic Debugging è gratuita?

Sì. È pubblicata su GitHub da nahid-sparktales con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇