Architecture Diagram Skill — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Architecture Diagram Skill (Plugin) and scored it 92/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 2 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 2 flagged
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
The text {match} tells the agent to skip the normal "ask the user first" gate. Used adversarially it removes the human-in-the-loop check before destructive or sensitive actions, turning a normally-gated agent into a fire-and-forget executor.
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<p align="center"> <img src="banner.svg" alt="Interactive Architecture Diagrams – animated nodes with flowing data packets" width="800" /> </p>
<h1 align="center">Interactive Architecture Diagrams</h1>
<p align="center"> <a href="https://www.mintlify.com/blog/skill-md"><b>Agent Skill</b></a> for Claude Code · Gemini CLI · GitHub Copilot CLI · OpenCode · Cursor<br/> Build click-through, animated system architecture diagrams as a single HTML file.<br/> No build step. No dependencies. One file you can email, host, or open locally. </p>
<p align="center"> <a href="#install"><b>Install</b></a> · <a href="#try-it"><b>Try It</b></a> · <a href="#example-prompts"><b>Examples</b></a> · <a href="skills/architecture-diagram/SKILL.md"><b>Skill Spec</b></a> </p>
Build click-through, animated system architecture diagrams as a single HTML file. Drop it into a workshop, design review, or onboarding doc and let people watch the data flow instead of reading static boxes-and-arrows.
This is an Agent Skill — a folder of instructions any compatible AI coding agent loads on demand. When you ask for an architecture diagram, this skill takes over and produces a self-contained architecture.html plus a companion architecture.md description. Works with Claude Code, Gemini CLI, GitHub Copilot CLI, OpenCode, Cursor, and any tool supporting the SKILL.md standard.
Each generated diagram includes:
RAG Query, Login, Ingest, …) and watch it play out step by stepoffline/online, dev/prod, v1/v2 (any keys; colors follow button order) to swap node labels, ports, and payloads in placeT (saved in localStorage)F to expand the canvas for presentations with the controls, flow tabs and step panel still at hand (below ~1140px wide the panel gives way to a one-line step summary); Escape to exitreferences/screenshot.js prints the same list and exits non-zero on JavaScript errors (1) or lint warnings (2)No build step. No dependencies. One HTML file you can email, host, or open locally.
Battle-tested on a public RAG workshop (Eskadra Bielik) and several internal design reviews.
| Situation | Use this? |
|---|---|
| "Show me how the auth flow works" (interactive, for a workshop) | Yes |
| "Design the RAG pipeline before we build it" (planning a new service) | Yes |
| "Build an architecture mockup we can iterate on with the team" | Yes |
| "Visualize our microservices and how they communicate" | Yes |
| "Map out the CI/CD pipeline for onboarding docs" | Yes |
| "Show the data flow through our ETL pipeline" | Yes |
| "Draw a sequence diagram for this PR" (static, lives in markdown) | No — a Mermaid sequence diagram inline is simpler |
| "I just need a static boxes-and-arrows topology" (no flows/steps) | No — a Mermaid flowchart is enough |
The differentiator is interactivity + sequenced data flow. If the value is "click through it and watch what happens," this skill applies.
/plugin marketplace add konraddzbik/architecture-diagram-skill
/plugin install architecture-diagramThat's it. The skill activates automatically whenever you ask for an architecture diagram, system flow, RAG pipeline, etc.
The skill lives in skills/architecture-diagram/ inside this repo, so clone to a temp dir and copy that subfolder into place (Claude Code discovers SKILL.md exactly one level under skills/ — cloning the whole repo would nest it too deep).
Personal install (available in all your projects):
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram ~/.claude/skills/architecture-diagramProject install (committed to a repo, shared with your team):
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram .claude/skills/architecture-diagramgemini skills install https://github.com/konraddzbik/architecture-diagram-skillThis installs to ~/.gemini/skills/ (user-level, all projects). To install for just the current project:
gemini skills install https://github.com/konraddzbik/architecture-diagram-skill --scope workspaceVerify it loaded:
gemini skills listIf you're already in a session, reload without restarting:
/skills reload#### Manual install (Gemini CLI)
Personal install — available in all your projects:
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram ~/.gemini/skills/architecture-diagramProject install — committed to a repo, shared with your team:
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram .gemini/skills/architecture-diagramOr use the cross-tool .agents/skills/ path (works in Gemini CLI, OpenCode, and other compatible tools):
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram .agents/skills/architecture-diagramRequires GitHub CLI ≥ 2.90.0:
gh skill install konraddzbik/architecture-diagram-skill architecture-diagramThe skill is installed to .github/skills/ in your current project by default. To install it globally for all projects:
gh skill install konraddzbik/architecture-diagram-skill architecture-diagram --scope userIf you're already in a copilot session, reload without restarting:
/skills reload#### Manual install (Copilot CLI)
Personal install — available in all your projects:
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram ~/.copilot/skills/architecture-diagramProject install — committed to a repo, shared with your team:
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram .github/skills/architecture-diagramProject install — committed to a repo, shared with your team:
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram .opencode/skills/architecture-diagramPersonal install — available in all your projects:
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram ~/.config/opencode/skills/architecture-diagramOr use the Claude-compatible path (OpenCode reads .claude/skills/ too):
git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cp -r /tmp/arch-skill/skills/architecture-diagram ~/.claude/skills/architecture-diagramThe skill activates automatically when you ask for an architecture diagram, system flow, RAG pipeline, etc.
SKILL.md must sit directly inside architecture-diagram/, so GitHub's Download ZIP of the whole repo won't work): git clone https://github.com/konraddzbik/architecture-diagram-skill /tmp/arch-skill
cd /tmp/arch-skill/skills && zip -r ~/architecture-diagram.zip architecture-diagramarchitecture-diagram.zipOnce installed, just describe what you want. If you don't know where to start, just type:
Prepare an architecture view of this repository.
Claude will generate an architecture.html and architecture.md in your working directory. Open the HTML in a browser to see the interactive diagram — or ask Claude to show the results right in the terminal.
The skill triggers on phrases like architecture diagram, system flow, RAG flow, agentic flow, service map, or the Polish equivalents (diagram architektury, klikany diagram).
OAuth2 login flow
Build an interactive architecture diagram for an OAuth2 login flow with PKCE. Show the redirect dance between client, authorization server, and resource API step by step. Include a dev/prod mode toggle.
RAG pipeline design
I'm designing a RAG pipeline with embedding retrieval, a reranker, and an LLM. Show me a click-through diagram I can use in a design review. Toggle between offline (Docker, local Qdrant) and online (Cloud Run, BigQuery) modes.
Event-driven microservices
Visualize an event-driven order system: API gateway → Kafka → three consumers (inventory, billing, notifications). Toggle between synchronous (REST fallback) and asynchronous (Kafka) modes.
CI/CD pipeline
Show our CI/CD pipeline: GitHub push → GitHub Actions → build → test → deploy to staging → approval gate → deploy to prod. Toggle between staging and production environments.
Data ingestion pipeline
Visualize a data pipeline: webhook events → SQS → Lambda → transform → write to Postgres + push to Elasticsearch. Show the happy path and the dead-letter-queue retry flow.
Multi-agent system
Draw an agentic AI system: user query → orchestrator agent → tool-calling agent (search, calculator, code exec) → synthesis agent → response. Show how context flows between agents.
Microservices with service mesh
Map our microservices: mobile app → API gateway → user service, product service, order service. Each talks to its own DB. Show the checkout flow and the search flow with an Istio service mesh.
If you upload an existing SOLUTION.md, OpenAPI spec, or README first, the skill will extract services, ports, and operations from it before asking clarifying questions — so the more architecture context you give it, the less it asks.
architecture-diagram-skill/
├── .claude-plugin/
│ ├── marketplace.json # Plugin marketplace manifest
│ └── plugin.json # Plugin metadata
├── .github/workflows/ci.yml # Runs scripts/check.js and the headless UI tests on every push / PR
├── scripts/
│ └── check.js # Dependency-free integrity checks (versions, examples, template)
├── tests/
│ └── ui.test.js # Headless-Chrome UI regression tests (puppeteer-core, see tests/README.md)
├── evals/ # Behavioral evals for `claude plugin eval` (see evals/README.md)
├── skills/
│ └── architecture-diagram/
│ ├── SKILL.md # Instructions Claude reads when activated
│ ├── assets/
│ │ ├── template.html # The drop-in diagram template (CSS + JS + SVG)
│ │ └── css-tokens.css # Standalone color/typography tokens for restyling
│ ├── examples/
│ │ ├── rag-eskadra-bielik.json # Real RAG system, 5 flows, offline/online modes
│ │ ├── auth-oauth2.json # OAuth2 + session flow, dev/prod modes
│ │ ├── event-driven.json # Kafka fan-out, v1 vs v2 migration modes
│ │ ├── cicd-pipeline.json # GitHub Actions deploy, staging/prod modes
│ │ └── agentic-tool-calling.json # Multi-agent AI with tool calls
│ └── references/
│ ├── flow-design-patterns.md # Layout heuristics, naming, sequencing
│ ├── component-library.md # Copy-paste node snippets
│ ├── validation.md # How to check a generated diagram (static check, screenshots, console)
│ └── screenshot.js # Optional puppeteer-based layout spot-check (prints lint warnings)
├── CHANGELOG.md
├── README.md
├── LICENSE
└── .gitignoreThe HTML template is the heart of the skill — Claude copies it and edits a handful of clearly marked regions (title/header, mode-toggle labels, flow tabs, the .node divs, and the flows object in JS; the template's top EDIT THESE THINGS comment is the authoritative list). Everything else (player, side panel, animations, wire renderer) just works.
Template content: <img width="1585" height="958" alt="image" src="https://github.com/user-attachments/assets/0677c5b3-8eff-4d79-acef-2a67a757e8a7" /> Dark theme: <img width="1585" height="958" alt="image" src="https://github.com/user-attachments/assets/4798bfff-89ac-4436-9c11-8a28aa086525" />
T). The preference is saved in localStorage. To make light the default, ask Claude to add class="light" to the <body> tag.R to reset to original positions. On touch screens nodes are tap-to-jump so the page keeps scrolling.F to expand the canvas full-screen; the mode toggle, flow tabs and the step panel stay on screen (on screens narrower than ~1140px the panel is hidden and a one-line step summary takes its place). Press Escape to exit.assets/css-tokens.css and ask it to swap the palette. The tokens are standalone — splice them into the template and you're done.user, orch (API / Service), compute, embed, vector, seed and ext (External: Stripe, Twilio, SaaS, hosted IdPs). Roles are color groups; the legend labels say what each color means in your diagram. An eighth role needs a --c-<role> variable in both the dark :root and body.light blocks, a .node[data-role="<role>"] rule, an arrowhead (ahMap entry + <marker>) and a legend item — rarely worth it, since more colors make the legend hard to read..html and .md). If you only want the HTML, say so explicitly.<link> tags at the top of the file for a 100% self-contained, air-gapped artifact.<meta> first.Found a bug, a layout pattern that doesn't work, or have an example system you'd like added? PRs welcome — especially new entries in examples/ showing real-world topologies.
When proposing changes to SKILL.md itself, please test that the description still triggers on the original phrases (architecture diagram, RAG flow, etc.) and doesn't over-trigger on static-diagram requests.
MIT — see LICENSE.
Built by @konraddzbik. Inspired by the design constraints of running real workshops where attendees need to see a system, not just read about it.
If you publish a diagram built with this skill, a link back is appreciated but not required.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.