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…
Implementation phase — turn a validated design into dependency-ordered tickets, then work them as one of N parallel agents with atomic claims, model tiering, and tests-in-ticket definition of done. Use to plan tickets from a design, pick up/continue implementation work,
$ npx -y skills add AnmarHani/SwarmVault --skill swarm-implement --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/swarm-implementContext preview
The summary Claude sees to decide when to auto-load this skill.
Implementation phase — turn a validated design into dependency-ordered tickets, then work them as one of N parallel agents with atomic claims, model tiering, and tests-in-ticket definition of done. Use to plan tickets from a design, pick up/continue implementation work,
name: swarm-implement description: Implementation phase — turn a validated design into dependency-ordered tickets, then work them as one of N parallel agents with atomic claims, model tiering, and tests-in-ticket definition of done. Use to plan tickets from a design, pick up/continue implementation work, coordinate parallel agents, or check what to build next.
Two roles. Check flow-state: no tickets yet → you're the **planner**; tickets exist → you're a **worker**.
**Gate:** validated design. Read `docs/design.md` and the milestone's FR specs.
1. Emit tickets to `30 Plans/<P>/tickets/TK-NNN-<slug>.md` (template: `90 Templates/ticket.md`, machine lane): FR-ID trace, `requires:` edges (tracer-bullet order: thinnest end-to-end slice first), suggested `tier` (size) and `kind` (`design`/`planning`/`coding`/`review`/`docs` — lets orchestration route the right model), DoD checklist, and CONTEXT — the exact notes/design sections a worker needs (nothing more). **Also name the layers.** `requires:` orders tickets that exist; it cannot say whether the thing being ordered exists at all. Two tickets were once written as if a persistence layer were there — the engine belonged to one ticket, the tables to another, and the carrier between them to nobody, so both DoDs were unreachable as written and the gap was findable only by grepping for a repository and finding none. So every ticket carries:
Every `needs:` must match some ticket's `provides:`. `board` prints a **PLANNING GAPS** section and `doctor` fails the `ticket coverage` check when one does not, when a `requires:` names a ticket that was never written, or when two tickets claim the same layer. Run `doctor` before you hand the batch to workers — the gap is cheap now and a stalled worker later. 2. Ask the user ONCE (skip in auto mode if already answered at SRS validation): parallelism appetite, and is a browser/test environment available for UI verification? 3. Update flow-state (`phase: implement`, ticket count) — J1: state first, work second.
**Model tiers:** `top` — architecture-touching, complex logic, tricky concurrency; `mid` — standard features, refactors; `small` — boilerplate, docs, simple UI. Workers on the wrong tier for a ticket should say so rather than proceed on hard tickets.
1. **Pick:** next `status: open` ticket whose `requires:` are all `done` (`swarmvault.py query --project P --type ticket`). If orchestration is on, check `board --project P` first: a ticket listed **for this session** was routed to you by fit — take that one, on the model shown beside it (switch model if your platform lets you; say which model you want if it doesn't). Don't spawn an agent for work already routed here. 2. **Claim:** `swarmvault.py claim TK-NNN --project P --agent <you>` — claim won = yours; lost = pick another. Claims stale past the TTL: `--break-stale` (it logs the takeover). 3. **Read only the ticket's CONTEXT** — not the whole vault (token economy). 4. **Implement** to the DoD:
fulfills its requirement.
the ticket `needs-ui-verify` honestly.
generality. YAGNI outranks every principle below it.
occurrences are a coincidence, the third is a pattern; abstract only when the copies change together.
returns over deep nesting, match the file's existing idiom and vocabulary.
simple interfaces.
context (what was attempted, with what input), propagate the rest.
was wrong. Happy path + boundaries + empty + failure, every time.
a constraint, a tradeoff, a non-obvious edge — never narrate lines. But "clean code needs no comments" is not the rule: an unexplained business rule is a defect too. Delete commented-out code.
abstractions, patterns where a function would do, and SRP shrapnel are the documented failure modes of clean code applied without judgment — the next human's comprehension wins over any rule. Depth, the smell scan, and the tie-breakers: `references/clean-code.md`.
not code: route it through **swarm-write** and the project's `voice.md`. Placeholder copy shipped as final is a defect.
`10 Projects/<P>/code-notes/` + one pointer line in the file header.
5. **Checkpoint as you go (J1):** significant progress or a blocker → `swarmvault.py checkpoint --project P --ticket TK
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.
Systematic debugging — evidence before hypotheses, hypotheses before fixes, root cause before patches, and the diagnosis saved to the vault. Use for any real…
The developer-driven design lane — the user commits to each approach before anything is written, then the design goes to pseudocode, algorithms, invariants,…
UI/UX design phase — propose an intentional design system (pattern, brand, color, typography, spacing, atomic components) with the user, offering distinct…
System design phase — architecture, tech-stack options, module boundaries, data model, and ADRs from a validated SRS. Use after requirements are validated,…
Disconnect a project from SwarmVault and choose what happens to its knowledge — keep it, export it into the repo, or delete it. Use when the user wants to stop…
The SDLC router — figures out where a project stands and runs the right phase. Use at the START of any work in a SwarmVault project: continuing/resuming a…