audit-arch
Skill2 starsChanged 14 days agoMITView on GitHub
Judge a codebase's structure against the architecture the project says it has
2 other projects use a version of this.
Adopted by
Most recently taken up by
- TalonT-Org/AutoSkillittheir own version, first seen May 8, 2026
- Trecek/useful-claude-skillstheir own version, first seen Mar 26, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- TalonT-Org/AutoSkillit★ 5same name
- Trecek/useful-claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- add-languageSkill
- audit-a11ySkill
- audit-ciSkill
- audit-debtSkill
- audit-doc-driftSkill
- audit-flagsSkill
- audit-infraSkill
- audit-perfSkill
- audit-readinessSkill
- audit-securitySkill
- audit-slopSkill
- audit-testsSkill
- audit-tokensSkill
- audit-verifySkill
- backup-patternsSkill
- bash-patternsSkill
- claude-code-mods-patternsSkill
- code-challengeSkill
- code-contractSkill
- code-deep-reviewSkill
- code-evaluateSkill
- code-from-designSkill
- code-historySkill
- code-host-patternsSkill
- code-impactSkill
- code-migrateSkill
- code-tourSkill
- code-visualSkill
- depsSkill
- django-patternsSkill
- docker-patternsSkill
- drf-patternsSkill
- engineering-fundamentalsSkill
- fastapi-patternsSkill
- git-patternsSkill
- go-patternsSkill
- graphql-patternsSkill
- investigateSkill
- javascript-patternsSkill
- kit-rulesSkill
- logging-patternsSkill
- meta-conventionsSkill
- meta-promptSkill
- meta-refreshSkill
- meta-retroSkill
- meta-skillSkill
- monitoring-patternsSkill
- next-app-router-patternsSkill
- nuxt-patternsSkill
- opentofu-patternsSkill
- pr-descriptionSkill
- pr-publishSkill
- pr-queueSkill
- pr-replySkill
- pr-reviewSkill
- python-patternsSkill
- react-patternsSkill
- report-formatSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Read what the project says it is: its CLAUDE.md, the README's architecture section, docs/adr/ (or wherever .adr-dir points), and any …
- Distinctive: line 36
Read the code behind every candidate before calling it a finding: the import lines of an upward edge, both files of a coupled pair, the …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/audit-arch
Judges a codebase's structure against what the project says its architecture is. Drawing the structure is /code-visual; this audit judges it.
Loading this skill isn't enough. Before the step a row names, read its file.
| Before | Read |
| Checking the Failure isolation category | reference/failure-isolation.md |
Run
Resolve a linked ticket or doc as skills/investigate step 0 describes, then dispatch the auditor agent (subagent_type: kit:auditor, foreground) with this file's procedure and the resolved arguments. It writes the report. Then run the report-format skill's Runtime checks yourself, and reply per skills/kit-rules/reference/output.md section 3.
Sources
- Read what the project says it is: its CLAUDE.md, the README's architecture section,
docs/adr/(or wherever.adr-dirpoints), and any architecture or layering test (rg -l 'layer|import.*(allow|forbid)' -g '*_test.*'). - The C4 model:
kit code-graph model-dir <target>prints its folder. When it holdsc4-*.mmdfiles, runkit code-graph check-c4 <model dir> <raw> <root>after Evidence step 2. A pass: judge against it too. Problems: name them as onewarning, say the model is stale, and judge without it. - None of these exist: judge the structure on its own, and add one
infofinding that the project states no architecture, pointing at/code-visualto draw one. - The report's TL;DR names the sources it judged against.
Evidence
- Raw folder: the path
kit scratch-dir arch <target-slug>prints, without.md. kit code-graph imports <root> > <raw>/imports.tsv(without ast-grep,skills/code-visual/SKILL.mdCollect step 4's fallback, said in the report), thenkit code-graph deps <root> <raw>/imports.tsv <raw> [split dir], the split dir from the model dir'ssplit.txtasvisual.mdCollect step 4 says, thengit -C <root> -c core.quotePath=false log --since=12.months --format='--%H %ad' --date=format:%Y-%m --name-only --relative -- . > <raw>/gitlog.txtandkit code-graph coupling <raw>/gitlog.txt <raw>/imports-resolved.tsv <root> > <raw>/coupling.tsv.- Fan-out per module:
cut -f2 <raw>/deps.tsv | sort | uniq -c. Fan-in: the same on-f3. - Read the code behind every candidate before calling it a finding: the import lines of an upward edge, both files of a coupled pair, the call site of an integration.
Categories
Skip a category with no findings. Each names what proves a finding.
- Dependency direction and layering. Proof: a row in
upward.tsvwith production imports, or an import a layering test or ADR forbids. A cycle shows as edges both ways indeps.tsv. - Module boundaries and cohesion. Proof: a module whose fan-out reaches most others, or whose files share no imports with each other; a module reaching into another's internals (an import past its public entry).
- Change coupling. Proof: a
no-importpair incoupling.tsvbreaching the co-change threshold inskills/engineering-fundamentals/reference/metric-thresholds.md, and the shared commits that show why. - ADR drift. Proof: an accepted ADR's decision quoted next to code that does otherwise. A superseded ADR is history, not drift.
- Data and state ownership. Proof: two modules writing the same table, store, or file, quoted at both write sites.
- Integration seams. Proof: one external service called from more than one module with no shared client, found with
rgfor its SDK import or base URL. - Failure isolation. Proof: an external call on a request path with no timeout, retry bound, or fallback, quoted. What each needs: reference/failure-isolation.md.
Each finding names the pattern skills/engineering-fundamentals/reference/design-patterns.md gives for its signal, and the question from skills/engineering-fundamentals/reference/design-integrity.md it fails.
Not a finding
- An upward import only from tests, fixtures, or stories.
- Coupling under that threshold, or between a file and its test.
- A boundary the project's own sources deliberately draw differently than you would.
- Code-level debt inside one module, which
/audit-debtcovers.
Severity
failure: an import or write that breaks a stated rule (an ADR, a layering test, CLAUDE.md), or a cycle between modules.warning: an unstated boundary eroding, such as an upward production import, hidden coupling, or a split integration seam.info: a structure question worth a decision, such as no stated architecture, or a module with very high fan-in.
Output per finding
- The edge, pair, or module, with
file:linefor each side - Evidence: the TSV row or the quoted lines
- The source it breaks: the ADR, rule, or test, or "unstated"
- Fix: the first move, and the pattern it applies
Output file
Load the report-format skill and use its format. Write to the path kit scratch-dir arch <target-slug> prints.
Arguments: $ARGUMENTS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

