agentleFS
bharathgnanabharathgnana/archdiagram/skill/SKILL.md

architecture-diagrams

Skill3 starsChanged 5 months agoMITView on GitHub

Turn a natural-language cloud architecture description into an editable diagram whose nodes are official vendor service icons (Azure, AWS, GCP, Kubernetes), exported as PDF, draw.io, or VSDX (Lucid-importable). Use when the user asks to draw, diagram, or visualize a cloud/system architecture, or to produce a .drawio/.vsdx/.pdf architecture diagram with real service icons.

  • Installs packages

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the engine is running as an MCP server (python -m mcp_server.server), call the tools directly: validate_spec(spec_json), …

    line 97

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Step 4-5: validate and render

python -m archdiagram.cli validate spec.json

python -m archdiagram.cli render spec.json -f pdf    -o out/arch.pdf
python -m archdiagram.cli render spec.json -f drawio -o out/arch.drawio --drawio-mode portable
python -m archdiagram.cli render spec.json -f vsdx   -o out/arch.vsdx

Choosing a format

WantUse
Reliable visual fidelity in Lucidchart (icons always render)pdf
Editable in draw.io / diagrams.netdrawio --drawio-mode native
Editable after Lucid/Visio import (embedded icons)drawio --drawio-mode portable or vsdx

Lucid does not map draw.io named stencils, so use portable (embedded icons) or pdf when the target is Lucidchart.

Using via MCP instead of the CLI

If the engine is running as an MCP server (python -m mcp_server.server), call the tools directly: validate_spec(spec_json), render_diagram(spec_json, fmt, out_path, drawio_mode), search_catalog(query), list_catalog(vendor).

Additional resources

  • Spec schema and engine details: ../README.md
  • Extend the catalog: add a service entry under archdiagram/registry/catalog_data/<vendor>.json and an icon source in tools/icon_sources.json.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.