pedantic-audit

pedantic-audit is a command for Claude Code from oborchers/fractional-cto. It costs 28 tokens per session (709 once invoked), scanned A, original, MIT.

A repository-wide code check that looks for inconsistent names, letter casing, ordering, matching patterns, and structure. It first studies the codebase's existing conventions, then samples representative files to find departures.

In plain words
What is it for?
Use it to audit an entire repository for naming, formatting, structural, and consistency issues, then produce a report of the findings.
Why use it?
It helps reveal small inconsistencies that can make a codebase harder to read and maintain. It avoids judging every file against generic rules without first seeing how the project is organised.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the pedantic-coder plugin — 16 skills, 3 commands, 1 agent shipped together

Good fit Use it to audit an entire repository for naming, formatting, structural, and consistency issues, then produce a report of the findings.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/oborchers/fractional-cto/pedantic-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/oborchers/fractional-cto

Made for: Claude Code.

Or install pedantic-coder, the plugin that ships this one along with the rest of its 16 skills, 3 commands, 1 agent.

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 pedantic-audit

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/oborchers/fractional-cto/pedantic-audit"><img src="https://agentmods.dev/badge/commands/oborchers/fractional-cto/pedantic-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 709 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.00028 $0.00709
Opus 5.5 $0.00011 $0.00284
Sonnet 5.5 $0.00006 $0.00142
Haiku 4.5 $0.00003 $0.00071

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

Security

Grade A, and why

pedantic-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 5d 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.

pedantic-coder/commands/pedantic-audit.md · 69 lines

What it actually says

Perform a comprehensive pedantic audit of the entire repository (or the scope provided as argument).

Follow this process:

  1. Discover the codebase: Use Glob and Read to understand the repository structure:

    • Identify primary language(s) used
    • Map the directory structure and module boundaries
    • Count total source files by language/extension
    • Identify configuration files, entry points, and key modules
  2. Sample strategically: You cannot read every file. Sample 15-25 representative files:

    • Entry points and main modules (always include)
    • Configuration/settings files (always include)
    • 2-3 files from each major directory/module
    • Any files that define shared patterns (base classes, utilities, constants, types)
    • Prefer files that other files import from — these set conventions
  3. Establish the codebase's conventions: Before flagging violations, identify what conventions the codebase already uses:

    • What casing convention is dominant?
    • How are imports organized?
    • What patterns are established for config, errors, validation?
    • What naming conventions exist for files, classes, functions?
    • Document these as "established conventions" in your report
  4. For each relevant pedantic principle, invoke the corresponding pedantic-coder skill and audit the sampled files:

    • Naming Precision — scan for vague identifiers across the codebase
    • Casing Law — check for mixed conventions across files
    • Import Discipline — compare import ordering across multiple files
    • Declaration Order — check if files follow a consistent shape
    • Symmetry — compare parallel modules (services, handlers, models) for structural consistency
    • One Pattern, One Way — identify where multiple patterns exist for the same problem
    • Magic Value Elimination — grep for inline literals that should be constants
    • Dead Code Intolerance — scan for commented-out blocks, unused imports, stale TODOs
  5. Check language-specific pedantry: Invoke the Python, TypeScript, or Go language pack skill as applicable.

  6. Report findings in this structure:

    Codebase Overview

    • Languages, structure, total files, files sampled

    Established Conventions

    • What the codebase does consistently (acknowledge what's right)

    Findings by Principle

    For each principle with violations:

    • [Principle Name] — X violations across Y files
    • Specific examples with file:line references
    • Whether this is a codebase-wide pattern or isolated incidents
    • The fix (show before/after for representative cases)

    Codebase-Wide Patterns

    • Systemic issues that affect multiple files/modules
    • Convention conflicts (where the codebase disagrees with itself)

    Summary

    • Severity counts: Critical / Important / Nitpick
    • Top 5 highest-impact improvements (repo-wide, not per-file)
    • Overall pedantry score: pristine / clean / acceptable / messy / catastrophic
    • One-paragraph verdict

Focus on codebase-wide patterns over individual file issues. The goal is to identify systemic inconsistencies and establish a path to a pristine codebase.

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. 5d ago First seen · 69 lines · 28 tokens per session scan A adc3751e633b

Subscribe to this mod's changes

pedantic-audit is a command published in the GitHub repository oborchers/fractional-cto (32 stars, last pushed 5d ago), licensed MIT. It adds 28 tokens to every session and 709 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-13.