aposd-audit

aposd-audit is a skill for Claude Code from mhenke/john-ousterhout-skills. It costs 36 tokens per session (4,352 once invoked), scanned A, original, MIT.

A quantitative audit that scores code design across five measurable areas: pass-throughs, duplication, documentation gaps, naming issues, and exception patterns.

In plain words
What is it for?
Use it to audit a directory, file, or whole codebase for observable design-quality problems.
Why use it?
It turns broad design concerns into countable findings and a score, while leaving the actual fixes for later review.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the aposd-skills plugin — 4 skills shipped together

Good fit Use it to audit a directory, file, or whole codebase for observable design-quality problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mhenke/john-ousterhout-skills/aposd-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.

Any agent
npx skills add mhenke/john-ousterhout-skills --skill aposd-audit
Clone the repo
git clone --depth 1 https://github.com/mhenke/john-ousterhout-skills

Made for: Claude Code.

Or install aposd-skills, the plugin that ships this one along with the rest of its 4 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/mhenke/john-ousterhout-skills/aposd-audit/github.svg)](https://agentmods.dev/skills/mhenke/john-ousterhout-skills/aposd-audit)
Your own site
<a href="https://agentmods.dev/skills/mhenke/john-ousterhout-skills/aposd-audit"><img src="https://agentmods.dev/badge/skills/mhenke/john-ousterhout-skills/aposd-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 aposd-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/mhenke/john-ousterhout-skills/aposd-audit"><img src="https://agentmods.dev/badge/skills/mhenke/john-ousterhout-skills/aposd-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,352 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.00036 $0.04352
Opus 5 $0.00018 $0.02176
Sonnet 5 $0.00007 $0.00870
Haiku 4.5 $0.00004 $0.00435

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

Security

Grade A, and why

aposd-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 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (examples/full-audit-workflow.sh, scripts/critique-storage.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/aposd-audit/SKILL.md · 368 lines

How it starts

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

aposd audit — Design Quality Audit

Run systematic design quality checks and generate a comprehensive report. Don't fix issues; document them for review.

This is a code-level design audit — check what's measurable and verifiable in the implementation. Every dimension is scored by counting concrete, observable constructs. Fix the count → score goes up, every time.

Follows the impeccable audit convention: measure what's objectively countable, not what's interpretive.

Scoring rubric: Score each dimension 0-4. Total /20. Rating bands: 18-20 Excellent, 14-17 Good, 10-13 Acceptable, 6-9 Poor, 0-5 Critical.

Quick Start

aposd audit src/          # audit a directory
aposd audit src/services/order-service.js  # audit a single file
aposd audit               # defaults to workspace root

The report is printed to stdout.

Scope

This skill audits a single codebase target per invocation. It measures 5 design dimensions by counting observable constructs — pass-throughs, duplication, documentation gaps, naming issues, and exception patterns. It does not evaluate functional correctness, runtime performance, or test coverage. Each dimension is scored 0-4 from concrete evidence only.

What this skill does NOT cover:

  • Functional correctness — does the code produce the right output?
  • Runtime performance — how fast does it execute?
  • Test coverage — are there enough tests?
  • Security vulnerabilities — are there injection flaws or auth gaps?
  • Code style / formatting — does it follow lint rules?
  • Architectural fitness — are you using the right pattern for the job?
  • Business logic completeness — are all requirements implemented?

Setup

Resolve the target to a concrete file path, directory, or module name. If no target is specified, default to the current workspace root directory.

Full scan: Scan all files in the target — no sampling. For large targets (>50 files), use sub-agents to parallelize the scan across directory groups.

Input / Output

Read the full file on GitHub · 368 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 368 lines · 36 tokens per session scan A bd0c326c7c5e

Subscribe to this mod's changes

aposd-audit is a skill published in the GitHub repository mhenke/john-ousterhout-skills (6 stars, last pushed 3mo ago), licensed MIT. It adds 36 tokens to every session and 4,352 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

Tech Debt Auditor

Identifies and prioritizes technical debt in a codebase with an effort/impact matrix.

Notysoty/openagentskills · 22 tokens

refactor-agent

Safe, systematic code refactoring — extract functions, reduce complexity, eliminate duplication, improve naming. Use when improving code structure without changing behavior.

chandrudp29/skillhub · 32 tokens

RubyCritic Code Quality Analysis

Analyze Ruby and Rails code quality with RubyCritic. Identifies code smells, complexity issues, and refactoring opportunities. Provides detailed metrics, scores files A-F, compares branches, and prioritizes high-churn problem areas. Use when analyzing Ruby code quality, reviewing PRs, or identifying technical debt.

esparkman/claude-rubycritic-skill · 68 tokens

code-refactoring-advisor

Enterprise code refactoring advisor that detects code smells, anti-patterns, and complexity issues with specific refactoring recommendations, test generation, and maintainability metrics.

XSpoonAi/spoon-awesome-skill · 36 tokens

software-code-refactoring

Improve production code quality while preserving all existing test behavior. Commonly used for the Refactor phase of TDD red-green-refactor, but applicable to any codebase with tests. Use when production code works but needs cleanup — reducing duplication, improving naming, simplifying complexity, aligning with…

stencila/stencila · 102 tokens

simplify-codebase

Simplification audit or authorized codebase simplification whose stated objective is to remove accidental complexity. Use for evidence-backed deletion or consolidation of dead code, duplicate state, redundant APIs or layers, ownerless abstractions, obsolete compatibility or design records, and over-engineering in any…

tt-a1i/simplify-codebase · 93 tokens