| name | dev-loop-phase-gate |
| description | Verify that each dev loop phase completed correctly before proceeding to the next. Use between phases to enforce quality gates -- ensures tests pass, reviews are addressed, and no phases are skipped. |
Dev Loop Phase Gate
Verify that the current dev loop phase completed successfully before the orchestrator
proceeds to the next phase. This skill enforces quality gates deterministically.
Phase Verification Checklist
After Phase 3 (TDD)
Verify command:
dotnet build --no-restore && dotnet test --no-build --verbosity normal
Invoke-Pester -Path tests/ -Output Detailed
npx tsc && npx vitest run
After Phase 4 (Refactor)
After Phase 5 (Functional Testing)
After Phase 5b (Evidence and Verify)
After Phase 6 (Code Review)
After Phase 7 (PR + Copilot Review)
Failure Routing
If any verification fails:
| Failed Gate | Route To |
|---|
| Phase 3 (tests fail) | Stay in Phase 3 |
| Phase 4 (tests break) | Back to Phase 3 |
| Phase 5 (functional tests fail) | Back to Phase 3 |
| Phase 5b (AI-review fails, iter < 3) | Stay in Phase 5b -- fix and re-capture |
| Phase 5b (AI-review fails, iter == 3) | Escalate to human; pause autonomous loop |
| Phase 6 (review issues found) | Back to Phase 3 |
| Phase 7 (CI fails or review issues) | Back to Phase 3 |
Maximum 3 loop iterations. After 3 rounds with unresolved Critical issues,
escalate to the user.
Progress Report Template
## Dev Loop -- Iteration <N>
**Branch:** `<branch-name>`
**Loop iteration:** <N> of 3 max
| Phase | Status | Notes |
|---|---|---|
| 3 -- TDD | Done/In Progress/Pending | <details> |
| 4 -- Refactor | Done/In Progress/Pending | <details> |
| 5 -- Functional Testing | Done/Skipped/Pending | <details> |
| 6 -- Code Review | Done/In Progress/Pending | <details> |
| 7 -- PR + Review | Done/In Progress/Pending | <details> |
**Next action:** <what happens next>