audit

audit is a command for Claude Code from adilkalam/orca. It costs 9 tokens per session (7,671 once invoked), scanned B, original, MIT.

A command for checking a codebase through direct evidence, recording each claim, check, and result.

In plain words
What is it for?
Use it for quick health checks, broader due-diligence reviews, or focused checks of areas such as design systems, pages, data, and authentication.
Why use it?
It helps reveal quality, consistency, and risk issues without relying on unsupported assumptions. A codebase is the project's source files and configuration.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; names the AskUserQuestion tool.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is OP-2 | CLEAN: ios-pipeline.md:45 links to "../reference/ios-phase-config.yaml" -- file exists.

Good fit Use it for quick health checks, broader due-diligence reviews, or focused checks of areas such as design systems, pages, data, and authentication.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/adilkalam/orca
agentmods
npx agentmods add commands/adilkalam/orca/audit

Made for: Claude Code.

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/adilkalam/orca/audit/github.svg)](https://agentmods.dev/commands/adilkalam/orca/audit)
Your own site
<a href="https://agentmods.dev/commands/adilkalam/orca/audit"><img src="https://agentmods.dev/badge/commands/adilkalam/orca/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 audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/adilkalam/orca/audit"><img src="https://agentmods.dev/badge/commands/adilkalam/orca/audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,671 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00009 $0.07671
Opus 5.5 $0.00004 $0.03068
Sonnet 5.5 $0.00002 $0.01534
Haiku 4.5 $0.00001 $0.00767

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

Security

Grade B, and why

audit scanned grade B with 1 finding 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 3mo 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .orca/audit/temp/

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

commands/audit.md · 833 lines

How it starts

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

/audit - Due Diligence Codebase Auditing

Philosophy: Investor-grade quality assessment. This command evaluates quality, consistency, and risk through direct evidence-based verification. Every finding includes the claim checked, the verification performed, and the result.

Independent from pipelines: /audit is NOT a gate or verification agent. It's a standalone diagnostic tool that runs independently of /ios, /nextjs, etc.

Direct execution: All verification is performed directly by the executing agent using a structured process schema. No subagent delegation. Evidence trails make verification work transparent and gaps detectable.


Verbose Flag

Include verbose: false in every cognition MCP call from /audit. This is a multi-call command; the minimal ACK response saves tokens.

Command Modes

# Quick health check (~10 min) - 3 core dimensions
/audit

# Full due diligence audit (~60-90 min) - all dimensions
/audit --comprehensive

# Core dimensions only (~25 min) - 5 dimensions
/audit --core

# Focused audit on specific area (~10-15 min)
/audit --item design-system
/audit --item page /checkout
/audit --item data
/audit --item module auth
/audit --item infra

# Deep documentation verification (~20-30 min) - samples key docs, all 6 ops
/audit --documentation

# Exhaustive documentation verification (no time limit) - every file, every line
/audit --documentation --comprehensive

# Incremental audit since commit
/audit --since abc1234

# Verbosity
/audit --verbose  # Full findings (default: TL;DR only)

Invalid combinations: --documentation --since is not supported (error: documentation verification requires full file reads, not diffs).


Quality Dimensions

# Dimension Weight Execution Order
1 Structure Quality 0.10 1st
2 Security Posture 0.20 2nd
3 Dependency Health 0.15 3rd
4 Pattern Consistency 0.10 4th
5 Architecture Health 0.15 5th
6 Test Quality 0.15 6th
7 Documentation Quality 0.10 7th
8 Design Integrity 0.05* 8th

Read the full file on GitHub · 833 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. 3mo ago First seen · 833 lines · 9 tokens per session scan B 2d1617279ba2

Subscribe to this mod's changes

audit is a command published in the GitHub repository adilkalam/orca (2 stars, last pushed 1mo ago), licensed MIT. It adds 9 tokens to every session and 7,671 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

audit compared with commands from other repositories

audit next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
auditadilkalam/orcaCommand21mo agoMITB9Claude Code
review-branchdamusix/atomic-claudeCommand117yesterdayMITA35Claude Code
diff-reviewcoco-research/cocoCommand323yesterdayApache-2.0A11Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
initazrtydxb/procoderCommand21221d agoApache-2.0A16Claude Code
refactorRchGrav/claudeboxCommand1.2k2mo agoMITA9Claude Code