Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add edmondop/diagram-claude-plugin --skill generate-diagramgit clone --depth 1 https://github.com/edmondop/diagram-claude-pluginWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/edmondop/diagram-claude-plugin/generate-diagram)<a href="https://agentmods.dev/skills/edmondop/diagram-claude-plugin/generate-diagram"><img src="https://agentmods.dev/badge/skills/edmondop/diagram-claude-plugin/generate-diagram/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/edmondop/diagram-claude-plugin/generate-diagram"><img src="https://agentmods.dev/badge/skills/edmondop/diagram-claude-plugin/generate-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00118 | $0.04831 |
| Opus 5 | $0.00059 | $0.02416 |
| Sonnet 5 | $0.00024 | $0.00966 |
| Haiku 4.5 | $0.00012 | $0.00483 |
Grade A, and why
generate-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 452 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Diagram Generation
Generate professional diagrams by routing each request to the best-fit
tool. For UML, C4, and DDD diagram types, use PlantUML (text-based,
standard notation). For everything else, use Python libraries via uv
inline scripts. For editable hand-drawn diagrams, use Excalidraw JSON.
Interaction Protocol
-
Classify the diagram type. If ambiguous, ask:
What kind of diagram?
- C4 (Context / Container / Component)
- UML Use Case
- UML Activity / BPMN-style workflow
- UML State Machine
- DDD Context Map
- Subdomain Decomposition (WBS)
- ERD (Conceptual or Logical)
- Flowchart / pipeline
- Architecture (generic boxes + arrows)
- Cloud/infra architecture (AWS, GCP, K8s icons)
- Pyramid / stacked layers
- Sequence diagram
- Network / DAG
- Block diagram
- Excalidraw (editable, hand-drawn sketch style)
-
Pick the tool from the routing table. For PlantUML types, do NOT offer Python alternatives — PlantUML is the only correct choice for standard notation. Skip to step 3.
-
Ask output path: "Where should I save the diagram?" Default to current directory if the user doesn't specify.
-
Check prerequisites based on the tool:
For PlantUML:
plantuml -version 2>/dev/null || docker image inspect plantuml/plantuml-cli:plantuml-cli-v1.0.1 >/dev/null 2>&1If neither is available, show:
- macOS:
brew install plantuml - Docker:
docker pull plantuml/plantuml-cli:plantuml-cli-v1.0.1 - Do NOT fall back to a Python approximation. Stop and ask the user to install one of the above.
For Graphviz-dependent Python libraries:
dot -V - macOS:
-
Load the relevant reference for the tool you picked (see below). Generate the diagram following that reference.
- PlantUML: write a
.pumlfile, render withplantuml -tsvgor Docker. Open the SVG. - Python: write a
uv run-compatible inline script. Run it. Open the SVG. - Excalidraw: write a
.excalidrawJSON file. Open it.
- PlantUML: write a
What ships with it
37 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/bounded-context-naming.md 2.0 KB
- references/examples/architecture-graphviz.py 5.8 KB runs code
- references/examples/block-blockdiag.py 2.1 KB runs code
- references/examples/block-schemdraw.py 1.3 KB runs code
- references/examples/cloud-arch-diagrams.py 1.3 KB runs code
- references/examples/erd-graphviz.py 3.8 KB runs code
- references/examples/flowchart-graphviz.py 2.8 KB runs code
- references/examples/flowchart-schemdraw.py 1.4 KB runs code
- references/examples/fsm-graphviz.py 2.7 KB runs code
- references/examples/generate_fixtures.py 6.1 KB runs code
- references/examples/lint_diagram_source.py 3.6 KB runs code
- references/examples/network-graphviz.py 2.7 KB runs code
- references/examples/network-networkx.py 2.1 KB runs code
- references/examples/output/architecture-graphviz.svg 13 KB
- references/examples/output/sequence-svgwrite.svg 5.7 KB
- references/examples/pyramid-drawsvg.py 2.0 KB runs code
- references/examples/pyramid-svgwrite.py 2.4 KB runs code
- references/examples/sequence-seqdiag.py 1.7 KB runs code
- references/examples/sequence-svgwrite.py 5.1 KB runs code
- references/examples/subdomain-bc-mapping.py 14 KB runs code
- references/examples/test_svg_quality.py 1.1 KB runs code
- references/excalidraw-elements/elements/frames.md 1.6 KB
- references/excalidraw-elements/elements/freedraw.md 1.4 KB
- references/excalidraw-elements/elements/images.md 2.8 KB
- references/excalidraw-elements/elements/linear.md 8.6 KB
- references/excalidraw-elements/elements/polygons.md 5.7 KB
- references/excalidraw-elements/elements/shapes.md 4.0 KB
- references/excalidraw-elements/elements/text.md 5.1 KB
- references/excalidraw-elements/styling/colors.md 1.5 KB
- references/excalidraw-elements/styling/fill-stroke.md 2.3 KB
- references/excalidraw-elements/styling/grouping.md 1.8 KB
- references/excalidraw-elements/styling/positioning.md 1.8 KB
- references/excalidraw.md 3.7 KB
- references/graphviz.md 6.4 KB
- references/plantuml.md 3.8 KB
- references/python-diagram-libraries.md 3.2 KB
- references/python-svg-libraries.md 7.2 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 452 lines · 118 tokens per session scan A 04f76cc41042
generate-diagram is a skill published in the GitHub repository edmondop/diagram-claude-plugin (2 stars, last pushed 3mo ago), licensed MIT. It adds 118 tokens to every session and 4,831 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
webgl-holographic-foil
A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.
html-ppt-hermes-cyber-terminal
OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.
html-ppt-taste-brutalist
16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).
visual-ralph
Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.
accessibility
Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.
make-resume
A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.