agentleFS
jycd25jycd25/thousand-words/skills/making-diagrams/SKILL.md

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)

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
  1. Very specific:

    If the user wants *interactive controls* driving a chart, that's gui-maker's territory (render_gui) — see …

    line 14
  2. Very specific:

    Layout engine: default dagre runs in the browser.

    line 22
  3. Distinctive:

    Keep node labels short (2–3 words).

    line 34

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

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: html gives a View/Edit page (drag, rewire, recolor, export SVG in the browser); svg is 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" — diagram defaults to straight (direct border-to-border lines), fsm defaults to curved. Set "curved" on a diagram when 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 group per 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

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.