Skip to content

Commit 6e764fb

Browse files
committed
fix: Enforce strict 1-question-at-a-time dialogue in sdd-requirements
- Added CRITICAL RULE section with explicit STOP AND WAIT instructions - Added Dialogue Rules (MANDATORY) with clear constraints - Provided example dialogue flow showing turn-by-turn conversation - Removed question list format that caused batch questioning - Made it explicit that AI must END response after one question
1 parent 0e9438b commit 6e764fb

File tree

2 files changed

+124
-46
lines changed

2 files changed

+124
-46
lines changed

.github/prompts/sdd-requirements.prompt.md

Lines changed: 62 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -53,39 +53,78 @@ steering/tech.md # Technology stack
5353

5454
### 2. Interactive True Purpose Discovery (1-on-1 Dialogue)
5555

56-
**CRITICAL**: Conduct a 1-question-at-a-time dialogue to uncover the TRUE PURPOSE.
56+
**CRITICAL RULE**: You MUST ask exactly ONE question, then STOP and WAIT for the user's response. Do NOT ask multiple questions at once. Do NOT list all questions. Do NOT proceed until the user answers.
57+
58+
#### Dialogue Rules (MANDATORY)
59+
60+
1. **ONE QUESTION ONLY**: Ask a single question per turn
61+
2. **STOP AND WAIT**: After asking, end your response immediately
62+
3. **NO QUESTION LISTS**: Never show "Q1, Q2, Q3..." format
63+
4. **SEQUENTIAL FLOW**: Move to next question only after receiving an answer
5764

5865
#### Phase 1: Surface Purpose → True Purpose Discovery
5966

60-
**Ask ONE question at a time. Wait for the user's response before proceeding.**
67+
**Question Sequence** (Ask ONE at a time, wait for answer before next):
68+
69+
**Turn 1**: Start with the WHY question
70+
```
71+
この機能で解決したい『本当の課題』は何ですか?
72+
```
73+
→ STOP HERE. Wait for user response.
74+
75+
**Turn 2**: Based on answer, ask WHO question
76+
```
77+
この機能を最も必要としているのは誰ですか?
78+
```
79+
→ STOP HERE. Wait for user response.
80+
81+
**Turn 3**: Ask WHAT-IF question
82+
```
83+
もしこの機能が完璧に動作したら、何が変わりますか?
84+
```
85+
→ STOP HERE. Wait for user response.
86+
87+
**Turn 4**: Ask CONSTRAINT question
88+
```
89+
この機能で『絶対にやってはいけないこと』はありますか?
90+
```
91+
→ STOP HERE. Wait for user response.
92+
93+
**Turn 5**: Ask SUCCESS CRITERIA question
94+
```
95+
この機能が『成功した』と言えるのはどんな状態ですか?
96+
```
97+
→ STOP HERE. Wait for user response.
98+
99+
**After 5+ turns**: Summarize and confirm
100+
```
101+
ここまでの理解を確認させてください:
102+
[Summary]
103+
この理解で正しいですか?
104+
```
61105

62-
**Question Flow**:
106+
#### Example Dialogue Flow
63107

64-
1. **Why Question** (Dig deeper into purpose)
65-
- "この機能で解決したい『本当の課題』は何ですか?"
66-
- "この機能がないと、誰がどのように困りますか?"
108+
**AI Turn 1**:
109+
> まず、この機能について教えてください。
110+
>
111+
> **この機能で解決したい『本当の課題』は何ですか?**
67112
68-
2. **Who Question** (Identify stakeholders)
69-
- "この機能を最も必要としているのは誰ですか?"
70-
- "この機能の成功を判断する人は誰ですか?"
113+
**User**: "CSVから社員データをインポートしたい"
71114

72-
3. **What-If Question** (Validate assumptions)
73-
- "もしこの機能が完璧に動作したら、何が変わりますか?"
74-
- "この機能なしで、代替手段はありますか?"
115+
**AI Turn 2**:
116+
> なるほど、社員データのCSVインポートですね。
117+
>
118+
> **このインポート機能を最も必要としているのは誰ですか?**(人事部?IT管理者?)
75119
76-
4. **Constraint Question** (Uncover hidden limits)
77-
- "この機能で『絶対にやってはいけないこと』はありますか?"
78-
- "技術的・ビジネス的な制約はありますか?"
120+
**User**: "人事部です"
79121

80-
5. **Success Criteria Question** (Define done)
81-
- "この機能が『成功した』と言えるのはどんな状態ですか?"
82-
- "具体的な数値目標(KPI)はありますか?"
122+
**AI Turn 3**:
123+
> 人事部の方が使うのですね。
124+
>
125+
> **もしこの機能が完璧に動作したら、人事部の業務はどう変わりますか?**
83126
84-
**IMPORTANT**:
85-
- Ask only ONE question and wait for response
86-
- Based on the answer, ask follow-up questions
87-
- Continue until the TRUE PURPOSE is clear
88-
- Summarize understanding and confirm with user
127+
...(continues one question at a time)
89128

