code-auditor
Skill0 starsChanged 6 months agoMITView on GitHub
Run a structured review of a diff, file, module, or full codebase. Surfaces correctness bugs, security gaps, performance issues, and maintainability smells with file:line citations and severity rankings. Use when the user says "review this code", "audit this", "find bugs in", "what's wrong with this", "code review", or pastes a diff and asks for feedback. Output is a prioritized punch list, not a wall of nits.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- flopperj/dotfiles-coretheir own version, first seen Nov 4, 2026
- mrhinkle/VibeCoding-a-Websitetheir own version, first seen Nov 1, 2026
- OpenxIntelligence/Coding-Agent-Skillstheir own version, first seen Nov 1, 2026
- I-Onlabs/claude-code-skillstheir own version, first seen Oct 25, 2026
- nek1987/auto-agent-harnesstheir own version, first seen Oct 11, 2026
- neeraj181-dot/ClaudeSkillstheir own version, first seen Aug 25, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- mrhinkle/VibeCoding-a-Website★ 17same name
- I-Onlabs/claude-code-skills★ 4same name
- nek1987/auto-agent-harness★ 4same name
- OpenxIntelligence/Coding-Agent-Skills★ 4same name
- rm2thaddeus/Aitor_Skills★ 4same name
- flopperj/dotfiles-core★ 3same name
- neeraj181-dot/ClaudeSkills★ 0same 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 repository16 other files it gives its agents.
- for-codex/AGENTS.mdAGENTS.md
- api-architectSkill
- browser-qaSkill
- doc-craftSkill
- git-flow-proSkill
- mcp-forgeSkill
- perf-hunterSkill
- refactor-masterSkill
- resilience-engineerSkill
- schema-architectSkill
- security-sentinelSkill
- ship-itSkill
- test-architectSkill
- threat-modelerSkill
- type-tightenerSkill
- ui-polishSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
11
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 14
After a long implementation session, before commit
- Very specific: line 17
Do *not* trigger for: pure style/formatting (linters do that), generating fixes (use refactor-master), or for security-only reviews where …
- Distinctive: line 29
If there are zero criticals and zero highs, say so.
- Very specific: line 40
If reviewing a diff, run git diff <base>...HEAD first.
- Distinctive: line 80
Read the surrounding context.
- Distinctive: line 81
Search for callers. A function that looks unsafe may only be called from a safe site.
- Distinctive: line 82
Check tests. If the behavior is covered, the finding may be by design.
- Distinctive: line 97
Don't suggest rewrites unless the file is genuinely beyond repair.
- Distinctive: line 111
Don't pad with nits to look thorough.
- Distinctive: line 112
Don't review style if the repo has a formatter.
- Distinctive: line 113
Don't make confident security claims without tracing the data flow.
- Distinctive: line 114
Don't suggest a refactor in a bug-fix review.
- Distinctive: line 121
Read with correctness + security lenses prioritized.
“Common” is measured: kept by at least 6 in 10 of the 7 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
code-auditor — a real code review, not a vibe check
When to use this skill
Trigger when the user wants a judgment call on code quality. Strong signals:
- "review this", "audit this codebase", "find bugs", "what's wrong with this PR"
- A pasted diff with no further instructions
- After a long implementation session, before commit
- "is this safe to ship?"
Do not trigger for: pure style/formatting (linters do that), generating fixes (use refactor-master), or for security-only reviews where the user explicitly wants OWASP coverage (use security-sentinel).
The output contract
A report with:
- Verdict — one line: safe to ship / needs changes / blocks merge
- Critical issues — bugs, security, data loss risks. Each with
file:line, what's wrong, how to fix, why it matters - High-priority — performance, correctness edge cases, broken contracts
- Medium — maintainability problems that will hurt the next person
- Notes — stylistic suggestions, optional improvements
If there are zero criticals and zero highs, say so. Don't manufacture findings to fill the report.
Workflow
1 — Scope
Ask, or infer:
- Is this a diff review (compare against
main) or a full-file audit? - Which areas matter most: correctness, security, performance, maintainability?
- Is there a target reader (the author, the team lead, a release gate)?
If reviewing a diff, run git diff <base>...HEAD first. Don't audit the whole repo when the user only changed one function.
2 — Read the code with intent
Walk the changed code with these lenses:
Correctness lens — what does this function promise, and does it deliver?
- Off-by-one in loops or slicing
- Null/undefined paths the type system doesn't cover (e.g. JSON parse, regex match)
- Async without await; awaits in loops where Promise.all should be
- Mutated inputs (especially arrays and objects passed by reference)
- Race conditions: shared state, parallel writes, double-clicks, retry on top of side effects
- Date/time/timezone handling
- Float comparison without epsilon
Security lens — what's the attack surface?
- User input flowing into SQL, shell, file paths, HTML, regex, JSON, YAML
- Auth checks missing on new endpoints
- Secrets in code, env files committed, logs, error messages
- CORS too permissive; CSRF on state-changing forms
- Open redirects, SSRF via user-controlled URLs
- Trust boundaries crossed without revalidation
Performance lens — what's wasteful?
- N+1 queries (any
.map(async ...)over IDs that hits the DB) - Unbounded loops, recursion without depth limit
- Synchronous file/IO on hot paths
- Unmemoized renders, re-instantiated event handlers in JSX
- Loading entire collections to compute a count/exists check
Maintainability lens — will the next engineer cry?
- Functions over ~60 lines or with > 3 levels of nesting
- Boolean flags that should be enums
- Comments explaining what (delete) vs why (keep)
- Dead code; unreachable branches; commented-out blocks
- Names that lie (
getUserthat creates a user,validatethat mutates)
3 — Cross-check assumptions
For each finding, before writing it up:
- Read the surrounding context. Sometimes the "bug" is intentional.
- Search for callers. A function that looks unsafe may only be called from a safe site.
- Check tests. If the behavior is covered, the finding may be by design.
4 — Rank and write
Order findings by blast radius, not by where they appear in the file. A silent data-loss bug on line 412 beats a missing prop type on line 3.
For each finding, write:
[SEVERITY] file:line — one-line title
What: the actual problem in 1–2 sentences
Why it matters: the user-visible impact (data loss, security, perf)
Fix: the smallest change that resolves it (or a sketch in 3 lines of code)Don't suggest rewrites unless the file is genuinely beyond repair. Patch-shaped feedback gets fixed; rewrite suggestions get ignored.
5 — Verdict
End with the one-line verdict. Be decisive. "Looks fine, ship it" is a valid output. So is "Don't merge — issue #2 will corrupt user data on retry."
Patterns and anti-patterns
✅ Do:
- Cite
file:line. Reviews without citations don't get acted on. - Group findings by file when there are many. Easier to address as a batch.
- Compliment the good parts when they're genuinely good — anchors the trust the rest of the review needs.
❌ Don't:
- Don't pad with nits to look thorough. Three real findings beat thirty fake ones.
- Don't review style if the repo has a formatter. The formatter will do it.
- Don't make confident security claims without tracing the data flow. Hedge if you're not sure: "this may be SQL injection — please verify the ORM is parameterizing here."
- Don't suggest a refactor in a bug-fix review. Note it separately.
Example invocation
User: "Review this PR for the new password reset endpoint." [pastes diff]
- Scope: a diff review, security-sensitive, ~80 lines across 3 files.
- Read with correctness + security lenses prioritized.
- Findings:
- [CRITICAL]
src/auth/reset.ts:42— token comparison uses===, notcrypto.timingSafeEqual. Timing-attack vulnerable. Usecrypto.timingSafeEqual(Buffer.from(a), Buffer.from(b)). - [HIGH]
src/auth/reset.ts:67— no rate limit on the request endpoint. Attacker can enumerate emails. Add the existingrateLimit('auth.reset', { max: 5, window: '15m' })middleware. - [MED]
src/auth/reset.ts:88— error message reveals whether the email exists. Return the same response for "sent" and "not found". - [NOTE] Token TTL is hard-coded to 1 hour. Consider extracting to
config/auth.tsso it's tunable.
- [CRITICAL]
- Verdict: blocks merge — fix the timing-safe compare and the rate limit. Other items can land in a follow-up.
See also
security-sentinel— when the review is purely security-focused (OWASP sweep)refactor-master— to actually apply the structural fixes the audit suggeststest-architect— to add coverage for the edge cases the audit found
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.

