swarm
Fan out N parallel workers, drain them, and return one report.
Skill by jiangkoumo
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jiangkoumo-swarm
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
swarm- Description
- Fan out N parallel workers, drain them, and return one report. Use for /swarm, 'swarm this', or parallel coverage, races, gauntlets, and exploration.
- License
- MIT
- Instructions
- 71 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Swarm
## Start
Open a todolist with one entry per phase before launching anything.
1. Frame
2. Fan out
3. Aggregate
4. Report
## Phase A: Frame
1. State the done predicate and the artifact or report the swarm must return.
2. Choose the shape. Partition into slices, race N workers on identical briefs, or mix both. For a race or mixed shape, declare `first pass`, `rank all`, or `best-of` before spawning.
3. Pick each worker's role from its task against the `/setup-pstack` role lines: writers use the `code` role (a `pstack.poteto-agent` seat), and read-only verifiers use the `verification` role (a `pstack.verifier` seat). If the role or its line is missing, stop and say so. For an `inherit` role, omit `model` so the workers run on the parent model. If the host rejects a configured model, stop that seat and report it; never use the closest valid model of the same family. For a model race, name each arm's role up front. Pick each subagent's reasoning level and speed for the job, per the Subagents section of the **poteto-mode** skill.
4. Give each worker its own writable output when it writes. When workers verify or measure commits, each brief names the exact SHAs. A measurement brief also names the method (sample count, what one sample is, order). The worker records both in its result.
## Phase B: Fan out
Spawn all N workers in one message with `subagent` calls: `workflow: "parallel"`, `worktree: true`, and the step 3 role; never pass `model` in a task item or on the outer call. Put `worktree` on the outer call and choose one registered `pstack.*` agent per task by the step 3 role. Use the shared checkout only when the worker needs access to something outside its worktree; set `worktree: false` on the outer call for that case.
When a worker must start from a non-default pushed branch, pass that branch and its SHA. Prepare the authorized workspace before launch.
```js
subagent({
workflow: "parallel",
worktree: true,
args: { tasks: [
{ agent: "pstack.poteto-agent", task: "<standalone writer brief for slice or race arm>" },
{ agent: "pstack.verifier", task: "<standalone read-only verification brief>" }
] }
})
```
Every brief stands alone. Include the goal, scope, exact slice or race arm, how to verify, and what to report. Reports use `PASS`, `ISSUES`, or `BLOCKED` with evidence. A worker that can prove a defect reports `ISSUES` and lists every issue it can prove, not only the first.
If a worker drops out, proceed with N-1 and note it.
## Phase C: Aggregate
Read the terminal results. Drop a result that does not record the SHAs and method its brief names, and respawn that worker once. After a second miss, record a gap. A gap does not count as a pass. For coverage, every required slice needs a result. For a race, apply the selection rule declared up front. Use first pass, rank all, or best-of. Do not paste raw worker dumps.
## Phase D: Report
Return one consolidated in-chat report with a result table, issue one-liners, gaps or dropouts, and the race rule when used.
## Pi adaptation
Adapted from Lauren Tan’s pstack v0.15.25, MIT, fixed revision f713f14203cd6420cec13cd7c55c32d598dbab68. Read the [Pi adapter](../../adapters/pi/harness.md) for host mappings.
Delegation requires current operator or applicable project authorization and a compatible pi-subagents integration. If unavailable or unauthorized, perform authorized stages locally, disclose self-review and missing independence, and report any required independent stage as open. Use only registered pstack.* agents. Models and thinking bind through /setup-pstack roles and user agentOverrides; never put model in a task item or on the outer subagent call. Report unavailable or identical configured models; do not substitute a default, a same-family model, or any other fallback. Await native completion notices and collect every required result before synthesis.
Use read for file contents, grep/find/ls for search and directories, and ffgrep/fffind when available. Batch independent reads with codemode when available. Use edit/write only for authorized changes; bash executes programs and Git in an explicit working directory, never reads or searches files. Keep one writer per worktree and isolate candidate output paths. Read-only reviewers never receive bash, edit, write, or nested delegation. Loading this skill grants no new permission: push, PR creation, merge, external messages, and destructive operations require explicit authorization in the current session. Commit only when authorized.
Pi has no Cursor agent-type or cloud-placement fields; `worktree` only controls checkout isolation, so give each writer its own local worktree or artifact path, and its own starting branch and SHA in the brief. Keep one writer per worktree. A read-only verification or exploration role never receives write tools.
### Worktree review schema
Put `cwd` on the outer `subagent` call, never inside a `tasks` item. The `parallel` schema accepts `{ agent, task }` only; an extra field fails validation before any child starts. For several worktrees in one call, name each absolute worktree path in its `task` text.
```js
subagent({ workflow: "parallel", args: { tasks: [
{ agent: "pstack.verifier", task: "Review /absolute/path/to/worktree-a at SHA <sha>. Report PASS or ISSUES." },
{ agent: "pstack.verifier", task: "Review /absolute/path/to/worktree-b at SHA <sha>. Report PASS or ISSUES." }
] } })
```
Wrong: `tasks: [{ agent, cwd, task }]`. The host rejects it.From jiangkoumo/pi-pstack, MIT.
More from jiangkoumo/pi-pstack
- 0.647score
poteto-help
jiangkoumo
Guides users through pstack setup, /skill:poteto-mode, and picking the skill, playbook, or principle for a task.
SkillAFreshness: A★ 27Claude Code +9 - 0.647score
statechart
jiangkoumo
Draw what an app's user sees as a Mermaid statechart from a TLA+ model.
SkillAFreshness: A★ 27Claude Code +9 - 0.637score
recall
jiangkoumo
Reconstruct your recent working context from your own chat history, live state, and the shared record (user reports, prior fixes, incidents), then hand back a…
SkillAFreshness: A★ 27Claude Code +9 - 0.622score
how
jiangkoumo
Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which…
SkillAFreshness: A★ 27Claude Code +9 - 0.622score
architect
jiangkoumo
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
SkillAFreshness: A★ 27Claude Code +9 - 0.622score
interrogate
jiangkoumo
Use for "interrogate", "adversarial review", "multi-model review", "challenge this", "stress test this code", "find blind spots", or "tear this apart".
SkillAFreshness: A★ 27Claude Code +9 - 0.622score
poteto-mode
jiangkoumo
poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work.
SkillAFreshness: A★ 27Claude Code +9 - 0.622score
create-verification-skill
jiangkoumo
Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform.
SkillAFreshness: A★ 27Claude Code +9 - 0.620score
automate-me
jiangkoumo
Use for "automate me", "create/update/refresh my -mode skill", "turn/capture my preferences or working style into a skill", or wanting agents to follow how…
SkillAFreshness: A★ 27Claude Code +9 - 0.620score
benchmark-checklist
jiangkoumo
Vet a perf measurement (limiter, tuning, limits, errors, repeatability, relevance, and whether the work happened) before you report or act on it.
SkillAFreshness: A★ 27Claude Code +9 - 0.620score
correct
jiangkoumo
Find the mistakes agents keep repeating in this repo and make each one impossible.
SkillAFreshness: A★ 27Claude Code +9 - 0.620score
ketchup
jiangkoumo
Catch the user up on what changed in this chat since their last message, in plain words and small visuals.
SkillAFreshness: A★ 27Claude Code +9
Signals
- Stars
- 27
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 21, 2026 (8 days ago)
- Last release
- Oct 24, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/jiangkoumo/pi-pstack
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.761score
swarm
backnotprop
Fan out N parallel workers, drain them, and return one report.
SkillAFreshness: A★ 2.7KClaude Code +9 - 0.406score
swarm
uzairansaruzi
Fan out N parallel workers, drain them, and return one report.
SkillAFreshness: A★ 155Claude Code +9 - 0.393score
swarm
minghinmatthewlam
Fan out N parallel workers, drain them, and return one report.
SkillAFreshness: A★ 46Claude Code +9 - 0.384score
swarm
iap
Fan out N parallel workers, drain them, and return one report.
SkillAFreshness: A★ 27Claude Code +9 - 0.381score
swarm
n3m6
Fan out N parallel workers, drain them, and return one report.
SkillAFreshness: A★ 19Claude Code +9 - 0.375score
swarm
peterpme
Fan out N parallel workers, drain them, and return one report.
SkillBFreshness: B★ 93Claude Code +9 - 0.367score
swarm
shrimpwtf
Fan out N parallel workers, drain them, and return one report.
SkillBFreshness: B★ 39Claude Code +9 - 0.333score
swarm
olibyte
Fan out N parallel workers, drain them, and return one report.
SkillBFreshness: B★ 2Claude Code +9 - 0.323score
swarm
dumkydewilde
Fan out N parallel workers, drain them, and return one report.
SkillBFreshness: B★ 1Claude Code +9
More from jiangkoumo
- 0.650score
ego-decision-layer
jiangkoumo
多步线性浏览器任务(连续点击、翻页、搜索表单提交、导航跳转)的默认入口:用 `ego-decision-layer` 一条命令让决策层在单个 ego-browser 进程内闭环决策(默认 System One / Jev,可换本地 OpenAI 兼容后端;browser automation /…
SkillAFreshness: A★ 27Claude Code +9 - 0.647score
statechart
jiangkoumo
Draw what an app's user sees as a Mermaid statechart from a TLA+ model.
SkillAFreshness: A★ 27Claude Code +9 - 0.647score
poteto-help
jiangkoumo
Guides users through pstack setup, /skill:poteto-mode, and picking the skill, playbook, or principle for a task.
SkillAFreshness: A★ 27Claude Code +9 - 0.637score
recall
jiangkoumo
Reconstruct your recent working context from your own chat history, live state, and the shared record (user reports, prior fixes, incidents), then hand back a…
SkillAFreshness: A★ 27Claude Code +9 - 0.622score
architect
jiangkoumo
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
SkillAFreshness: A★ 27Claude Code +9 - 0.622score
interrogate
jiangkoumo
Use for "interrogate", "adversarial review", "multi-model review", "challenge this", "stress test this code", "find blind spots", or "tear this apart".
SkillAFreshness: A★ 27Claude Code +9
Cite this page
swarm skill. Agent Mart. https://agentmart.dev/skills/jiangkoumo-swarm (last updated 2026-10-24)