map-workflow
Skill72 starsChanged 7 months agoMITView on GitHub
Generate a workflow graph for a multi-agent task using one of four patterns. Present the graph to the user for approval before any agent is dispatched. Extract from $ARGUMENTS: If --pattern or --agents or --task is missing, print usage and stop: For each agent name in --agents, verify it exists in .claude/agents/. If an agent is not found, warn but continue: Using the pattern and agents, fill in the workflow schema from docs/templates/workflow-graph.md. Apply these rules per pattern: Sequential: Each…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- obb396193-code/map-workflow-skilltheir own version, first seen Jul 26, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- obb396193-code/map-workflow-skill★ 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 repository117 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-healthSkill
- agent-styleSkill
- angular-best-practicesSkill
- annotateSkill
- api-designSkill
- architecture-decision-recordsSkill
- aws-serverlessSkill
- backend-architectSkill
- backend-patternsSkill
- brainstormSkill
- bug-reportSkill
- changelogSkill
- claude-apiSkill
- cloud-architectSkill
- cloud-run-puppeteerSkill
- code-review-checklistSkill
- code-reviewSkill
- code-simplificationSkill
- codex-sddSkill
- commitSkill
- context-engineeringSkill
- database-architectSkill
- db-reviewSkill
- deep-interviewSkill
- design-reviewSkill
- design-systemSkill
- devops-deploySkill
- diagnoseSkill
- django-patternsSkill
- docker-patternsSkill
- dotnet-backend-patternsSkill
- dreamSkill
- drizzle-orm-expertSkill
- estimateSkill
- event-sourcing-architectSkill
- fastapi-proSkill
- fork-joinSkill
- freezeSkill
- frontend-designSkill
- frontend-patternsSkill
- frontend-ui-dark-tsSkill
- gate-checkSkill
- gemini-api-integrationSkill
- gitlab-ci-patternsSkill
- guardSkill
- handoffSkill
- hotfixSkill
- hybrid-cloud-architectSkill
- kubernetes-architectSkill
- laravel-patternsSkill
- launch-checklistSkill
- learnerSkill
- llm-app-patternsSkill
- localizeSkill
- map-systemsSkill
- markdown-injection-scannerSkill
- microservices-patternsSkill
- milestone-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
If --pattern or --agents or --task is missing, print usage and stop:
- Distinctive: line 51
If an agent is not found, warn but continue:
- Distinctive: line 108
Do NOT dispatch any agent until the user confirms.
- Very specific: line 112
After approval, if --save <filename> was passed, write the graph to .tasks/<filename>.workflow.md and print:
- Very specific: line 121
After the user confirms, hand off to @producer with the instruction:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Map Workflow
Generate a workflow graph for a multi-agent task using one of four patterns. Present the graph to the user for approval before any agent is dispatched.
Steps
1. Parse arguments
Extract from $ARGUMENTS:
| Flag | Required | Default | Description |
--pattern | yes | — | Sequential, Parallel, Hierarchical, or Iterative |
--agents | yes | — | Comma-separated agent names in execution order |
--task | yes | — | One-sentence description of what this workflow delivers |
--max-iter | no | 3 | Max loop iterations (Iterative pattern only) |
--save | no | none | If set, write the graph to .tasks/[filename].workflow.md |
If --pattern or --agents or --task is missing, print usage and stop:
Usage: /map-workflow --pattern <Sequential|Parallel|Hierarchical|Iterative> \
--agents "<agent1,agent2,...>" \
--task "<what this workflow delivers>" \
[--max-iter <N>] [--save <filename>]
Patterns:
Sequential — linear pipeline, one agent after another
Parallel — fan-out to multiple agents simultaneously, then merge
Hierarchical — supervisor delegates to specialists
Iterative — test-driven loop until quality gate passes
Reference: docs/templates/workflow-graph.md2. Validate agents
For each agent name in --agents, verify it exists in .claude/agents/.
If an agent is not found, warn but continue:
⚠️ Agent "foo-developer" not found in .claude/agents/ — check spelling.
Proceeding with remaining agents.3. Generate the workflow graph
Using the pattern and agents, fill in the workflow schema from
docs/templates/workflow-graph.md. Apply these rules per pattern:
Sequential: Each agent becomes one node. on_pass chains to the next agent.
on_fail: stop for all nodes.
Parallel: First agent in list becomes the orchestrate node. Last agent
becomes the merge node. All middle agents run in parallel from orchestrate
to merge. A qa-engineer node is appended after merge if not already in the list.
Hierarchical: First agent becomes the plan (supervisor) node.
Remaining agents are parallel specialist nodes. First agent is also the final
review node. All specialists must complete before review.
Iterative: Exactly 2 agents required — first is the implementer,
second is the tester. Loop: implementer → tester → [fail→implementer | pass→done].
Cap at --max-iter iterations.
4. Display the graph
Show the filled YAML schema and an ASCII flow diagram:
🗺️ Workflow Graph — [pattern] · [task]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[YAML schema — filled in]
Flow:
[ASCII diagram derived from nodes]
Agents dispatched: [N]
Estimated turns: [N × 5 turns per agent, rough estimate]
Max iterations: [N — Iterative only, else omit]
Verification criteria per node:
[node-id] (@agent): [on_pass condition description]5. Ask for approval
✋ Does this workflow look correct?
Reply "yes" to confirm and begin dispatching agents.
Reply "edit [node-id] [field] [value]" to adjust a node.
Reply "no" to cancel.Do NOT dispatch any agent until the user confirms.
6. Save (if --save provided)
After approval, if --save <filename> was passed, write the graph to
.tasks/<filename>.workflow.md and print:
✅ Workflow saved → .tasks/<filename>.workflow.md7. Dispatch (after approval)
After the user confirms, hand off to @producer with the instruction:
"Execute workflow
[id]— dispatch agents in the order defined by the graph. For each node: run the agent, check the outcome, follow on_pass/on_fail edges. Write a ledger entry toproduction/traces/decision_ledger.jsonlat each node completion. Save a checkpoint via/save-state [task_id]if any node fails."
Quick Examples
# Simple 3-agent pipeline
/map-workflow --pattern Sequential \
--agents "technical-director,backend-developer,qa-engineer" \
--task "Build JWT auth endpoint"
# Parallel frontend + backend
/map-workflow --pattern Parallel \
--agents "backend-developer,frontend-developer" \
--task "Login feature — API and UI"
# TDD loop, max 3 retries
/map-workflow --pattern Iterative \
--agents "backend-developer,qa-engineer" \
--task "Payment service" --max-iter 3
# Save to .tasks/
/map-workflow --pattern Hierarchical \
--agents "lead-programmer,backend-developer,frontend-developer,qa-engineer" \
--task "Sprint 04 wave 1" --save sprint-04-wave-1Does 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.

