code-auditor

code-auditor is a skill for Claude Code from BenAHammond/code-auditor-mcp. It costs 25 tokens per session (4,464 once invoked), scanned A, original, MIT.

A code-review tool that searches a codebase by meaning and checks stated rules about the code.

In plain words
What is it for?
It is for auditing code quality, locating callers and dependencies, finding complex functions or unused imports, and fixing rule violations.
Why use it?
It helps find related code and violations without relying only on exact text searches.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

Part of the code-auditor plugin — 1 skill, 2 hooks shipped together

Good fit It is for auditing code quality, locating callers and dependencies, finding complex functions or unused imports, and fixing rule violations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benahammond/code-auditor-mcp/code-auditor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BenAHammond/code-auditor-mcp --skill code-auditor
Clone the repo
git clone --depth 1 https://github.com/BenAHammond/code-auditor-mcp

Made for: Claude Code.

Or install code-auditor, the plugin that ships this one along with the rest of its 1 skill, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-auditor

README.md
[![agentmods](https://agentmods.dev/badge/skills/benahammond/code-auditor-mcp/code-auditor/github.svg)](https://agentmods.dev/skills/benahammond/code-auditor-mcp/code-auditor)
Your own site
<a href="https://agentmods.dev/skills/benahammond/code-auditor-mcp/code-auditor"><img src="https://agentmods.dev/badge/skills/benahammond/code-auditor-mcp/code-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-auditor

Your own site · 80×15
<a href="https://agentmods.dev/skills/benahammond/code-auditor-mcp/code-auditor"><img src="https://agentmods.dev/badge/skills/benahammond/code-auditor-mcp/code-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,464 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 185
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 185
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.04464
Opus 5.5 $0.00010 $0.01786
Sonnet 5.5 $0.00005 $0.00893
Haiku 4.5 $0.00003 $0.00446

Measured 4d ago against content hash 1569d1d38abc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-auditor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/code-auditor/SKILL.md · 269 lines

How it starts

The opening of the file, as written. The whole thing — 269 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Auditor Skill

Version 5.4.1 • Run code-audit --version to check your installed version. If versions differ, the CLI is authoritative — use code-audit <command> --help to see what your install actually supports.

You have the code-audit CLI available. It indexes every function, component, and struct in the codebase for semantic search and invariant enforcement. Use these commands instead of raw grep/find whenever possible.

The diagnostic frame

code-audit is a diagnostic instrument, not a judge. Three terms carry that:

  • Reading — the human-facing name for one rule observation. The machine contract calls the same thing a violation (a "finding" in the JSON). The audit takes readings; it does not issue verdicts.
  • Coverage panel — the report leads with what was measured (which rules fired, which were clean, which were not applicable), so a zero-reading run is not mistaken for a clean tree.
  • Triage — severity is urgency, not permission. Three levels, and the axis is how fast a reading bites you: critical (already wrong in production, or will fail when this code runs), severe (a real defect that has not bitten yet), high (correct, but it does not match a convention). critical and severe are defects; high is a convention reading. Every reading blocks the edit gate by default. Queue order (critical → severe → high) is the order to act, not a license to skip.

When to use which command

code-audit search — find code by meaning, not just text

Use code-audit search <query> with its operator syntax instead of grep or rg. The full operator reference is in SKILL-SEARCH.md.

Key operators:

  • calls:<fn> — every caller of a function (uses the call graph, not regex)
  • dep:<module> — everything importing a module
  • lang:<lang> complexity:>N — complex functions in a specific language
  • exported: — public API surface
  • file:<glob> — scope to matching file paths
  • unused-imports — dead imports to clean up

Read the full file on GitHub · 269 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed 1569d1d38abc
  2. 6d ago Changed 9f3755d454f1
  3. 11d ago Changed 6bc5fc6c1a31
  4. 14d ago Changed aea6a40aeb5b
  5. 17d ago Changed 08c655564056
  6. 18d ago Changed · +23 lines b3175d52c3f2
  7. 20d ago Changed a66b4849ffa9
  8. 25d ago Changed d8ab97c1784f
  9. 1mo ago Changed e836c55efbf8
  10. 1mo ago First seen · 246 lines · 25 tokens per session scan A 8fd1a4404c92

Subscribe to this mod's changes

code-auditor is a skill published in the GitHub repository BenAHammond/code-auditor-mcp (8 stars, last pushed 5d ago), licensed MIT. It adds 25 tokens to every session and 4,464 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

openclaw/clawhub · 17 tokens

omh-code-review

This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 48 tokens

revdiff-plan

Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…

umputun/revdiff · 84 tokens

explore-unknowns

Guide the user through a quadrant walk that maps the unknowns of a task — open by listing the known knowns, then work through known unknowns, unknown knowns, and unknown unknowns one stage at a time, ending with a complete four-quadrant map in the user's hands. Use when a request is ambiguous or underspecified, the…

dzhng/skills · 162 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens

asplos-writing-style

Use when drafting or revising ASPLOS prose — engineering the first two pages that rapid review actually reads, stating the cross-layer insight as one quotable sentence, structuring per-layer mechanism sections, writing bounded claims, and fitting everything into 11 self-contained pages that include figures and…

brycewang-stanford/Awesome-Journal-Skills · 65 tokens