workflows
Skill2 starsChanged 3 months agoMITView on GitHub
Design, validate, and run bounded multi-agent workflows from any harness with a shell — Cursor, Codex, pi, or anything that supports .agents/. Declarative JSON chains of sequential agent steps, static parallel groups, and bounded fan-out (maxItems, ≤100 agents), executed by spawning harness CLIs (pi, codex, cursor-agent) as subagent runners. Supports foreground and background runs, status inspection, stop, resume with completed-phase reuse, and saved reusable chains. Use when the user says design a workflow, run a workflow, fan out subagents, parallelize agents, orchestrate agents, workflow chain, background agent run, or workflow status.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- HughYau/qiushi-skilltheir own version, first seen Sep 6, 2026
- RubyEyedReaper/Odin-Skillstheir own version, first seen Aug 15, 2026
- elmokirk/WORKFLOW.mdtheir own version, first seen Aug 1, 2026
- zllovesuki/cloudflare-agent-skillstheir own version, first seen Apr 28, 2026
- wittyreference/twilio-claude-plugintheir own version, first seen Apr 13, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- HughYau/qiushi-skill★ 3.8ksame name
- vibesurf-ai/claude-surf★ 24same name
- zllovesuki/cloudflare-agent-skills★ 9same name
- wittyreference/twilio-claude-plugin★ 2same name
- BrightGold70/skills★ 1same name
- elmokirk/WORKFLOW.md★ 1same name
- SanjithBolloju18/qiushi-skill★ 1same name
- RubyEyedReaper/Odin-Skills★ 0same 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 repository16 other files it gives its agents.
- _global/AGENTS.mdAGENTS.md
- adhd-modeSkill
- browserSkill
- code-reviewerSkill
- commitSkill
- context7Skill
- datadogSkill
- discordSkill
- firestoreSkill
- handoffSkill
- linear-cliSkill
- planworkSkill
- slackSkill
- taskmanSkill
- write-an-adrSkill
- write-prSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read reference/format.md before writing your first workflow JSON.
- Distinctive: line 33
Approve: ALWAYS show the user the exact validated JSON, the phase list, and the maximum agent count, and get explicit approval before …
- Very specific: line 47
Run state lives in .agents/workflow-runs/<run-id>/ (state.json + per-phase output files + runner.log for background runs).
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
workflows
Bounded, declarative multi-agent orchestration as plain scripts. A workflow is a JSON chain of phases — a single agent step, a static parallel group, or a bounded fan-out over an earlier phase's JSON output — validated before anything runs, with a statically known worst-case agent count. This is a harness-agnostic port of pi-plan-mode's /workflow system: the design loop, format, and limits are identical, but execution spawns harness CLIs directly, so it works from Cursor, Codex, pi, or any harness that can run Node. (Claude Code has native workflows — don't install this there.)
Read reference/format.md before writing your first workflow JSON; it owns the full format, templating, and config documentation.
Setup
- Node ≥ 20 (
node --version). - The
piCLI on PATH — the only CLI required by default, sincepiis the default runner.codex,cursor-agent, andclauderunner templates are built in but entirely optional: a CLI is needed only when a step's runner actually selects it, andrun.mjspreflights every selected runner before spawning anything, failing fast with an actionable message instead of dying mid-run. - Agent definitions: each agent referenced by a workflow is a markdown file in
.agents/subagents/<name>.md(project) or~/.agents/subagents/<name>.md(user) — flat YAML frontmatter (name,description,model,thinking,runner), body is the system prompt. A workflow that references an undefined agent fails validation at dry-run/run time with the list of available agents. - Optional config in
.agents/workflows.json(project, walk-up) or~/.agents/workflows.json:
{
"defaultRunner": "pi",
"timeoutMinutes": 20,
"runners": {
"pi-sandboxed": ["pi", "-p", "--no-session", "--model", "{model}", "{prompt}"]
}
}The loop: design → validate → approve → run
- Design. Investigate the task, then draft the workflow JSON (see
reference/format.md). Prefer one mutation-capable worker at a time; parallel agents should be independent readers, reviewers, or isolated-worktree tasks. Every fan-out must declaremaxItems. - Validate.
node <skill-dir>/scripts/validate.mjs my-workflow.json— fix every error before showing the user anything. - Approve. ALWAYS show the user the exact validated JSON, the phase list, and the maximum agent count, and get explicit approval before running. Never launch a workflow the user has not seen.
- Run.
node <skill-dir>/scripts/run.mjs my-workflow.json(foreground) or--background(detached; prints a run id). Use--dry-runfirst to see every resolved command without spawning anything.
Commands
| Command | Purpose |
node scripts/validate.mjs <file|chain> | Validate; print phase digest + max agent count |
node scripts/run.mjs <file|chain> [--dry-run] [--background] [--runner <name>] | Execute a workflow |
node scripts/run.mjs --resume <run-id> [--background] | Resume a stopped/failed run, skipping completed phases |
node scripts/status.mjs | Table of all runs |
node scripts/status.mjs <run-id> | One run: phases, output files, error |
node scripts/status.mjs --stop <run-id> | Terminate a running workflow |
Run state lives in .agents/workflow-runs/<run-id>/ (state.json + per-phase output files + runner.log for background runs). Resume reuses persisted outputs of completed phases — an upgrade over pi's restart-from-scratch resume.
Saved chains
A reviewed workflow saved as <name>.chain.json is reusable by bare name: node scripts/run.mjs <name>. Search order: project .agents/chains/, project .pi/chains/ (pi-plan-mode compatible), ~/.agents/chains/, ~/.pi/agent/chains/. To save one, copy the approved JSON into one of those directories.
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.

