map-workflow
Skill0 starsChanged 4 months agoMITView on GitHub
Turn a complex goal into a dependency-aware, executable, and trackable workgraph with task nodes, real handoffs, running notes, parallel fan-out/fan-in, verification merges, and human approval gates. Use when the user asks to 画工作图, 梳理下一步, 拆复杂任务, 设计系统交互或 Agent 协作, 管理项目/内容生产流程, 找出并行项与依赖, or maintain a plan that Codex can execute and update over time.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- tranhieutt/software_development_departmenttheir own version, first seen Apr 30, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- tranhieutt/software_development_department★ 71same 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.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
If it exists, load and validate it before asking new questions.
- Distinctive: line 15
If it does not exist, interview the user one question at a time:
- Distinctive: line 24
Do not treat chronological preference as dependency.
- Very specific: line 28
Run scripts/workgraph.py with Python 3.
- Distinctive: line 51
Prefer engine commands over hand-editing.
- Very specific: line 55
Never execute a draft graph.
- Very specific: line 56
After explicit whole-graph approval, run approve.
- Very specific: line 58
Before starting a node, set it to running.
- Very specific: line 70
Keep outputs in the node's declared output location when one is specified.
- Very specific: line 74
Run render after structural edits.
- Distinctive: line 80
Use the viewer only when the user wants a visual overview.
- Distinctive: line 90
Read references/workgraph-schema.md when editing JSON directly or extending the engine.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Convert ambiguous work into a project-local graph that a human can understand and Codex can execute safely. Keep .workgraph/workgraph.json as the source of truth. Treat generated Markdown and HTML as projections.
Start
- Find the goal's project directory. If none exists, ask where to keep it.
- Check for
.workgraph/workgraph.json. - If it exists, load and validate it before asking new questions.
- If it does not exist, interview the user one question at a time:
- What exact outcome must exist?
- What constraints or non-goals matter?
- What work can run independently?
- Which task truly needs another task's result?
- Where must results merge and be checked?
- Which irreversible or expensive action needs the user's last yes?
- Summarize the proposed nodes and true dependencies. Get approval for the whole graph before execution.
Do not treat chronological preference as dependency. Add an edge only when the downstream node cannot start without the upstream output.
Use the engine
Run scripts/workgraph.py with Python 3. It uses only the standard library.
python3 <skill-dir>/scripts/workgraph.py init <goal-dir> \
--title "目标名称" \
--goal "可验收的最终结果"
python3 <skill-dir>/scripts/workgraph.py add-node <goal-dir> \
--id research \
--title "研究约束" \
--output "约束清单"
python3 <skill-dir>/scripts/workgraph.py add-node <goal-dir> \
--id prototype \
--title "制作原型" \
--depends-on research \
--output "可验证原型"
python3 <skill-dir>/scripts/workgraph.py validate <goal-dir>
python3 <skill-dir>/scripts/workgraph.py approve <goal-dir>
python3 <skill-dir>/scripts/workgraph.py ready <goal-dir> --jsonPrefer engine commands over hand-editing. If hand-editing is materially faster, validate and render immediately afterward.
Execute
- Never execute a
draftgraph. - After explicit whole-graph approval, run
approve. - Query
ready --json. Low-risk ready nodes may run automatically within the user's authorization. - Before starting a node, set it to
running; when evidence exists, set it toreviewordone. - Append discoveries, decisions, blockers, and next steps:
python3 <skill-dir>/scripts/workgraph.py note <goal-dir> \
--node research \
--kind finding \
--text "发现真实约束"- Pause at every
gatenode and everyhighrisk node. Continue only after explicit human approval, then pass--human-approved. - Recompute ready nodes after every state change. Do not infer readiness from visual position.
- Keep outputs in the node's declared
outputlocation when one is specified.
Show progress
Run render after structural edits. The engine produces:
.workgraph/WORKGRAPH.md: reviewable documentation view..workgraph/viewer.html: optional self-contained, read-only visual view..workgraph/RUNNING_NOTES.md: chronological findings, decisions, blockers, and next steps.
Use the viewer only when the user wants a visual overview. Do not make it a second source of truth.
Node language
task: one job that could be handed to one assistant.merge: combine parallel outputs and verify them.gate: the user's last yes before an expensive, external, irreversible, or high-risk action.depends_on: only IDs whose output is required to start.risk:low,medium, orhigh.
Read references/workgraph-schema.md when editing JSON directly or extending the engine. Read references/operating-model.md when deciding approvals, Agent execution, recovery, or completion semantics.
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.

