making-diagrams
Skill82 starsChanged 5 months agoApache-2.0View on GitHub
Use when the user wants a flowchart, architecture diagram, sequence diagram, standalone data plot, pie, or state machine — a render_diagram page (one component per call)
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- building-compute-guisSkill
- building-walkthroughsSkill
- making-visualsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
If the user wants *interactive controls* driving a chart, that's gui-maker's territory (render_gui) — see …
- Very specific: line 22
Layout engine: default dagre runs in the browser.
- Distinctive: line 34
Keep node labels short (2–3 words).
≈ “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
Making Diagrams
Typical flow, two tool calls total: load the render_diagram schema via
ToolSearch → write the spec → call the tool once. The tool description IS
the full grammar (all five components: diagram, fsm, sequence, plot, pie) —
trust it; this skill only adds the choices. A success reply means done: do
not read the output back or re-render.
If the user wants interactive controls driving a chart, that's gui-maker's
territory (render_gui) — see thousand-words:building-compute-guis.
Choices that matter
- Output:
htmlgives a View/Edit page (drag, rewire, recolor, export SVG in the browser);svgis a static embeddable file. Default to html when the user might tweak it, svg when they asked for an image or embed. - Layout engine: default dagre runs in the browser;
"engine": "graphviz"bakes hierarchical ranks at generation time — better for deep DAGs, identical output everywhere. - Edge routing:
"routing": "straight"|"curved"—diagramdefaults tostraight(direct border-to-border lines),fsmdefaults tocurved. Set"curved"on adiagramwhen a straight edge would cross an intermediate node in a dense multi-rank graph. Edge labels sit beside/above the line, never over the arrowhead. Parallel edges between the same node pair bow apart under straight routing so they stay distinguishable. - Grouping: set
groupper node; groups drive shape (and color when"mono": false). Group by kind (service/datastore/queue), not by importance. - Keep node labels short (2–3 words); the layout pays for every long label.
- Without MCP registered, render from the CLI:
node ${CLAUDE_PLUGIN_ROOT}/scripts/render-spec.js diagram spec.json out.html
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.

