Logo van Debugging Methodology

Debugging Methodology

Community
UnpaidAttention
debugging-methodology

Step-by-step procedure for diagnosing and fixing failures — reproduce, read, hypothesize, bisect, fix, regression-test. Trigger this whenever something does not work as expected — a bug report, a failing or flaky test, a crash, an error message, wrong output, "it worked yesterday", or unexpected behavior during your own implementation. Trigger BEFORE proposing any fix. Do NOT trigger for building new features (use task-planning) or for the moment you realize your overall approach is wrong rather than the code (use course-correction).

Overzicht

UitgeverUnpaidAttention
Repositoryfable5-methodology
Skillnaamdebugging-methodology
Sterren
94
Forks
21
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door UnpaidAttention op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Debugging Methodology in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/debugging-methodology
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnpaidAttention/fable5-methodology.git /tmp/fable5-methodology
mkdir -p .claude/skills
cp -r /tmp/fable5-methodology/skills/debugging-methodology .claude/skills/debugging-methodology
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Debugging Methodology in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Debugging Methodology automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Debugging Methodology niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Debugging Methodology

Fix causes, not symptoms. The procedure is sequential — skipped steps are where the time goes.

Step 1: Reproduce (mandatory, no exceptions)

  1. Make the failure happen on demand with the shortest command available. Capture the exact output. A fix applied to an unreproduced bug is a guess wearing a fix's clothes.
  2. Can't reproduce? Then the task is information-gathering, not fixing: collect failing inputs, versions, environment, logs, timing. Do not theorize past the evidence you have.
  3. Shrink it: smallest input, fewest components. Every component removed is a component exonerated.

Step 2: Read before theorizing

  1. Read the WHOLE error message and the WHOLE stack trace, literally. KeyError: 'user_id' means that key was absent in that dict at that line — start there, not at your favorite suspect.
  2. Read the failing function completely, then read the code that produced the data it consumed.
  3. Sweep the boring environmental causes FIRST — they are frequent: wrong directory, stale build/cache, unsaved file, wrong branch, wrong env/port, version mismatch, leftover process holding a port.

Step 3: Hypothesize — falsifiably

Write the hypothesis as a sentence that an observation could prove false:

"The handler receives None because the middleware short-circuits before auth populates it."

If you can't phrase it falsifiably, you have a mood, not a hypothesis — go back to Step 2.

Step 4: Test ONE hypothesis with the cheapest observation

  1. Choose the cheapest observation that distinguishes true/false: a print/log of the actual value at the suspect boundary, a debugger breakpoint, a 3-line unit test, git bisect when the failure is "used to work".
  2. Prefer observing state over re-reading code: code says what SHOULD happen; instrumentation says what DID.
  3. One change → run → observe → conclude. NEVER two speculative changes in one step: if it passes you won't know why; if it fails you won't know what to revert.
  4. Binary-search the pipeline: output of A→B→C→D wrong? Probe at B/C first, not linearly.
  5. Remove your instrumentation once it has answered.

Step 5: Know when to abandon a hypothesis

Abandon — do not patch around — when:

  • The observation came back false. State what you now know; derive the next hypothesis from that evidence, not from the discard pile.
  • A fix "works" but you cannot explain the bug's mechanism. Unexplained fixes are bugs in hiding: keep digging, or explicitly deliver it labeled "empirical fix, mechanism unconfirmed".
  • You're adding a second workaround on top of a first. Two workarounds = the real cause is upstream. Revert both, go upstream.

Step 6: The 3-strike rule

After 3 failed fix attempts on the same failure:

  1. STOP. Revert to last known-good (git stash / git checkout -- .).
  2. Write down: what fails, exact error, what's ruled out, what each attempt changed and what happened.
  3. Either form a genuinely new hypothesis FROM that write-up, or deliver the write-up itself as the current state. "Here's what I've ruled out" is a deliverable; a fourth blind patch is not.

Step 7: After the fix

  1. Add a regression test that fails on the pre-fix code (verify against the broken version if cheap — stash the fix, run, unstash).
  2. Grep for siblings: the same bug usually lives wherever the same idiom was copy-pasted.
  3. Run the full relevant suite, not just the new test. Re-run AFTER your final edit — a pass before the last tweak proves nothing.

Worked example

Symptom: nightly report job produces an empty CSV since Tuesday.

  1. Reproduce: run the job locally against Monday's snapshot → non-empty. Against Tuesday's → empty. Reproduced and narrowed to data-dependent in one step.
  2. Read: no error raised. The query returns 0 rows; the writer wrote headers only.
  3. Hypothesis: "The date filter excludes all rows because Tuesday's rows have timezone-aware timestamps and the filter compares naive datetimes."
  4. Cheapest observation: print one row's timestamp and the filter bound → 2026-07-01T00:00:00+00:00 vs naive bound. Confirmed on first probe.
  5. Fix at the origin (normalize at the ingestion boundary), not the crash site (not a band-aid in the report query).
  6. Regression test: report over a snapshot containing aware timestamps must be non-empty. Grep for other naive datetime.now() comparisons — found one more in the billing job; flag it in the report.

Done when

The failure reproduces on demand before the fix and provably not after; you can state the bug's mechanism in one sentence; a regression test exists that fails on the pre-fix code; the full relevant suite passes after your final edit; sibling occurrences were grepped for and either fixed or reported.

Veelgestelde vragen

Wat doet de AI-skill Debugging Methodology?

Step-by-step procedure for diagnosing and fixing failures — reproduce, read, hypothesize, bisect, fix, regression-test. Trigger this whenever something does not work as expected — a bug report, a failing or flaky test, a crash, an error message, wrong output, "it worked yesterday", or unexpected behavior during your own implementation. Trigger BEFORE proposing any fix. Do NOT trigger for building new features (use task-planning) or for the moment you realize your overall approach is wrong rather than the code (use course-correction).

Waarom Debugging Methodology gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Debugging Methodology bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Debugging Methodology in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/debugging-methodology. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Debugging Methodology gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Debugging Methodology gebruiken?

Zoveel als je wilt. Je kunt Debugging Methodology gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Debugging Methodology gratis?

Deze skill is door UnpaidAttention op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