--- name: launch-check description: Production readiness audit — 10-dimension go/no-go sweep (security, a11y, compliance, analytics, SEO, GEO, perf, monitoring, docs, behaviour-quality). disable-model-invocation: false argument-hint: "[project-path] | trend [project-path] | --workflow [project-path]" effort: high --- # /launch-check — Production Readiness Audit Read `.claude/rules/writing-standard.md`. Use the **controlled technical writing profile** for the audit report. Lead with the verdict and next action; keep findings below it. Runs a 10-dimension sweep against a project and outputs a one-page verdict. Designed for milestone boundaries — epic completion, release cuts, launch prep — not per-PR use. **Invoke from** the project's workspace directory (`cd workspace//`) or pass the path as an argument: `/launch-check workspace/my-app`. **Three modes:** - `/launch-check [project-path]` — full audit (default). Runs all 10 dimensions **serially**, persists results to the per-project history store, and renders a "Trend (last 5 runs)" section when ≥ 2 prior runs exist. - `/launch-check trend [project-path]` — read-only trend report. Renders just the trend section from existing run files. Useful for "are we trending up?" without burning the audit cost. See § "Trend-only mode" below. - `/launch-check --workflow [project-path]` — **opt-in** parallel + adversarially-verified audit. Fans the 10 dimensions out concurrently (one agent each), independently verifies every FAIL/WARN finding before it lands in the verdict, then synthesizes the **same** table and persists via the **same** history store. Faster wall-clock and fewer false positives; costs more tokens (spawns ~10–20 agents). Same output, same trend continuity — see § "Workflow mode" below. ## Deep-dive companions Each dimension has a dedicated expert skill for when you need to go deeper than the one-line summary. The launch check is the overview; the expert skills are the investigation. | Dimension | Quick check | Deep dive | |-----------|------------|-----------| | Security | `/launch-check` row 1 | **`/threat-model`** — full STRIDE threat modelling exercise | | Accessibility | `/launch-check` row 2 | **`/accessibility-audit`** — WCAG 2.1 AA compliance audit | | Compliance | `/launch-check` row 3 | **`/compliance-check`** — GDPR + ePrivacy analysis | | Analytics | `/launch-check` row 4 | **`/analytics-audit`** — event taxonomy and funnel coverage | | SEO | `/launch-check` row 5 | **`/seo-audit`** — technical SEO against Google best practices | | Generative-engine | `/launch-check` row 6 | **`/geo-audit`** — LLM/agent discoverability (GEO + AEO), `llms.txt`, `AGENTS.md`, AI-crawler directives, JSON-LD citation grounding | | Performance | `/launch-check` row 7 | **`/performance-audit`** — bundle, images, Core Web Vitals | | Monitoring | `/launch-check` row 8 | **`/monitoring-audit`** — observability and incident readiness | | Documentation | `/launch-check` row 9 | **`/docs-audit`** — Diataxis framework completeness | | Behaviour quality | `/launch-check` row 10 | **`/mutation-test`** — mutation-testing sensor; measures whether the test suite constrains behaviour, not just executes lines | When a dimension shows WARN or FAIL, tell the user: *"For a detailed analysis, run `/threat-model`"* (or the relevant expert skill). ## Output format The output should be **scannable in 10 seconds**. One table, one verdict, one blockers list: ``` LAUNCH CHECK — @ () | # | Dimension | Status | Finding | |----|--------------------|--------|--------------------------------------| | 1 | Security | PASS | No critical vulns, auth flow ok | | 2 | Accessibility | WARN | 3 images missing alt text | | 3 | Compliance | FAIL | No cookie consent banner detected | | 4 | Analytics | PASS | GA4 configured, 12 events tracked | | 5 | SEO | WARN | Missing og:image on 2 pages | | 6 | Generative-engine | WARN | No llms.txt, AGENTS.md missing | | 7 | Performance | PASS | Bundle < 200KB, LCP < 2.5s | | 8 | Monitoring | FAIL | No health check endpoint found | | 9 | Documentation | PASS | README updated this week | | 10 | Behaviour quality | WARN | Mutation score 54% (threshold 60%) | Verdict: CONDITIONAL GO (2 failures need resolution) Blocking: - [ ] Add cookie consent banner (compliance) - [ ] Add /health endpoint (monitoring) Warnings (non-blocking, address before next launch): - [ ] Add alt text to 3 images (accessibility) - [ ] Add og:image to landing and pricing pages (SEO) ``` **Do NOT dump hundreds of lines.** Each dimension gets ONE row in the table. Details go in follow-up messages only if the user asks "tell me more about the security findings" — not upfront. ## Verdict logic | Condition | Verdict | |-----------|---------| | All dimensions PASS | **GO** — ready to launch | | Some WARN, zero FAIL | **GO with warnings** — launch is safe, address warnings before next milestone | | Any FAIL | **CONDITIONAL GO** — resolve the blocking items before launch | | 3+ FAIL or any critical security finding | **NO-GO** — significant gaps, not launch-ready | ## The 9 dimensions ### 1. Security **What to check:** - Run `npm audit` / `pip audit` / equivalent for dependency vulnerabilities - Grep for hardcoded secrets, API keys, tokens (same patterns as `check-secrets.sh` but against the full codebase, not just staged files) - Check auth flow: is there authentication? Is it using a reputable provider (Cognito, Auth0, Firebase Auth)? Are tokens stored securely (httpOnly cookies, not localStorage)? - Check for common OWASP risks: SQL/NoSQL injection surfaces, XSS vectors (dangerouslySetInnerHTML, v-html), CSRF protection - Check HTTPS enforcement, CORS configuration, security headers **PASS if:** no critical vulns, auth uses a reputable provider, no hardcoded secrets, basic OWASP surface clean. **WARN if:** medium vulns in dependencies, or missing security headers. **FAIL if:** critical vuln, hardcoded secrets found, no auth on a user-facing app, or obvious injection surface. ### 2. Accessibility **What to check:** - Grep for ``, `