danwright32

production-ready

Audit a project against a broad production-readiness checklist before sharing it: many parallel specialist auditor agents grade security, data/privacy, testing, reliability, observability, deployment, DR, cost, accessibility, and docs; serious findings are adversarially verified; produces a severity-ranked advisory report and, on approval, files prioritized GitHub issues in the audited repo. User-invoked only (spawns many agents).

danwright32 0 Updated 3w ago

Resources

6
GitHub

Install

npx skillscat add danwright32/claude-config/production-ready

Install via the SkillsCat registry.

SKILL.md

production-ready

A heavyweight, user-invoked production-readiness auditor. A panel of independent specialist agents each grade one domain against the real codebase; serious gaps are adversarially verified; the result is a severity-ranked advisory report (no ship/no-ship gate) that, on your approval, becomes GitHub issues in the audited repo.

Gates marked (user) require the user before continuing.

1. Frame the audit (user)

In conversation with the user, establish:

  • The target project directory (absolute path, so agents read the right repo).
  • The GitHub repo (owner/name) where issues will be filed (the audited repo).
  • Any known focus or exclusions (e.g. "skip accessibility, it's an internal API"). A focus becomes the workflow's focus argument: it adds weight to every auditor and never removes a checklist item.
  • Which systems outside this repo email, text or call the product's consumers: CRM templates, marketing or automation tools, a dialer. Ask this every time. The code cannot show them, and on 2026-10-24 an audit graded a consumer site as sending no email (so CAN-SPAM was never checked) because the repo itself sent none, while three outside systems emailed consumers daily. Pass the names as outsideSystems; an empty answer is a real answer.

Take a quick read of the repo (CLAUDE.md, manifest) so you can confirm the project type you expect. Then present the plan: "I'll run 19 domain auditors, as many at a time as this session's agent cap allows, verify the serious findings, and produce an advisory report", and get a go-ahead with AskUserQuestion. This is heavy and spawns many agents, so confirm before launching.

2. Run the audit (Workflow engine)

First copy the workflow script into this session's scratchpad, because the Workflow tool refuses a script under ~/.claude: it accepts only a path it returned itself or a file inside the working directory, a directory added to the session, or the scratchpad. Run, with the scratchpad directory your system prompt names:

bash ~/.claude/hooks/lib/stage-workflow.sh ~/.claude/skills/production-ready/production-audit.workflow.js "<scratchpad directory>"

It prints one line, the absolute path of an exact copy of the script, and refuses (printing no path) when the scratchpad is missing, relative, or inside ~/.claude. If the session names no scratchpad, read the script and pass its contents unchanged as script instead of scriptPath, rather than writing a copy into the project. Then call the Workflow tool with:

{
  scriptPath: "<the path stage-workflow.sh printed>",
  args: {
    projectDir: "<absolute path to the repo>",
    repo: "<owner/name>",
    date: "<today's date YYYY-MM-DD>",
    focus: "<optional: what to weigh more heavily, from step 1>",
    outsideSystems: ["<each outside system that emails, texts or calls consumers, from step 1>"],
    agentCap: <the number on the [Agent cap] line at session start>
  }
}

Leave focus out when there is none, and pass outsideSystems: [] when the person named none. Never edit the staged copy to add an argument: everything the audit takes is documented here.

Pass that printed path exactly as it is: the Workflow tool takes scriptPath as a literal string and expands neither ~ nor $HOME.

Pass date from your own context: the workflow engine cannot read the clock. It returns { profile, applicable, naDomains, report }, where report = { executiveSummary, whatsSolid, topRisks, severityCounts, backlog, notInspected, unauditedDomains, lawTagsLost }. Each backlog item may carry law, the law its gap exposes the business to (CAN-SPAM, TCPA, ADA, ...).

The workflow runs no more agents at once than agentCap, the session's agent cap (Dan's standing rule), so do not batch the auditors by hand. Pass it as a whole number. Left out, or not a whole number, it falls back to the default for a Mac the hook does not name and logs that it did, since the engine cannot read the number itself. It also keeps the compliance and personal data domains whenever the product is public, holds personal data or messages consumers, whatever the profiler said.

3. Save the report

Render a markdown report from the return value (executive summary, what's solid, top risks, severity counts, the N/A domains with reasons, then the full backlog grouped by domain with status/severity/evidence/remediation/effort, and a Lawsuit risk: line on every item with a law). Then three sections that are never left out, each saying "none" when empty: Not inspected (notInspected: each system or setting nobody could look at, with why; an outside sender listed here was not checked for CAN-SPAM or TCPA at all), Not audited (unauditedDomains: a domain whose auditor died, so it was not checked, which is not the same as clean), and Law tags lost (lawTagsLost: laws a finding named that no backlog item carries, so add them back by hand from the domain's findings). Save it to docs/production-readiness/<date>-report.md in the target repo. Do NOT commit it: tell the user it's there for review.

4. Present (user)

