architecture-audit

architecture-audit is a skill for Claude Code, Codex from MartinPLarsen/claude-architecture-skills. It costs 244 tokens per session (1,840 once invoked), scanned A, original, MIT.

A visual audit of an entire software repository that explains how its parts connect from start to finish. It produces one Markdown document with Mermaid flowcharts, which are diagrams written in text.

In plain words
What is it for?
Use it to document system context, pipelines, components, data lifecycles, and core transformations with evidence tied to the actual code.
Why use it?
It gives developers a verified guide to an unfamiliar codebase, including where to edit it and how data moves through the system. Multiple focused readers help cover separate subsystems and a verification pass checks the final claims.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents.

Good fit Use it to document system context, pipelines, components, data lifecycles, and core transformations with evidence tied to the actual code.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinplarsen/claude-architecture-skills/architecture-audit"><img src="https://agentmods.dev/badge/skills/martinplarsen/claude-architecture-skills/architecture-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 244 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,840 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.00244 $0.01840
Opus 5 $0.00122 $0.00920
Sonnet 5 $0.00049 $0.00368
Haiku 4.5 $0.00024 $0.00184

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

Security

Grade A, and why

architecture-audit 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/workflow-skeleton.js), 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.

architecture-audit/SKILL.md · 68 lines

How it starts

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

Repo Architecture Audit

What this does and why it works

Produce one self-contained Markdown document that explains an entire codebase start-to-finish, with Mermaid flowcharts as the primary medium, grounded in path:line evidence, and verified against the real code before it is handed over. The output is a decision aid: someone reads it and knows how the system connects and where to edit things, without re-reading the repo.

The method is subagent-driven for a reason. A whole-repo audit is too much for one context to hold well, and one reader is blind to the seams between subsystems. Fanning out one reader per subsystem in parallel covers more ground, keeps each reader's context focused, and surfaces contradictions between subsystems that a single pass misses. A dedicated verify pass then catches the failure mode that matters most here: a confident synthesis claiming something the code does not actually do (planned work shown as shipped, wrong gate order, invented field mappings).

You are the orchestrator. Scout first so the fan-out is informed, then run the phases below. Default to the Workflow tool (this skill is explicit opt-in for it). If Workflow is unavailable, fall back to parallel Agent calls; if subagents are unavailable entirely, run the phases inline and sequentially, which is slower and lower-coverage but still works.

Phase 0 — Scout inline (do not fan out blind)

Spend a few cheap tool calls building the work-list before spawning anything. You cannot pick good subsystem boundaries until you have seen the shape of the repo.

  • Map the tree and file sizes, excluding vendored/generated noise: node_modules, .git, dist/build/out, vendor, .next, target, lockfiles, and any worktrees/mirror copies (read each file once, from the canonical tree only).
  • Read the entry points and the docs that explain intent: README, package.json/pyproject/go.mod/Cargo.toml/etc., any CLAUDE.md/ARCHITECTURE/docs/, migrations, and config.
  • Identify the subsystems — the natural seams along which to split readers. These are repo-specific; derive them, do not assume. Common seams:
    • agents / services / workers (the active units of work)
    • executable pipeline or business-logic code (what actually runs, vs specs)
    • data layer (schema, migrations, state model, storage)
    • the domain's core transform (the thing this system exists to do: image/media generation, schema mapping, ETL, model inference, payment flow)
    • external integrations / publishing (APIs, third-party services, webhooks)
    • frontend / presentation / rendering
    • orchestration / control plane / scheduling / cost or rate guards
    • governance / rules / config / requirements contracts
  • Decide reader count from repo size: small repo → 4-5 readers, medium → 6-8, large/monorepo → 9-12 (and consider one reader per package). Note language and conventions (so output language matches the repo).

Read the full file on GitHub · 68 lines

Files

What ships with it

2 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. 12d ago First seen · 68 lines · 0 tokens per session scan A d45ad2c72a0a

Subscribe to this mod's changes

architecture-audit is a skill published in the GitHub repository MartinPLarsen/claude-architecture-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 244 tokens to every session and 1,840 once invoked, about $0.0012 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.