architecture-docs

architecture-docs is a skill for Claude Code from stefaniuk/loadout. It costs 26 tokens per session (1,302 once invoked), scanned A, original, MIT.

A repository analysis process that turns a codebase into architecture documents, including component lists, runtime flows, domain notes, C4 models, and infrastructure diagrams.

In plain words
What is it for?
Use it to create a repository map, catalogue components, document runtime behaviour, analyse business areas, or produce architecture and infrastructure diagrams.
Why use it?
It gives a structured view of how a codebase is organised and how its parts work together, which can be difficult to see from individual files.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to create a repository map, catalogue components, document runtime behaviour, analyse business areas, or produce architecture and infrastructure diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stefaniuk/loadout/architecture-docs
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 stefaniuk/loadout --skill architecture-docs
Clone the repo
git clone --depth 1 https://github.com/stefaniuk/loadout

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/stefaniuk/loadout/architecture-docs/github.svg)](https://agentmods.dev/skills/stefaniuk/loadout/architecture-docs)
Your own site
<a href="https://agentmods.dev/skills/stefaniuk/loadout/architecture-docs"><img src="https://agentmods.dev/badge/skills/stefaniuk/loadout/architecture-docs/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-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/stefaniuk/loadout/architecture-docs"><img src="https://agentmods.dev/badge/skills/stefaniuk/loadout/architecture-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,302 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.00026 $0.01302
Opus 5.5 $0.00010 $0.00521
Sonnet 5.5 $0.00005 $0.00260
Haiku 4.5 $0.00003 $0.00130

Measured 18d ago against content hash 6f50bcd8781d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architecture-docs 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 18d 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.

.github/skills/architecture-docs/SKILL.md · 126 lines

How it starts

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

Architecture Documentation Skill

This skill generates architecture documentation following a structured six-step pipeline. Each step builds on the outputs of previous steps. Steps can be run individually or sequentially.

Step Resolution

Resolve the step from the user's input ($ARGUMENTS). Match against the table below.

Step Slug Output path Dependencies
01 repository-map .copilot/analysis/repository-map.md None
02 component-catalogue .copilot/analysis/component-*.md Step 01
03 runtime-flows .copilot/analysis/runtime-flow-*.md Steps 01–02
04 domain-analysis .copilot/analysis/domain-*.md Steps 01–03
05 c4-model .copilot/analysis/likec4/** Steps 01–04
06 infrastructure-diagram .copilot/analysis/infrastructure/** Steps 01–05
all (all steps sequentially) All of the above None

If "all" is specified, run steps 01 through 06 in sequence. If a single step is specified, check that its dependency outputs exist before proceeding.

Mandatory Preparation

Before starting any step:

  1. Read the architecture overview instructions and adopt the approach for gathering supporting evidence.
  2. For step 05 (c4-model), also read the LikeC4 instructions for DSL syntax.

Goal

Produce accurate, evidence-based architecture documentation for the repository. Each step targets a specific output artefact. Update the .copilot/analysis/README.md index after each step.

Workflow Per Step

Discovery

For every step:

  1. Read outputs from all prior steps (if they exist) to build cumulative context.
  2. Run git ls-files and scc (if available) to enumerate the codebase.
  3. Perform step-specific discovery as described below.

Read the full file on GitHub · 126 lines

Files

What ships with it

8 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. 18d ago Changed · +42 lines 6f50bcd8781d
  2. 3mo ago First seen · 84 lines · 26 tokens per session scan A 624b101aa291

Subscribe to this mod's changes

architecture-docs is a skill published in the GitHub repository stefaniuk/loadout (1 stars, last pushed 4d ago), licensed MIT. It adds 26 tokens to every session and 1,302 once invoked, about $0.0001 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-docs compared with skills from other repositories

architecture-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architecture-docsstefaniuk/loadoutSkill14d agoMITA26Claude Code
artifact-conventionsattilaszasz/sdd-pilotSkill991mo agoMITA59Claude Code, Codex
plan-authoringattilaszasz/sdd-pilotSkill991mo agoMITA41Claude Code, Codex
task-generationattilaszasz/sdd-pilotSkill991mo agoMITA35Claude Code, Codex
evidence-led-authoringattilaszasz/sdd-pilotSkill991mo agoMITA24Claude Code, Codex
adr-authoringattilaszasz/sdd-pilotSkill991mo agoMITA30Claude Code, Codex
markdown-compressionattilaszasz/sdd-pilotSkill991mo agoMITA26Claude Code, Codex