dynamic-workflow
Skill2 starsChanged 6 months agoMITView on GitHub
Design and orchestrate Claude Code dynamic workflows — the new multi-agent system that fans out 10-100 subagents in parallel with verification. Teaches when to use workflows vs single-agent, how to structure fan-out/fan-in patterns, and how to build verification gates. Use when tackling complex tasks that benefit from parallel research, multi-perspective analysis, or divide-and-conquer strategies. Also use when user says workflow, fan out, parallel agents, deep research, multi-agent, or wants to break a big task into verified parallel pieces.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Dmatut7/codex-flowtheir own version, first seen Jun 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Dmatut7/codex-flow★ 9same 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 repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skill-forgeSkill
- ai-debt-detectorSkill
- arch-from-codeSkill
- context-builderSkill
- db-schemaSkill
- design-modeSkill
- diagnoseSkill
- error-resilienceSkill
- git-workflowSkill
- grillSkill
- handoffSkill
- mcp-conductorSkill
- prove-itSkill
- self-reviewSkill
- session-guardSkill
- setupSkill
- web-perfSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Rule of thumb: If you'd naturally say "I need to look at this from 5 different angles" — use a workflow.
- Distinctive: line 34
Follow this pattern for every dynamic workflow:
- Distinctive: line 69
After fan-out, BEFORE synthesis:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dynamic Workflows
Overview
Claude Code can now spawn 10-100 subagents in parallel, each working on a piece of a complex task, with verification before synthesis. This skill teaches you when and how to use this effectively.
When to Use (vs Single Agent)
| Task Type | Use Dynamic Workflow? | Why |
| Simple code fix | NO | One agent is enough. Overhead not worth it. |
| Research with multiple sources | YES | Fan out searches, verify in parallel, synthesize |
| Code review across large PR | YES | Each agent reviews one file/component |
| Architecture comparison | YES | Each agent deeply analyzes one option |
| Content generation with fact-checking | YES | Generate + verify adversarially in parallel |
| Debugging intermittent issue | MAYBE | Fan out hypotheses, each agent tests one |
Rule of thumb: If you'd naturally say "I need to look at this from 5 different angles" — use a workflow. If it's sequential (step A must finish before B starts) — don't.
Process
Follow this pattern for every dynamic workflow:
The Pattern
1. DECOMPOSE — break the task into independent parallel pieces
2. FAN OUT — spawn one subagent per piece (10-100)
3. EXECUTE — each agent works independently with its own context
4. VERIFY — adversarial checking of results (catch hallucinations)
5. SYNTHESIZE — combine verified results into final outputDesigning Good Workflows
Fan-Out Rules
Each parallel piece must be:
- Independent — doesn't need results from another piece
- Bounded — clear scope, defined deliverable
- Verifiable — output can be checked against source material
GOOD fan-out: "Research X from 5 different source types"
→ Agent 1: academic papers on X
→ Agent 2: industry blog posts on X
→ Agent 3: GitHub implementations of X
→ Agent 4: community discussions about X
→ Agent 5: competitor products using X
BAD fan-out: "Build the auth system"
→ Why bad? Steps are sequential (design → implement → test), not parallelVerification Gates
After fan-out, BEFORE synthesis:
For each agent's output:
1. Does it cite sources? (not hallucinated)
2. Do the sources actually say what's claimed? (verify against original)
3. Does it contradict another agent's findings? (flag conflicts)
4. Is it within scope? (didn't drift to adjacent topics)Synthesis Patterns
RESEARCH synthesis:
- Group findings by theme
- Highlight agreements (multiple sources confirm)
- Flag contradictions (sources disagree — present both sides)
- Rank by source quality (peer-reviewed > blog post)
COMPARISON synthesis:
- Matrix table (features × options)
- Clear winner per dimension
- Weighted recommendation based on user's priorities
CODE REVIEW synthesis:
- Critical issues (must fix) from all agents
- Suggestions (should fix) ranked by severity
- Praise (patterns to keep) for moraleAnti-Patterns
- Too many agents for simple task — 100 agents researching "how to add a button" = waste
- Sequential work disguised as parallel — if agent 3 needs agent 2's output, it's not parallel
- No verification — fan-out without checking = fan-out hallucinations at scale
- Vague decomposition — "research this broadly" gives unfocused results. Be SPECIFIC per agent.
- Synthesizing without conflict resolution — if two agents contradict, you must resolve, not average
Example: Deep Research Workflow
Task: "Research how top companies implement feature flags in 2026"
Decomposition:
Agent 1: Search academic/technical papers on feature flag architectures
Agent 2: Scrape LaunchDarkly, Split.io, Flagsmith docs for patterns
Agent 3: Find GitHub repos with >1K stars that implement feature flags
Agent 4: Search for post-mortems about feature flag failures
Agent 5: Find blog posts from companies (Netflix, Uber, Airbnb) about their systems
Verification:
- Cross-check: if Agent 2 says "LaunchDarkly uses X architecture" and Agent 3 finds their open-source code showing Y — flag the contradiction
- Source check: does the cited blog actually exist and say what's claimed?
Synthesis:
- Pattern matrix: which architectures are most common
- Trade-off table: complexity vs flexibility vs performance
- Recommendation: based on user's team size and scalePersistence
ACTIVE when facing complex tasks. Before decomposing a complex request into sequential steps, FIRST ask: "Could pieces of this run in parallel instead?" If yes — design the workflow.
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.

