/agent-toolkit-complete:architecture-diagramfrom agent-toolkit-complete
Creates self-contained HTML architecture diagrams from a JSON model. Supports interactive Lucidchart-style explainers with selectable flows, hover cards, and inventory, plus poster mode for static exports. Exports to Mermaid, D2, draw.io, SVG, or PNG.
Ships in agent-toolkit-complete. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn a real system into a diagram that a stakeholder, a new engineer or an incoming operator can read in five minutes, and that an on-call engineer can still trust in detail.
The output is one self-contained .html file that opens directly in a browser. There are two modes:
| Mode | When | How |
|---|---|---|
| Interactive (default) | Environment explainers, handovers, "how does X reach Y", anything with more than one path worth explaining | JSON model → scripts/build.py → SVG canvas with selectable flows, hover cards, inventory, light/dark themes |
| Poster | One static picture for a slide or doc; dark technical look; PNG/PDF export button | Hand-edit assets/poster-template.html, see references/poster-mode.md |
If the user asks for another format (Mermaid, D2, draw.io, SVG, PNG, PDF), build the interactive model anyway and translate it, see references/other-formats.md.
Pairs with:
architecture/c4-model to decide what to draw at each level before rendering.tooling/mermaid for lightweight text diagrams that live in the repo; this skill covers the rendered artifact.cloud/cloud-design-patterns / cloud/aws-well-architected-review when the diagram feeds a design review.Not for: UI mockups (design/frontend-design), Figma work (design/figma*), or a system that does not exist yet (draw it, but mark every box planned).
| Item | Default |
|---|---|
| Format | One .html file, no build step for the reader, works offline except web fonts |
| Language | The language the audience reads (ask if the audience differs from the requester) |
| Location | Where the user asks; otherwise a non-tracked folder (never commit it to someone else's repo unasked) |
| Content | Diagram + flows step by step + inventory + "not there yet" + source line |
| Safety | No IP addresses, account/project IDs, hostnames that are not public, secrets or personal data |
Read, do not assume. In order of authority:
docker-compose, serverless configs.kubectl get applications, kubectl get ns). Say in the page footer whether it reflects desired state (git) or live state, and the date.Write down for every component: name, what it does in one sentence, how it is reached, and the file that defines it. Those become the hover card.
Correct the request when the facts disagree. If the user says "show the user going through the VPN" and the config shows users on public HTTPS while only operators use the VPN, draw what is true, show both paths, and put a "Read this first" callout at the top explaining the difference. Tell the user in your reply too.
Copy assets/example-model.json and edit it. The schema is in references/model-schema.md. In short:
Pick flows that answer real questions: "how does a user get in", "how does an operator get in", "how does code get deployed", "where do secrets come from", "where do I look when it breaks", "where does data live".
Follow references/layout-and-routing.md. The rules that matter most:
python3 scripts/build.py model.json -o diagram.html --strict
build.py (Python standard library only) validates the model (unknown ids, overlapping boxes, text that will overflow its box, edges that cross boxes or use an unknown flow), downloads the brand icons it needs from Simple Icons at a pinned version, caches and inlines them, and writes one HTML file. Without network, or with --offline, it falls back to letter monograms and says so. Fix every warning before you continue.
Icons: si:<slug>|<hex> uses a Simple Icons slug (kubernetes, argo, grafana, postgresql, tailscale, terraform, githubactions...). g:<name>|<hex> uses a built-in glyph (user, laptop, db, bucket, key, shield, gear, globe, wave, folder, net, lb, clock, box, cpu, bell, code, lock, queue). m:<letters>|<hex> draws a monogram for brands Simple Icons does not carry.
Render and read the screenshots before you hand it over:
bash scripts/render.sh diagram.html shots/ model.json # "all flows" + one PNG per flow
Check: no text leaves its box, no label pill sits on a box, every flow's arrows end on the right component, faded nodes in a flow view are really not part of it, dark mode is readable. Iterate on the model, not on the generated HTML.
In your reply: where the file is, what each flow shows, what the diagram is built from (git vs live, date), and any correction you made to the request. Offer a translation or another format. Do not publish the page anywhere without the user's go-ahead.
Copy assets/poster-template.html, edit the SVG by hand and keep the export toolbar intact. Palette, spacing, legend and toolbar rules are in references/poster-mode.md. The same safety rules and the "draw what is true" rule apply.
<ip>, <account> placeholders.| File | Purpose |
|---|---|
assets/engine.html | Interactive page template and renderer (DOM-safe, no innerHTML) |
assets/example-model.json | Complete example: web app on managed Kubernetes with SSO, tailnet operator access, GitOps and observability |
assets/poster-template.html | Static dark HTML+SVG template with PNG/PDF/clipboard export |
scripts/build.py | Validate a model, fetch icons, write the HTML |
scripts/render.sh | Headless Chromium screenshots of every flow |
references/model-schema.md | Every field of the model |
references/layout-and-routing.md | Grid, lanes, label placement, common mistakes |
references/other-formats.md | Mermaid, D2, draw.io, SVG and PNG exports from the same model |
references/poster-mode.md | Design system and rules for the static poster template |
assets/engine.html (opens in a new tab)assets/example-model.json (opens in a new tab)assets/poster-template.html (opens in a new tab)references/layout-and-routing.md (opens in a new tab)references/model-schema.md (opens in a new tab)references/other-formats.md (opens in a new tab)references/poster-mode.md (opens in a new tab)scripts/build.py (opens in a new tab)scripts/render.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Kubernetes, Docker, AWS, GCP, Azure
118 skills in this plugin
/adrWHAT — Create and maintain Architecture Decision Records (ADRs) per the process. Covers when to write an ADR, required sections, review, and linking to epics/PRs. English for cross-team artifacts unless the user asks otherwise./agreementWHAT - Capture explicit agreements, terms, parties involved, dates, validity, and linked work items using the Agreement Document structure./arenaRun a cross-vendor multi-model candidate bakeoff in isolated git worktrees, apply blinded cross-vendor judging, graft winning elements, and emit candidate-SHA-bound evidence receipts.npx claudepluginhub ulises-jeremias/agent-toolkit --plugin agent-toolkit-completeOther plugins' skills for the same job