repo-audit
Skill0 starsChanged 14 days agoMITView on GitHub
Report where an existing repo has drifted from this standard — duplicated or wrongly-tiered rules, harness shims that copy AGENTS.md instead of pointing at it, no command that proves the repo green, commit hooks that would be bypassed, unjustified folders, an undocumented environment, an unstated branch topology. Read-only: it changes nothing, so it runs before anyone has agreed to a fix, in CI, or on a repo you were only asked to inspect. Use when someone asks \"how far off is this repo\", or when the answer has to be a report rather than an edit.
23 other projects use a version of this.
Adopted by
Most recently taken up by
- idaibin/skillstheir own version, first seen Nov 8, 2026
- TheVeller/claude-skillstheir own version, first seen Nov 2, 2026
- 0xUrsanomics/utopia-ostheir own version, first seen Nov 1, 2026
- DentalEdge-Solutions/claude_codetheir own version, first seen Nov 1, 2026
- zebbern/claude-code-guidetheir own version, first seen Oct 30, 2026
- sunitghub/canon-skillstheir own version, first seen Oct 22, 2026
Used with
Projects with it also use handoff and code-review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- zebbern/claude-code-guide★ 4.7ksame name
- Kanevry/session-orchestrator★ 53same name
- iuliandita/skills★ 11same name
- Megaprompting/torque-loop★ 10same name
- sunitghub/canon-skills★ 9same name
- idaibin/skills★ 6same name
- my-chiefmind/ai-maestro★ 6same name
- nikkogibler/cabinet★ 4same name
- TheVeller/claude-skills★ 4same name
- conorbronsdon/repo-audit★ 3same name
13 more not listed
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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-rulesSkill
- code-discoverySkill
- designSkill
- project-scaffoldSkill
- repo-alignSkill
- repo-initSkill
- skills-installSkill
- standardSkill
- verify-changeSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Use repo-init when there is no AGENTS.md.
- Very specific: line 71
Run it from the repo's root with ., or from anywhere by path — never from inside the skill directory, where .
- Very specific: line 82
Done when: every check in every enabled section has a verdict: ok, drift, missing, or n/a — and no manual is left unread.
- Very specific: line 129
Every check, with detection and fix → CHECKLIST.md
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repo Audit
Answer one question: how far is this repo from the standard, and what exactly is wrong?
Nothing here edits. That is the point of it being its own skill:
repo-audit (this) | repo-align | |
| Writes to the repo | Never | Only what the user names |
| Needs permission first | No | Yes, per finding |
| Safe on a repo you do not own | Yes — read the report, leave | No |
| Runs in CI | Yes, --strict | No — a fixer in CI is a fixer nobody reviewed |
| Output | A ranked table of findings | <id> fixed — <command> → <line> |
A user who wants the answer but is not ready to change code has no use for a fixer, and handing them one means the first thing that happens is an edit they did not ask for. Split so the inspection is free.
Use repo-init when there is no AGENTS.md. Use repo-align when the user wants fixes.
What kind of repo it thinks this is
The audit reads Kind: code or Kind: knowledge from AGENTS.md and prints it in the first
line, because two checks mean different things by repo kind:
| Kind | VERIFY-01 | VERIFY-03 |
code | A commands table with a build or test | A repo with commands but no CI is missing |
knowledge | A link check or schema lint; a None yet row is manual, not a failure | Optional — a badge that runs nothing reads as proof |
With no declared kind it guesses from the file list (a manifest or CI means code), which
misreads a docs-heavy code repo and a code repo before its first manifest. Say so in the report
when it guessed, and tell the user the one line that fixes it.
1. Declare the scope
Print one line, then run only those checks:
Auditing: rules, structure, verify. Off: design, skills. Change: `+ design`, `no structure`.Sections match skill standard: rules, structure, verify, design, skills. A section
that is off is not checked, not reported, and not mentioned again.
The script accepts rules, structure, verify, and design. skills has no mechanical
checks and stays agent-run: the SKILLS-* rows in CHECKLIST.md are read by
hand. The commit-hook checks (HOOK-01, HOOK-02) report under verify because that is the
section whose question they answer — "prove the repo is green" — and they carry a trap worth
knowing: a hook that is committed but not enabled in this clone is manual, not drift, because
core.hooksPath is per-clone config and a fresh CI checkout never has it.
2. Run the script
python3 <skill-store>/repo-audit/scripts/audit.py <repo> # report only, always exits 0
python3 <skill-store>/repo-audit/scripts/audit.py <repo> --strict # exit 1 on a strict finding — use in CI
python3 <skill-store>/repo-audit/scripts/audit.py <repo> --json # machine-readable
python3 <skill-store>/repo-audit/scripts/audit.py <repo> --run # also execute the green-command table
python3 <skill-store>/repo-audit/scripts/audit.py <repo> --section rules,verify<skill-store> is ~/skills on a normal install, .agents/skills in a repo that pins the set.
Run it from the repo's root with ., or from anywhere by path — never from inside the skill
directory, where . is the skill and a clean report is about the wrong repo.
--run executes the repo's documented commands, so it is the one flag that can have a side effect
(destructive commands are refused, not run). Without it, the audit only reads.
It prints ok, drift, missing, n/a, and manual. manual is not ok — those checks
need judgement and the script cannot give it. Finish them by hand from
CHECKLIST.md, which is the source of truth for every id and fix. The script
covers the mechanical third; the rest is still yours.
Done when every check in every enabled section has a verdict: ok, drift, missing, or
n/a — and no manual is left unread.
3. Report, ranked by blast radius
One table. Highest-consequence first, not file order.
| # | Check | Finding | Fix |
| - | ----- | ------- | --- |
| 1 | RULE-DUP-01 | "apps run on host" stated in AGENTS.md:41 and docs/environment.md:12, differently | Keep AGENTS.md as owner, make the other a pointer |
| 2 | VERIFY-01 | No green-command table in AGENTS.md | Add it; 4 commands detected from package.json |
| 3 | SHIM-01 | CLAUDE.md restates all 7 hard rules | Extract the 7 into AGENTS.md § Hard rules, then replace the file with `@AGENTS.md` |Then say which are mechanical (the script decided them) and which are the user's call — an unstated branch topology cannot be read from files, so it is a question, not a finding.
End with the handoff, not an offer to edit: Fix which? Name the ids — skill repo-align applies
them. A report that edits on the next turn was never read-only.
Done when the report is delivered and the audit left the repo byte-identical.
The five things worth checking
The full checklist is long; these five catch most drift in most repos.
| Check | Drift looks like | Why it matters |
| RULE-DUP | The same rule, in two files, worded differently | A drifted rule is violated via the weaker copy |
| RULE-TIER | "How to work" rules sitting in a detail file or a skill | An agent that never opens that file breaks it |
| SHIM | CLAUDE.md restating AGENTS.md | Two sources of truth for the same rule — and replacing it before its unique rules are placed deletes them |
| VERIFY | No command that proves the repo is green | "It works" becomes unfalsifiable |
| STRUCT | Folders nobody can justify, or a utils/ | An unjustified folder collects orphans |
What this skill never does
- Never edits the audited repo. A report is a proposal; the fix is
repo-align, after the user names the finding. - Never reports a check it did not run. A section that was off is not mentioned, and
n/ais said out loud rather than dropped — a missing row reads as a pass. - Never treats
manualasok. The script's clean run is the mechanical third only. - Never invents a command for the green row. A repo with nothing mechanical to check gets a
None yetrow and a question, not a guessednpm test.
Related
- Every check, with detection and fix →
CHECKLIST.md - The mechanical checks as code →
scripts/audit.py, split by section intoaudit_model.py,audit_rules.py,audit_verify.py,audit_hooks.py,audit_structure.py - The file-size gate this repo runs in its commit hook →
scripts/check_file_size.py; the rule is skillverify-change§ The file-size gate - Applying a finding the user named → skill
repo-align - No
AGENTS.mdat all → skillrepo-init - Tiers and rule ownership → skill
agent-rules - Proof a fix worked → skill
verify-change
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.

