audit

audit is a command for coding agents from akirtok/preflight-security-audit. It costs 13 tokens per session (674 once invoked), scanned A, original, MIT.

A command that runs a complete pre-release security and readiness review of a software project and writes a report.

In plain words
What is it for?
Use it before shipping to inspect the project scope, run security, privacy, code, AI, and launch-readiness checks, and record findings, including relevant checks as not applicable.
Why use it?
It brings several audit areas together and checks which parts apply to the project’s languages, frameworks, services, and deployment setup.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the preflight-security-audit plugin — 1 skill, 1 command, 6 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/akirtok/preflight-security-audit/audit
Clone the repo
git clone --depth 1 https://github.com/akirtok/preflight-security-audit

Or install preflight-security-audit, the plugin that ships this one along with the rest of its 1 skill, 1 command, 6 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

README.md
[![agentmods](https://agentmods.dev/badge/commands/akirtok/preflight-security-audit/audit.svg)](https://agentmods.dev/commands/akirtok/preflight-security-audit/audit)
Your own site
<a href="https://agentmods.dev/commands/akirtok/preflight-security-audit/audit"><img src="https://agentmods.dev/badge/commands/akirtok/preflight-security-audit/audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 674 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.1 $0.00013 $0.00674
Opus 5 $0.00006 $0.00337
Sonnet 5 $0.00003 $0.00135
Haiku 4.5 $0.00001 $0.00067

Measured 5d ago against content hash e643ba0ff3bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

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 5d 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.

plugins/preflight-security-audit/commands/audit.md · 50 lines

What it actually says

Run a comprehensive Preflight Security Audit on $1 (default: the current project root). Follow the methodology in the preflight-security-audit skill — read ${CLAUDE_PLUGIN_ROOT}/skills/preflight-security-audit/SKILL.md and the reference files it points to.

Execute these steps:

  1. Scope & detect stack. Read package.json/lockfiles/config and skim the tree to identify languages, frameworks, and services (Next.js, Supabase, Stripe, AI SDKs, email providers, etc.). State the scope and detected stack up front. From the stack, decide which stack-conditional passes apply — serverless/edge (Vercel/Netlify/Lambda/Workers), GraphQL/WebSocket/SSE, Docker (Dockerfile/compose), and JWTs — and skip the ones whose markers are absent (mark them N/A).

  2. Run all six tracks. Always run every track; stack-conditional passes run only when their marker was detected in step 1 — skip and mark N/A otherwise (keeps scans fast).

    • Prefer to dispatch the five auditor agents in parallel with the Task tool: code-core-auditor, web-security-auditor, ai-security-auditor, privacy-compliance-auditor, launch-readiness-auditor. Give each the scope path and tell it to read its matching reference file.
    • If subagents are unavailable, run the passes inline by reading each reference file (0105) and sweeping the code yourself.
  3. Collect every raw finding with: file:line, track, category, description, exploit/failure path, suggested fix, proposed severity.

  4. Verify (Track 6). Run the combined findings through the finding-verifier agent (or references/06-verification.md inline). Reject anything unprovable, merge duplicates, and recalibrate severity per the rubric.

  5. Write the report to AUDIT-<YYYY-MM-DD>.md in the project root using the template in SKILL.md. Include the summary counts, the 0–100 security score (per references/06-verification.md), and the ship recommendation (BLOCK / FIX-FIRST / GO-WITH-FOLLOWUPS / GO).

  6. Report back in chat: the counts, the security score, the ship recommendation, and the top 3 findings. For every Critical and High finding, show the proposed fix as a concrete diff and ask which the user wants applied. Do not edit any code in this command — applying fixes is done by /audit-fix after approval.

Be evidence-driven: never report a finding you cannot tie to a concrete line and a real exploit or failure path. A false alarm is as harmful as a miss.

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. 5d ago First seen · 50 lines · 13 tokens per session scan A e643ba0ff3bb

Subscribe to this mod's changes

audit is a command published in the GitHub repository akirtok/preflight-security-audit (4 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 674 once invoked, about $0.0001 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.

Related

Other commands, from other repositories

edit-meta-creative

Edit a Meta ad's creative content — landing page URL, primary text, headline, description, CTA, link description — across one ad or many. Use when the user says "change the URL on my ads", "update the copy", "swap the CTA", or anything that changes what an existing Meta ad shows. Meta does not allow in-place creative…

markifact/markifact-mcp · 88 tokens

diagnose-underperformer

Diagnose why a specific Google Ads or Meta Ads campaign / ad set / ad is underperforming and prescribe the next concrete action. Use when the user says something like "why is X not converting?", "this campaign is wasting money", or "why are impressions so low?". Read-only — no changes are made.

markifact/markifact-mcp · 64 tokens

launch-meta-campaign

Launch a complete Meta Ads campaign — campaign, ad set, and ad(s) — built paused and ready to review. Use when the user wants a new Facebook/Instagram campaign.

markifact/markifact-mcp · 36 tokens

launch-pmax

Launch a Google Ads Performance Max campaign with a complete asset group, audience signals, and (for ecom) listing groups. Built paused for review. Use when the user wants a new PMax campaign.

markifact/markifact-mcp · 41 tokens

negative-keyword-sweep

Find wasted spend in Google Ads search terms and add negatives at the right scope (account list, campaign, or ad group). Use when the user says "find junk keywords", "stop wasting on bad searches", or wants a search-terms cleanup.

markifact/markifact-mcp · 50 tokens

save

Save this conversation as a new or existing reusable context.

XTSoftwareLabs/neatcontext-plugins · 10 tokens