audit

audit is a command for Claude Code from jeet129/praxis. It costs 15 tokens per session (642 once invoked), scanned A, original, MIT.

A kickoff command for understanding and auditing an existing codebase, sometimes called a brownfield project. It organizes project notes, documents the system and its architecture, and starts impact and technical-debt analysis.

In plain words
What is it for?
Use it at the start of work on an existing project to document deployed systems, data flows, runtime and deployment details, high-traffic paths, governance settings, and technical debt.
Why use it?
Existing software often lacks a reliable map of how it runs and how its parts fit together. This creates that baseline before making substantial changes.

Command for Claude Code

Part of the praxis plugin — 26 skills, 12 commands, 17 agents, 6 hooks 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/jeet129/praxis/audit
Clone the repo
git clone --depth 1 https://github.com/jeet129/praxis

Made for: Claude Code.

Or install praxis, the plugin that ships this one along with the rest of its 26 skills, 12 commands, 17 agents, 6 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 audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/jeet129/praxis/audit.svg)](https://agentmods.dev/commands/jeet129/praxis/audit)
Your own site
<a href="https://agentmods.dev/commands/jeet129/praxis/audit"><img src="https://agentmods.dev/badge/commands/jeet129/praxis/audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 642 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.00015 $0.00642
Opus 5 $0.00008 $0.00321
Sonnet 5 $0.00003 $0.00128
Haiku 4.5 $0.00002 $0.00064

Measured 4d ago against content hash 5f0cf17205a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

.claude/commands/audit.md · 36 lines

What it actually says

Brownfield engagement first-week sequence. Run in order:

Day 0 — Setup. Initialize the .project/ memory tree if absent (semantic / decision / episodic / operational / procedural / working / telemetry). Seed the per-project governance overrides: copy the plugin's governance/model-routing.yaml and governance/autonomy.yaml to .project/governance/ if not present. Then ask me ONE concise question set: keep default adaptive routing and autonomy, or tune for this engagement — force_tier, cost_weights, drive stop_after + run_budget. Apply answers to the PROJECT copies only. (Brownfield default worth suggesting: stop_after: slice until characterization-test coverage is trusted.)

Day 1 — codebase-comprehension SKILL. Activate Tech Writer (narrate) + Lead Developer (structure). Produce .repo-intel/ outputs:

  • System map (Level 1 + 2 of C4 derived from actual deployed system, not aspirational diagrams).
  • Data flows (sync + async; cross-boundary).
  • Build + deploy story (what runs where; how it gets there).
  • Runtime model (what processes / containers / functions live).
  • Hot paths (highest-traffic surfaces). Save to .project/semantic/codebase-overview.md plus per-service notes.

Day 2 — architecture-documentation reconciliation. Compare deployed reality vs any existing C4 diagrams + ADRs. Surface discrepancies. Per item, decide:

  • Fix the docs (default).
  • OR open a tech-debt-management entry if docs reflect intended target. Update .project/working/architecture/overview.md.

Day 3 — tech-debt-management brownfield audit. Interview me about what feels hard. Run static analysis (complexity / duplication / coverage) with output captured to .project/working/static-analysis.log — consume the top-N summary per dimension (worst 20 files by complexity, duplication clusters, coverage gaps), never the full tool dump. Produce triaged register at .project/operational/debt-register.md. Limit to 20-50 items. Classify each per Fowler's quadrants (prudent/reckless x intentional/inadvertent). Prioritize by payoff x risk x cost.

Day 4 — impact-analysis for the proposed enhancement. All four lenses (Static + Runtime + Contract + Historical). Surface the blast radius. Recommend: proceed / proceed-with-conditions / scope-blocker. Save to .project/operational/impact-analyses/.

Day 5+ — Phase A starts via /discover.

Common rationalizations to ignore:

  • "I'll skim the code; I don't need comprehension." -> brownfield without comprehension ships incidents. Always run.
  • "200-item register is fine." -> no. Triage to 20-50. The register is a queue, not a graveyard.
  • "Static analysis is the same as impact-analysis." -> no. Four lenses. The IDE doesn't see contracts or history.
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 First seen · 36 lines · 15 tokens per session scan A 5f0cf17205a0

Subscribe to this mod's changes

audit is a command published in the GitHub repository jeet129/praxis (7 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 642 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.