create-architecture-audit-skill

create-architecture-audit-skill is a skill for Claude Code, Codex from minghinmatthewlam/agent-guards. It costs 84 tokens per session (992 once invoked), scanned A, original, MIT.

A generator for a project-local skill that checks whether a codebase's packages, crates, or modules respect their intended ownership and dependency directions. It reads the repository's actual dependency graph and produces a read-only architecture report for another agent.

In plain words
What is it for?
It is for defining an architecture audit, finding the right dependency graph source, checking package or module boundaries, and creating a reusable audit skill.
Why use it?
Architecture boundaries often weaken through small imports that bypass the intended design. This makes those violations visible with evidence from the codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions AGENTS.md.

Good fit It is for defining an architecture audit, finding the right dependency graph source, checking package or module boundaries, and creating a reusable audit skill.

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

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 create-architecture-audit-skill

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/minghinmatthewlam/agent-guards/create-architecture-audit-skill"><img src="https://agentmods.dev/badge/skills/minghinmatthewlam/agent-guards/create-architecture-audit-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 992 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.00084 $0.00992
Opus 5.5 $0.00034 $0.00397
Sonnet 5.5 $0.00017 $0.00198
Haiku 4.5 $0.00008 $0.00099

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

Security

Grade A, and why

create-architecture-audit-skill 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/create-architecture-audit-skill/SKILL.md · 46 lines

How it starts

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

Create an architecture audit skill

Generate a read-only, agent-facing project-local skill at .agents/skills/audit-architecture/ (symlinked at .claude/skills/audit-architecture -> ../../.agents/skills/audit-architecture) that compares the real dependency graph against intended ownership and reports violations with reproducible evidence.

1. Interview the repo

Learn from the codebase (ask only what cannot be observed):

  • Units & Graph: ownership units (crates, packages, modules) and exact offline graph command (cargo metadata, bazel query, go list -deps, manifests). Fix or report a broken graph command first.
  • Stated intent: read design docs, READMEs, AGENTS.md, and each unit's entry file in full; record the source file for every rule. Keep stated rules strictly separate from inferred ones.
  • Existing enforcement: lint/CI checks already enforced—skip what CI proves unless the map is narrower.
  • Hidden seams: non-import coupling (shared files, DB tables, env vars, wire formats, subprocesses).
  • Search tool: confirm which search command/flags work non-interactively on this machine.

2. Generate SKILL.md

Write .agents/skills/audit-architecture/SKILL.md with frontmatter (name: audit-architecture + repo-specific trigger description) and real commands (no placeholders):

  • Graph: commands for unit graph, item-level imports, and public surface.
  • Doctor: read-only check that the graph tool works and the map lists every unit (none missing or stale).
  • Checks: one command per check whose clean result is empty output, covering Direction (disallowed edges/cycles), Ownership (wrong unit), Surface (unused public items = inferred, leaked dep types, entry-point bypasses), and Hidden coupling.
  • Doc drift: kept in its own section with drift label so it doesn't crowd architecture findings.
  • Evidence & Report: every finding includes rule, rule source file, edge/path:line, reproducing command, and label (stated / inferred / drift); drop unreproducible opinions. Save evidence to a gitignored path. Rank findings by cost with smallest fix + whether a build check could enforce it; verify flagged lines against the rule source before reporting stated.
  • Scope & Helpers: read-only (hand enforcement to repo-setup, redesign to architect). Any helper script lives executable in the skill dir with invocation shown.

Read the full file on GitHub · 46 lines

Files

What ships with it

3 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 Changed · -27 lines 905907c942a1
  2. 19d ago First seen · 73 lines · 84 tokens per session scan A f99bf73dafb5

Subscribe to this mod's changes

create-architecture-audit-skill is a skill published in the GitHub repository minghinmatthewlam/agent-guards (46 stars, last pushed 6d ago), licensed MIT. It adds 84 tokens to every session and 992 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-11-17.

Related

create-architecture-audit-skill compared with skills from other repositories

create-architecture-audit-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-architecture-audit-skillminghinmatthewlam/agent-guardsSkill466d agoMITA84Claude Code, Codex
autoreviewopenclaw/clawhubSkill9.6kyesterdayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.4ktodayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k2d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k4d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill978yesterdayMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5kyesterdayMITA51Claude Code, Codex