architecture-diagram

architecture-diagram is a skill for Claude Code, Codex from d-oit/rust-2026-template. It costs 67 tokens per session (1,194 once invoked), scanned A, original, MIT.

A tool for generating an infographic that explains a project's structure and how its parts connect. It scans workspace crates, which are Rust packages, along with skills and scripts.

In plain words
What is it for?
Use it to create or refresh the project's overview diagram and copy the resulting SVG image into the documentation.
Why use it?
It turns a project's folders and components into a visual overview that is easier for people to understand and keep up to date.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions OpenCode.

Good fit Use it to create or refresh the project's overview diagram and copy the resulting SVG image into the documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d-oit/rust-2026-template/architecture-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 d-oit/rust-2026-template --skill architecture-diagram
Clone the repo
git clone --depth 1 https://github.com/d-oit/rust-2026-template

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-oit/rust-2026-template/architecture-diagram/github.svg)](https://agentmods.dev/skills/d-oit/rust-2026-template/architecture-diagram)
Your own site
<a href="https://agentmods.dev/skills/d-oit/rust-2026-template/architecture-diagram"><img src="https://agentmods.dev/badge/skills/d-oit/rust-2026-template/architecture-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 architecture-diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/d-oit/rust-2026-template/architecture-diagram"><img src="https://agentmods.dev/badge/skills/d-oit/rust-2026-template/architecture-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,194 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00067 $0.01194
Opus 5.5 $0.00027 $0.00478
Sonnet 5.5 $0.00013 $0.00239
Haiku 4.5 $0.00007 $0.00119

Measured today against content hash e5ffcbcd7cf3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architecture-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 today.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/export_excalidraw.mjs, scripts/generate_overview.py, scripts/lib/discovery.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/architecture-diagram/SKILL.md · 130 lines

How it starts

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

Overview Diagram

Generates a human-friendly overview infographic showing what the project is, how to get started, what's inside, and how it all connects.

Execution

Step 1 — Locate Project Root

ls .agents/ Cargo.toml 2>/dev/null || echo "NOT_FOUND"

Step 2 — Generate the Diagram

python .agents/skills/architecture-diagram/scripts/generate_overview.py \
  --root . \
  --out .template/overview.excalidraw \
  --svg-out .template/overview.svg

The script auto-discovers at runtime:

  • Workspace crates → cargo metadata (with Cargo.toml glob fallback)
  • AI skills → .agents/skills/*/ directories
  • Commands → .opencode/commands/*.md
  • Quality checks → config/xtask.json tier check lists
  • CI jobs → job IDs across .github/workflows/*.yml

Step 3 — Sync to Docs

cp .template/overview.svg docs/src/overview.svg

scripts/sync-architecture.sh performs steps 2 and 3 in one shot and is what the Update Overview Diagram workflow runs.

Step 4 — Confirm and Report

After the script exits:

  1. Tell the user the output path.
  2. Report counts: N crates · M skills.
  3. If counts differ from the last known state, summarize what changed.

Output

  • .template/overview.excalidraw — editable Excalidraw source
  • .template/overview.svg — generated SVG for docs embedding

What the stats mean

The "BY THE NUMBERS" cards are derived, never hand-written. If a number looks wrong, fix the discovery logic rather than editing the generated files.

Stat Source
Workspace Members cargo metadata workspace members (includes examples/* and benchmarks)
Crates directories under crates/ that contain a Cargo.toml
AI Skills .agents/skills/*/SKILL.md
CI Jobs unique job IDs across .github/workflows/*.yml
Quality Checks union of the checks lists for every tier in config/xtask.json
Shell scripts scripts/*.sh

Quality Checks previously scraped scripts/quality-gates.sh for cargo invocations. That script is now a thin wrapper around cargo xtask, so the count collapsed to 1 while the real gate ran nineteen checks. Do not reintroduce command-scraping for this number.

Read the full file on GitHub · 130 lines

Files

What ships with it

7 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. today Changed · +40 lines e5ffcbcd7cf3
  2. 1mo ago Changed · -7 lines d3fb3dca7161
  3. 1mo ago Changed · +1 lines 83d05ce77d50
  4. 2mo ago First seen · 96 lines · 67 tokens per session scan A 07ee0b138a48

Subscribe to this mod's changes

architecture-diagram is a skill published in the GitHub repository d-oit/rust-2026-template (15 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 1,194 once invoked, about $0.0003 per session on Opus 5.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

architecture-diagram compared with skills from other repositories

architecture-diagram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architecture-diagramd-oit/rust-2026-templateSkill15yesterdayMITA67Claude Code, Codex
review-backendAndreiBozantan/svelte-axum-templateSkill21mo agoMITA54Claude Code, Codex
yada-yada-yadaAndreiBozantan/svelte-axum-templateSkill21mo agoMITA81Claude Code, Codex
review-frontendAndreiBozantan/svelte-axum-templateSkill21mo agoMITA62Claude Code, Codex
fix-issueAndreiBozantan/svelte-axum-templateSkill21mo agoMITA65Claude Code, Codex
make-it-soAndreiBozantan/svelte-axum-templateSkill21mo agoMITA55Claude Code, Codex
triage-review-findingAndreiBozantan/svelte-axum-templateSkill21mo agoMITA59Claude Code, Codex