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.
npx skills add minghinmatthewlam/agent-guards --skill create-architecture-audit-skillgit clone --depth 1 https://github.com/minghinmatthewlam/agent-guardsWrote 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.
[](https://agentmods.dev/skills/minghinmatthewlam/agent-guards/create-architecture-audit-skill)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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. Keepstatedrules strictly separate frominferredones. - 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
driftlabel 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 reportingstated. - Scope & Helpers: read-only (hand enforcement to
repo-setup, redesign toarchitect). Any helper script lives executable in the skill dir with invocation shown.
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.
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.
- 11d ago Changed · -27 lines 905907c942a1
- 19d ago First seen · 73 lines · 84 tokens per session scan A f99bf73dafb5
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.
create-architecture-audit-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| create-architecture-audit-skillminghinmatthewlam/agent-guards | Skill | 46 | 6d ago | MIT | A | 84 | Claude Code, Codex |
| autoreviewopenclaw/clawhub | Skill | 9.6k | yesterday | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.4k | today | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 2d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 4d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 978 | yesterday | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | yesterday | MIT | A | 51 | Claude Code, Codex |