Skip to content
Development
Skill

/swarm-debug

Systematic debugging — evidence before hypotheses, hypotheses before fixes, root cause before patches, and the diagnosis saved to the vault. Use for any real bug, test failure, regression, crash, or unexplained behavior — before proposing any fix.

From plugin
swarmvault
615 skills

Claude Code

$ npx -y skills add AnmarHani/SwarmVault --skill swarm-debug --agent claude-code

SKILL.md

swarm-debug.SKILL.md
name: swarm-debug
description: Systematic debugging — evidence before hypotheses, hypotheses before fixes, root cause before patches, and the diagnosis saved to the vault. Use for any real bug, test failure, regression, crash, or unexplained behavior — before proposing any fix.

swarm-debug — systematic debugging

No fix without a reproduced cause. Shotgun patching is how the same bug costs twice.

The loop

1. **Reproduce** — a command/test that shows the bug, or record explicitly why reproduction is impossible. This is the entry gate for everything below. 2. **Evidence** — read the FULL error, stack, and surrounding logs (not the first line); note what changed recently (git log, new deps, config). 3. **Locate** — binary-search the causal chain: which layer last had correct data? Instrument with targeted prints/asserts if needed; remove them after. 4. **Hypothesize** — ranked list, cheapest-to-test first. State each as a falsifiable claim ("the cache returns stale X when Y"). 5. **Verify** — one targeted experiment per hypothesis. Evidence kills or confirms; opinion does neither. 6. **Fix the root cause** — not the symptom, when the root is reachable. If you must ship a symptom patch, say so in the code-note and open a ticket for the root. 7. **Regression test** — must fail on the pre-fix code, pass on the fix. No test, no fix. 8. **Record (J1)** — non-trivial diagnosis → memory note (the footgun, compact, ≤ 15 lines) + code-note link on the affected file, so no future session pays for this twice. Check the vault FIRST next time: `swarmvault.py query --search "<symptom>"` — someone may already have paid.

Hard rules

  • Three dead hypotheses → stop, step back, re-examine assumptions — including the spec

and design ("is the requirement itself contradictory?").

  • A diagnosis that reveals a spec/design gap → route it to the question queue / SRS

change management (swarm-spec), don't silently patch around it.

  • Performance bugs: measure before and after; a fix without numbers is a guess.

--- *Influences: superpowers systematic-debugging; Pocock's diagnosing-bugs; Jeffallan's debugging-wizard — see CREDITS.md.*

Read more
@anmarhani
Ships withswarmvault

Your AI agents don't synchronise. SwarmVault does. One shared memory for Claude Code, Codex, and any other CLI agent. Real software engineering: requirements → design → tickets → review. 14 skills, the best of everything combined.

Stars on GitHub

Momentum

stars in total
6
Star history of AnmarHani/SwarmVault on GitHub, a chart by star-history.com

Other skills on swarmvault.

swarm-design-deep

swarm-design-deep

The developer-driven design lane — the user commits to each approach before anything is written, then the design goes to…

swarm-design-ui

swarm-design-ui

UI/UX design phase — propose an intentional design system (pattern, brand, color, typography, spacing, atomic components) with…

swarm-design

swarm-design

System design phase — architecture, tech-stack options, module boundaries, data model, and ADRs from a validated SRS. Use after…

swarm-eject

swarm-eject

Disconnect a project from SwarmVault and choose what happens to its knowledge — keep it, export it into the repo, or delete it.…

swarm-flow

swarm-flow

The SDLC router — figures out where a project stands and runs the right phase. Use at the START of any work in a SwarmVault…

swarm-implement

swarm-implement

Implementation phase — turn a validated design into dependency-ordered tickets, then work them as one of N parallel agents with…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about swarm-debug.

Which coding agents can use swarm-debug?
swarm-debug installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.