---
name: archify-aws
description: Create polished AWS architecture diagrams (standalone HTML + SVG/PNG) from a typed JSON spec using the official AWS Architecture Icons, AWS group/arrow/label conventions, and an advisory AWS Well-Architected (six pillars) and Generative AI Lens review. Use when the user asks to diagram, visualize, document or review an AWS architecture, VPC/network topology, serverless or container design, data pipeline, or a generative AI / RAG / agent workload on Amazon Bedrock or SageMaker AI.
license: MIT
metadata:
  version: "0.1"
  companion_to: tt-a1i/archify
title: archify-aws
canonical_url: https://skilld.dev/gh/akashtalole/archify-aws
last_updated: 2026-10-04T16:17:26.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> 209 supporting files sit beside this SKILL.md. When the Skill refers to one, fetch https://skilld.dev/api/skills-raw/akashtalole/archify-aws/archify-aws/PATH with PATH replaced.
>
> If the user asked to install this Skill, run `npx skilld install akashtalole/archify-aws/archify-aws`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/archify-aws`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/akashtalole/archify-aws/archify-aws) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/archify-aws`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/archify-aws --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/archify-aws --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# archify-aws

Turns a description of an AWS workload into a checked, explorable diagram. Same philosophy as Archify: write typed JSON,
let the tool lay out, route and validate, and report only what was actually verified.

