codebase-audit
Skill2 starsChanged 4 months agoMITView on GitHub
Audits the current repository for systemic correctness, architecture, churn, simplification, clarity, test value, and operational risks using current source and reproducible probes. It can delegate evidence gathering across bounded capability and perspective lanes. Use when the user runs /codebase-audit or asks for an evidence-backed repository or subsystem audit.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- kekzl/imptheir own version, first seen Oct 4, 2026
- tomwangowa/agent-skillstheir own version, first seen Sep 30, 2026
- 0xkangl/skillstheir own version, first seen Sep 10, 2026
- tderoussel/agent-skillstheir own version, first seen Sep 8, 2026
- myatminlu/vector-skillstheir own version, first seen Aug 19, 2026
Used with
Projects with it also use handoff.
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
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- TencentCloudBase/CloudBase-AI-Toolkit★ 1.1ksame name
- kekzl/imp★ 44same name
- GoldenWing-360/claude-security-skills★ 19same name
- mhylle/claude-skills-collection★ 19same name
- myatminlu/vector-skills★ 18same name
- sohei56/maul-team★ 17same name
- michielvandermeer/skills★ 9same name
- NitorCreations/nitor-agent-skills★ 2same name
- ReinaMacCredy/Skills★ 2same name
- tomwangowa/agent-skills★ 2same name
5 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 repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- create-issueSkill
- create-prSkill
- create-releaseSkill
- domain-modelingSkill
- git-workflowSkill
- grillingSkill
- grill-with-docsSkill
- implement-ideaSkill
- implement-issueSkill
- improve-codebase-architectureSkill
- native-nostalgia-stackSkill
- project-structureSkill
- review-prSkill
- roadmap-reviewSkill
- run-retroSkill
- software-engineering-excellenceSkill
- update-prSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 15 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Read applicable project instructions, vision and product documentation, current source, tests, configuration, lockfiles, generated …
- Distinctive: line 50
always cover behavior, correctness, architecture and consistency, simplification, self-documentation, test value, and operations.
- Distinctive: line 52
add UI/UX and accessibility when interfaces exist.
- Distinctive: line 53
add security and adversarial-input analysis at trust boundaries.
- Distinctive: line 54
add persistence, migration, transaction, concurrency, and idempotency analysis for stateful paths.
- Distinctive: line 56
add API, CLI, library, packaging, compatibility, deployment, rollback, observability, and performance analysis only where those surfaces …
- Very specific: line 70
When the user supplies subagents, the coordinating agent still owns the audit scope, coverage map, capability map, active and skipped …
- Distinctive: line 93
If sub-agents are unsupported, unavailable after any applicable bounded retry, or leave a lane incomplete, complete that lane directly.
- Distinctive: line 100
Treat documentation, tests, issue text, prior audits, model memory, and generic best practice as leads, not proof.
- Distinctive: line 107
Verify test value: relevant wrong behavior should fail.
- Distinctive: line 110
Verify third-party claims against the exact locked version and current official documentation or source.
- Distinctive: line 122
Check dependency direction, module cohesion, ownership, public interfaces, and whether multiple patterns or representations compete for the …
- Distinctive: line 124
Search the live repository before proposing anything new.
- Distinctive: line 133
Treat repeated changes to the same symbol or file as an architectural-risk signal, not a defect by itself.
- Distinctive: line 145
Search the complete mapped scope for evidence-backed candidates before filtering the report.
- Very specific: line 153
when subagents was supplied, the capability-and-perspective lane map, completed and incomplete lanes, and every coordinator-completed …
- Distinctive: line 173
After the user selects a batch or IDs, create or reuse a focused branch and implement the smallest complete remedies.
“Common” is measured: kept by at least 6 in 10 of the 15 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
Codebase audit
Assess the repository's current state rather than a branch diff. Produce a truthful coverage map, actionable findings, and coherent remediation batches.
Modes and boundaries
The audit is non-remediating by default. It may run safe local tests, builds, servers, browser flows, disposable repros, isolated test data, and temporary artifacts, but it must not edit repository content or create persistent or externally visible side effects. Clean up disposable artifacts and report anything retained.
subagents is an additive execution input. Without it, do not delegate any part
of the audit.
A request to save JSON authorizes only the named findings artifact; it does not authorize remediation. Read references/findings-json.md only when JSON output is requested.
There is no fix-all mode. After reporting, offer remediation batches. A fix
follow-up begins only when the user selects a coherent batch or finding IDs. It
authorizes focused local edits and validation on a focused branch, not commits,
pushes, publication, issue creation, deployments, or shared-state mutation.
Map before judging
- Read applicable project instructions, vision and product documentation, current source, tests, configuration, lockfiles, generated interfaces, completion contracts, packaging, and deployment definitions.
- Map user-visible capabilities, entry points, modules, trust boundaries, data and state flows, background work, external dependencies, tests, tooling, and operational paths.
- Choose perspectives from the actual codebase:
- always cover behavior, correctness, architecture and consistency, simplification, self-documentation, test value, and operations;
- add UI/UX and accessibility when interfaces exist;
- add security and adversarial-input analysis at trust boundaries;
- add persistence, migration, transaction, concurrency, and idempotency analysis for stateful paths;
- add API, CLI, library, packaging, compatibility, deployment, rollback, observability, and performance analysis only where those surfaces exist.
- For a shallow subsystem, trace its complete path and direct interactions. For a layered codebase, partition work by capability and perspective so later areas do not receive progressively thinner analysis.
- Build a bounded churn map from repository history. Rank frequently changed
files, then inspect function, method, class, or module history where symbols
are reliable. Use the repository's declared churn window or 90 days when none
exists. Prefer its code-health tool; otherwise use Git file history and
git log -Lfor stable symbols. Follow renames; state the window, touch count, and line churn, and label file-level fallback.
Sub-agent lanes
When the user supplies subagents, the coordinating agent still owns the audit
scope, coverage map, capability map, active and skipped perspectives, validation,
final findings, remediation batches, and report.
- Publish a bounded lane map before delegation. Form lanes from capability and perspective intersections so no worker receives an unbounded whole-repository perspective. Give each lane one worker; tightly coupled or individually small perspectives may share a lane. Queue excess lanes when platform capacity is temporarily full.
- Give each worker its lane ID, assigned capability and perspectives, bounded scope, relevant project instructions, and known evidence. A worker may inspect and run the safe probes allowed by this skill, but it must not edit, create persistent or external side effects, delegate further, assign final finding IDs or severities, propose final remediation batches, or issue an overall conclusion.
- Require each worker to return its lane ID, assigned capability and
perspectives, bounded scope, inspected supporting context, exact probes and
observed results, candidate findings with evidence, impact, and smallest
remedy, verified claims, limitations, and
completeorincompletestatus. - Validate every candidate against the current checkout, deduplicate and reconcile conflicts across lanes, then assign final IDs, severities, categories, remediation batches, and conclusions. Do not repeat a completed lane wholesale.
- If sub-agents are unsupported, unavailable after any applicable bounded retry, or leave a lane incomplete, complete that lane directly. Report the affected lane and reason as a single-agent fallback. Temporary capacity exhaustion queues work rather than triggering immediate fallback.
Establish current evidence
- Treat documentation, tests, issue text, prior audits, model memory, and generic best practice as leads, not proof.
- Exercise representative behavior through the real UI, API, CLI, library entry point, job, migration, package, or deployment path. Cover success plus the most consequential failure or boundary case.
- Record setup, action or command, input, expected result, and observed result.
Mark anything not executed
static only. - Verify test value: relevant wrong behavior should fail; assertions should cover outcomes and meaningful failure paths without excessive mocks, snapshots, or implementation coupling.
- Verify third-party claims against the exact locked version and current official documentation or source. Check whether a current supported version removes custom code, workarounds, adapters, or configuration.
- Compare documentation and declared operational flows with current implementation. A passing unit suite does not validate a broken build, migration, package, deployment, or rollback path.
Audit criteria
- Trace boundary inputs, authorization, state changes, failures, partial success, retries, concurrency, idempotency, deletions, and side effects where relevant.
- Check dependency direction, module cohesion, ownership, public interfaces, and whether multiple patterns or representations compete for the same concept.
- Search the live repository before proposing anything new. Prefer deletion, reuse, direct control flow, consolidation, the standard platform, and existing dependencies over new layers.
- Report dead code, duplication, speculative abstractions, needless wrappers, one-use indirection, stale compatibility paths, and dependencies that no longer earn their cost.
- Require names, types, boundaries, and interfaces to communicate intent. Match the surrounding comment density; comments should preserve rationale and constraints, not narrate syntax.
- Treat repeated changes to the same symbol or file as an architectural-risk
signal, not a defect by itself. Raise an
ARCHITECTURE_RISKfinding when the measured churn coincides with mixed responsibilities, recurring fixes or reverts, competing representations, broad blast radius, unstable interfaces, or weak regression coverage. Cite the window, touch count, granularity, and co-signal. - Suppress generic advice when repository evidence documents a deliberate alternative. Every best-practice finding must cite current project and authoritative-source evidence plus the concrete simplification or risk.
Report
Search the complete mapped scope for evidence-backed candidates before filtering the report; do not stop after the first or highest-severity issue.
Lead with the highest-value current conclusion. Include:
- a coverage map of inspected, executed, sampled, static-only, and unreached capabilities;
- active and skipped perspectives with reasons;
- when
subagentswas supplied, the capability-and-perspective lane map, completed and incomplete lanes, and every coordinator-completed fallback with its reason; - the churn window, symbol/file coverage, and architectural-risk hotspots;
- exact probes and project gates with observed results;
- actionable findings as
[CA-N][BLOCKING|IMPORTANT|IMPROVEMENT][BEHAVIOR|QUALITY|ARCHITECTURE_RISK| OPERATIONS] file:line — evidence, impact, smallest remedy; - grouped remediation batches ordered by risk reduction, dependency, and reviewability;
- limitations and retained probe artifacts.
BLOCKING is a current exploitable, corrupting, or deployment-blocking defect.
IMPORTANT has material correctness, security, operability, test-value,
maintainability, simplification, or comprehension cost. IMPROVEMENT is a
verified worthwhile simplification or current-practice alignment. Omit praise,
inventory narration, style nits, and findings without concrete impact.
Fix follow-up
After the user selects a batch or IDs, create or reuse a focused branch and implement the smallest complete remedies. Do not absorb unrelated findings. Promote useful probes into regression tests, remove disposable artifacts, run affected behavioral probes and project gates, and report fixed and unresolved IDs with observed evidence. The coordinator makes every edit. Do not redispatch completed lanes after fixes; re-engage a worker only to resolve incomplete or contradictory evidence. Use the repository's separate git and PR workflows only when the user requests publication.
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.

