aws-layered-diagram

aws-layered-diagram is a skill for Claude Code from odere-pro/claude-aws-architect. It costs 75 tokens per session (1,568 once invoked), scanned A, original, MIT.

A workflow for creating and checking D2 diagram files for a software feature. It requires views showing the system, its main parts, each container, and several kinds of sequence flow, including error paths.

In plain words
What is it for?
Use it when creating, editing, or reviewing a feature architecture diagram in a project's specification folder.
Why use it?
It catches missing diagram layers, disconnected components, and unlabelled top-level shapes before a design is accepted.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-aws-architect plugin — 15 skills, 4 commands, 5 agents, 6 MCP servers shipped together

Good fit Use it when creating, editing, or reviewing a feature architecture diagram in a project's specification folder.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/odere-pro/claude-aws-architect/aws-layered-diagram
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 odere-pro/claude-aws-architect --skill aws-layered-diagram
Clone the repo
git clone --depth 1 https://github.com/odere-pro/claude-aws-architect

Made for: Claude Code.

Or install claude-aws-architect, the plugin that ships this one along with the rest of its 15 skills, 4 commands, 5 agents, 6 MCP servers.

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 aws-layered-diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/odere-pro/claude-aws-architect/aws-layered-diagram/github.svg)](https://agentmods.dev/skills/odere-pro/claude-aws-architect/aws-layered-diagram)
Your own site
<a href="https://agentmods.dev/skills/odere-pro/claude-aws-architect/aws-layered-diagram"><img src="https://agentmods.dev/badge/skills/odere-pro/claude-aws-architect/aws-layered-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 aws-layered-diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/odere-pro/claude-aws-architect/aws-layered-diagram"><img src="https://agentmods.dev/badge/skills/odere-pro/claude-aws-architect/aws-layered-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,568 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.00075 $0.01568
Opus 5 $0.00037 $0.00784
Sonnet 5 $0.00015 $0.00314
Haiku 4.5 $0.00007 $0.00157

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

Security

Grade A, and why

aws-layered-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 11d 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.

skills/aws-layered-diagram/SKILL.md · 63 lines

How it starts

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

When to Use

Apply this skill any time an agent writes, edits, or reviews the per-feature diagrams.d2 file. The solution-architect agent emits this file at design time alongside design.md and the per-component contracts. Reviewers lint it before the design transitions from draft to accepted.

Trigger conditions:

  • The agent is creating a new diagrams.d2 at the feature root.
  • The agent is adding a new container to the design and needs to add a matching c4-l3-<container> layer.
  • The agent is editing an existing diagram and needs to confirm no top-level node is untagged.
  • The agent is checking that every component named in design.md appears in the c4-l2 layer.
  • The agent is performing a pre-acceptance review and needs to lint the diagram against all six required tags.

Procedure

  1. Place the file at the canonical path. .claude/specs/<feature>/diagrams.d2. One file per feature; multiple components share the same file via layer tags. If creating, use assets/diagrams.d2.tmpl as the starting structure.
  2. Declare every required layer. The file must contain six layer tags: c4-l1, c4-l2, one c4-l3-<container> per L2 container, seq-system, seq-component, seq-error. Missing any of the six is a lint failure. Detail in references/layer-taxonomy.md.
  3. Tag every top-level node. No node at the file's top level may be untagged. Each node belongs to at least one layer; the lint enumerates top-level shapes and asserts every one carries a layer tag. Untagged top-level nodes are a lint failure.
  4. Resolve C4 levels consistently. L1 = system context (one box for the system, surrounding actors and external systems). L2 = containers (the major runtime/process boundaries inside the system). L3 = components within a single container (one diagram per L2 container). Detail in references/c4-and-sequence.md.
  5. Fill the three sequence layers. seq-system shows the canonical happy-path interaction across the L1 boundary; seq-component shows a representative request handled inside a single L2 container; seq-error shows the dominant failure mode and the recovery path.
  6. Detect orphans. A node with no edges in or out, in any layer, is an orphan and is a lint failure. There are no exceptions: the central system node at c4-l1 must connect to its actors, every external actor must connect to the system, every container at c4-l2 must connect to at least one peer, every component at L3 must connect to at least one sibling. Detail in references/layer-taxonomy.md.

Read the full file on GitHub · 63 lines

Files

What ships with it

4 files 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. 11d ago First seen · 63 lines · 75 tokens per session scan A dad017e12460

Subscribe to this mod's changes

aws-layered-diagram is a skill published in the GitHub repository odere-pro/claude-aws-architect (1 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 1,568 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.