workflow
Skill2 starsChanged 2 months agoMITView on GitHub
Use when the user wants to design or scaffold a one-shot multi-agent fan-out / decomposition orchestration — review code across N dimensions, migrate N call-sites in parallel, research N sources, or split an implementation into parallel agents with per-agent model/effort assignment — landing as a written `.context/workflows/` workflow-spec (goal + fan-out shape + per-agent model table + gate policy) before the Workflow runs. Fires on "design a workflow to review X across N angles", "fan out agents to migrate every call-site", "orchestrate a multi-agent review of X", "decompose this into parallel agents with different models". Not for: executing a written multi-phase plan (/aidex:plan-exec); repeat-until-a-check-passes automation (/aidex:loop); planning multi-step work without orchestration (/aidex:plan); ecosystem audits (/aidex:aidex); project-state audits (/aidex:audit).
46 other projects use a version of this.
Adopted by
Most recently taken up by
- falcondev-oss/skillstheir own version, first seen Oct 4, 2026
- blockmatic/basilic-skillstheir own version, first seen Oct 1, 2026
- raphaeltm/simple-agent-managertheir own version, first seen Sep 29, 2026
- notque/vexjoy-agenttheir own version, first seen Sep 26, 2026
- BULDEE/ai-craftsman-superpowerstheir own version, first seen Sep 21, 2026
- aniklavida/agent-assembletheir own version, first seen Sep 17, 2026
Used with
Projects with it also use chat-sdk, experiment and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillchat-sdk
Build multi-platform chat bots with Chat SDK (`chat` npm package). Use when developers want to (1) Build a Slack, Teams, Google Chat, Discord, Telegram, GitHub, Linear, or WhatsApp bot, (2) Use Chat SDK to handle mentions, direct messages, subscribed threads, reactions, slash commands, cards, modals, files, or AI streaming, (3) Set up webhook routes or multi-adapter bots, (4) Send rich cards or streamed AI responses to chat platforms, (5) Build or maintain a custom adapter or state adapter. Triggers on "chat sdk", "chat bot", "slack bot", "teams bot", "google chat bot", "discord bot", "telegram bot", "whatsapp bot", "@chat-adapter", "@chat-adapter/state-", "custom adapter", "state adapter", "build adapter", and building bots that work across multiple chat platforms.
Also in 4 projects that use this
sunnnybalaSkillexperiment
Design and run ML experiments on cloud GPUs. Generates experiment code, runs on Modal, tracks results in JSONL. Use when asked to "run experiments", "train a model", "test this hypothesis", or "benchmark this approach". Proactively invoke when the user has a refined research idea and needs to validate it experimentally.
Also in 3 projects that use this
nicepkgSkillteam
根据任务快速组建临时 AI Agent 团队协作。自动从 .claude/agents/ 中选择最合适的成员组队。
Also in 3 projects that use this
u9401066Skillproject-init
Initialize new projects using this template. Triggers: init, new, 新專案, 初始化, create project, 建立專案, bootstrap, scaffold project.
Also in 3 projects that use this
AnthropicSkilldebug
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
Also in 6 projects that use this
0xSeroSkillsecurity
Also in 4 projects that use this
Other versions46 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 46
- openai/plugins★ 7.3ksame name
- vercel-labs/open-agents★ 5.8ksame name
- vercel/workflow★ 2.4ksame name
- LeoKemp223/embed-ai-tool★ 979same name
- zhinkgit/embeddedskills★ 730same name
- notque/vexjoy-agent★ 424same name
- brianlovin/agent-config★ 375same name
- vercel/vercel-plugin★ 297same name
- ethanhq/cc-fleet★ 215same name
- arpitnath/claude-capsule-kit★ 93same name
36 more not listed
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.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 0 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 38 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
no args → list specs (ls .context/workflows/*.md) and show this help
- Very specific: line 58
Run the survey first and to completion (the transversal front-loading principle: AskUserQuestion is a planning-time survey, not a mid-run …
- Very specific: line 69
If it is really the *sequential phases of a written plan* → hand to plan-exec.
- Very specific: line 70
If it is *repeat one task until a check passes* → hand to loop.
- Very specific: line 97
Isolation surface: If the workflow's agents mutate files in parallel, they need isolation: 'worktree' (the Workflow tool's per-agent …
- Very specific: line 101
Scaffold: Run new-workflow-spec.sh new <slug>, then fill every section from the answers.
- Very specific: line 129
Only execute the Workflow call if the user explicitly asks you to start it now.
“Common” is measured: kept by at least 6 in 10 of the 38 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
Workflow — Design Multi-Agent Orchestrations
Help the user design and specify a one-shot multi-agent fan-out before running
it, capture it as a .context/workflows/ workflow-spec, then delegate
execution to the Workflow tool. This skill does not re-implement durability —
the durable machinery already exists in plan-exec's Workflow forms
(../plan-exec/assets/workflows/*.workflow.js,
single-sourcing the durability CORE in
../conventions/references/workflow-core.md).
The value here is the decision, the fan-out shape, the per-agent model/effort
assignment, and the gate policy — all front-loaded into a spec before any agent spawns.
Boundary (one sentence): plan-exec = execute the sequential phases of a written plan · loop = repeat one task until a machine check passes · workflow = author a standalone one-shot fan-out / decomposition orchestration (no plan doc) with per-agent model assignment.
See references/01-workflow-spec-conventions.md for the artifact format and the fan-out shape catalog.
Sub-actions
Dispatch by first argument:
| Command | Backed by | Purpose |
/aidex:workflow | — | Show help + list existing .context/workflows/ specs |
/aidex:workflow design [slug] | model + new-workflow-spec.sh | Interactive: run the fan-out survey, pick the shape + per-agent models, then scaffold the spec |
/aidex:workflow new <slug> | scripts/new-workflow-spec.sh | Scaffold an empty workflow-spec file (skip the interview) |
/aidex:workflow run <slug> | model | Read a finished spec and launch it via the Workflow tool |
Dispatch logic
bash "${CLAUDE_SKILL_DIR}/scripts/new-workflow-spec.sh" "$@"new <slug>→new-workflow-spec.sh new <slug>design [slug]→ run the interview below, thennew-workflow-spec.sh new <slug>and fill it inrun <slug>→ no script; read the spec and follow run below- no args → list specs (
ls .context/workflows/*.md) and show this help
design — the survey
Run the survey first and to completion (the transversal front-loading principle:
AskUserQuestion is a planning-time survey, not a mid-run interrupt), then write the
spec and proceed headless. Walk these one at a time; do not skip step 0 or step 1.
No interactive channel (claude -p, cron, any non-interactive surface): do not
attempt the survey — take each step's recommended default and record in the spec that the
parameters were defaulted. Full rule:
autonomy-conventions.md § When there is no interactive channel.
- Fan-out suitability (step 0). Is the work genuinely decomposable into
independent sub-units that gain from running concurrently or from different models?
If it is really the sequential phases of a written plan → hand to
plan-exec. If it is repeat one task until a check passes → hand toloop. If it is a single unit of work → just do it. Only a real fan-out / decomposition belongs here. - Shape (step 1). Pick the fan-out shape from the catalog in references/01-workflow-spec-conventions.md §"Fan-out shape catalog": review-by-dimension · migrate-N-sites · research-N-sources · decompose-impl. The shape fixes how items map to agents and whether stages pipeline or fan out behind a barrier.
- Work-list. Enumerate the concrete items (dimensions / call-sites / sources /
sub-tasks). This reuses the Phase-1 work-list — an ordered, cross-source queue
(
../conventions/references/worklist-conventions.md). Fix the order once here; do not re-ask per item at run time. - Per-agent model + effort. For each stage, assign
model+effortand say why (breadth →sonnet/medium; adversarial verify / synthesis →opus/high; mechanical transform →sonnet/low). This table is the spec's distinctive payload — see §"Per-agent model table" in the conventions. - Stop condition + gate policy. The machine gate each agent's output must pass, and
the run's publication gate (
publish: ask | preauthorized). Mirror the work-list'sgate-policy. - Autonomy surface (step 1.5). Resolve the permission borders so the run is
unattended. Use Claude Code's native
allow/ask/deny— do NOT enumerate an allowlist. Pin: (a) any workflow-specific deny; (b) the pre-authorized ops; (c) the always-ask set (defaults: publication — push/publish/deploy/release and integrating a branch into the trunk; merging the trunk INTO the branch stays autonomous — NOT commit, deps, or additive migrations; the canon linked below owns the full list). Everything else safe + additive is autonomous: proceed, verify the assumption, log it. (See../conventions/references/autonomy-conventions.md.) - Isolation surface. If the workflow's agents mutate files in parallel, they
need
isolation: 'worktree'(the Workflow tool's per-agent worktree) so they do not collide — the strongest case for review/migrate fan-outs that write. Read-only fan-outs (review-by-dimension, research) need none. Record it in the spec's Guardrails. - Scaffold. Run
new-workflow-spec.sh new <slug>, then fill every section from the answers. Leave nothing as a placeholder. If a spec with that slug already exists (new-workflow-spec.shrefuses to overwrite), refine the existing spec in place.
run
- Read
.context/workflows/<date>-<slug>.md. - Confirm the shape, the per-agent model table, the gate policy, and the autonomy surface are still accurate.
- Launch via the
Workflowtool — do not rebuild durability. Reuse the plan-exec forms keyed off the shape:- review-by-dimension / research-N-sources → the pipeline pattern (each dimension
reviews, then verifies as soon as its review completes), or
parallel()behind a barrier when a synthesis stage needs all results at once. - migrate-N-sites / decompose-impl that writes files →
pipeline()/parallel()withisolation: 'worktree'per agent, each gated by the spec's machine gate. Translate the spec's per-stage model/effort directly into theagent(prompt, {model, effort})options, and the work-list into the items array. The two-stage gate (Bash verifier → conditional durability-arbiter) and kill-resume come from the plan-exec CORE. - The spec is the binding carrier; the
.workflow.jsis generated here, at launch, and is disposable. Write it into the session scratchpad (or an equivalent transient location), never.context/workflows/; do not commit it and do not keep it after the run. If it ever diverges from the spec, the spec wins — regenerate. (See §"Carrier authority — spec-only" in the conventions.) - Any plan a generated prompt references must be by
plan/<slug>type-ref resolved at launch via the two-folder lookup, never a frozen active path — the active path dies when the plan archives.
- review-by-dimension / research-N-sources → the pipeline pattern (each dimension
reviews, then verifies as soon as its review completes), or
- Only execute the
Workflowcall if the user explicitly asks you to start it now; otherwise print the launch plan (form + args shape) for them to confirm.
Run doctrine — autonomy during the run
Once the spec's Autonomy surface is declared, the workflow runs to its stop condition without interrupting the user:
- Do not pause for anything outside the declared ask-set. Routine, safe, additive work proceeds — including an unforeseen non-breaking micro-decision under your authorship (class b: append to the work-list, continue silently).
- Pause only for the deny set and the ask set (push/publish/deploy/release, merging the branch into the trunk — not the trunk into the branch — plus any the spec declared). Commit, deps, and additive migrations are not gated.
- Proceed + log, don't halt: on a safe additive decision, verify the assumption (investigate, don't guess) and log it — do not stop.
- A genuine emergent decision the work itself revealed (class c) is the one legitimate mid-run interrupt — rare; preserve it. The goal is removing the avoidable "what next?" questions, not reaching zero.
- Ambiguous consent point not in the ask-set → consult the durability-arbiter, do not
deadlock. Launch
aidex:durability-arbiterwith the Agent tool (subagent_type: aidex:durability-arbiter; its definition pinssonnet/high, read-only) with the situation + the spec's autonomy surface + proof, follow its verdict, batch anyASKto the end. If it errors, apply the rule above and proceed — never block on it.model-policy: per-stageis what that pin expresses, and it is the same policy the spec's per-agent model table sets for every agent the designed Workflow spawns.
This is the workflow's instance of the shared autonomy canon — full decision rule, the
commit-is-not-gated policy, the three-class model, and the durability-arbiter live in
autonomy-conventions.md.
Boundaries
| The user wants to… | Route to |
| Execute a written multi-phase plan (there is a plan doc) | plan-exec |
| Repeat one task until a machine check passes (tests/typecheck/build green) | loop |
| Plan multi-step work (no orchestration yet) | plan |
| Run a prompt on a recurring interval | native /loop |
| Record a decision / ADR | decision |
| Investigate how something works | research |
| Audit the Claude Code ecosystem | aidex |
| Audit project state (UX/security/perf) | audit |
| A single unit of work, no fan-out | (just do the work) |
Related
- plan-exec — owns the durable
Workflowforms (pipeline / fan-out / review) and the durability CORE this skill delegates to. A plan-exec batch run is a Workflow; workflow authors a standalone one (no plan doc) with explicit per-agent models. - loop — the sibling designer for repeat-until-green loops; same designer pattern (survey → spec → delegate), different execution shape.
- conventions — owns the shared
.context/canon, the work-list, the autonomy surface, andworkflow-core.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.

