| name | superdev-done |
| description | Run superdev's machine-checkable Definition-of-Done gate on demand. Reads COMPLETION_LEDGER.json (build/typecheck/lint/integration/completeness/security/qa/brutal verdicts) plus live no-suppressions and demo/placeholder sweeps, and reports PASS/FAIL with the exact failing checks. Use when asked "are we done", "is it production ready", "run the done gate / completeness gate", or BEFORE declaring any superdev build complete. The same gate runs automatically as a Stop hook during superdev builds, so a "done" claim cannot be made while any check is red. |
superdev — Definition of Done
The single source of truth for "is this build actually done?" — not narrative, not "it typechecks", but every Phase D verdict plus live anti-regression sweeps. This is what prevents the failure mode where a build is declared "done / live / production-ready" while it still has lint errors, mock data, or unaudited security holes.
How to run
Run the gate in report mode and read the result:
bash "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/done-gate.sh" --report
- Exit
0 → DONE: every gate in COMPLETION_LEDGER.json is pass (or an explicitly deferred accepted risk), no suppressions were introduced since the build base, and no demo/placeholder content remains in apps/web/src.
- Exit
1 → NOT DONE: the report lists the exact failing checks. Resolve each at the ROOT CAUSE — do NOT suppress (no eslint-disable, @ts-ignore, as any, rule downgrades) and do NOT leave mock data on success paths. Then re-run.
What it checks
See ../prd-design-build-orchestrator/references/done-gate.md for the full ledger schema and check definitions. In short: