| name | agentflow-dod |
| description | Run the Definition of Done gate check before deployment. Use when verifying work is complete, before committing, or when checking if a task meets exit criteria. |
Definition of Done (DOD) Gate
Gate: Must pass BEFORE deployment.
An item that fails DOD cannot be deployed. The queue tail enforces this automatically.
Checklist
Code Quality
Architecture
External Writes
Committed
Deployable
Verification
Pipeline Housekeeping
Enforcement (Mandatory Queue Tail)
1. Analyze changed files (findings use FIPD classification)
2. Deep audit (M+ size tasks only -- security/perf/architecture)
3. Cleanup (fix Low findings, enforce coding standards)
4. Run tests with coverage (if new test files)
5. Atomic conventional commit
6. Deploy (project-specific)
If any step fails, autopilot pauses and reports the blocker.
Output Contract (machine-readable verdict)
The quality gate (quality_gate.run_stage1_dod) consumes this skill via
claude -p and reads the verdict from stdout, not the exit code. Therefore
the final line of your output MUST be exactly one of:
DOD-VERDICT: PASS
DOD-VERDICT: FAIL: <machine_reason>
- Emit
PASS only when every applicable checklist item is satisfied.
- On failure, append a short snake_case
<machine_reason> naming the first
blocking item — e.g. tests_red, uncommitted_changes, audit_findings,
no_provenance, app_boot_failed, secrets_present.
- Emit the line literally, on its own line, as the last meaningful output.
Omitting it makes the gate fail-closed with
dod_no_verdict (inconclusive).
See checklist.md for a printable version.