repo-audit

repo-audit is a command for Claude Code from queelius/claude-anvil. It costs 21 tokens per session (920 once invoked), scanned A, original, MIT.

A read-only command that audits repositories for quality gaps and summarizes the results. It reports critical and recommended issues without fixing them.

In plain words
What is it for?
Use it to audit all or filtered repositories, group failures by check, find the worst offenders, and identify repositories with no reported issues.
Why use it?
It shows which repositories have missing or incomplete essentials, development setup, discoverability details, or documentation before you decide what to change.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the repoindex plugin — 1 skill, 5 commands, 2 agents shipped together

Good fit Use it to audit all or filtered repositories, group failures by check, find the worst offenders, and identify repositories with no reported issues.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/queelius/claude-anvil/repo-audit
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.

Clone the repo
git clone --depth 1 https://github.com/queelius/claude-anvil

Made for: Claude Code.

Or install repoindex, the plugin that ships this one along with the rest of its 1 skill, 5 commands, 2 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 repo-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/queelius/claude-anvil/repo-audit/github.svg)](https://agentmods.dev/commands/queelius/claude-anvil/repo-audit)
Your own site
<a href="https://agentmods.dev/commands/queelius/claude-anvil/repo-audit"><img src="https://agentmods.dev/badge/commands/queelius/claude-anvil/repo-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 repo-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/queelius/claude-anvil/repo-audit"><img src="https://agentmods.dev/badge/commands/queelius/claude-anvil/repo-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 920 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.00021 $0.00920
Opus 5.5 $0.00008 $0.00368
Sonnet 5.5 $0.00004 $0.00184
Haiku 4.5 $0.00002 $0.00092

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

Security

Grade A, and why

repo-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 1mo 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.

repoindex/commands/repo-audit.md · 82 lines

How it starts

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

/repo-audit

Run repoindex ops audit with the given filters and summarize the results. Read-only: this command surfaces gaps, it does not fix them.

Arguments

Forward any arguments directly to the CLI. Common filters:

Flag Purpose
--language python Only Python repos
--tag work/active Only repos with a matching tag
--recent 7d Only repos with commits in the last 7 days
--dirty Only repos with uncommitted changes
--category essentials Scope to one category: essentials, development, discoverability, or documentation
--severity critical Minimum severity: critical, recommended (critical + recommended), or suggested (all)

Output format of ops audit --json

JSONL. Every line but the last is one repo: {name, path, score, passed, total, categories, failed, fix_commands}, where each failed entry is {check_id, passed, fix_hint, fix_command?} and carries no severity. The last line is a summary record: {"type": "summary", total_repos, overall_score, checks, categories}, where checks maps each check_id to {label, category, severity, passed, total}. Severity comes only from the summary's checks.

Workflow

Step 1: Run the audit and project it

repoindex ops audit --json <forwarded args> | jq -c 'if .type == "summary" then {summary: (.checks | map_values({label, severity, failing: (.total - .passed)})), total_repos} else select(.failed | length > 0) | {name, failed: [.failed[].check_id]} end'

This keeps only repos with failures (name plus failing check_ids) and the per-check counts, which is far smaller than the raw output.

Step 2: Aggregate

From the projected output:

  • Total repos audited: total_repos.
  • Per check: failing count and severity from the summary; repo names from the per-repo lines whose failed contains that check_id.
  • Repos with no failures: total_repos minus the number of per-repo lines.
  • Worst offenders: repos with the most failing checks, broken down by severity via the summary lookup.

Read the full file on GitHub · 82 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. 1mo ago Changed · -2 lines · -4 tokens per session bebd8f570c89
  2. 1mo ago First seen · 84 lines · 25 tokens per session scan A 822e0367ccc9

Subscribe to this mod's changes

repo-audit is a command published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 920 once invoked, about $0.0001 per session on Opus 5.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-10-19.

Related

repo-audit compared with commands from other repositories

repo-audit next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-auditqueelius/claude-anvilCommand31mo agoMITA21Claude Code
ia-document-releaseiliaal/whetstoneCommand37todayMITA51Claude Code
ia-reviewiliaal/whetstoneCommand37todayMITA15Claude Code
prune-sync-logiliaal/whetstoneCommand37todayMITA17Claude Code
ia-changelogiliaal/whetstoneCommand37todayMITA11Claude Code
releaseiliaal/whetstoneCommand37todayMITA20Claude Code
open-prcarloshpdoc/ios-workflow-claudeCommand76mo agoApache-2.0A0Claude Code