agentleFS
obb396193-codeobb396193-code/map-workflow-skill/skills/map-workflow/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. tranhieutt/software_development_department★ 72same 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
  1. Distinctive:

    If it exists, load and validate it before asking new questions.

    line 14
  2. Distinctive:

    If it does not exist, interview the user one question at a time:

    line 15
  3. Distinctive:

    Do not treat chronological preference as dependency.

    line 24
  4. Very specific:

    Run scripts/workgraph.py with Python 3.

    line 28
  5. Distinctive:

    Prefer engine commands over hand-editing.

    line 51
  6. Very specific:

    Never execute a draft graph.

    line 55
  7. Very specific:

    After explicit whole-graph approval, run approve.

    line 56
  8. Very specific:

    Before starting a node, set it to running.

    line 58
  9. Very specific:

    Keep outputs in the node's declared output location when one is specified.

    line 70
  10. Very specific:

    Run render after structural edits.

    line 74
  11. Distinctive:

    Use the viewer only when the user wants a visual overview.

    line 80
  12. Distinctive:

    Read references/workgraph-schema.md when editing JSON directly or extending the engine.

    line 90

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Find the goal's project directory. If none exists, ask where to keep it.
  2. Check for .workgraph/workgraph.json.
  3. If it exists, load and validate it before asking new questions.
  4. 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?
  5. 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> --json

Prefer engine commands over hand-editing. If hand-editing is materially faster, validate and render immediately afterward.

Execute

  1. Never execute a draft graph.
  2. After explicit whole-graph approval, run approve.
  3. Query ready --json. Low-risk ready nodes may run automatically within the user's authorization.
  4. Before starting a node, set it to running; when evidence exists, set it to review or done.
  5. Append discoveries, decisions, blockers, and next steps:
python3 <skill-dir>/scripts/workgraph.py note <goal-dir> \
  --node research \
  --kind finding \
  --text "发现真实约束"
  1. Pause at every gate node and every high risk node. Continue only after explicit human approval, then pass --human-approved.
  2. Recompute ready nodes after every state change. Do not infer readiness from visual position.
  3. Keep outputs in the node's declared output location 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, or high.

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.