Skip to content
Back to skills

Production Readiness Audit

ASecurity

Audit a live app before it takes people's data or money, then ship the fixes worth it.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrustgogitdatabasesecurity

Works with

  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add Rafaelrr5/agent-cortex --skill production-readiness-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Production Readiness Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Production Readiness Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rafaelrr5-production-readiness-audit/badge)](https://www.skillsdirectory.com/skills/rafaelrr5-production-readiness-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: production-readiness-audit
description: "Audit a live app before it takes people's data or money, then ship the fixes worth it."
version: 1.0.0
author: Rafael Rocha Ribeiro (github.com/Rafaelrr5)
license: MIT
platforms: [linux, macos, windows]
metadata:
  agent:
    tags: [security, audit, hardening, deploy, backups, secrets, prompt-injection]
    related_skills: [premortem, parallel-agent-fanout, delegated-agent-supervision, delivery-verification]
---

# Production readiness audit

## When to Use

- "Is my app ready to take people's data or money?", often prompted by a checklist
  someone shared, or "audit my apps".
- The follow-up "do everything that's really worth it".

## Procedure

1. **Pick the targets yourself** from what you already know: live URL, repo, database,
   deploy path, earlier audit reports. Ask only when it is truly ambiguous.
2. **Audit read-only, one subagent per app, in parallel.** The brief is the checklist
   and hard rules in `references/checklist.md`. Each writes a report with a
   PASS / FAIL / PARTIAL / UNKNOWN verdict per item, live evidence, a ranked fix list,
   and a list of what could not be verified without writing to production. Each also
   re-checks the previous audit's findings.
3. **Verify the top findings yourself** before reporting: fetch the stale preview URL,
   read the workflow trigger, open the migration. A subagent's verdict is a claim.
4. **Report short:** verdict counts per app, the top five fixes each, then offer to
   ship. Shared environments (a team repo, live users) need the owner's explicit go;
   "do everything worth it, now" is that go.
5. **Triage before touching anything.** For each fix, decide worth or skip with a
   one-line reason, and run a quick premortem on it. Typical skips: a test gate on a
   suite that is already red (it would block every deploy), controls that break the
   team's flow, legal text that needs facts only the organisation has (fix only the
   false statements and list the missing facts), costly storage backups. Name each
   skip and the condition that would bring it back.
6. **Execute in parallel lanes:**
   - Production config one-liners yourself, each with before and after proof:
     remove stale preview revisions, rotate leaked keys
     (`references/secret-rotation.md`).
   - Code changes: one subagent per repo on a fresh clone and a new branch, tests and
     build green, committed locally, no push and no production schema change. You
     read the diff, then apply migrations and release.
   - Console tasks that need the owner's login (uptime check, alert policy, billing
     budget): hand them over as a short task and stop at any password, terms or
     payment screen.
   - Static hardening on a server you control (security headers, self-hosted scripts):
     back up the config, test it with automatic restore on failure, reload, then load
     every page in a browser and check for CSP violations and script errors.
7. **Final report:** done and verified, still running, skipped with the reason. Add a
   screenshot where a page changed.

## Rules

- **List secrets by key name only.** Briefs tell subagents to print the names in env
  and credential files (`re.findall(r'^([A-Z_][A-Z0-9_]*)=', text, re.M)`), never the
  values, and to redact known key prefixes before any output. A redaction filter that
  misses one file format leaks the key into the transcript. If that happens: rotate
  the key, scrub the logs that captured it, and say so in the report.
- **Stale preview revisions still carry production secrets.** On platforms that keep
  old revisions reachable through tagged or preview URLs, each one runs old code with
  the current secrets. List them on every service during the audit, remove the tag,
  confirm the URL stops answering, then delete the revision.
- **A backup is real only after a restore drill.** Dump, restore into a scratch
  database, compare row counts per table with live. Until that passes, the backup
  item is UNKNOWN, not PASS.
- **Put the test gate inside the image build.** When people and scheduled agents can
  each deploy from source, a CI job gates nothing: deploys don't go through it. The
  one step every deployer passes through is the build, so run the tests there.
  - Pin the timezone in that step. Build machines usually run in UTC; date tests that
    pass on a laptop in another zone fail in the image. Run the date-heavy tests once
    with `TZ=UTC` before trusting a local run.
  - Check the build's ignore files don't drop files the tests read, while keys and
    build output stay excluded. Raise the build timeout; tests add minutes.
  - Prove the first real build before pushing the gate to the main branch: deploy from
    a detached worktree of that commit, and push only when it's green. A gate that
    fails in the build blocks every other deployer until fixed. A failed build leaves
    production on the old revision, so it is safe, but not silent.
- **CI-based deploys:** trigger the deploy on the test workflow's successful
  completion, reference its head commit everywhere, and skip when that commit is no
  longer the newest on the branch. Never gate on a suite that is already red.
- **Public log input is a prompt-injection path.** A client-error endpoint lets anyone
  write text into your logs. An agent that reads those logs and can push or deploy can
  be steered by that text. Its prompt must treat log content as untrusted data, and a
  fix triggered by client-supplied text needs a human yes before push or deploy. Check
  every incident-responder prompt for this rule.
- **Shared repos:** fetch and rebase the fix branch onto the latest main right before
  release, and rerun the full checks. Teammates ship while the fix is being built.
- **Self-hosting a third-party script:** download it, confirm its sha256 matches what
  the CDN serves today, then rewrite the page and add the CSP. Verify each page with
  listeners for `securitypolicyviolation` and `error` injected before load (empty
  lists mean nothing broke), plus a screenshot. Mirror the edit into the source the
  next deploy uses, or the CDN reference comes back.
- **Strictly read-only during the audit:** no accounts, no state-changing requests, no
  emails. Logged-out probes stay under one request per second.

Files in this skill

  • SKILL.md6.2 KB
  • references/checklist.md3 KB
  • references/secret-rotation.md1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.