90129
---
91130

src/templates/agents/github-copilot/commands/sdd-requirements.prompt.md

Lines changed: 62 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -53,39 +53,78 @@ steering/tech.md # Technology stack
5353

5454
### 2. Interactive True Purpose Discovery (1-on-1 Dialogue)
5555

56-
**CRITICAL**: Conduct a 1-question-at-a-time dialogue to uncover the TRUE PURPOSE.
56+
**CRITICAL RULE**: You MUST ask exactly ONE question, then STOP and WAIT for the user's response. Do NOT ask multiple questions at once. Do NOT list all questions. Do NOT proceed until the user answers.
57+
58+
#### Dialogue Rules (MANDATORY)
59+
60+
1. **ONE QUESTION ONLY**: Ask a single question per turn
61+
2. **STOP AND WAIT**: After asking, end your response immediately
62+
3. **NO QUESTION LISTS**: Never show "Q1, Q2, Q3..." format
63+
4. **SEQUENTIAL FLOW**: Move to next question only after receiving an answer
5764

5865
#### Phase 1: Surface Purpose → True Purpose Discovery
5966

60-
**Ask ONE question at a time. Wait for the user's response before proceeding.**
67+
**Question Sequence** (Ask ONE at a time, wait for answer before next):
68+
69+
**Turn 1**: Start with the WHY question
70+
```
71+
この機能で解決したい『本当の課題』は何ですか?
72+
```
73+
→ STOP HERE. Wait for user response.
74+
75+
**Turn 2**: Based on answer, ask WHO question
76+
```
77+
この機能を最も必要としているのは誰ですか?
78+
```
79+
→ STOP HERE. Wait for user response.
80+
81+
**Turn 3**: Ask WHAT-IF question
82+
```
83+
もしこの機能が完璧に動作したら、何が変わりますか?
84+
```
85+
→ STOP HERE. Wait for user response.
86+
87+
**Turn 4**: Ask CONSTRAINT question
88+
```
89+
この機能で『絶対にやってはいけないこと』はありますか?
90+
```
91+
→ STOP HERE. Wait for user response.
92+
93+
**Turn 5**: Ask SUCCESS CRITERIA question
94+
```
95+
この機能が『成功した』と言えるのはどんな状態ですか?
96+
```
97+
→ STOP HERE. Wait for user response.
98+
99+
**After 5+ turns**: Summarize and confirm
100+
```
101+
ここまでの理解を確認させてください:
102+
[Summary]
103+
この理解で正しいですか?
104+
```
61105

62-
**Question Flow**:
106+
#### Example Dialogue Flow
63107

64-
1. **Why Question** (Dig deeper into purpose)
65-
- "この機能で解決したい『本当の課題』は何ですか?"
66-
- "この機能がないと、誰がどのように困りますか?"
108+
**AI Turn 1**:
109+
> まず、この機能について教えてください。
110+
>
111+
> **この機能で解決したい『本当の課題』は何ですか?**
67112
68-
2. **Who Question** (Identify stakeholders)
69-
- "この機能を最も必要としているのは誰ですか?"
70-
- "この機能の成功を判断する人は誰ですか?"
113+
**User**: "CSVから社員データをインポートしたい"
71114

72-
3. **What-If Question** (Validate assumptions)
73-
- "もしこの機能が完璧に動作したら、何が変わりますか?"
74-
- "この機能なしで、代替手段はありますか?"
115+
**AI Turn 2**:
116+
> なるほど、社員データのCSVインポートですね。
117+
>
118+
> **このインポート機能を最も必要としているのは誰ですか?**(人事部?IT管理者?)
75119
76-
4. **Constraint Question** (Uncover hidden limits)
77-
- "この機能で『絶対にやってはいけないこと』はありますか?"
78-
- "技術的・ビジネス的な制約はありますか?"
120+
**User**: "人事部です"
79121

80-
5. **Success Criteria Question** (Define done)
81-
- "この機能が『成功した』と言えるのはどんな状態ですか?"
82-
- "具体的な数値目標(KPI)はありますか?"
122+
**AI Turn 3**:
123+
> 人事部の方が使うのですね。
124+
>
125+
> **もしこの機能が完璧に動作したら、人事部の業務はどう変わりますか?**
83126
84-
**IMPORTANT**:
85-
- Ask only ONE question and wait for response
86-
- Based on the answer, ask follow-up questions
87-
- Continue until the TRUE PURPOSE is clear
88-
- Summarize understanding and confirm with user
127+
...(continues one question at a time)
89128

90129
---
91130

0 commit comments

Comments
 (0)