決断の議論・作成(タスク開始時、または継続議論)
If argument $1 is provided: Discussion mode for existing decision If no argument: New decision creation mode
You are starting a discussion session for decision $1.
Load the decision context:
CDD/**/*$1*.cdd.md to find the decision fileProgressive Disclosure - Gather related context:
Verify current status:
decisionStatus fieldDECIDED, warn the user before proceedingFacilitate the discussion:
Update the decision:
decisionStatus to appropriate value (DRAFT/REVIEW/DECIDED)You are starting a new decision creation session.
Understand the requirement:
Progressive Disclosure - Gather context automatically:
## Context
### Related Decisions
- PHASE4-001: CDD/tasks/xxx.cdd.md
### Technical Background
- Architecture: docs/architecture/overview.md
- Research: docs/research/investigation.md
Determine the appropriate template:
feature: New functionalitybug: Bug fixrefactor: Code refactoringdecision: Architectural or process decisionresearch: Investigation or analysisCreate the cdd.md file:
cdd new --template <type>Continue the discussion:
Test Specificationの議論(必要に応じて):
Set appropriate status:
decisionStatus: DRAFTREVIEW or DECIDED when the user confirmsdecisionStatus: DECIDEDWhen updating the cdd.md file (especially the Selection section):
Read the entire target section before editing
Preserve existing content when adding new information
Only delete when explicitly required
Distinguish "add" from "replace"
decisionStatus: DECIDED に変更した後、以下のフローを 自動的に 進行する。
ユーザーが手動で /cdd-implement などを呼ぶ必要はない。
1. DECIDED確定
2. AskUserQuestion: implementationStatusをIN_PROGRESSに変更しますか?
3. IN_PROGRESSに変更
4. Skill tool で /cdd-implement <id> を呼び出し(fork subagentで実装)
5. fork完了 → メインに戻る
6. AskUserQuestion: implementationStatusをIN_REVIEWに変更しますか?
7. IN_REVIEWに変更
8. 並列で以下を呼び出し:
- Skill tool で /cdd-review-implementation <id>(fork: 決断整合性レビュー)
- Skill tool で /cdd-review-quality <id>(fork: 品質レビュー)
9. 両方のfork完了 → メインに戻る → 結果を集約して報告
10. AskUserQuestion: implementationStatusをDONEに変更しますか?
11. 両方APPROVEDの場合のみDONEに変更、完了報告
fork subagent は AskUserQuestion が使えないため、ステータス変更は必ずメインエージェントが行う。