Logo van Diagnosing Bugs

Diagnosing Bugs

Community
Dark-Alex-17
diagnosing-bugs

Een debugmethodiek voor lastige codefouten en prestatieproblemen, met de feedbacklus als uitgangspunt. Bouw een korte reproductielus die fouten kan aantonen VOORDAT je een hypothese vormt, maak die zo klein mogelijk en test vervolgens 3–5 weerlegbare hypothesen met gelabelde instrumentatie. Leg de oplossing vast met een regressietest op de juiste naad. Laad deze skill als de foutmelding geen voor de hand liggende oplossing biedt, een bug na een eerste reparatiepoging blijft bestaan, gedrag zich onregelmatig voordoet of de gebruiker meldt dat iets kapot is, niet werkt of traag is. Een aanvulling op diagnostics, dat problemen met operationele processen en systemen behandelt (services, netwerken, containers); deze skill richt zich op bugs in code. Geeft shell-toegang om reproductielussen uit te voeren.

Overzicht

UitgeverDark-Alex-17
Repositorycoyote
Skillnaamdiagnosing-bugs
Sterren
56
Forks
2
Meegeleverde bestanden
Alleen instructies
LicentieAGPL-3.0
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 Dark-Alex-17 op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Diagnosing Bugs 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/Dark-Alex-17/coyote/tree/main/assets/skills/diagnosing-bugs
  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/Dark-Alex-17/coyote.git /tmp/coyote
mkdir -p .claude/skills
cp -r /tmp/coyote/assets/skills/diagnosing-bugs .claude/skills/diagnosing-bugs
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Diagnosing Bugs 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 Diagnosing Bugs automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Diagnosing Bugs 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.

You are hunting a bug in code. The failure mode this skill prevents is the one every debugger falls into: reading code, forming a theory, and "fixing" the theory instead of the bug. The discipline: no hypothesis until a feedback loop exists. Skip phases only when you can say why.

Redact every secret in commands, outputs, and captured artifacts you show — write <REDACTED>; keep credentials in env vars, not in what you print. Quote only the lines of captured artifacts that carry signal.

Phase 1: Build the feedback loop (this IS the skill)

Everything else is mechanical. A tight pass/fail signal — one that goes red on this bug — makes bisection, hypothesis-testing, and instrumentation trivial. Without one, no amount of code-reading will save you. Spend disproportionate effort here.

Ways to construct one, in rough order of preference:

  1. Failing test at whatever seam reaches the bug: unit, integration, e2e.
  2. curl / HTTP script against a running dev server.
  3. CLI invocation with a fixture input, diffing output against a known-good snapshot.
  4. Headless browser script driving the UI and asserting on DOM/console/network.
  5. Replay a captured trace — save a real request/payload/event log, replay it through the code path in isolation.
  6. Throwaway harness — a minimal subset of the system (one service, mocked deps) exercising the bug path with a single call.
  7. Property/fuzz loop — for "sometimes wrong output", run 1000 random inputs and hunt the failure mode.
  8. Bisection harness — bug appeared between two known states? Automate "boot at X, check" so git bisect run can consume it.
  9. Differential loop — same input through old vs new version (or two configs), diff the outputs.

Once you have a loop, tighten it: faster (cache setup, narrow scope), sharper (assert the specific symptom, not "didn't crash"), more deterministic (pin time, seed RNG, isolate filesystem, freeze network). A 2-second deterministic loop is a debugging superpower; a 30-second flaky one is barely better than nothing.

Non-deterministic bugs: the goal is a higher reproduction rate, not a clean repro. Loop the trigger 100×, parallelise, add stress, inject sleeps to widen timing windows. A 50% flake is debuggable; 1% is not.

Phase 1 is complete when you can name ONE command you have already run at least once (show the invocation and output, redacted) that is:

  • Red-capable — drives the actual bug path and asserts the user's exact symptom; it can go red on this bug and green once fixed.
  • Deterministic — same verdict every run (or a pinned, high reproduction rate).
  • Fast — seconds, not minutes.
  • Agent-runnable — you can run it unattended.

If you catch yourself reading code to build a theory before this command exists — STOP. That is the exact failure this skill exists to prevent. If you genuinely cannot build a loop: say so explicitly, list what you tried, and ask the user for environment access, a redacted captured artifact (HAR, log dump, recording), or permission to add temporary instrumentation. Do NOT proceed to hypothesise without a loop.

