audit-fix

audit-fix is a command for coding agents from sembraniteam/claude-plugins. It costs 57 tokens per session (1,098 once invoked), scanned A, original, MIT.

A command for applying selected fixes from an existing security audit report. It presents a plan, waits for approval, makes the smallest changes needed, and independently checks the results.

In plain words
What is it for?
Use it to fix all findings, particular finding IDs, or findings in a severity group after running a security audit.
Why use it?
It turns security findings into reviewed code changes while keeping the fixes limited and verifiable.

Command

Part of the security-auditor plugin — 1 skill, 7 commands, 3 agents shipped together

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.

agentmods
npx agentmods add commands/sembraniteam/claude-plugins/audit-fix
Clone the repo
git clone --depth 1 https://github.com/sembraniteam/claude-plugins

Or install security-auditor, the plugin that ships this one along with the rest of its 1 skill, 7 commands, 3 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 audit-fix

README.md
[![agentmods](https://agentmods.dev/badge/commands/sembraniteam/claude-plugins/audit-fix.svg)](https://agentmods.dev/commands/sembraniteam/claude-plugins/audit-fix)
Your own site
<a href="https://agentmods.dev/commands/sembraniteam/claude-plugins/audit-fix"><img src="https://agentmods.dev/badge/commands/sembraniteam/claude-plugins/audit-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,098 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00057 $0.01098
Opus 5 $0.00028 $0.00549
Sonnet 5 $0.00011 $0.00220
Haiku 4.5 $0.00006 $0.00110

Measured 3d ago against content hash 03fa06c63189, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

audit-fix 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 3d 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.

security-auditor/commands/audit-fix.md · 101 lines

How it starts

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

You are running /audit-fix to remediate security findings with verified, minimal code changes.

Important: fixes are never applied automatically. This command always shows a plan before writing any file, and runs independent verification after.

Step 0 — Validate audit report exists

Before anything else, check whether an audit report is available:

  • Does this session contain /audit, /audit-diff, or /audit-file output with a findings list?
  • Does a SECURITY-AUDIT.md file exist in the current directory?

If neither is found, stop and say:

"No audit report found. Please run /audit (or /audit-diff for a PR-scoped scan) first to generate a security findings list, then run /audit-fix again."

Step 1 — Parse scope from $ARGUMENTS

Determine what to fix:

  • Empty or all → all findings from the audit report
  • A single finding-ID (e.g., SA-001) → only that finding
  • A comma-separated list (e.g., SA-001,SA-003) → only those findings
  • A severity tier (e.g., critical, high) → all findings of that severity

Step 2 — Display scope and confirm with user

List the findings in scope, grouped by category:

**In scope for /audit-fix:**

Fixable findings (security-fixer will handle these):
  SA-001 [Critical] SQL Injection in user lookup — src/db.js:14
  SA-002 [High] Hardcoded API key — config.js:7

Potentially needs-human (fixer will confirm before skipping):
  SA-003 [High] Auth session flow — may require architectural decision

Ask: "Should I proceed? The fixer will show a plan for each finding before writing anything. Reply 'yes' to confirm, or 'yes, fix all without asking per item' to skip per-finding plan confirmations."

Wait for the user's reply before proceeding.

Step 3 — Delegate to security-fixer

Spawn the security-fixer agent with:

  • The audit report content (from this session or SECURITY-AUDIT.md)
  • The finding-IDs in scope
  • The user's batch approval preference (per-item confirmation or batch mode)

The fixer will work through findings one by one: show plan → wait for approval (unless batch) → apply change → move to next. Wait for the fixer to return its complete fix manifest before proceeding.

Read the full file on GitHub · 101 lines

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. 3d ago First seen · 101 lines · 57 tokens per session scan A 03fa06c63189

Subscribe to this mod's changes

audit-fix is a command published in the GitHub repository sembraniteam/claude-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 1,098 once invoked, about $0.0003 per session on Opus 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.