dotfiles-agentsRepository
On this page

diagrams

Codex runs the installed helpers by absolute path from the consuming project. New diagram learnings stay in project memory and survive plugin refreshes.

Structural diagrams for repo docs, decks, and architecture briefings — one toolkit that picks the right tool for the job and feeds consistent SVG+PNG output pipelines with light/dark-friendly styling.

How it fits together

Picking the tool is the actual problem, so that is what the picture draws. The diagrams skill is the hub that routes you; whichever tool you land on, the output pipeline is shared.

flowchart LR
    Q[What are you drawing] --> Hub[diagrams routes the choice]
    Hub -->|Lives in markdown GitHub renders| MM[mermaid]
    Hub -->|Cloud architecture with provider icons| PY[diagrams: python library and graphviz]
    Hub -->|Hand-drawn whiteboard look| EX[excalidraw]
    Hub -->|An existing file to read or convert| DW[drawio]
    MM --> Out[Shared SVG and PNG output pipeline]
    PY --> Out
    EX --> Out
    DW --> Out

What you get

SkillWhat it does
diagramsThe hub — structural-diagram tool selection, cloud-architecture diagrams with provider icons via Python's diagrams library (Azure first), raw Graphviz dot for dependency graphs and trees, and the output pipelines the other skills feed.
mermaidMermaid for GitHub-rendered markdown — flowcharts, sequence diagrams, ERDs, state diagrams, and class diagrams, with the house rule that node labels carry no parentheses or special characters, light/dark theming, and mermaid-cli rendering to SVG/PNG through a script that installs its headless browser first.
drawioRead, convert, and headlessly export draw.io / diagrams.net files — compressed and uncompressed mxGraph XML, a stdlib Python decompression recipe, legacy-to-Mermaid conversion, and desktop-app CLI export to PNG/SVG.
excalidrawSketch-style architecture diagrams as .excalidraw files — uses the Excalidraw MCP tools when a session exposes them, otherwise authors the scene JSON directly (schema, arrow binding, labels), with SVG/PNG export guidance. Ships a bundled offline render loop: scripts/render_check.py draws the scene, screenshots it through headless Chromium, and lints it for overlaps, dangling bindings, orphan labels, frame escapes and text overflow — plus a design methodology (depth assessment, pattern library, large-diagram workflow, handover checklist).

Install

claude plugin install diagrams@dotfiles-agents

Honest scope

Structural diagrams only: data charts belong to a dataviz skill, deck theming to presentations. The cloud-architecture and Graphviz paths need graphviz installed (cli:graphviz); headless draw.io export needs the draw.io desktop app (cli:drawio); Mermaid renders natively on GitHub without any local install.

Since the decision-020 sweep this bundle is the only home for all four skills — they used to ship from solo-skills as well, and no longer do.