Agent skill

Swarm Implement

by ZaxbyHub in ZaxbyHub/opencode-swarm

Execute complex implementation work with a swarm-like workflow: parallel exploration, scoped planning, objective validation, mandatory independent implementation review for changed work, and final…

MITAuto-check passedDevelopment

Install Swarm Implement

skills CLI
$ npx skills add ZaxbyHub/opencode-swarm --skill swarm-implement -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ZaxbyHub/opencode-swarm swarm-implement --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/swarm-implement .claude/skills/swarm-implement && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
swarm-implement
GitHub stars
494
Token cost
~2.3k tokens
SKILL.md length
1,207 words
Files
1
Skills in repo
91
Repo updated
First seen
Licence
MIT

At a glance

Execute complex implementation work with a swarm-like workflow: parallel exploration, scoped planning, objective validation, mandatory independent implementation review for changed work, and final…

  • Works in 8 steps: Establish scope → Parallel exploration → Plan → …
  • Multi-file changes
  • SKILL.md covers Purpose, Core operating model, Command Namespace and High-risk work, plus 2 more sections
  • Calls git

What it does

Swarm Implement is an agent skill from ZaxbyHub/opencode-swarm. Execute complex implementation work with a swarm-like workflow: parallel exploration, scoped planning, objective validation, mandatory independent implementation review for changed work, and final critic approval. Use for feature work, bug fixes, refactors, and multi-file changes.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Refactoring and Debugging. The repository describes itself as: Architect-centric agentic swarm plugin for OpenCode. Hub-and-spoke orchestration with SME consultation, code generation, and QA review. The licence is MIT.

When your agent uses it

  • Multi-file changes
  • Tasks that involve Refactoring
  • Tasks that involve Debugging

Example prompts

  • “/swarm-implement”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Establish scope
  2. Parallel exploration
  3. Plan
  4. Implement in scoped units
  5. Objective validation
  6. Independent reviewer validation
  7. Critic challenge
  8. Final synthesis

What it can do on your machine

Read from SKILL.md and the folder at commit b63a4bd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Swarm Implement loads about 2.3k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 1,207 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ZaxbyHub/opencode-swarm at commit b63a4bd, republished under its MIT licence (© ZaxbyHub). 1,207 words, ~2,327 tokens.

