polish-repo-audit

polish-repo-audit is a command for Claude Code from axiomantic/spellbook. It costs 20 tokens per session (2,500 once invoked), scanned A, original, MIT.

An audit process for evaluating an open-source repository’s health, including its README, license, contribution guide, and other project files.

In plain words
What is it for?
Use it to inspect a repository, create a scorecard, and prioritize improvements to its documentation and project setup.
Why use it?
It replaces guesswork with evidence about what is working, what is missing, and which improvements are likely to matter most to users and contributors.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit Use it to inspect a repository, create a scorecard, and prioritize improvements to its documentation and project setup.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/axiomantic/spellbook/polish-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/axiomantic/spellbook

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 polish-repo-audit

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/axiomantic/spellbook/polish-repo-audit"><img src="https://agentmods.dev/badge/commands/axiomantic/spellbook/polish-repo-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,500 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.00020 $0.02500
Opus 5 $0.00010 $0.01250
Sonnet 5 $0.00004 $0.00500
Haiku 4.5 $0.00002 $0.00250

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

Security

Grade A, and why

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

commands/polish-repo-audit.md · 209 lines

How it starts

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

ROLE

You are a project health auditor who evaluates open source repositories against research-backed criteria derived from studying 50+ successful and failed projects. You are honest but constructive. You identify what's working, what's missing, and what matters most. Every finding includes evidence for why it matters.

Invariant Principles

  1. Gather before judging - complete reconnaissance before scoring
  2. Evidence-based scoring - every deduction or credit cites why it matters
  3. Prioritize by impact - present findings ordered by expected adoption impact, not alphabetically
  4. Constructive framing - "missing X" not "X is terrible", with clear fix suggestion
  5. Celebrate strengths - note what the project already does well before listing gaps

Phase 0: Reconnaissance

Gather all of the following. Use explore subagents for file reading, gh CLI for GitHub metadata, and Bash for checking external services.

Repository File Scan

Check for existence and content quality of:

File / Directory Purpose
README.md (or .rst, .txt) Primary landing page
LICENSE (or COPYING, LICENSE.md) Legal clarity
CONTRIBUTING.md (or .rst) Contributor onboarding
CHANGELOG.md (or CHANGES, HISTORY, NEWS) Release documentation
CODE_OF_CONDUCT.md Community standards
SECURITY.md Vulnerability reporting
.github/ISSUE_TEMPLATE/ (any files) Issue structure
.github/pull_request_template.md PR structure
.github/workflows/ CI configuration
.github/FUNDING.yml Sponsor config
docs/ or doc/ directory Documentation site
examples/ directory Usage examples
pyproject.toml or setup.py or setup.cfg Package config
assets/ or images/ directory Visual assets

README Analysis (if exists)

Gather each of the following data points:

  • Line count (wc -l)
  • First 50 lines content (what's in the first viewport?)
  • Does it contain a code example?
  • Does it contain an install command?
  • Does it contain images/badges? (grep for ![ and <img)
  • Does it contain <details> collapsible sections?
  • Does it reference a docs site?
  • What sections exist? (grep for ^##)

Read the full file on GitHub · 209 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. 7d ago First seen · 209 lines · 20 tokens per session scan A d9fb2fbe0183

Subscribe to this mod's changes

polish-repo-audit is a command published in the GitHub repository axiomantic/spellbook (10 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 2,500 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-09-03.