auditor:diff-audit

auditor:diff-audit is a command for Claude Code from solanabr/auditor-skill. It costs 49 tokens per session (581 once invoked), scanned A, original, MIT.

A security review of only the code changed in a Git commit or pull request, including nearby callers and callees.

In plain words
What is it for?
Use it to review pull requests, inspect commits, and prioritize changed code by risk and potential impact.
Why use it?
It narrows the review to the part most likely to contain a new bug or a removed security check instead of rescanning the whole project.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the auditor plugin — 1 skill, 17 commands, 9 agents shipped together

Good fit Use it to review pull requests, inspect commits, and prioritize changed code by risk and potential impact.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/solanabr/auditor-skill/diff-audit
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.

Clone the repo
git clone --depth 1 https://github.com/solanabr/auditor-skill

Made for: Claude Code.

Or install auditor, the plugin that ships this one along with the rest of its 1 skill, 17 commands, 9 agents.

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 auditor:diff-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/solanabr/auditor-skill/diff-audit/github.svg)](https://agentmods.dev/commands/solanabr/auditor-skill/diff-audit)
Your own site
<a href="https://agentmods.dev/commands/solanabr/auditor-skill/diff-audit"><img src="https://agentmods.dev/badge/commands/solanabr/auditor-skill/diff-audit/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 auditor:diff-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/solanabr/auditor-skill/diff-audit"><img src="https://agentmods.dev/badge/commands/solanabr/auditor-skill/diff-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 581 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.
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.00049 $0.00581
Opus 5.5 $0.00020 $0.00232
Sonnet 5.5 $0.00010 $0.00116
Haiku 4.5 $0.00005 $0.00058

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

Security

Grade A, and why

auditor:diff-audit 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 2d 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.

commands/diff-audit.md · 18 lines

What it actually says

auditor-skill — Differential Audit (Mode 4)

Arguments: $ARGUMENTS

  1. Compute the changed set: git diff --name-only <base>..<head> (default main..HEAD). In a checkout you did not clone yourself, every git call carries the OUTPUT-RULES.md Rule 11c flags.
  2. Run Phase 0.5 Context Reconstruction on changed functions + their direct callers/callees (1-hop).
  3. Risk-classify changed files (auth / crypto / value-transfer / validation-removal = HIGH). Git-blame removed security code (in a checkout you did not clone: GIT_NO_LAZY_FETCH=1 git --no-pager -c core.fsmonitor=false -c log.showSignature=false blame --no-textconv --no-ext-diff <rev> -- <path>, Rule 11c) — code deleted in a "fix" / "CVE" commit is a CRITICAL regression.
  4. Run only the checklist items + known-vectors matching the changed files' language/domain, through the Rule 5b gate.
  5. Dependency lane. If the changed set touches a manifest or lockfile (Cargo.toml, Cargo.lock, package.json, package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock, bun.lock, pyproject.toml, uv.lock, poetry.lock, requirements*.txt, go.mod, go.sum), run checklist 11 §11.11 on the dependency delta. Baseline: this run's <base>..<head>; a re-audit passes the last audited ref as <base>. Enumerate every changed entry, artifact-diff what the §11.11 coverage budget names — fetched from the registry, never installed or built — and verdict SC-059..062, stating how many changed packages were left without an artifact diff. A one-line lockfile bump can bring in a whole new release, so the changed lines alone are not the reviewed code.
  6. Emit audit_<n>/PR-REPORT.md — changed-surface verdicts + findings only, plus a Dependency delta section when step 5 ran. Reuses the methodology corpus; skips whole-repo discovery. Output hygiene and any outside-service disclosure follow OUTPUT-RULES.md Rule 11d / 11b.
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. 2d ago Changed de9ac669f8c6
  2. 3d ago Changed · +1 lines · +9 tokens per session 4e5d81e7581f
  3. 1mo ago First seen · 17 lines · 40 tokens per session scan A 4bd258b578bb

Subscribe to this mod's changes

auditor:diff-audit is a command published in the GitHub repository solanabr/auditor-skill (61 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 581 once invoked, about $0.0002 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-30.