architecture-diagram

architecture-diagram is a skill for Claude Code, Codex from Cocoon-AI/architecture-diagram-generator. It costs 37 tokens per session (2,419 once invoked), scanned A, original, MIT.

A skill for creating self-contained dark-themed architecture diagrams as HTML files with inline SVG. Architecture diagrams show how software, infrastructure, cloud services, security components, and networks fit together.

In plain words
What is it for?
Creating diagrams of application systems, cloud infrastructure, networks, security setups, databases, backends, frontends, and message buses.
Why use it?
It provides a defined visual style and layout guidance for technical diagrams. Keeping the SVG inside the HTML makes each diagram easier to share as a single file.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating diagrams of application systems, cloud infrastructure, networks, security setups, databases, backends, frontends, and message buses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cocoon-ai/architecture-diagram-generator/architecture-diagram
About the project

Architecture Diagram Generator is a Claude skill that turns a plain-language system description into a standalone dark-themed HTML architecture diagram. It is for people who need to create, revise, share, or export system diagrams without specialized design software, and the catalogue provides the skill itself.

Cocoon-AI/architecture-diagram-generator · 7,546 stars · on GitHub

Install

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.

Any agent
npx skills add Cocoon-AI/architecture-diagram-generator --skill architecture-diagram
Clone the repo
git clone --depth 1 https://github.com/Cocoon-AI/architecture-diagram-generator

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for architecture-diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/cocoon-ai/architecture-diagram-generator/architecture-diagram/github.svg)](https://agentmods.dev/skills/cocoon-ai/architecture-diagram-generator/architecture-diagram)
Your own site
<a href="https://agentmods.dev/skills/cocoon-ai/architecture-diagram-generator/architecture-diagram"><img src="https://agentmods.dev/badge/skills/cocoon-ai/architecture-diagram-generator/architecture-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.

agentmods 80×15 button for architecture-diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/cocoon-ai/architecture-diagram-generator/architecture-diagram"><img src="https://agentmods.dev/badge/skills/cocoon-ai/architecture-diagram-generator/architecture-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.02419
Opus 5.5 $0.00015 $0.00968
Sonnet 5.5 $0.00007 $0.00484
Haiku 4.5 $0.00004 $0.00242

Measured 2mo ago against content hash a8dc11b2a648, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architecture-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 2mo 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.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

architecture-diagram/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Architecture Diagram Skill

Create professional technical architecture diagrams as self-contained HTML files with inline SVG graphics and CSS styling.

Version 1.1 · MIT License · Authored by Cocoon AI

Design System

Color Palette

Use these semantic colors for component types:

Component Type Fill (rgba) Stroke
Frontend rgba(8, 51, 68, 0.4) #22d3ee (cyan-400)
Backend rgba(6, 78, 59, 0.4) #34d399 (emerald-400)
Database rgba(76, 29, 149, 0.4) #a78bfa (violet-400)
AWS/Cloud rgba(120, 53, 15, 0.3) #fbbf24 (amber-400)
Security rgba(136, 19, 55, 0.4) #fb7185 (rose-400)
Message Bus rgba(251, 146, 60, 0.3) #fb923c (orange-400)
External/Generic rgba(30, 41, 59, 0.5) #94a3b8 (slate-400)

Typography

Use JetBrains Mono for all text (monospace, technical aesthetic):

<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">

Font sizes: 12px for component names, 9px for sublabels, 8px for annotations, 7px for tiny labels.

Visual Elements

Background: #020617 (slate-950) with subtle grid pattern:

<pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">
  <path d="M 40 0 L 0 0 0 40" fill="none" stroke="#1e293b" stroke-width="0.5"/>
</pattern>

Component boxes: Rounded rectangles (rx="6") with 1.5px stroke, semi-transparent fills.

Security groups: Dashed stroke (stroke-dasharray="4,4"), transparent fill, rose color.

Region boundaries: Larger dashed stroke (stroke-dasharray="8,4"), amber color, rx="12".

Arrows: Use SVG marker for arrowheads:

<marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">
  <polygon points="0 0, 10 3.5, 0 7" fill="#64748b" />
</marker>

Arrow z-order: Draw connection arrows early in the SVG (after the background grid) so they render behind component boxes. SVG elements are painted in document order, so arrows drawn first will appear behind shapes drawn later.

Read the full file on GitHub · 178 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 2mo ago First seen · 178 lines · 37 tokens per session scan A a8dc11b2a648

Subscribe to this mod's changes

architecture-diagram is a skill published in the GitHub repository Cocoon-AI/architecture-diagram-generator (7,546 stars, last pushed 5mo ago), licensed MIT. It adds 37 tokens to every session and 2,419 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

architecture-diagram compared with skills from other repositories

architecture-diagram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architecture-diagramCocoon-AI/architecture-diagram-generatorSkill7.5k5mo agoMITA37Claude Code, Codex
webgl-holographic-foilnexu-io/open-designSkill106ktodayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill106ktodayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill106ktodayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k3d agoMITA52Codex
glance-canonical-layoutsandroid/skillsSkill10kyesterdayApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.6ktodayMITA47Claude Code