Skip to content

Commit 1024be7

Browse files
committed
Add clarification & brainstorming loop
1 parent 96a9529 commit 1024be7

6 files changed

Lines changed: 26 additions & 8 deletions

File tree

commands/review-design.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Review the design documentation in `docs/ai/design/feature-{name}.md` (and the p
1313
- API/interface contracts (inputs, outputs, auth)
1414
- Major design decisions and trade-offs
1515
- Non-functional requirements that must be preserved
16-
3. Highlight inconsistencies, missing sections, or diagrams that need updates.
16+
3. **Clarify and explore (loop until converged)**:
17+
- **Ask clarification questions** for every gap, inconsistency, or misalignment between requirements and design. Do not just list issues — actively ask specific questions to resolve them.
18+
- **Brainstorm and explore options** — For key architecture decisions, trade-offs, or areas with multiple viable approaches, proactively brainstorm alternatives. Present options with pros/cons and trade-offs. Challenge assumptions and surface creative alternatives.
19+
- **Repeat** — Continue looping until the user is satisfied with the chosen approach and no open questions remain.
1720
4. **Store Reusable Knowledge** — Persist approved design patterns/constraints with `npx ai-devkit@latest memory store ...` when they will help future work.
1821
5. **Next Command Guidance** — If requirements gaps are found, return to `/review-requirements`; if design is sound, continue to `/execute-plan`.

commands/review-requirements.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Review `docs/ai/requirements/feature-{name}.md` and the project-level template `
1111
- Primary user stories & critical flows
1212
- Constraints, assumptions, open questions
1313
- Any missing sections or deviations from the template
14-
3. Identify gaps or contradictions and suggest clarifications.
14+
3. **Clarify and explore (loop until converged)**:
15+
- **Ask clarification questions** for every gap, contradiction, or ambiguity. Do not just list issues — actively ask specific questions to resolve them.
16+
- **Brainstorm and explore options** — For key decisions, trade-offs, or areas with multiple viable approaches, proactively brainstorm alternatives. Present options with pros/cons and trade-offs. Challenge assumptions and surface creative alternatives.
17+
- **Repeat** — Continue looping until the user is satisfied with the chosen approach and no open questions remain.
1518
4. **Store Reusable Knowledge** — If new reusable requirement conventions are agreed, store them with `npx ai-devkit@latest memory store ...`.
1619
5. **Next Command Guidance** — If fundamentals are missing, go back to `/new-requirement`; otherwise continue to `/review-design`.

packages/cli/templates/commands/review-design.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Review the design documentation in `{{docsDir}}/design/feature-{name}.md` (and t
1313
- API/interface contracts (inputs, outputs, auth)
1414
- Major design decisions and trade-offs
1515
- Non-functional requirements that must be preserved
16-
3. Highlight inconsistencies, missing sections, or diagrams that need updates.
16+
3. **Clarify and explore (loop until converged)**:
17+
- **Ask clarification questions** for every gap, inconsistency, or misalignment between requirements and design. Do not just list issues — actively ask specific questions to resolve them.
18+
- **Brainstorm and explore options** — For key architecture decisions, trade-offs, or areas with multiple viable approaches, proactively brainstorm alternatives. Present options with pros/cons and trade-offs. Challenge assumptions and surface creative alternatives.
19+
- **Repeat** — Continue looping until the user is satisfied with the chosen approach and no open questions remain.
1720
4. **Store Reusable Knowledge** — Persist approved design patterns/constraints with `npx ai-devkit@latest memory store ...` when they will help future work.
1821
5. **Next Command Guidance** — If requirements gaps are found, return to `/review-requirements`; if design is sound, continue to `/execute-plan`.

packages/cli/templates/commands/review-requirements.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Review `{{docsDir}}/requirements/feature-{name}.md` and the project-level templa
1111
- Primary user stories & critical flows
1212
- Constraints, assumptions, open questions
1313
- Any missing sections or deviations from the template
14-
3. Identify gaps or contradictions and suggest clarifications.
14+
3. **Clarify and explore (loop until converged)**:
15+
- **Ask clarification questions** for every gap, contradiction, or ambiguity. Do not just list issues — actively ask specific questions to resolve them.
16+
- **Brainstorm and explore options** — For key decisions, trade-offs, or areas with multiple viable approaches, proactively brainstorm alternatives. Present options with pros/cons and trade-offs. Challenge assumptions and surface creative alternatives.
17+
- **Repeat** — Continue looping until the user is satisfied with the chosen approach and no open questions remain.
1518
4. **Store Reusable Knowledge** — If new reusable requirement conventions are agreed, store them with `npx ai-devkit@latest memory store ...`.
1619
5. **Next Command Guidance** — If fundamentals are missing, go back to `/new-requirement`; otherwise continue to `/review-design`.

skills/dev-lifecycle/references/review-design.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ Review `docs/ai/design/feature-{name}.md` for completeness and fit against requi
55
1. **Search memory** for relevant architecture patterns or past decisions.
66
2. **Cross-check against requirements** — read `docs/ai/requirements/feature-{name}.md` and verify every goal, user story, and constraint has corresponding design coverage. Flag uncovered requirements.
77
3. **Review completeness** — architecture (mermaid diagram), components, technology choices, data models, API contracts, design trade-offs, non-functional requirements.
8-
4. **Ask clarification questions** for every gap or misalignment between requirements and design. Do not just list issues — actively ask specific questions. Example: "Requirements mention offline support but design has no caching — should we add one?"
9-
5. **Update** the design doc with clarified decisions.
8+
4. **Clarify and explore (loop until converged)**:
9+
- **Ask clarification questions** for every gap or misalignment between requirements and design. Do not just list issues — actively ask specific questions. Example: "Requirements mention offline support but design has no caching — should we add one?"
10+
- **Brainstorm and explore options** — For key architecture decisions, trade-offs, or areas with multiple viable approaches, proactively brainstorm alternatives. Present options with pros/cons and trade-offs. Don't just accept the first approach — challenge assumptions and surface creative alternatives.
11+
- **Repeat** — Clarifying answers may reveal new trade-offs worth exploring, and brainstorming may surface new questions. Continue looping until the user is satisfied with the chosen approach and no open questions remain.
12+
5. **Update** the design doc with clarified decisions and chosen options.
1013
6. **Store** clarified architecture decisions in memory.
1114
7. **Summarize** requirements coverage, completeness assessment, updates made, remaining gaps.
1215

skills/dev-lifecycle/references/review-requirements.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ Review `docs/ai/requirements/feature-{name}.md` against the `README.md` template
44

55
1. **Search memory** for relevant conventions or past patterns.
66
2. **Review** each section: problem statement, goals/non-goals, success criteria, user stories, constraints, open questions, template compliance.
7-
3. **Ask clarification questions** for every gap, contradiction, or ambiguity. Do not just list issues — actively ask specific questions to resolve them. Example: "Success criteria say 'fast' — what's the target latency?"
8-
4. **Update** the requirements doc with clarified answers.
7+
3. **Clarify and explore (loop until converged)**:
8+
- **Ask clarification questions** for every gap, contradiction, or ambiguity. Do not just list issues — actively ask specific questions to resolve them. Example: "Success criteria say 'fast' — what's the target latency?"
9+
- **Brainstorm and explore options** — For key decisions, trade-offs, or areas with multiple viable approaches, proactively brainstorm alternatives. Present options with pros/cons and trade-offs. Don't just accept the first approach — challenge assumptions and surface creative alternatives.
10+
- **Repeat** — Clarifying answers may reveal new trade-offs worth exploring, and brainstorming may surface new questions. Continue looping until the user is satisfied with the chosen approach and no open questions remain.
11+
4. **Update** the requirements doc with clarified answers and chosen options.
912
5. **Store** clarifications in memory.
1013
6. **Summarize** what was validated, what was updated, remaining open items.
1114

0 commit comments

Comments
 (0)