Phase 2: Reproduce + minimise

Run the loop; watch it go red. Confirm it produces the failure the USER described — not a nearby different failure (wrong bug = wrong fix) — and capture the exact symptom for later verification.

Then minimise: shrink to the smallest scenario that still goes red. Cut inputs, callers, config, and steps one at a time, re-running after each cut. Done when every remaining element is load-bearing (removing any one goes green). A minimal repro shrinks the Phase 3 hypothesis space and becomes the Phase 5 regression test.

Phase 3: Hypothesise

Generate 3-5 ranked hypotheses before testing ANY of them — single-hypothesis generation anchors on the first plausible idea. Each must be falsifiable: "if X is the cause, then changing Y makes the bug disappear / changing Z makes it worse." Can't state the prediction? It's a vibe — discard or sharpen.

Show the ranked list to the user before testing — they often re-rank instantly ("we just deployed a change to #3") — but don't block on them; proceed with your ranking if they're away.

Phase 4: Instrument

Every probe maps to a specific Phase 3 prediction. One variable at a time.

  1. Prefer a debugger/REPL if the environment supports it — one breakpoint beats ten logs.
  2. Otherwise targeted logs at the boundaries that DISTINGUISH hypotheses. Never "log everything and grep".
  3. Tag every debug log with a unique prefix (e.g. [DEBUG-a4f2]) so cleanup is a single grep. Untagged logs survive into production; tagged logs die.

Performance regressions: logs are usually the wrong tool. Establish a baseline measurement first (timing harness, profiler, query plan), then bisect. Measure first, fix second.

Phase 5: Fix + regression test

Write the regression test BEFORE the fix — but only at a correct seam: one where the test exercises the real bug pattern as it occurs at the call site. A test at a too-shallow seam (unit test that can't replicate the triggering chain) gives false confidence.

If no correct seam exists, that itself is a finding — the architecture is preventing the bug from being locked down. Document it; don't fake the test.

With a correct seam: turn the minimised repro into a failing test → watch it fail → apply the fix → watch it pass → re-run the Phase 1 loop against the ORIGINAL un-minimised scenario.

Phase 6: Cleanup (required before declaring done)

  • Original repro no longer reproduces (re-run the Phase 1 loop, show the output)
  • Regression test passes — or the absence of a correct seam is documented
  • All [DEBUG-...] instrumentation removed (grep the prefix to prove it)
  • Throwaway harnesses/prototypes deleted
  • The winning hypothesis stated in the commit/report, so the next debugger learns

Anti-patterns

  • Hypothesising from code-reading before a red-capable loop exists.
  • "Fixing" until the loop goes green without ever confirming the loop reproduced the USER's symptom.
  • Shotgun instrumentation — untargeted logs that distinguish nothing.
  • Declaring victory on the minimised repro without re-running the original scenario.
  • Deleting or weakening the failing test to get green.

Veelgestelde vragen

Wat doet de AI-skill Diagnosing Bugs?

Een debugmethodiek voor lastige codefouten en prestatieproblemen, met de feedbacklus als uitgangspunt. Bouw een korte reproductielus die fouten kan aantonen VOORDAT je een hypothese vormt, maak die zo klein mogelijk en test vervolgens 3–5 weerlegbare hypothesen met gelabelde instrumentatie. Leg de oplossing vast met een regressietest op de juiste naad. Laad deze skill als de foutmelding geen voor de hand liggende oplossing biedt, een bug na een eerste reparatiepoging blijft bestaan, gedrag zich onregelmatig voordoet of de gebruiker meldt dat iets kapot is, niet werkt of traag is. Een aanvul...

Waarom Diagnosing Bugs gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Diagnosing Bugs 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 Diagnosing Bugs in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/Dark-Alex-17/coyote/tree/main/assets/skills/diagnosing-bugs. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Diagnosing Bugs 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 Diagnosing Bugs gebruiken?

Zoveel als je wilt. Je kunt Diagnosing Bugs 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 Diagnosing Bugs gratis?

Ja. Deze skill is door Dark-Alex-17 op GitHub gepubliceerd onder de licentie AGPL-3.0. 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 👇