debug-workflow
Skill1 starsChanged 36 days agoMITView on GitHub
Systematic debugging with triage — a fast path for obvious bugs, guarded repro → evidence → hypothesis → fix → prevention for hard ones. Triggers: 'why is this failing', 'debug this', 'this test is flaky', 'production incident'.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- synaptiai/agent-capability-standardtheir own version, first seen Nov 1, 2026
- shioki/Cursor-Knowledge-Management-Systemtheir own version, first seen Oct 9, 2026
- bibektimilsina00/runmycrewtheir own version, first seen May 19, 2026
- masteranime/n8n-claude-skillstheir own version, first seen Apr 26, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- masteranime/n8n-claude-skills★ 32same name
- synaptiai/agent-capability-standard★ 6same name
- bibektimilsina00/runmycrew★ 1same name
- shioki/Cursor-Knowledge-Management-System★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- harness-auditSkill
- skill-benchSkill
- ask-biginSkill
- bigin-harness-setupSkill
- contract-syncSkill
- discovery-workflowSkill
- epic-workflowSkill
- flutter-figma-handoffSkill
- go-scaffoldSkill
- knowledge-distillSkill
- model-routerSkill
- napkinSkill
- next-scaffoldSkill
- nodejs-scaffoldSkill
- nuxt-marketing-scaffoldSkill
- nuxt-scaffoldSkill
- nuxt-ui-figma-handoffSkill
- project-scaffoldSkill
- session-handoffSkill
- sprint-distillSkill
- task-workflowSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Not this skill: new feature implementation or a tracked bug fix already going through PLAN.md (→ task-workflow), and authoring new tests (→ …
- Distinctive: line 35
Add a regression test if no existing test covers the bug.
- Distinctive: line 37
If the fix doesn't hold, stop iterating blind — that's triage trigger #4.
- Very specific: line 51
Prevention — required output, not an afterthought: Every full-workflow fix ships with (a) a regression test covering the bug, and (b) …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
debug-workflow
Triage first, then the smallest process that fits the bug. Every path ends with a regression test — a bug fix that leaves no test behind is not done (repos scaffolded by bigin-harness-setup enforce this at commit time via bugfix-test-guard.mjs).
When this applies vs task-workflow
task-workflow owns any bug fix tracked through PLAN.md; its Implement step points here for the actual debugging work. Use debug-workflow directly, standalone, when the failure isn't yet tied to a ticket/PLAN.md: a flaky test, a stack trace, "works in staging not prod," a live incident.
Not this skill: new feature implementation or a tracked bug fix already going through PLAN.md (→ task-workflow), and authoring new tests (→ write-tests).
Triage
Take the full workflow if at least one of these holds:
- flaky / timing / race symptom — intermittent, order-dependent, "passes locally, fails in CI"
- works in one environment but not another (staging vs prod, CI vs local)
- live production incident
- a fix attempt for this bug has already failed
- root cause still unclear after reading the files the stack trace / symptom implicates
Otherwise take the fast path. Don't run the full workflow "to be safe" — uniform ceremony on obvious bugs adds nothing; the full workflow's value is concentrated in the cases above.
Fast path
- Reproduce the failure (failing test, request, script).
- Fix it.
- Show the previously-failing repro now passing, plus a check that nothing adjacent broke — actual command output, not a claim.
- Add a regression test if no existing test covers the bug.
If the fix doesn't hold, stop iterating blind — that's triage trigger #4; re-enter the full workflow at step 1.
Full workflow
Gated — do not start step N+1 without step N's output recorded.
- Reproduce. Get a deterministic repro before hypothesizing — without one, every later "it's fixed" is a guess (a flaky test that passes once proves nothing). Escape hatch: for a live incident or a genuinely irreproducible failure, record why it can't be reproduced plus the best available evidence (logs, traces), and treat every downstream conclusion as provisional.
- Evidence. If the symptom names a function/handler/table and
graphify-out/graph.jsonexists, query the graph for callers/callees/dependents first and read only the files it implicates —INFERRED/AMBIGUOUSedges are a pointer to a source read, not confirmation. Read the implicated code and trace the failure backward through the call stack / request path. Instrument the component boundaries the failure crosses (composable, store, API client, handler, DB) only where reading the code doesn't yield the evidence. No fix proposals in this step — only evidence. - Hypothesis. State exactly one hypothesis, supported by step-2 evidence, and pre-register the probe's outcomes before running it: "if the hypothesis is right, the probe shows X; if wrong, Y." The probe is the smallest possible disposable diagnostic — never the fix itself. "Symptom gone" is not "cause confirmed"; only the pre-registered X counts. If refuted, discard the probe and return to step 2 — never stack a second hypothesis on an unconfirmed one. Cap: 3 refuted hypotheses. A fourth means the step-2 evidence is too thin to hypothesize from, not that the next guess will land — say so and go to the escalation safeguard below.
- Fix + validation. Implement only once the root cause is confirmed. Validate with the failing repro now passing plus a check that nothing adjacent broke — show the actual output, don't claim it passed without showing it (same discipline as
write-testsandtask-workflow's implement/verify loop). For timing-related bugs, one pass proves nothing: require repeated runs (≥5 consecutive passes) — seereferences/race-conditions.md. - Prevention — required output, not an afterthought. Every full-workflow fix ships with (a) a regression test covering the bug, and (b) validation added at the layer that should have caught it — see
references/defense-in-depth.md. If code changed andgraphify-out/graph.jsonexists, propose a graph rebuild (graphify update .).
Escalation safeguard
After 3 refuted hypotheses (step 3) or 3 failed fix attempts (step 4) on the same issue — the two caps count separately: stop and ask — flag it as an architecture-level problem for human review instead of continuing to patch. (Same "stop and ask" phrasing as task-workflow's Scope discipline — don't stack further attempts silently.)
References
references/race-conditions.md— condition-based waiting instead of arbitrary timeouts, for timing-related bugsreferences/defense-in-depth.md— validation at the layer that should have caught the bug originally- consumer repo's own
docs/graph-usage.md(if this repo adopted Graphify viabigin-harness-setup) — query recipes for step 2's graph-first lookup
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

