audit

audit is a skill for Claude Code, Codex from rainmanjam/poka-yoke. It costs 42 tokens per session (1,205 once invoked), scanned A, original, MIT.

A structured review of existing code that looks for design and organisation problems rather than only bugs. It examines public interfaces, names, dependencies, long functions, and tests.

In plain words
What is it for?
Use it to find mixed responsibilities, misleading names, incorrect dependency direction, and duplication that may cause later divergence.
Why use it?
Code can pass its tests while still making future changes risky, confusing, or expensive.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find mixed responsibilities, misleading names, incorrect dependency direction, and duplication that may cause later divergence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rainmanjam/poka-yoke/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 rainmanjam/poka-yoke --skill audit
Clone the repo
git clone --depth 1 https://github.com/rainmanjam/poka-yoke

Made for: Claude Code, Codex.

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/skills/rainmanjam/poka-yoke/audit.svg)](https://agentmods.dev/skills/rainmanjam/poka-yoke/audit)
Your own site
<a href="https://agentmods.dev/skills/rainmanjam/poka-yoke/audit"><img src="https://agentmods.dev/badge/skills/rainmanjam/poka-yoke/audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,205 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00042 $0.01205
Opus 5 $0.00021 $0.00602
Sonnet 5 $0.00008 $0.00241
Haiku 4.5 $0.00004 $0.00120

Measured 8d ago against content hash 5f81edfea59d, 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.

benchmarks/controls/clean-code/skills/audit/SKILL.md · 109 lines

How it starts

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

Audit: Reading Code That Already Works

Everything you are looking at ships and passes its tests. That is the constraint. You are not hunting for bugs; you are finding the places where the structure will make the next change expensive or risky, and saying which ones are worth paying to fix now.

That framing matters, because a review that lists everything imperfect is indistinguishable from a review that found nothing important.

Read in this order

1. The public surface. Exported functions, classes and endpoints. This is what other code depends on, so problems here have the largest blast radius and the highest migration cost.

2. The names. Read them without reading the bodies. Any name that turns out to be wrong once you read the implementation is a finding, because every future reader will make the same mistake you just did.

3. The imports. They show the dependency direction at a glance. Business logic importing a web framework, an ORM or a mail client is the single most reliable structural smell.

4. The longest functions. Not because length is the problem, but because that is where several responsibilities usually ended up together.

5. The tests. Tests are a readout of the design. Heavy mocking means tangled dependencies. Long setup means complicated construction. Absent tests for the core logic usually means the core logic is hard to reach.

What to look for

Responsibilities that drifted together. Describe the unit in one sentence. If you need "and", note where the seam is: which parts change for different reasons, and on whose schedule.

Names that have gone stale. A function called validate_user that also creates a session. A TempFile class that outlives the request. A config parameter that is actually a feature flag. The code changed, the name did not, and the name is what the next reader trusts.

Dependency direction. Which module could not be tested, reused or moved without dragging something heavy behind it? That is coupling with a cost you can name.

Read the full file on GitHub · 109 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. 8d ago First seen · 109 lines · 42 tokens per session scan A 5f81edfea59d

Subscribe to this mod's changes

audit is a skill published in the GitHub repository rainmanjam/poka-yoke (22 stars, last pushed 6d ago), licensed MIT. It adds 42 tokens to every session and 1,205 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-30.

Related

Other skills, from other repositories

Nullability Contract Review

Detect null/undefined/empty handling gaps where callers or consumers may receive unexpected nullish values.

s977043/river-review · 24 tokens

skill-audit

Audit codebases for quality, consistency, and broken patterns — use for pre-release or tech debt review.

nyldn/claude-octopus · 24 tokens

critical-code-reviewer

Rigorously review code or pull requests for correctness, security, accessibility, maintainability, tests, and edge cases. Use when users request a critical code review, want a guided walkthrough of findings, need implementer-facing feedback, or want to prepare, create, or submit a GitHub pull request review.

posit-dev/skills · 67 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

second-pass-review

Independent audit of sanitized specs in workspace/output/. Three parallel LLM-based reviewer roles check structural leakage, content contamination, and behavioral completeness. Run AFTER Layer 5 sanitization, BEFORE implementation handoff.

prime-radiant-inc/greenfield · 44 tokens

check-pr

Read-only inspection of a single GitHub PR lifecycle — checks CI, review threads, description sync, and mergeability, and returns PASS or FAIL with per-gate findings. Never invokes the merge button. Use when verifying a PR is ready to merge, polling lifecycle progress, checking mergeability, or babysitting a GitHub PR…

doodledood/manifest-dev · 74 tokens