## Setup
Installed with `npx skills add akashtalole/archify-aws`; run every command below from the skill directory (`node bin/archify-aws.mjs ...`).
The official AWS icons are downloaded automatically on the first `render`/`finalize` (network needed once). To fetch them yourself or check the install:
```bash
node bin/archify-aws.mjs fetch-icons
node bin/archify-aws.mjs doctor
```
No npm dependencies. PNG export additionally needs Chrome/Chromium (`CHROME_PATH`, or Playwright's browser).

## Diagram types
| Type | Use for | Start from |
|---|---|---|
| `architecture` (default) | Topology: accounts, VPCs, AZs, services, data stores | `init three-tier` / `serverless-api` / `genai-rag` |
| `sequence` | API call chains, request lifecycles, agent tool calls, retries, async handoffs | `init sequence` |
| `dataflow` | Pipelines, ETL/ELT, ingestion → store → serve, lineage | `init dataflow` |

Unsure? `node bin/archify-aws.mjs guide "<scenario>" --json`. Existing assets: a Mermaid flowchart/sequence
(`import mermaid`) or a Terraform/CloudFormation/SAM repo (`import iac`) — see [references/importers.md](https://skilld.dev/api/skills-raw/akashtalole/archify-aws/archify-aws/references/importers.md);
review the icon mappings it lists and the relationships it inferred before delivering.

## Workflow
1. **Understand the workload.** Identify entry point, main request path, data stores, async paths, identity, and
   observability. For generative AI also: model access, guardrails, retrieval/grounding data, logging, agent tools.
   If the user pastes an architecture description, a CloudFormation/CDK/Terraform repo, or a Mermaid flowchart,
   read it for topology and re-author as a spec (do not mechanically convert styling).
2. **Pick icons.** `node bin/archify-aws.mjs icons search "<term>" --json`. Use service ids/aliases (`lambda`, `s3`,
   `alb`); never invent ids. Use exact official names in `label` (full name first, short form after).
3. **Read** [references/spec.md](https://skilld.dev/api/skills-raw/akashtalole/archify-aws/archify-aws/references/spec.md) once, and the closest example in `examples/`
   (`three-tier` VPC/AZ, `serverless-api`, `genai-rag`). Start from `node bin/archify-aws.mjs init <template>`.
4. **Author the spec** (see *Authoring rules*). Put it in `.archify-aws/<slug>-<timestamp>/spec.json`, with `meta.output` beside it.
5. **Finalize** (the one command): `node bin/archify-aws.mjs finalize <spec.json> --json`.
   It validates, renders, runs strict artifact checks and a real-browser check, exports the PNG and writes
   `<out>.receipt.json`. A non-zero exit is never success: exit 1 = a gate failed — read `stages[].detail.errors`, fix
   every listed item (unknown icons come with suggestions); layout warnings mean reorder `children`, change `layout`,
   widen `gap`, or move a node next to its main neighbour. Rerun the whole command after each edit; max ~4 repair rounds, then report what remains.
   (`render --strict` is the quick loop while iterating.)
6. **Look at the PNG** (open it) — the receipt says `visualReview: "not-performed"` because mechanics are checked, aesthetics are not. Fix collisions, tangled routes, unclear labels.
7. **Cost and review.** `finalize` also writes a **Cost** tab (AWS Price List) and a **Well-Architected review** tab into the same HTML;
   read `cost` and `review` in the receipt. Do not paper over gaps by adding decorative icons: either the architecture really has the control
   (add it, with its connection) or say it's out of scope. See `references/cost-estimation.md` and `references/well-architected.md`.
8. **Report:** absolute paths to `.html` (and `.svg`/`.png`/`.drawio`), node/edge counts, warnings, monthly cost with its confidence and the key
   assumptions, the findings by risk, how many best practices were actually evidenced, and explicitly: "cost is an indicative list-price
   estimate and the review is advisory — inferred from the drawing, not from deployed configuration".

## Cost estimation rules (from the AWS billing-and-cost-management skill)
* Check today's date before quoting prices; the price book records its retrieval date.
* Never do cost arithmetic by reasoning: run `archify-aws cost` (deterministic code) and quote its numbers. 730 hours/month.
* Only public on-demand rates from the AWS Price List. Never invent a price; unpriced components stay "not-itemized" / "not-estimated".
* Put real usage in each node's `usage`; defaulted assumptions make the estimate "indicative". Point to the AWS Pricing Calculator for a quote.

## Well-Architected review rules (from the AWS well-architected-review skill)
* The corpus is the frozen docs index (`archify-aws wa corpus`); use canonical best-practice IDs only, never fabricate one.
* Five statuses: Implemented, Partially Implemented, Not Implemented, Not Applicable, Cannot Determine. Say "Cannot Determine" rather than guess.
* Risk = impact × likelihood; do not manufacture Criticals, and acknowledge strengths. Scores are provisional when few BPs are evidenced.
* The report is CONFIDENTIAL: do not post it to broadly visible channels without approval.

## Authoring rules (AWS deck + Well-Architected)
* Structure first: `aws-cloud › region › vpc › az › subnet`. Show ≥ 2 AZs when the design claims high availability.
  Regional/global services (S3, DynamoDB, CloudFront, Route 53, IAM, Cognito, KMS, CloudWatch) sit outside the VPC.
* One main flow, left → right, in a single `row` so icons share a centre line; branches above/below via `column`
  or `stack`. 6–15 nodes is the readable range; split bigger systems into several diagrams.
* Number only the primary request path (`step`); dashed edges for async, replication, control and telemetry.
* Label every non-obvious edge with protocol/action. Don't label edges that a label would not clarify.
* Use `custom` groups for service-scoped boundaries (e.g. a "Generative AI" group), `stack` only for alignment.
* Never alter icons; never invent services or icons; do not draw controls the user didn't ask for just to please the review.
* Generative AI: draw clients → authenticated API layer → orchestrator → (guardrails, retrieval, model) → logging.
  Name the guardrail node "… Guardrails" so the review recognises it; show the vector store / knowledge source and where
  invocation logs go. See [references/well-architected.md](https://skilld.dev/api/skills-raw/akashtalole/archify-aws/archify-aws/references/well-architected.md).
* Readers get Reach, Route, Finder, Passport, presentation and export for free; point users at them and at deep links (`#focus=…&reach=downstream`, `#route=a~b`) — see [references/viewer-runtime.md](https://skilld.dev/api/skills-raw/akashtalole/archify-aws/archify-aws/references/viewer-runtime.md). Reach/Route are authored reachability, not impact analysis: say so.
* Diagram conventions from the AWS deck are summarised in [references/aws-diagram-guidelines.md](https://skilld.dev/api/skills-raw/akashtalole/archify-aws/archify-aws/references/aws-diagram-guidelines.md).

## Commands
`finalize`, `render`, `export` (draw.io), `validate`, `cost`, `wa review|corpus`, `review`, `import mermaid|iac`, `icons search|info|categories|groups`, `guide`, `schema`, `init`, `fetch-icons`, `doctor` — run
`node bin/archify-aws.mjs --help`. Always pass `--json` when parsing results.

## Don't
* Don't claim visual quality you didn't inspect, or that the review certifies compliance.
* Don't commit the downloaded icon package; don't install this skill into a live agent setup unless asked.
