swarm-implement
Skill5 starsChanged 4 months agoMITView on GitHub
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.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ZaxbyHub/opencode-swarmtheir own version, first seen Oct 30, 2026
- zaxbysauce/opencode-swarmtheir own version, first seen Oct 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- zaxbysauce/opencode-swarm★ 519same name
- ZaxbyHub/opencode-swarm★ 518same 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 repository14 other files it gives its agents.
- swarm-debugSkill
- swarm-design-deepSkill
- swarm-designSkill
- swarm-design-uiSkill
- swarm-ejectSkill
- swarm-flowSkill
- swarm-initSkill
- swarm-migrateSkill
- swarm-orchestrateSkill
- swarm-reviewSkill
- swarm-skill-forgeSkill
- swarm-specSkill
- swarm-vaultSkill
- swarm-writeSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Every needs: must match some ticket's provides:.
- Distinctive: line 32
Ask the user ONCE (skip in auto mode if already answered at SRS validation): parallelism appetite, and is a browser/test environment …
- Very specific: line 34
Update flow-state (phase: implement, ticket count) — J1: state first, work second.
- Very specific: line 85
Commit: Conventional Commits with the FR in scope — feat(FR-12): ….
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
swarm-implement — implementation phase
Two roles. Check flow-state: no tickets yet → you're the planner; tickets exist → you're a worker.
Planner (strong model, once per milestone batch)
Gate: validated design. Read docs/design.md and the milestone's FR specs.
- 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), suggestedtier(size) andkind(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:provides:— the layers this ticket makes exist (ledger repository,recurrence tables)needs:— the layers it builds on, in the same words Everyneeds:must match some ticket'sprovides:.boardprints a PLANNING GAPS section anddoctorfails theticket coveragecheck when one does not, when arequires:names a ticket that was never written, or when two tickets claim the same layer. Rundoctorbefore you hand the batch to workers — the gap is cheap now and a stalled worker later.
- 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?
- 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.
Worker loop (any agent, any platform, N in parallel)
- Pick: next
status: openticket whoserequires:are alldone(swarmvault.py query --project P --type ticket). If orchestration is on, checkboard --project Pfirst: 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. - 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). - Read only the ticket's CONTEXT — not the whole vault (token economy).
- Implement to the DoD:
- Acceptance criteria of the FR demonstrably met — no feature is complete until it fulfills its requirement.
- Unit tests per function: happy path + edge cases + exception paths.
- UI work: verify in the real browser/app when the env allows (Playwright); else mark
the ticket
needs-ui-verifyhonestly. - Craft — write it for the next human (a future teammate or agent):
- Simple: the least code that does the job; delete before you add; no speculative generality. YAGNI outranks every principle below it.
- Reusable: search first — call an existing function instead of a near-duplicate. Two occurrences are a coincidence, the third is a pattern; abstract only when the copies change together.
- Readable: intention-revealing names, functions that do one nameable thing, early returns over deep nesting, match the file's existing idiom and vocabulary.
- Maintainable: obvious data flow, no hidden globals/side effects, deep modules behind simple interfaces.
- Errors: never swallow one. Catch only what you can actually handle, fail loudly with context (what was attempted, with what input), propagate the rest.
- Tests assert behavior, not implementation — if a pure refactor breaks a test, the test was wrong. Happy path + boundaries + empty + failure, every time.
- Comment sparingly: the code shows what; comments/docstrings only capture why — 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.
- Don't follow a rule into a worse codebase. Fragmented functions, one-implementation
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. - Text a user will read (UI strings, error copy, CLI output, README, release notes) is
not code: route it through swarm-write and the project's
voice.md. Placeholder copy shipped as final is a defect.
- Deep reasoning that would bloat comments → code-note in
10 Projects/<P>/code-notes/+ one pointer line in the file header. - Commit: Conventional Commits with the FR in scope —
feat(FR-12): ….
- Checkpoint as you go (J1): significant progress or a blocker →
swarmvault.py checkpoint --project P --ticket TK-NNN --did … --next …. That writes the full session note and appends the same compact line to the ticket, because a killed session must be resumable from the ticket alone — an agent that reads only the ticket, as this skill tells it to, has to find the handoffs there.--ticketdefaults to whatever this agent has claimed; without either, the command says plainly that the ticket will not resume on its own. - Close:
swarmvault.py release TK-NNN --project P --done; record commit + test refs in the ticket frontmatter; journal a session note (DID/NEXT/BLOCKED). - Report at every boundary — without being asked.
release --donealready prints the full board (pass--platform/--modelso the burn estimate isn't guessed); relay it rather than swallowing it, and put its CHECK MY ASSUMPTIONS questions to the user. Same at a real blocker, a milestone, or a phase gate; when orchestration is enabled alsosignal --event done|blockedso other agents see it. Between boundaries useboard --project P --brief(one line) — never a timer, never per heartbeat: monitoring must not cost more than the work (swarm-orchestrate has the cheap paths, including the status.md the supervisor keeps current for free).
Scope discipline: your change wants to cross into another ticket's files → note the ticket link and stop; never expand scope silently.
Milestone boundary: last ticket of a milestone done → trigger swarm-review (auto mode) or offer it (gated).
Influences: superpowers subagent-driven-development, executing-plans & dispatching-parallel-agents; Pocock's implement & to-tickets; euxx code-simplifier; Martin's Clean Code and its documented failure modes; Ousterhout's deep modules; Conventional Commits — see CREDITS.md.
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.

