production-audit is a product audit skill for coding agents such as Claude Code, with the goal of turning "we checked" into "we have converged." It is not satisfied with a single scan followed by a reassuring summary; instead, it repeatedly scans from different perspectives until no new high-signal issues are found.
Purpose: to perform deep, iterative defect audits of a product codebase, covering multiple dimensions from security, authentication, and data integrity to consistency of content claims. It is used both in the discovery phase and in the post-fix verification phase.
Main capabilities:
- Inventory: first enumerate all surfaces of the product, including pages, routes, public claims, background jobs, prompts, icons, emails, localized content, etc., and then audit based on the inventory results, so no assumptions are made about the architecture.
- 24 audit perspectives: each scan uses only one perspective and covers all inventory objects; the diversity of perspectives makes "all issues have been found" more credible. There are also three perspectives used only for post-fix verification: regression, fix-completeness, and over-reach.
- Two-round convergence loop: the discovery phase stops only when two consecutive scans from different perspectives add no new rows; the fix phase stops only when two consecutive scans have no CRITICAL/HIGH. The skill maintains a scan ledger (scan number, perspective used, number of new findings).
- Claim and code consistency verification: it verifies whether public claims (such as security page copy) have corresponding implementation code, which other audit tools do not do by default.
- Default item-by-item verification: every candidate finding is verified against the real code before being reported, for example whether there is upstream protection, whether the check is enforced elsewhere, whether dead code is truly unreachable, and whether tests pass. Findings that cannot be located to file:line or URL + selector are discarded. Verification is about collecting evidence, not excusing findings - located and unexplained security risks are still reported.
- Finding format: each line is independent and actionable, containing severity, location, defect, and remediation suggestion, and enforces its own rules: discard if there is no location, prohibit vague wording such as "consider/might/could," and do not pad content; if context is exhausted, honestly mark TRUNCATED AT ... rather than fabricating a summary.
How to use:
- Claude Code (simplest): install as a plugin.
- Claude Code (manual): copy the skill folder. Skill packageIncludes production-audit/SKILL.md and its referenced files; the audit perspective directory and categories are loaded on demand.
- Other environments (Cursor, Windsurf, Copilot, aider, raw API): paste PROMPT.md; the same methodology, single file, zero installation.
- Can be run by scope, e.g. /production-audit src/billing or /production-audit security.
- By default it only discovers, read-only with no changes; only fix mode makes changes, but every round requires builds, type checks, lint, and tests to all be green, and reverts changes beyond the discovery scope through out-of-bounds review.
- Suppress known false positives: place a .audit-ignore file at the repository root, one entry per line, in the format path:line issue-tag # reason, where reason is required; the audit only reads this file and never writes to it.
Reading the report: lines are sorted from CRITICAL → IMPROVEMENT, and within the same severity level they are grouped by area (SECURITY, AUTH, DATA, PERF, CONTENT, etc.), making it easy for teams to fix line by line from top to bottom.
Applicable scenarios:
- In-depth code audit before release.
- Verification and convergence confirmation after fixes.
- Applicable to any tech stack: web apps, APIs, CLIs, mobile, monorepos. Inapplicable perspectives are skipped (for example, when there are no LLM features, the LLM quality perspective is skipped), while the remaining perspectives run at full depth.
Limitations:
- Source code only: reads code, configuration, and documentation; does not analyze binaries or containers, and supply chain coverage only extends as far as the lockfile reveals.
- Non-deterministic: two runs may find different issues and stop at different points; it is an audit assistance tool, not a reproducible compliance gate.
- Cost and time grow with repository size: a full convergence run for a large product takes hours and consumes a large number of tokens; when a full run is not needed, scope should be limited.
- Convergence is only a bounded heuristic: two quiet scans mean these 24 perspectives no longer find issues, not that there are no issues; it is not a mathematical proof.
- The skill captures the types of defects that tests struggle to find, such as non-atomic sibling writes, errors that bypass gates, states that are marked but actually broken, claims with no code backing them, etc.
- This project was distilled from pre-release audits of real products and is licensed under MIT.