Download SKILL.mdSave it as .claude/skills/swarm-implement/SKILL.md (or your agent's skills folder).
name
swarm-implement
description
Execute complex implementation work with a swarm-like workflow: parallel exploration, scoped planning, objective validation, mandatory independent implementation review for changed work, and final critic approval. Use for feature work, bug fixes, refactors, and multi-file changes.
audience
swarm-plugin
disable-model-invocation
true

/swarm-implement

Use this skill for implementation work when you want a fast, high-quality swarm workflow rather than a single-threaded assistant.

Purpose

Complete real coding tasks while preserving speed and adding swarm-style quality discipline.

Core operating model

Use this execution ladder:

  1. Explore in parallel.
  2. Build a scoped plan.
  3. Implement in small, coherent units.
  4. Run objective validation.
  5. For any worktree edit, use independent reviewer validation on the latest diff and evidence.
  6. For any worktree edit, use a separate final critic after reviewer approval.
  7. Synthesize and report what changed, what was verified, and what remains risky.

Command Namespace

Swarm commands always use /swarm <subcommand>. Never invoke bare subcommand names that collide with host commands such as /plan, /reset, /checkpoint, or /status.

High-risk work

Always use the deeper validation path for auth, permissions, payments, destructive actions, dependency changes, public APIs, schemas, migrations, concurrency, queues, retries, state machines, caching, file access, subprocesses, parsing, secrets, security-sensitive logic, and large cross-file refactors with correctness risk.

Phase 0 - Establish scope

Determine the exact task scope first:

  • what changed or needs to change,
  • what files are likely involved,
  • what success looks like,
  • what must not be broken,
  • what verification is required.

If the task is unclear, ask targeted questions or create a short written plan before coding.

Phase 0a - Parallel work check

Load and follow file:.swarm/bundled-skills/parallel-work-check/SKILL.md. Then, before starting implementation on an existing branch:

  1. Fetch remote state and compare with local (git fetch plus HEAD hashes).
  2. If parallel swarm work is detected on the target branch, read the new commits, decide whether to integrate, supersede, or proceed, and document the decision.
  3. Prefer the parallel work unless you can clearly articulate why your approach is better.
Phase 0b - PR branch checkout pre-flight

When implementation or review-scoping work depends on explorer agents reading a PR branch or commit range, complete this before Phase 1 explorer dispatch:

  1. Verify the working tree is clean with git status --porcelain. If uncommitted changes exist, you (the orchestrator) must handle them before Phase 1 dispatch — use prepare_pr_workflow_checkout (the controller-owned path; it preserves every dirty path — including untracked files when called with no paths argument — and returns a recovery command), or a git worktree (see running-tests skill precedent). Note: git branch tmp/save-<topic> only moves the HEAD ref — it does not record or preserve uncommitted working-tree changes, so do not rely on it to save dirty work. Never delegate git stash, git reset, git checkout -- ., or git restore to subagents — these are worktree-global operations that destroy sibling agents' in-flight work under parallel execution.
  2. Fetch and check out the PR head branch locally. Explorer agents read files from the working tree (Read/Glob/Grep), not from git history, so a stale checkout makes them inspect the base branch.
  3. Pass the exact commit range (base_ref..head_ref) in every explorer delegation so agents have revision context for targeted git show inspection.
Phase 1 - Parallel exploration

Launch parallel subagents for disjoint investigation tasks such as repository mapping, locating existing patterns, finding tests/contracts, side-effect analysis, and dependency or migration checks. Keep the main context focused.

Subagent prohibition — must reach every subagent prompt: Include this line verbatim in every subagent dispatch prompt: "You are a subagent sharing a worktree with sibling agents. You MUST NOT run git stash, git reset, git checkout -- ., git restore, or any other worktree-global destructive git command. These destroy sibling agents' in-flight work without error."

Phase 2 - Plan

Create a concrete implementation plan before editing for any non-trivial task. Include files to change, intended behavior, risks, validation commands, and whether reviewer and critic passes are required.

Show full SKILL.md (609 more words)Show less
Phase 3 - Implement in scoped units

Implement in coherent, reviewable chunks. Follow existing repository patterns.

declare_scope discipline. Before every coder or test-engineer delegation (and before every retry), call declare_scope({ taskId, files, replace_existing: true }) with the exact workspace-relative file list the delegated agent may modify — including generated or lockfile paths the change will produce (for example, dist/*, package-lock.json, or bun.lock). Direct and shell writes are both scope-enforced. If the file list is not completely obvious, declare the containing workspace-relative directories instead. Treat SCOPE_CONFLICT, SCOPE_BINDING_EXPIRED, SCOPE_BINDING_AMBIGUOUS, and SCOPE_WORKSPACE_MISMATCH as architect-owned recovery signals: reconcile the named scope sources or lane root, replace the declaration, then redispatch. Never instruct the delegated agent to bypass the gate or switch write mechanisms.

Smallest justified scope on SCOPE_CONFLICT (issue #1994 S4). The replacement declaration must be the SMALLEST justified scope: first reconcile what the delegation actually intends to write (the task's files vs the conflicting scope source named in the diagnostic), then narrow the conflicting lower-precedence source to a subset of that list — repair stale plan scope with save_plan and/or the delegation's FILE: lines — and only then re-declare exactly that file list; re-declaring alone leaves the non-subset relation and reproduces the same SCOPE_CONFLICT. Split the task into separate delegations if the conflict reveals two disjoint write sets. NEVER resolve a SCOPE_CONFLICT by widening to a plan-inferred superset: auto-widening over-authorizes writes and hides an inaccurate plan or delegation prompt behind a bigger scope. This matches the execute skill's scope-recovery contract ("Do not widen scope just to make the sets agree"); a save_plan scope repair is a bookkeeping change covered by the critic-gate plan-freeze rule.

If the project exposes sast_scan with capture_baseline, capture the phase-scoped SAST baseline before first coder delegation so later scans fail only on new findings rather than pre-existing infrastructure noise.

Phase 4 - Objective validation

Run the strongest objective checks available for the task: tests, lint, typecheck, build, targeted repro scripts, and local runtime verification where relevant. If you cannot verify it, do not claim it is done.

Phase 5 - Independent reviewer validation

Use an independent reviewer subagent when the task edits code, tests, docs, package metadata, release notes, or skill files. The reviewer must inspect the actual current diff and validation evidence after implementation. Any later edit invalidates approval and requires re-review.

Reviewer responsibilities:

  • inspect the implementation with fresh context,
  • look for correctness bugs, edge cases, regressions, claim-vs-actual mismatches, and test blind spots,
  • default to disbelief until evidence supports the change,
  • classify issues as CONFIRMED, DISPROVED, UNVERIFIED, or PRE_EXISTING when useful,
  • verify that at least one regression test in the diff has falsification evidence when the task claims regression coverage: the fix was temporarily removed or bypassed, the test failed for the expected reason, the fix was restored, and the test passed again. If no regression test is applicable, the reviewer must record why,
  • return APPROVE, NEEDS_REVISION, or BLOCKED.

NEEDS_REVISION or BLOCKED blocks completion until fixed and re-reviewed.

Phase 6 - Critic challenge

Use a critic subagent after independent reviewer approval for any task that edits code, tests, docs, package metadata, release notes, or skill files. The critic must challenge the reviewer-approved current diff and evidence. Any later edit invalidates critic approval and requires another critic pass.

Phase 7 - Final synthesis

Before calling work complete, verify:

  • objective validation ran and results were recorded,
  • the independent reviewer approved the latest diff and evidence,
  • a separate critic approved after reviewer approval,
  • every NEEDS_REVISION or BLOCKED item was fixed and re-reviewed,
  • no edit occurred after the latest reviewer/critic approval,
  • no behavior is unwired or deferred without explicit user instruction.

Adapter notes

Runtime-specific adapter skills in .claude/skills/swarm-implement/ and .agents/skills/swarm-implement/ must stay thin and delegate to this canonical .opencode workflow.

© ZaxbyHub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .opencode/skills/swarm-implement of ZaxbyHub/opencode-swarm.

Open the folder on GitHubat commit b63a4bd

Compare with similar skills

Swarm Implement next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Swarm Implement compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swarm Implement this skillZaxbyHub/opencode-swarm494—~2.3kAutomated safety check: PassMIT
Code Review Graph Navigatorhandsontable/handsontable22k—~939Automated safety check: PassCustom licence
Csharp Refactoringmicrosoft/testfx1k2 repos~3.1kAutomated safety check: PassMIT
Analyze Projectlllllllama/RigorPilot-Skills4971 repos~519Automated safety check: PassMIT
Andrej Karpathy Skillduolahypercho/andrej-karpathy-skills249—~793Automated safety check: PassMIT
Verdaccio Change Implementationverdaccio/verdaccio18k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Code Review Graph Navigator

    handsontable/handsontable

    Queries a pre-built, Tree-sitter-based code graph of the whole monorepo instead of grepping call chains, for exploring, debugging, refactoring or reviewing code.

    22k GitHub stars~939 tokensUpdated today
    DevelopmentAuto-check passed
  • Csharp Refactoring

    microsoft/testfx

    Official

    Safely refactors C/.NET code without changing behavior. An agent skill from microsoft/testfx.

    1k GitHub starsUsed in 2 repos~3.1k tokens
    DevelopmentAuto-check passed
  • Analyze Project

    lllllllama/RigorPilot-Skills

    Rigor Analyze / Rigor Audit read-only skill for deep learning research repositories.

    497 GitHub starsUsed in 1 repo~519 tokens
    DevelopmentAuto-check passed
  • Andrej Karpathy Skill

    duolahypercho/andrej-karpathy-skills

    Apply Andrej Karpathy-inspired coding-agent guidelines in Codex.

    249 GitHub stars~793 tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • A workflow for implementing a Verdaccio bug fix, feature or refactor: pick the release lines, check existing options, edit the owning layer, test and add a changeset.

    18k GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Roam

    Cranot/roam-code

    Codebase comprehension via roam-code CLI. An agent skill from Cranot/roam-code.

    517 GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed

More from ZaxbyHub/opencode-swarm

All 91 skills in this repo
  • Codebase Review Swarm

    ZaxbyHub/opencode-swarm

    Runs an evidence-gated, quote-grounded audit of a codebase for security, QA, accessibility, performance and more, and writes a verified report without changing source files.

    494 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Issue Tracer

    ZaxbyHub/opencode-swarm

    Drives a bug report from validation and root-cause tracing through a critic-reviewed plan, an approved minimal fix and a PR-ready closure, never merging without recorded human approval.

    494 GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Commit and PR Publishing for Codex

    ZaxbyHub/opencode-swarm

    Codex adapter for opencode-swarm that governs commits, pushes, draft PRs, PR body updates and CI closeout, deferring to the repo's canonical commit-pr protocol.

    494 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Durable Session State

    ZaxbyHub/opencode-swarm

    Keeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes.

    494 GitHub stars~896 tokensUpdated today
    Auto-check passed
  • Swarm PR Feedback Closer

    ZaxbyHub/opencode-swarm

    Ingests existing pull request feedback such as review comments and CI failures, verifies each claim, fixes confirmed issues and reports closure status for every item.

    494 GitHub stars~14k tokensUpdated today
    Auto-check passed
  • Swarm PR Subscribe

    ZaxbyHub/opencode-swarm

    Monitor a pull request after creation and act autonomously on pushed PR activity.

    494 GitHub stars~2.2k tokensUpdated today
    Auto-check passed

Categories

Questions about Swarm Implement

What does Swarm Implement do?

Execute complex implementation work with a swarm-like workflow: parallel exploration, scoped planning, objective validation, mandatory independent implementation review for changed work, and final…. Swarm Implement is an agent skill from ZaxbyHub/opencode-swarm. Execute complex implementation work with a swarm-like workflow: parallel exploration, scoped planning, objective validation, mandatory independent implementation review for changed work, and final critic approval.

When should I use Swarm Implement?

Swarm Implement fits situations like: multi-file changes; tasks that involve Refactoring; tasks that involve Debugging.

How do I install Swarm Implement in Claude Code?

Run `npx skills add ZaxbyHub/opencode-swarm --skill swarm-implement -a claude-code`. Or copy the skill folder (.opencode/skills/swarm-implement in ZaxbyHub/opencode-swarm) into .claude/skills/swarm-implement in your project. Claude Code loads it when a task matches its description.

How do I install Swarm Implement in Codex?

Run `npx skills add ZaxbyHub/opencode-swarm --skill swarm-implement -a codex`. Or copy the skill folder (.opencode/skills/swarm-implement in ZaxbyHub/opencode-swarm) into .agents/skills/swarm-implement in your project. Codex loads it when a task matches its description.

Can I use Swarm Implement in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZaxbyHub/opencode-swarm --skill swarm-implement -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swarm-implement, .gemini/skills/swarm-implement, .github/skills/swarm-implement and .opencode/skills/swarm-implement in your project.

What does Swarm Implement need to run?

Going by SKILL.md and its folder, Swarm Implement needs the command-line tools its instructions call (git).

Does Swarm Implement access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Swarm Implement safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Swarm Implement use?

Swarm Implement is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Swarm Implement use?

About 2.3k tokens (SKILL.md is roughly 9.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Swarm Implement?

Skills that share tags, products or a category with Swarm Implement: Code Review Graph Navigator (handsontable/handsontable, 22k stars), Csharp Refactoring (microsoft/testfx, 1k stars), Analyze Project (lllllllama/RigorPilot-Skills, 497 stars) and Andrej Karpathy Skill (duolahypercho/andrej-karpathy-skills, 249 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swarm Implement?

ZaxbyHub (a GitHub organization) maintains it in ZaxbyHub/opencode-swarm, which has 494 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on October 10, 2026.

Source: ZaxbyHub/opencode-swarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.