Give a plain-language summary for a product manager: how many critical/high/medium/low gaps, which laws they expose the business to, what's already solid, the top risks, any domains skipped as N/A (with why), and everything under Not inspected and Not audited, so a system nobody looked at is never read as one that passed. If the profile suggests grounding was partial (repo unreadable), say so. Advisory only: do not declare anything ship-blocking.

5. File issues (user)

Offer, via AskUserQuestion, to file the backlog as GitHub issues in the audited repo. On approval:

  1. Ensure labels exist (create missing ones), one per domain key, plus the shared priority labels:

    bash ~/.claude/skills/milestone/ensure-priority-labels.sh "<owner/name>"
    gh label create "production-readiness" --color 5319E7 --description "Found by /production-ready" 2>/dev/null || true

    Do NOT create severity:* labels. They were retired on 2026-07-30: priority is the only urgency scale, and an issue carrying both said the same thing twice. The audit's own severity grading still drives the REPORT; it maps onto the label like this:

    Audit severity Label
    critical priority-p0
    high priority-p1
    medium priority-p2
    low priority-p3

    The scale and the rest of the rules live in ~/.claude/skills/milestone/NAMING.md.

  2. Resolve the milestone BEFORE filing anything. Every issue belongs to a milestone, and a gate blocks any gh issue create without one. The rule for which milestone lives in ~/.claude/skills/milestone/NAMING.md, and it is not restated here. It used to be, and the copy went stale: this skill said a milestone may never be opened from an audit while the file it cited had already been changed to allow it, so whoever read the skill got one rule and whoever read the file got the other (2026-09-02). Read NAMING.md and follow it. In short, three choices in this order: an existing open milestone when the finding ships with that feature, a NEW milestone when 2 or more findings would go into it at once (which an audit sweep produces often, since it reports clusters), or the catch-all Ungrouped. A new one needs the user's approval and is enforced by the helper, which refuses to create without --for-issues <n> and refuses a count of 1.

    Read what the repo already holds first, so the choice is made against the backlog rather than against milestone titles alone. This prints the open milestones with their descriptions and any findings already sitting in the catch-all that share words with this one:

    bash ~/.claude/skills/milestone/milestone-candidates.sh "<owner/name>" --like "<the finding's title>"

    Then resolve it through the shared helper, which reuses a match and refuses to create a near duplicate:

    bash ~/.claude/skills/milestone/ensure-milestone.sh "<owner/name>" "<existing milestone title>"   # reuse only
    bash ~/.claude/skills/milestone/ensure-milestone.sh "<owner/name>" "Ungrouped"                    # the catch-all, no approval
    bash ~/.claude/skills/milestone/ensure-milestone.sh "<owner/name>" "<new feature name>" --create-approved --for-issues <n>   # after approval, n >= 2

    Use the exact title it reports on the MILESTONE-TITLE line: gh matches milestones by name, so a case variant will not be found.

  3. File one issue per backlog item, each assigned to that milestone (group tightly-related items into one issue to avoid spam, especially low severity, which you may group by domain). Title = imperative summary; body = the gap, why it matters, the remediation direction, and the path:line evidence. Label with production-readiness, the mapped priority-pN, and the domain, plus legal-risk when the item carries a law (create it like the others), and put Lawsuit risk: as the body's first line. A gate blocks any gh issue create with no priority label. Never apply any Claude/AI-attribution label.

    These findings are yours, not Dan's: you found them in the audit, so YOU choose each level from the mapping above rather than asking him to arbitrate a backlog he has not read.

    gh issue create --repo "<owner/name>" --title "<title>" --body "<body>" \
      --milestone "<milestone title>" \
      --label "production-readiness" --label "priority-p1"
    
  4. If gh is not installed/authenticated or the repo isn't resolvable, skip filing and tell the user: the saved report still captures everything.

6. Note on grouping

Milestone grouping now happens up front in step 5, not as an afterthought, so no issue is ever left unattached. If the audit backlog is large enough to deserve phases of its own, ~/.claude/skills/milestone/create-milestone.sh still files a whole set in one call:

DRY_RUN=1 bash ~/.claude/skills/milestone/create-milestone.sh "<owner/name>" <plan.json>   # preview
bash ~/.claude/skills/milestone/create-milestone.sh "<owner/name>" <plan.json>             # create

Notes

  • Cost is intended. 19 domain auditors + a profiler + per-finding refute agents + a synthesizer is a lot of subagents per run. That depth is the point; it is why this is user-invoked only. They run within the session's agent cap, so a run takes longer than when they all ran at once.
  • Tests run the script. test-production-audit.sh runs the workflow with every agent stood in (production-audit.harness.cjs) and checks what each auditor is asked and what the report carries. Change a checklist or the report shape there first.
  • Grounding is mandatory. Every auditor is told to read real code and cite path:line; the verify pass exists to overturn false "missing" findings.
  • First run = the prototype. Expect to tune severity calibration and domain checklists after the first real audit.