Skip to content
Back to skills

Swarm

ASecurity

Build every ticket of a spec, following the blocking links, each in its own worktree, onto one integration branch.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 18, 2026
ai-agentsgo

Works with

  • claude code

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add cavallinilorenzo/agentic-engineering --skill swarm --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Swarm?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Swarm
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cavallinilorenzo-swarm/badge)](https://www.skillsdirectory.com/skills/cavallinilorenzo-swarm)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: swarm
description: "Build every ticket of a spec, following the blocking links, each in its own worktree, onto one integration branch."
disable-model-invocation: true
---

# Swarm

The tickets are a **task graph** with a **frontier** of ready tickets. You orchestrate; fresh implementer subagents build.

Tickets that block each other run in order: finishing one widens the frontier. Independent ones run in parallel. A chain with one ready ticket is fine: it runs alone, then the tickets it unblocks follow.

The result is one integration branch and one PR for the whole spec.

The issue tracker should have been provided to you. If not, tell the user to run `/setup`.

Talk to the user in their language. Commits, PR text, issue text and code stay in English.

**Models.** _Mid-tier_ is the harness's capable mid-priced model (`model: sonnet` in Claude Code); _top-tier_ is its strongest (`model: opus`). Where the harness cannot pick a model per subagent, every agent runs on the session's model. Where it has no subagents, build the tickets yourself one at a time, each on its own branch, in dependency order.

## Steps

1. **Read the graph.** Read the spec and tickets. A blocking link needs a proven reason: two frontier tickets that edit the same file, or one consuming the other's output. Sequence on that evidence only; every other pair runs in parallel.
2. **Claim the work.** Assign the spec and every open ticket to the user on the tracker (`@me`), before any branch, so nobody else picks a ticket up mid-swarm. A ticket assigned to someone else stops the swarm: name it, give one recommendation, and wait.
3. **Explore once, if needed**, in the same turn as step 5's first implementer, never ahead of it. A mid-tier subagent saves notes outside the repo; implementers start from pointers and read the notes when they exist.
4. **Create the integration branch** `feat/<n>-<topic>` from the default branch, in a worktree, where `<n>` is the spec's issue number, so `/ship #<n>` finds it.
5. **Run the frontier.** At most two implementers at a time unless the user asks for more. Each is a fresh background subagent in its own worktree (`isolation: worktree` in Claude Code) on the mid-tier model, whatever model this session runs: a top-tier implementer costs about eight times as much and drains the usage limit mid-swarm. Rerun a ticket on the top-tier model only after a mid-tier implementer has failed it. Brief each through pointers to the spec, ticket and notes. The implementer:
   - confirms its worktree is based on the integration branch, and resets onto it if not;
   - follows the `tdd` skill, then runs the fast checks from `engineering.md` (format, lint, tests), with no `verify` and no receipt;
   - commits after every green cycle, so a limit or crash loses minutes, not work;
   - starts long measurements (benchmarks, soaks) in the background and ends its turn; a `Monitor` or the orchestrator resumes it when they finish;
   - merges the integration branch tip into its own branch before reporting done.
6. **Merge** each finished implementer. When its branch already contains the integration tip, fast-forward the integration branch yourself: the implementer's checks already cover that commit. Otherwise dispatch a mid-tier merger subagent, which resolves conflicts and runs only the checks the implementer has not already run at that commit. Then **complete** the ticket on the tracker: comment that it is merged into the integration branch and ships with the spec's PR, and close it as completed. The spec stays open: the PR's `Closes #<spec>` closes it on merge. Each merge can widen the frontier: go back to step 5 until no ticket remains.
7. **Verify once.** Dispatch the `verifier` agent on the integration tip. A failed verification goes back to one implementer, then to the `verifier` again. Review stays with `/ship`, which runs `judge` and re-verifies only what its fixes touch.
8. **Clean up** every implementer worktree and its branch.

An implementer that dies mid-ticket (usage limit, crash) is resumed in its existing worktree: briefed with the branch and path, it continues from the last commit. Remove that worktree only after its branch is merged or the user agrees to discard it.

Done when every ticket is merged and closed on the tracker, the receipt's `Commit:` line equals `HEAD`, and no implementer worktree remains. Finish by telling the user the next step: `/ship`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.