diagram-driven-execution
Follows a provided Mermaid diagram step-by-step, managing task states through a deterministic tracking system.
Install
mkdir -p .claude/skills/diagram-driven-execution && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14423" && unzip -o skill.zip -d .claude/skills/diagram-driven-execution && rm skill.zipInstalls to .claude/skills/diagram-driven-execution
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use this skill when the user supplies a mermaid diagram that represents a process the agent must follow step-by-step with deterministic tracking. Two modes via session SQL todos table (both produce the Copilot visual plan widget): simple (mode="simple"; up to 15 nodes, agent reads diagram from context, inserts todos+todo_deps, no parse script, no gates/loops) and advanced (default mode="advanced"; gates with multi-way routing and escalation, bounded loops via pre-expansion, deterministic parse via parse-diagram.py). Activate on: "follow this diagram", "execute this workflow", "enforce these steps", "track against this state machine", "drive this process", "run this mermaid as a plan", "step me through this flowchart", or any moment a diagram is the source of truth for a procedure. Does NOT execute node bodies; node work is delegated to subagents, tools, or the calling thread.Key capabilities
- →Execute Mermaid diagrams step-by-step
- →Track process with deterministic SQL-backed storage
- →Enforce transition order between diagram nodes
- →Delegate node work to subagents or tools
- →Handle gate nodes with multi-way routing
- →Pre-expand loop nodes into sequential iterations
How it works
The skill interprets a Mermaid diagram as a process contract, initializing an execution plan in a SQL store. It then drives nodes to completion, enforcing transition order and delegating node work.
Inputs & outputs
When to use diagram-driven-execution
- →Following a multi-step workflow diagram
- →Enforcing process transitions for complex tasks
- →Driving state-machine based operations
About diagram-driven-execution
This skill uses Mermaid diagrams as a process contract. It manages task transitions, enforces order, and delegates node work to subagents or specific tools.
>-
When not to use it
- →When the diagram contains unsupported v1 grammar syntax
- →When `dde-simple` mode is used with gate or loop nodes
- →When re-planning an existing diagram with the same `design_id`
Limitations
- →Discipline-based enforcement only - no script-level transition gate.
- →`dde-simple` rejects gate/loop nodes at grammar-check time (B10).
- →v1 grammar excludes subgraphs, composite states, classDefs, click handlers
How it compares
This skill uses Mermaid diagrams for deterministic, SQL-backed process execution and tracking, which differs from manual process management or less structured workflow automation.
Compared to similar skills
diagram-driven-execution side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| diagram-driven-execution (this skill) | 0 | 4mo | Review | Advanced |
| draw | 0 | 5mo | Review | Beginner |
| printable | 0 | 6mo | Review | Advanced |
| fritzing-custom-component-workflow | 0 | 4mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
draw
Anhvu1107
ALWAYS use this when the request matches Draw: Vector graphics and diagram creation, format conversion (ODG/SVG/PDF) with LibreOffice Draw.
printable
rohittp0
Use when the user wants to create, design, or build a 3D model for 3D printing using OpenSCAD. Triggers on mentions of 3D printing, OpenSCAD, STL export, printable parts, or physical object design.
fritzing-custom-component-workflow
th3Wheel
Use this skill to create or integrate a custom Fritzing part end-to-end with fewer connector and SVG errors.
trello
openclaw
Manage Trello boards, lists, and cards via the Trello REST API.
ultrathink
dashed
Invoke deep sequential thinking for complex problem-solving. Use when the user says 'use ultrathink', 'ultrathink', or when tackling problems that require careful step-by-step reasoning, planning, hypothesis generation, or multi-step analysis.
system-design
lagz0ne
Use when designing, architecting, or planning a new system from requirements or ideas - transforms concepts into navigable design catalog using EventStorming methodology, Mermaid diagrams, and progressive elaboration through 5 phases (Requirements, Big Picture, Processes, Data/Flows, Integration)