/prod-readiness:production-readiness-auditfrom prod-readiness
Runs an eight-lens production readiness audit over a local codebase, producing evidence-tagged findings and a go/no-go report. Use for pre-launch reviews or deploy decisions.
Ships in prod-readiness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Eight senior engineers looking at the same system from eight angles. The job is not code style. It is whether this thing survives contact with real users, real attackers, and real load.
The most dangerous defects in a codebase are the systems that were never built: no monitoring, no backups, no rate limiting, no rollback path. Absence is a finding. But an absence you assert without having looked is worse than one you miss, because it sends the team to build something they already have - or tells them a gap is closed when nobody checked. So the whole design of this skill is built around one distinction: what you proved, what you searched for and did not find, and what you simply cannot see from here.
.readiness-audit/. If the user wants fixes, hand off
at the end.NOT_FOUND cites a ledger
row. validate_findings.py enforces this; do not route around it..readiness-audit/
├── state.json # stage pointer, git ref, lens decisions
├── context.md # Stage 1 - criticality, RTO/RPO, scale, threat model
├── scope.md # Stage 1 - what you can and cannot see
├── runtime-context.json # Stage 1 - live target, role, credential reference only
├── runtime-coverage.json # Stage 3 - screens walked per viewport
├── runtime-sqa.md # Stage 3 - SQA style runtime report
├── runtime-bugs.csv # Stage 3 - one row per runtime bug
├── evidence/
│ ├── inventory.json # Stage 2 - what exists
│ ├── absence-ledger.{json,md} # Stage 2 - what was searched for
│ └── map.md # Stage 2 - the semantic map a script can't write
├── findings/<lens>.json # Stage 3 - one file per lens, authored by the lens
├── findings/<lens>.md # Stage 4 - generated from the JSON, for fix agents
├── verdict.json # Stage 5 - the go/no-go call, as data
├── deferred.md # controls considered and not yet needed
├── report.md # Stage 5 - the readable trail
└── report.json # Stage 5 - what the dashboard renders
${CLAUDE_PLUGIN_ROOT} is this plugin's own directory. Use it directly for all
bundled scripts. Resolve and pass its absolute value to the lens agents, since
they run in their own context.
Parallel is the default. Unless the user explicitly asks for a sequential audit, launch each wave's lenses concurrently. Do not silently choose serial execution to simplify orchestration.
Use sequential only when the user says sequential, asks for one agent at a
time, or invokes /prod-readiness:production-readiness-audit sequential.
Record the selected mode during preflight and preserve it when resuming:
# Default: parallel lenses within each wave
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/audit_state.py" init <root> \
--execution-mode parallel
# Opt-in: one lens at a time
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/audit_state.py" init <root> \
--execution-mode sequential
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/audit_state.py" status <root>
If state exists, tell the user which stage it stopped at and offer to resume or
restart (restart archives the old run rather than deleting it: audit_state.py archive). Otherwise init, which records the git ref and whether the tree is
dirty and execution mode. If it is dirty, say what is uncommitted and let the
user decide before proceeding - an audit of an ambiguous working tree is hard
to act on later.
Immediately after audit_state.py init succeeds (or the user confirms a state
resume), start the dashboard. This is a default step of every audit run, not
something the user opts into or requests:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/readiness_dashboard.py" <root>
The command starts a detached server, waits for it to answer, prints its URL, and exits. It does not block, so run it as an ordinary foreground command - a managed background Bash task is no longer needed. It opens a browser itself where one is available. Report the URL to the user and continue immediately to Stage 1.
The command is idempotent. A dashboard already serving this audit is reused
rather than replaced, so running it twice is safe. A PostToolUse hook runs the
same launcher when the audit state is written, which means the dashboard usually
exists before you ask for it; the reuse rule makes that harmless.
Exit code 0 means a dashboard is serving and the last line of output is its URL.
Any other exit code means the dashboard is unavailable: tell the user, point at
.readiness-audit/dashboard.log, and continue the audit anyway - launch failure
is non-fatal and never blocks the audit. Do not use the dashboard as an audit
agent, and do not change the selected parallel/sequential execution mode.
The server outlives this session so that a reviewer can read the report after
the audit ends. It closes itself after an hour with no reader, and
readiness_dashboard.py <root> --stop closes it immediately.
Offer to add .readiness-audit/ to .gitignore.
Confirm the target is a local directory the user owns or is authorised to review.
Read references/context-intake.md. Write context.md and scope.md.
Do not skip this to get to the interesting part. Severity is a function of
context: the same missing rate limiter is a P0 on an unauthenticated public API
and a P3 on an internal tool behind a VPN. If the user is present, confirm
criticality, RTO/RPO, and threat model with them. If not, infer, mark every
inferred value assumed, and flag the assumptions that would change findings.
Read references/context-intake.md for the runtime intake. Record the live
target before any lens starts:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/runtime_context.py" init <root> \
--url https://staging.example.com \
--environment staging \
--role readonly-auditor \
--credential-ref vault:staging/readonly-user
Store the credential reference only. Store no value. Check readiness before dispatching lenses:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/runtime_context.py" check <root>
If no live target exists, skip the runtime lens and record the reason. If the target is unreachable, abort before lenses start and report the message. The runtime lens uses reads only, one login POST at most, and inspects mutating controls without activating them.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/evidence_scan.py" <root> # what exists
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/absence_probe.py" <root> # what was searched for
The second one is the load-bearing script. It runs roughly ninety deterministic
control probes and records, for each, the patterns searched, the hit count, and
whether zero hits should be reported as NOT_FOUND or as UNVERIFIED. That
second judgement follows a rule worth understanding: a control that normally
lives outside a repository - backups, PITR, alert routing - proves nothing by
being absent from source, unless the repository ships infrastructure-as-code,
in which case the repo is the right place to look and silence is real.
Then do the part no script can: read the entry points, follow the trust
boundaries, and write evidence/map.md. Cover the architecture (services, data
stores, brokers, caches, external dependencies), where authentication and
authorization actually happen, where money and mutable data flow, and the
hotspots worth a lens's attention - auth paths, write paths, external calls,
file and URL handling, infrastructure config. Facts and locations only; no
findings and no opinions yet. The lenses form the opinions.
Keep map.md tight. Eight agents will read it, so every wasted paragraph is
paid for eight times.
Read references/lens-dispatch.md, then dispatch. In short: decide which lenses
have signal, record the skips with reasons, and run three waves - security,
backend, database first, then devops, qa, frontend, ai-security, then runtime
only when a live URL is present, so each later wave can reference the earlier
waves findings instead of duplicating them.
Agent types are prod-readiness:lens-security, lens-backend, lens-frontend,
lens-devops, lens-qa, lens-database, lens-ai-security, lens-runtime.
A lens with no signal is skipped and the skip is declared in the report. The AI security lens in particular states CONFIRMED NOT PRESENT and stops rather than inventing risks for a system with no model calls in it. The runtime lens is skipped with a recorded reason when there is no live URL, or when the target is unreachable at intake, and the verdict stays valid without it.
Run validate_findings.py between waves. If a lens produced errors, send that
lens back with the validator output rather than editing its findings yourself.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/validate_findings.py" <root>
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/finding_store.py" render <root>
Exit code 1 means the report is blocked. The checks are the rules that are easy
to state and easy to quietly break: CONFIRMED cites file:line; NOT_FOUND cites
a zero-hit ledger row that the ledger agrees supports NOT_FOUND; UNVERIFIED says
what would resolve it; P0 articulates a failure path and names its compensating
control; absence is phrased as "not found in reviewed scope"; every finding has
an impact line written for someone who will never open the codebase; and no two
lenses report the same underlying issue.
Fix by re-dispatching the owning lens. Resist the temptation to reword a finding into compliance - if a NOT_FOUND cannot cite a ledger row, the honest fix is usually that it should have been UNVERIFIED.
The render step generates findings/<lens>.md from each lens's JSON, so the
fix agents that come after this audit get the markdown trail they expect without
anyone maintaining two copies. Never hand-edit the generated .md.
Write the verdict first, as data, to .readiness-audit/verdict.json:
{
"headline": "Six confirmed blockers make this unsafe to deploy.",
"summary": "Two are trivially exploitable from a browser... State here how much of this call rests on what you could not see."
}
You write the prose. You do not write the decision: SHIP, FIX_THEN_SHIP, or
HOLD is computed from the validated findings, because the rule is pure
arithmetic - any P0 is HOLD, P1s alone are FIX THEN SHIP, neither is SHIP - and
a counting rule applied by hand is a counting rule that eventually comes out
different. A decision field that disagrees with the findings is a validation
error, so leave it out.
The sentence that matters most is the one in summary saying how much of the
verdict rests on things you could not see. headline is one sentence a
non-engineer reads first; it is the largest text on the dashboard.
Then assemble:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/assemble_report.py" <root>
This writes report.md and report.json. It generates every section that is
arithmetic, renders Section B from verdict.json, and leaves <!-- FILL -->
markers where judgement is still needed: the RPO/RTO gap column, the scalability
ordering, and each lens's closing line. Read references/report-writing.md and
fill them all. The script reports how many remain; zero is the finish line.
The rigid parts here - the read-only rule, the ledger citation requirement, the
validator - exist because an audit that is persuasive but wrong is worse than a
shorter one that is honest. Everything else should flex to the system in front
of you. If the repository is a stack none of the lens checklists anticipated,
say so in map.md and reason about it directly rather than forcing it into the
closest-sounding pattern. And judge missing systems against this system's scale,
threat model, and criticality - not against a checklist written for someone
else's infrastructure.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub taimoorkhan1122/prod-readiness --plugin prod-readinessOther plugins' skills for the same job