/aws-architecture-diagram:aws-architecture-diagramfrom aws-architecture-diagram
Generates interactive AWS architecture diagrams, animated UML sequence diagrams, guided walkthroughs, or before/after deltas as self-contained HTML files (also .drawio, PNG/GIF/SVG). Use for solution topology, request flows, or diagrams for docs/presentations.
Ships in aws-architecture-diagram. 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.
None: SKILL.md is the whole skill.
Drive the aws-architecture-diagram MCP server. Output is a single HTML file
that works from file:// — icons inlined, no CDN, no build step for whoever
opens it. Deep reference lives in this repo's AGENTS.md (authoring rules) and
README.md (setup, every tool, full examples); read them when a detail here is
not enough.
| The user is describing | Build |
|---|---|
| What the system is — services, VPCs, accounts, data paths | Architecture diagram |
| What the system does, in order — an auth handshake, a vend/provisioning flow, a saga, a pipeline run | Architecture + a sequence tab (same file, tab rail) |
| A change — what this migration/refactor adds, removes, keeps | Architecture with delta |
| Just the interaction, no topology | Standalone generate_sequence_diagram |
An ordering question answered with topology alone under-serves it: when the ask
is about sequence, pass sequence to generate_html_diagram rather than
cramming step numbers into edge labels.
One shot — generate_html_diagram({ title, services, connections, groups?, steps?, sequence?, direction? }). Default to this.
Incremental — diagram_create → diagram_add_services /
diagram_add_connections / diagram_add_groups / diagram_add_steps /
diagram_add_sequence / diagram_add_doc_tab (any order) → diagram_render.
Use it when you are reasoning the architecture out as you go, or when the
diagram is large enough that one payload would be unwieldy. Identical schema.
Then: validate_diagram before you hand the file over — it catches unresolved
icons, dangling connection endpoints, and orphaned parentId/step references
that otherwise show up as silent blanks in the browser.
"Amazon Simple Storage Service" or
"Amazon S3", spelled as the AWS docs spell it. The icon resolves from the
name; never guess an icon filename. Unsure → resolve_icon.category per service (compute/storage/database/networking/security/
integration/analytics/ai/management/general) — it drives the node colour.role on every service, one line on what it does there. This is what
makes the file documentation instead of boxes.network / iam / event / data, so auth,
async, and data flow read differently.subnet: "public" | "private". Anything else
(multi-VPC, multi-account, AZs, on-prem) → declare groups with parent for
nesting and point services at them via parentId. Third-party or on-prem
actors → external: true.connections[].label, role, or a walkthrough beat. An AWS diagram
guideline, and the thing that keeps a dense diagram readable.steps[].body / bullets) or a kind: 'doc' decision tab. The old adr
and wellArchitected fields are dropped by the generator.captiontitle/subtitle only appear in the small floating dock, so a file opened cold
(email attachment, wiki link, PDF page) starts as unexplained boxes. Pass
caption whenever the diagram will be read without you in the room:
"caption": {
"eyebrow": "Arquitetura alvo", // small uppercase label, AWS orange
"title": "Portal do Cidadão — camada pública",
"text": "One paragraph: what this shows and for whom.",
"meta": ["Versão: v2", "Data: 28/09/2026", "Ambiente: produção"]
}
A plain string (or { en, pt } map) is shorthand for text alone. A meta
entry written "Label: value" renders as a labelled stat, anything else as a
bare value. With tabs, the band sits above the tab rail and frames every view.
Skip it when the surrounding page already carries the title (a slide, a report
figure with its own caption).
steps[] turns the same file into a narrated tour: each beat tints a subset of
the diagram and shows an overlay card (title, markdown body, bullets,
chips, code), positioned per beat with cardSide
(right default / left / top / full). Add stepZoom: true to have the
camera frame each beat, stepFocus: true to isolate it. Worth adding whenever
the user will present the diagram rather than just read it.
Same schema and renderer as the standalone sequence player. participants[]
(give service and the lifeline icon resolves itself; actor: true for a
human), then events[] in order, each with a required id and an explicit
kind: 'message' | 'note'. Combined fragments are a SEPARATE fragments[]
array anchored by event id ({ kind: 'alt'|'opt'|'loop'|…, startId, endId }) —
never inline begin/else/end events. Narrate the beats that matter (title,
desc, code, proof).
Keep the two views consistent: every participant should exist as a node or group in the architecture, worded the same way.
Mark delta on the services/connections/groups that change (added / removed /
unchanged) and pass delta: true; the viewer gets a Before / Delta / After
toggle in one file. diagram_delta computes the marks from two diagram JSONs
when you have both states. This is the right answer to "show me the migration",
not two separate diagrams.
render_diagram_media({ htmlPath, pngPath?, gifPath?, svgPath?, mode, period })
for places JS cannot run. Pick by destination: AWS Blog / WordPress → GIF or
PNG (SVG upload is blocked there); your own site → SVG (vector, tiny,
still animated). For a seamless flow loop pass the same seconds value as
flowPeriod when generating and as period when rendering.
.drawio when the user needs to edit it themselves: auto_generate_diagram
(auto layout) or generate_diagram (manual x/y). The HTML also exports
.drawio from a button, so prefer HTML unless a file is required.
Every generated diagram writes a neutral .json sidecar (also
export_diagram_json). Infrastructure: export_iac_json → the official
awslabs.aws-iac-mcp-server. Cost: hand the sidecar to a pricing MCP. Do not
ask this server for IaC or prices.
setup_icons: it picks
up the Asset Package zip from ~/Downloads by itself and installs to the
shared ~/.aws-architecture-icons (once per machine, survives reinstalls). No
zip there → it hands back the download link for you to relay to the user.TB (default), LR, RADIAL; radial is flat hub-and-spoke only
and ignores groups.languages: ['en','pt',…] and author any text field as a
{ en, pt, … } map — any ISO 639-1 code, not just en/pt. Localize the toolbar
too with uiStrings + langLabels.aws-cloud, region, vpc, public-subnet,
private-subnet, availability-zone, account, organization,
auto-scaling-group, group, corporate-data-center, on-premises.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aws-samples/sample-architecture-diagram-mcp-server --plugin aws-architecture-diagramOther plugins' skills for the same job