ai-agents-workspace-starter: Command for Claude Code

.claude/commands/audit.md

audit is a command for Claude Code from systemowiec/ai-agents-workspace-starter. It costs 8 tokens per session (175 once invoked), scanned A, original, MIT.

A command for running a structured code audit with a quality score across architecture, security, tests, code quality, contracts, and documentation.

In plain words
What is it for?
Use it to audit a commit, feature, or whole codebase through a separate read-only reviewer and save the review report.
Why use it?
It turns a broad review into a defined checklist and records the findings in a report. It also captures newly discovered project-specific pitfalls.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; mentions AGENTS.md.

This is systemowiec/ai-agents-workspace-starter's own configuration. It tells Claude Code how to work on ai-agents-workspace-starter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-agents-workspace-starter configures →

Reuse

Borrowing it

Nothing to install: this file belongs to systemowiec/ai-agents-workspace-starter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/systemowiec/ai-agents-workspace-starter/main/.claude/commands/audit.md
Clone the repo
git clone --depth 1 https://github.com/systemowiec/ai-agents-workspace-starter

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/systemowiec/ai-agents-workspace-starter/audit.svg)](https://agentmods.dev/commands/systemowiec/ai-agents-workspace-starter/audit)
Your own site
<a href="https://agentmods.dev/commands/systemowiec/ai-agents-workspace-starter/audit"><img src="https://agentmods.dev/badge/commands/systemowiec/ai-agents-workspace-starter/audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 175 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.00008 $0.00175
Opus 5 $0.00004 $0.00088
Sonnet 5 $0.00002 $0.00035
Haiku 4.5 $0.00001 $0.00017

Measured 8d ago against content hash 0ca901f8db98, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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 · 17 lines

What it actually says

Run quality-gate subagent.

  1. Read .agents/roles/quality-gate.md - scoring system and checklist
  2. Read AGENTS.md - global rules
  3. Read .agents/learnings/gotchas.md - known gotchas
  4. Ask user for scope: last commit / feature X / full audit
  5. Perform scoring according to 6 categories (architecture, security, tests, quality, contracts, docs)
  6. Save report in docs/specs/{layer}/{PREFIX}-NNN/review-{role}.md
  7. If you found a gotcha - propose an entry to .agents/learnings/gotchas.md

IMPORTANT: Always run as a separate subagent (readonly). NEVER audit code you wrote yourself in the same session.

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. 8d ago First seen · 17 lines · 8 tokens per session scan A 0ca901f8db98

Subscribe to this mod's changes

audit is a command published in the GitHub repository systemowiec/ai-agents-workspace-starter (2 stars, last pushed 5mo ago), licensed MIT. It adds 8 tokens to every session and 175 once invoked, about $0.0000 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.