audit-codebase
Read-only whole-codebase audit for simplifications in data structures, state representation, control flow, algorithms, and ownership. Inventories every subsystem as a coverage contract, reviews each one in a bounded subagent, verifies each finding against the repo, then audits its own coverage. Never edits, runs tests, commits, or pushes. Use for "audit this codebase", "find simplifications", or a pre-refactor survey.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- audit-codebase
- description
- Read-only whole-codebase audit for simplifications in data structures, state representation, control flow, algorithms, and ownership. Inventories every subsystem as a coverage contract, reviews each one in a bounded subagent, verifies each finding against the repo, then audits its own coverage. Never edits, runs tests, commits, or pushes. Use for "audit this codebase", "find simplifications", or a pre-refactor survey.
- disable-model-invocation
- true
03 SKILL.md 正文
<!-- vendored: aarondfrancis/8735edb@959a2a9 audit-your-codebase.md (unstated). -->
Codebase audit
Audit the whole codebase for simplifications that matter. This is read-only: do not edit files, run tests, commit, or push. You are the coordinator, and you continue until every subsystem is reviewed and the final audit is validated.
1. Inventory every subsystem
Give each subsystem a stable ID, an exact ownership boundary, its key implementation
files, its public interfaces, major callers, and tests, and a status of queued,
review, recommend, or skip. Include product code, shared infrastructure, platform
bridges, ownership of generated contracts, and test and tooling infrastructure.
Keep one scratchpad that holds the inventory, confirmed findings, skip decisions, cross-cutting patterns, duplicates, final priorities and dependencies, and a log. The inventory is the coverage contract. A broad catch-all row does not prove coverage.
2. Review each subsystem in a fresh agent
Give each read-only agent one subsystem with a boundary that overlaps no other. Run only
as many at once as you can coordinate. Each agent inspects the implementation, public
interfaces, major callers, and tests, and returns at most two simplifications, or skip.
Look for:
- booleans or nullable fields that allow invalid combinations and should be a state machine or a discriminated union;
- assumptions about an object's shape repeated in several places;
- branching duplicated where a small map, registry, or reducer would remove it;
- state or behavior with no clear owner;
- repeated scans or lookups that a better collection or index would remove;
- lifecycle or async state that can go stale or contradict itself.
Prefer plain local code that is already clear. Reject a change whose only benefit is style, hypothetical extensibility, a few fewer lines, or the same branching moved behind a new type.
Each recommendation gives:
- the verdict, recommend or skip;
- evidence with exact file and line references;
- the current complexity or invalid states;
- the proposed representation and why it is simpler;
- the smallest credible scope, with affected files and interfaces;
- regression and migration risks;
- the validation that exists and what more is needed;
- confidence: high, medium, or low.
3. Verify and combine
Check every finding against the repository yourself before accepting it. Narrow, demote, or reject one that is vague, duplicates another, misreads intended behavior, or only moves complexity. Record each skip as completed coverage. Assign each accepted finding to one subsystem. Keep opening review batches until every inventory row is closed.
4. Audit the audit
Run fresh independent passes for coverage, overlap between findings, materiality, missing fields, and priority order. If the coverage pass finds an omission, add a row for it and audit it. Do not widen a finished row to absorb it.
Rank the recommendations by impact, confidence, effort, blast radius, and prerequisites, and name the best first slices to implement.
The audit is complete when every subsystem has a recommendation or an explicit skip, every finding has all eight fields, the priorities are consistent, and the repository is unchanged.
04 同仓库更多 Skills
human-voice
Humanize prose by choosing a surgical voice edit or a structural rewrite. Use for AI-sounding drafts, anti-slop passes, editorial reviews, and requests to preserve an author's voice.
install-anti-slop
Install and configure the anti-slop Oxlint plugin in a local TypeScript or JavaScript repository. Use whenever a user asks to add anti-slop lint rules, copy the anti-slop plugin, configure opinionated Oxlint rules, or migrate an existing local anti-slop setup.
improve-codebase-architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
eli5
Explain a topic like I'm a 5 year old. Use when the user types /eli5 <topic> or asks for a dead-simple picture explainer of how something works.
codebase-design
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
crawl
Crawl a site with Screaming Frog and turn the output into findings a repo can act on. Use for SEO crawls and site audits, redirect or structured-data checks, rich-result eligibility questions, or any request that starts from crawl output.