architecture-diagrams

architecture-diagrams is a skill for Claude Code, Codex from bharathgnana/archdiagram. It costs 85 tokens per session (1,071 once invoked), scanned A, original, MIT.

A tool for turning a written cloud-system description into an editable architecture diagram using official AWS, Azure, Google Cloud, or Kubernetes icons. It can export PDF, draw.io, or VSDX files.

In plain words
What is it for?
Use it to map cloud services and their connections, validate the diagram specification, and produce files for diagram editors or sharing.
Why use it?
It replaces manually placing and labeling service boxes with a structured diagram that uses recognizable vendor icons and can be edited later.

Skill for Claude CodeCodex

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

Good fit Use it to map cloud services and their connections, validate the diagram specification, and produce files for diagram editors or sharing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bharathgnana/archdiagram/skill
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 bharathgnana/archdiagram --skill skill
Clone the repo
git clone --depth 1 https://github.com/bharathgnana/archdiagram

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-diagrams

README.md
[![agentmods](https://agentmods.dev/badge/skills/bharathgnana/archdiagram/skill/github.svg)](https://agentmods.dev/skills/bharathgnana/archdiagram/skill)
Your own site
<a href="https://agentmods.dev/skills/bharathgnana/archdiagram/skill"><img src="https://agentmods.dev/badge/skills/bharathgnana/archdiagram/skill/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-diagrams

Your own site · 80×15
<a href="https://agentmods.dev/skills/bharathgnana/archdiagram/skill"><img src="https://agentmods.dev/badge/skills/bharathgnana/archdiagram/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,071 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.
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.00085 $0.01071
Opus 5 $0.00043 $0.00535
Sonnet 5 $0.00017 $0.00214
Haiku 4.5 $0.00009 $0.00107

Measured 9d ago against content hash 7a394e36449e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

architecture-diagrams 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 9d 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.

skill/SKILL.md · 107 lines

How it starts

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

Architecture Diagrams (vendor-icon)

Translate an architecture description into a small JSON spec, then render it with the archdiagram engine. Nodes become the real vendor service icons, not labelled boxes.

Workflow

- [ ] 1. Read the architecture (text, image, or existing diagram)
- [ ] 2. Map each component to a catalog service id (search the catalog)
- [ ] 3. Write the JSON spec (nodes, edges, groups)
- [ ] 4. Validate the spec
- [ ] 5. Render to the requested format(s)

Setup (once)

git clone https://github.com/bharathgnana/archdiagram.git
cd archdiagram
python -m tools.download_icons          # fetch vendor icons into ./icons (not committed)
cd node && npm install && cd ..         # optional: enables PDF + crisp raster icons

The Python core is stdlib-only. Node is only needed for .pdf and for rasterising SVG icons into .vsdx/.pdf.

Step 2: find service ids

python -m archdiagram.cli catalog search "kubernetes"
python -m archdiagram.cli catalog list --vendor azure

A service id is "<vendor>.<service_key>", e.g. azure.aks, aws.s3, gcp.cloud_run. Unknown ids still render as a clean vendor-accented fallback box, so prefer the closest real id and proceed.

Step 3: spec format

{
  "title": "Web platform on Azure",
  "direction": "LR",
  "groups": [
    { "id": "app", "label": "Application tier", "vendor": "azure" }
  ],
  "nodes": [
    { "id": "web", "service": "azure.app_service", "label": "Web App", "group": "app" },
    { "id": "aks", "service": "azure.aks",         "label": "AKS",     "group": "app" },
    { "id": "kv",  "service": "azure.key_vault",   "label": "Key Vault" }
  ],
  "edges": [
    { "source": "web", "target": "aks", "label": "api" },
    { "source": "aks", "target": "kv",  "label": "secrets" }
  ]
}

Rules:

  • direction: LR, RL, TB, or BT (default LR).
  • nodes[].service: required, "<vendor>.<service_key>".
  • nodes[].group: optional; must match a groups[].id.
  • nodes[].x / nodes[].y: optional explicit coordinates (override auto-layout).
  • edges[].source / target: must reference node ids. directed defaults true.
  • Layout is automatic and deterministic; only set coordinates to override.

Read the full file on GitHub · 107 lines

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. 9d ago First seen · 107 lines · 85 tokens per session scan A 7a394e36449e

Subscribe to this mod's changes

architecture-diagrams is a skill published in the GitHub repository bharathgnana/archdiagram (3 stars, last pushed 2mo ago), licensed MIT. It adds 85 tokens to every session and 1,071 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

azure-diagrams

Comprehensive technical diagramming toolkit for solutions architects, presales, and developers. Creates Azure architecture diagrams (800+ Azure service icons), business process flows (swimlanes, workflows), ERD diagrams (database schemas), project timelines, UI wireframes, and network topology diagrams. Perfect for…

cmb211087/azure-diagrams-skill · 85 tokens

drawio-aws

Use when the user asks for an AWS architecture diagram — VPC/networking, event-driven, landing zone, multi-AZ, serverless pipeline, or any diagram built with AWS service icons. Builds with the declarative layout engine using ground-truth mxgraph.aws4 stencils, validates (stencils/colors/nesting/geometry), runs a…

sparklabx/drawio-ai-kit · 94 tokens

aws-architecture-diagram

AWS architecture diagrams — generate visual network topology diagrams from live AWS infrastructure. Use when drawing AWS network diagrams, visualizing VPCs, mapping Transit Gateway topology, or generating architecture documentation.

automateyournetwork/netclaw · 43 tokens

drawio-gcp

Use when the user asks for a GCP or Google Cloud architecture diagram — VPC/networking, GKE, Cloud Run, landing zone, multi-region, or any diagram built with GCP service icons. Builds with the declarative layout engine using ground-truth GCP stencils, validates (stencils/colors/nesting/geometry), runs a render-based…

sparklabx/drawio-ai-kit · 95 tokens

drawio-azure

Use when the user asks for an Azure architecture diagram — VNet/networking, App Service, AKS, landing zone, multi-region, or any diagram built with Azure service icons. Builds with the declarative layout engine using ground-truth Azure stencils, validates (stencils/colors/nesting/geometry), runs a render-based vision…

sparklabx/drawio-ai-kit · 89 tokens

aws-architecture-diagram

Generate validated AWS architecture diagrams as draw.io XML using official AWS4 icon libraries. Use this skill whenever the user wants to create, generate, or design AWS architecture diagrams, cloud infrastructure diagrams, or system design visuals. Also triggers for requests to visualize existing infrastructure from…

awslabs/agent-plugins · 110 tokens