commitlisted
Install: claude install-skill morodomi/dev-crew
## Workflow
### Cycle Doc Gate
`for f in docs/cycles/*.md; do [ -f "$f" ] || continue; fm=$(awk '/^---$/{c++;next} c==1{print}' "$f"); echo "$fm" | grep -q '^phase:' || continue; echo "$fm" | grep -q 'phase: DONE' && continue; printf '%s\t%s\n' "$(echo "$fm" | awk 'sub(/^updated: */,""){gsub(/T/," ");print;exit}')" "$f"; done | sort | tail -1 | cut -f2` → found: continue / not found: BLOCK(run spec)
**Phase Ordering Gate**: Progress Log に `REVIEW` の `Phase completed` 記録があるか確認。なければ BLOCK: 「先に review を実行してください」
**Test List Completion Gate**: Test List の TODO/WIP/DISCOVERED に未完了項目(`- [ ] TC-`)が残っていれば BLOCK。DISCOVERED残項目は review の DISCOVERED→Issue 処理に戻す。詳細: [reference.md](reference.md#test-list-completion-gate)
**Progress Log Completeness Gate**: Progress Log に RED/GREEN/REFACTOR/REVIEW の全4フェーズの `Phase completed` 記録があるか確認。不足フェーズがあれば BLOCK。詳細: [reference.md](reference.md#progress-log-completeness-gate)
### Pre-COMMIT Gate (deterministic)
Cycle doc の Progress Log を確認し、以下が全て満たされ��ければ BLOCK:
1. **REVIEW完了**: Progress Log に `### ... - REVIEW` セクションがあり、`Phase completed` 記録がある
2. **Codex review記録** (`which codex` 成功時のみ): Progress Log に `Codex` + `review` の記録がある
3. **retro_status check**: retro_status: captured / resolved で PASS。none で BLOCK (cycle-retrospective 実行)、field 不在は WARN のみで PASS (legacy compat)
```bash
# 1. REVIEW チェック(phaseヘッダーにアンカー)
awk '/^### .* - REVIEW/,/Phase completed/' "$CYCLE_DOC" | grep -qi 'Phase completed'
# 2. Codex review チェック(codex利用可能時のみ)
which codex &&