@vpxa/aikit 0.1.74 → 0.1.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/package.json +6 -1
  2. package/packages/cli/dist/index.js +2 -2
  3. package/packages/cli/dist/{init-DQkar6Es.js → init-CuRXmyD9.js} +1 -1
  4. package/packages/cli/dist/scaffold-WMQ2uQ48.js +2 -0
  5. package/packages/cli/dist/{user-CopNWxHP.js → user-vbJwa7x2.js} +1 -1
  6. package/scaffold/dist/adapters/claude-code.mjs +4 -0
  7. package/scaffold/dist/adapters/copilot.mjs +75 -0
  8. package/scaffold/dist/adapters/flows.mjs +1 -0
  9. package/scaffold/dist/adapters/skills.mjs +1 -0
  10. package/scaffold/{compiled → dist/compiled}/flows-data.mjs +304 -446
  11. package/scaffold/{compiled → dist/compiled}/skills-data.mjs +554 -2281
  12. package/scaffold/dist/definitions/agents.mjs +9 -0
  13. package/scaffold/{definitions → dist/definitions}/bodies.mjs +6 -229
  14. package/scaffold/dist/definitions/exclusions.mjs +1 -0
  15. package/scaffold/dist/definitions/hooks.mjs +1 -0
  16. package/scaffold/dist/definitions/models.mjs +1 -0
  17. package/scaffold/dist/definitions/plugins.mjs +1 -0
  18. package/scaffold/{definitions → dist/definitions}/prompts.mjs +9 -149
  19. package/scaffold/{definitions → dist/definitions}/protocols.mjs +9 -37
  20. package/scaffold/dist/definitions/tools.mjs +1 -0
  21. package/packages/cli/dist/scaffold-ukCDW3wQ.js +0 -2
  22. package/scaffold/_preview/agents/Architect-Reviewer-Alpha.agent.md +0 -132
  23. package/scaffold/_preview/agents/Architect-Reviewer-Beta.agent.md +0 -132
  24. package/scaffold/_preview/agents/Code-Reviewer-Alpha.agent.md +0 -112
  25. package/scaffold/_preview/agents/Code-Reviewer-Beta.agent.md +0 -112
  26. package/scaffold/_preview/agents/Debugger.agent.md +0 -412
  27. package/scaffold/_preview/agents/Documenter.agent.md +0 -468
  28. package/scaffold/_preview/agents/Explorer.agent.md +0 -76
  29. package/scaffold/_preview/agents/Frontend.agent.md +0 -440
  30. package/scaffold/_preview/agents/Implementer.agent.md +0 -425
  31. package/scaffold/_preview/agents/Orchestrator.agent.md +0 -452
  32. package/scaffold/_preview/agents/Planner.agent.md +0 -481
  33. package/scaffold/_preview/agents/README.md +0 -57
  34. package/scaffold/_preview/agents/Refactor.agent.md +0 -435
  35. package/scaffold/_preview/agents/Researcher-Alpha.agent.md +0 -151
  36. package/scaffold/_preview/agents/Researcher-Beta.agent.md +0 -152
  37. package/scaffold/_preview/agents/Researcher-Delta.agent.md +0 -153
  38. package/scaffold/_preview/agents/Researcher-Gamma.agent.md +0 -152
  39. package/scaffold/_preview/agents/Security.agent.md +0 -433
  40. package/scaffold/_preview/agents/_shared/architect-reviewer-base.md +0 -104
  41. package/scaffold/_preview/agents/_shared/code-agent-base.md +0 -366
  42. package/scaffold/_preview/agents/_shared/code-reviewer-base.md +0 -87
  43. package/scaffold/_preview/agents/_shared/decision-protocol.md +0 -27
  44. package/scaffold/_preview/agents/_shared/forge-protocol.md +0 -90
  45. package/scaffold/_preview/agents/_shared/researcher-base.md +0 -114
  46. package/scaffold/_preview/agents/templates/adr-template.md +0 -28
  47. package/scaffold/_preview/agents/templates/execution-state.md +0 -26
  48. package/scaffold/_preview/flows/_epilogue/steps/docs-sync/README.md +0 -120
  49. package/scaffold/_preview/flows/aikit-advanced/README.md +0 -70
  50. package/scaffold/_preview/flows/aikit-advanced/steps/design/README.md +0 -178
  51. package/scaffold/_preview/flows/aikit-advanced/steps/execute/README.md +0 -145
  52. package/scaffold/_preview/flows/aikit-advanced/steps/plan/README.md +0 -122
  53. package/scaffold/_preview/flows/aikit-advanced/steps/spec/README.md +0 -121
  54. package/scaffold/_preview/flows/aikit-advanced/steps/task/README.md +0 -119
  55. package/scaffold/_preview/flows/aikit-advanced/steps/verify/README.md +0 -145
  56. package/scaffold/_preview/flows/aikit-basic/README.md +0 -51
  57. package/scaffold/_preview/flows/aikit-basic/steps/assess/README.md +0 -109
  58. package/scaffold/_preview/flows/aikit-basic/steps/design/README.md +0 -116
  59. package/scaffold/_preview/flows/aikit-basic/steps/implement/README.md +0 -131
  60. package/scaffold/_preview/flows/aikit-basic/steps/verify/README.md +0 -123
  61. package/scaffold/_preview/prompts/aikit-ask.prompt.md +0 -13
  62. package/scaffold/_preview/prompts/aikit-debug.prompt.md +0 -15
  63. package/scaffold/_preview/prompts/aikit-design.prompt.md +0 -15
  64. package/scaffold/_preview/prompts/aikit-flow-add.prompt.md +0 -84
  65. package/scaffold/_preview/prompts/aikit-flow-create.prompt.md +0 -80
  66. package/scaffold/_preview/prompts/aikit-flow-manage.prompt.md +0 -24
  67. package/scaffold/_preview/prompts/aikit-implement.prompt.md +0 -17
  68. package/scaffold/_preview/prompts/aikit-plan.prompt.md +0 -15
  69. package/scaffold/_preview/prompts/aikit-review.prompt.md +0 -24
  70. package/scaffold/_preview/skills/adr-skill/SKILL.md +0 -335
  71. package/scaffold/_preview/skills/adr-skill/assets/templates/adr-madr.md +0 -89
  72. package/scaffold/_preview/skills/adr-skill/assets/templates/adr-readme.md +0 -20
  73. package/scaffold/_preview/skills/adr-skill/assets/templates/adr-simple.md +0 -46
  74. package/scaffold/_preview/skills/adr-skill/references/adr-conventions.md +0 -95
  75. package/scaffold/_preview/skills/adr-skill/references/examples.md +0 -193
  76. package/scaffold/_preview/skills/adr-skill/references/review-checklist.md +0 -77
  77. package/scaffold/_preview/skills/adr-skill/references/template-variants.md +0 -52
  78. package/scaffold/_preview/skills/adr-skill/scripts/bootstrap_adr.js +0 -259
  79. package/scaffold/_preview/skills/adr-skill/scripts/new_adr.js +0 -391
  80. package/scaffold/_preview/skills/adr-skill/scripts/set_adr_status.js +0 -169
  81. package/scaffold/_preview/skills/aikit/SKILL.md +0 -754
  82. package/scaffold/_preview/skills/brainstorming/SKILL.md +0 -265
  83. package/scaffold/_preview/skills/brainstorming/spec-document-reviewer-prompt.md +0 -49
  84. package/scaffold/_preview/skills/c4-architecture/SKILL.md +0 -389
  85. package/scaffold/_preview/skills/c4-architecture/references/advanced-patterns.md +0 -552
  86. package/scaffold/_preview/skills/c4-architecture/references/c4-syntax.md +0 -510
  87. package/scaffold/_preview/skills/c4-architecture/references/common-mistakes.md +0 -437
  88. package/scaffold/_preview/skills/c4-architecture/references/html-design-system.md +0 -337
  89. package/scaffold/_preview/skills/c4-architecture/references/html-template.html +0 -627
  90. package/scaffold/_preview/skills/docs/SKILL.md +0 -553
  91. package/scaffold/_preview/skills/docs/references/diataxis-anti-patterns.md +0 -147
  92. package/scaffold/_preview/skills/docs/references/diataxis-compass.md +0 -123
  93. package/scaffold/_preview/skills/docs/references/diataxis-quadrants.md +0 -192
  94. package/scaffold/_preview/skills/docs/references/diataxis-quality.md +0 -76
  95. package/scaffold/_preview/skills/docs/references/diataxis-templates.md +0 -120
  96. package/scaffold/_preview/skills/docs/references/flow-artifacts-guide.md +0 -70
  97. package/scaffold/_preview/skills/docs/references/project-knowledge-gotchas.md +0 -32
  98. package/scaffold/_preview/skills/docs/references/project-knowledge-templates.md +0 -281
  99. package/scaffold/_preview/skills/docs/references/project-knowledge-workflow.md +0 -80
  100. package/scaffold/_preview/skills/frontend-design/SKILL.md +0 -237
  101. package/scaffold/_preview/skills/lesson-learned/SKILL.md +0 -113
  102. package/scaffold/_preview/skills/lesson-learned/references/anti-patterns.md +0 -55
  103. package/scaffold/_preview/skills/lesson-learned/references/se-principles.md +0 -109
  104. package/scaffold/_preview/skills/multi-agents-development/SKILL.md +0 -448
  105. package/scaffold/_preview/skills/multi-agents-development/architecture-review-prompt.md +0 -81
  106. package/scaffold/_preview/skills/multi-agents-development/code-quality-review-prompt.md +0 -91
  107. package/scaffold/_preview/skills/multi-agents-development/implementer-prompt.md +0 -93
  108. package/scaffold/_preview/skills/multi-agents-development/parallel-dispatch-example.md +0 -167
  109. package/scaffold/_preview/skills/multi-agents-development/spec-review-prompt.md +0 -81
  110. package/scaffold/_preview/skills/present/SKILL.md +0 -616
  111. package/scaffold/_preview/skills/react/SKILL.md +0 -309
  112. package/scaffold/_preview/skills/repo-access/SKILL.md +0 -178
  113. package/scaffold/_preview/skills/repo-access/references/error-patterns.md +0 -116
  114. package/scaffold/_preview/skills/repo-access/references/platform-matrix.md +0 -142
  115. package/scaffold/_preview/skills/requirements-clarity/SKILL.md +0 -333
  116. package/scaffold/_preview/skills/session-handoff/SKILL.md +0 -199
  117. package/scaffold/_preview/skills/session-handoff/references/handoff-template.md +0 -139
  118. package/scaffold/_preview/skills/session-handoff/references/resume-checklist.md +0 -80
  119. package/scaffold/_preview/skills/session-handoff/scripts/check_staleness.js +0 -269
  120. package/scaffold/_preview/skills/session-handoff/scripts/create_handoff.js +0 -299
  121. package/scaffold/_preview/skills/session-handoff/scripts/list_handoffs.js +0 -113
  122. package/scaffold/_preview/skills/session-handoff/scripts/validate_handoff.js +0 -241
  123. package/scaffold/_preview/skills/typescript/SKILL.md +0 -405
  124. package/scaffold/adapters/claude-code.mjs +0 -73
  125. package/scaffold/adapters/copilot.mjs +0 -292
  126. package/scaffold/adapters/flows.mjs +0 -27
  127. package/scaffold/adapters/skills.mjs +0 -25
  128. package/scaffold/definitions/agents.mjs +0 -266
  129. package/scaffold/definitions/exclusions.mjs +0 -58
  130. package/scaffold/definitions/hooks.mjs +0 -43
  131. package/scaffold/definitions/models.mjs +0 -84
  132. package/scaffold/definitions/plugins.mjs +0 -147
  133. package/scaffold/definitions/tools.mjs +0 -250
  134. package/scaffold/generate.mjs +0 -92
@@ -1,265 +0,0 @@
1
- ---
2
- name: brainstorming
3
- description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
4
- metadata:
5
- category: cross-cutting
6
- domain: general
7
- applicability: always
8
- inputs: [requirements, user-intent]
9
- outputs: [design, decisions]
10
- requires: [aikit]
11
- relatedSkills: [requirements-clarity]
12
- argument-hint: "Feature, component, or behavior to design"
13
- ---
14
-
15
- # Brainstorming Ideas Into Designs
16
-
17
- Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
18
-
19
- Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
20
-
21
- <HARD-GATE>
22
- Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
23
- </HARD-GATE>
24
-
25
- ## Anti-Pattern: "This Is Too Simple To Need A Design"
26
-
27
- Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
28
-
29
- ---
30
-
31
- ## Mode Selection
32
-
33
- This skill operates in two modes. **You decide which mode to use** based on the task characteristics — do NOT ask the user which mode.
34
-
35
- ### Simple Mode
36
-
37
- Use when **all** of these are true:
38
- - Affects ≤3 files
39
- - Single component or concern
40
- - No new service/package/module boundaries
41
- - No cross-service data flow changes
42
- - Clear, well-understood domain
43
-
44
- Examples: config change, utility function, bug fix with design ambiguity, small feature in existing component.
45
-
46
- ### Advanced Mode
47
-
48
- Use when **any** of these are true:
49
- - Affects >3 files or crosses service boundaries
50
- - Introduces new packages, services, or modules
51
- - Multiple independent subsystems involved
52
- - Architectural decisions with multiple viable approaches
53
- - Changes data models, APIs, or interfaces used by other services
54
- - User explicitly requests thorough exploration
55
-
56
- Examples: new notification channel, new API service, platform redesign, multi-service feature, infrastructure changes.
57
-
58
- ---
59
-
60
- ## Simple Mode Process
61
-
62
- ### Checklist
63
-
64
- 1. **Explore project context** — check files, docs, recent commits
65
- 2. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
66
- 3. **Propose 2-3 approaches** — with trade-offs and your recommendation
67
- 4. **Present design** — in sections scaled to their complexity, get user approval after each section
68
- 5. **Write design doc** — save to `docs/plans/YYYY-MM-DD-<topic>-design.md` and commit
69
- 6. **Transition to implementation** — invoke writing-plans skill to create implementation plan
70
-
71
- ### Process Flow
72
-
73
- ```dot
74
- digraph brainstorming_simple {
75
- "Explore project context" [shape=box];
76
- "Ask clarifying questions" [shape=box];
77
- "Propose 2-3 approaches" [shape=box];
78
- "Present design sections" [shape=box];
79
- "User approves design?" [shape=diamond];
80
- "Write design doc" [shape=box];
81
- "Invoke writing-plans skill" [shape=doublecircle];
82
-
83
- "Explore project context" -> "Ask clarifying questions";
84
- "Ask clarifying questions" -> "Propose 2-3 approaches";
85
- "Propose 2-3 approaches" -> "Present design sections";
86
- "Present design sections" -> "User approves design?";
87
- "User approves design?" -> "Present design sections" [label="no, revise"];
88
- "User approves design?" -> "Write design doc" [label="yes"];
89
- "Write design doc" -> "Invoke writing-plans skill";
90
- }
91
- ```
92
-
93
- ---
94
-
95
- ## Advanced Mode Process
96
-
97
- ### Checklist
98
-
99
- 1. **Explore project context** — check files, docs, recent commits
100
- 2. **Assess scope** — if multiple independent subsystems, decompose before detailing (see below)
101
- 3. **Offer visual presentation support** (if topic will involve visual questions) — this is its own message, not combined with a clarifying question. Use `present({ format: "html" })` to display brainstorming results as a rich visual dashboard.
102
- 4. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
103
- 5. **Propose 2-3 approaches via Decision Protocol** — launch ALL 4 Researcher variants in parallel to independently generate approaches. Synthesize their output into deduplicated options with trade-offs and your recommendation. Present agreements and disagreements to the user. *(See "Decision Protocol Integration" below.)*
104
- 6. **Present design** — in sections scaled to their complexity, get user approval after each section
105
- 7. **Write design doc** — save to `docs/plans/YYYY-MM-DD-<topic>-design.md` and commit
106
- 8. **Spec review loop** — review the spec for completeness, consistency, clarity, scope, and YAGNI. Fix issues. Max 3 iterations, then surface to user.
107
- 9. **User reviews written spec** — ask user to review the spec file before proceeding
108
- 10. **Transition to implementation** — invoke writing-plans skill to create implementation plan
109
-
110
- ### Decision Protocol Integration (Advanced Mode Only)
111
-
112
- When Advanced Mode reaches step 5 ("Propose approaches"), invoke the **multi-model decision protocol**:
113
-
114
- 1. Frame the design question with full context gathered from steps 1-4
115
- 2. Launch ALL 4 Researcher variants **in parallel** with identical framing:
116
- > Independently analyze this design question. Propose 2-3 approaches with trade-offs, complexity, risks, and your recommendation.
117
- 3. After all return, synthesize:
118
- - **Strong agreements** (3+ models align) → Accept as validated direction
119
- - **Disagreements** → Present each position to the user with reasoning
120
- 4. Present the deduplicated approaches to the user for choice
121
- 5. If a decision produces an ADR, write it to `docs/decisions/`
122
-
123
- This replaces the single-agent "propose approaches" step with 4 independent perspectives, producing higher-quality options.
124
-
125
- ### Process Flow
126
-
127
- ```dot
128
- digraph brainstorming_advanced {
129
- "Explore project context" [shape=box];
130
- "Assess scope" [shape=diamond];
131
- "Decompose into sub-projects" [shape=box];
132
- "Visual questions ahead?" [shape=diamond];
133
- "Offer Visual Presentation\n(own message)" [shape=box];
134
- "Ask clarifying questions" [shape=box];
135
- "Decision Protocol:\n4 Researchers in parallel" [shape=box, style=bold];
136
- "Synthesize approaches" [shape=box];
137
- "Present design sections" [shape=box];
138
- "User approves design?" [shape=diamond];
139
- "Write design doc" [shape=box];
140
- "Spec review loop" [shape=box];
141
- "Spec review passed?" [shape=diamond];
142
- "User reviews spec?" [shape=diamond];
143
- "Invoke writing-plans skill" [shape=doublecircle];
144
-
145
- "Explore project context" -> "Assess scope";
146
- "Assess scope" -> "Decompose into sub-projects" [label="too large"];
147
- "Assess scope" -> "Visual questions ahead?" [label="right-sized"];
148
- "Decompose into sub-projects" -> "Visual questions ahead?" [label="first sub-project"];
149
- "Visual questions ahead?" -> "Offer Visual Presentation\n(own message)" [label="yes"];
150
- "Visual questions ahead?" -> "Ask clarifying questions" [label="no"];
151
- "Offer Visual Presentation\n(own message)" -> "Ask clarifying questions";
152
- "Ask clarifying questions" -> "Decision Protocol:\n4 Researchers in parallel";
153
- "Decision Protocol:\n4 Researchers in parallel" -> "Synthesize approaches";
154
- "Synthesize approaches" -> "Present design sections";
155
- "Present design sections" -> "User approves design?";
156
- "User approves design?" -> "Present design sections" [label="no, revise"];
157
- "User approves design?" -> "Write design doc" [label="yes"];
158
- "Write design doc" -> "Spec review loop";
159
- "Spec review loop" -> "Spec review passed?";
160
- "Spec review passed?" -> "Spec review loop" [label="issues found, fix"];
161
- "Spec review passed?" -> "User reviews spec?" [label="approved"];
162
- "User reviews spec?" -> "Write design doc" [label="changes requested"];
163
- "User reviews spec?" -> "Invoke writing-plans skill" [label="approved"];
164
- }
165
- ```
166
-
167
- ### Large Project Decomposition
168
-
169
- Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., "build a platform with chat, file storage, billing, and analytics"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
170
-
171
- If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.
172
-
173
- ### Spec Review Loop
174
-
175
- After writing the spec document, review it yourself for:
176
-
177
- | Category | What to Look For |
178
- |----------|------------------|
179
- | Completeness | TODOs, placeholders, "TBD", incomplete sections |
180
- | Consistency | Internal contradictions, conflicting requirements |
181
- | Clarity | Requirements ambiguous enough to cause someone to build the wrong thing |
182
- | Scope | Focused enough for a single plan — not covering multiple independent subsystems |
183
- | YAGNI | Unrequested features, over-engineering |
184
-
185
- **Only flag issues that would cause real problems during implementation planning.** A missing section, a contradiction, or a requirement so ambiguous it could be interpreted two different ways — those are issues. Minor wording improvements and stylistic preferences are not.
186
-
187
- Fix issues and re-review. Max 3 iterations, then surface remaining concerns to the user.
188
-
189
- ### User Review Gate
190
-
191
- After the spec review passes, ask the user to review:
192
-
193
- > "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
194
-
195
- Wait for the user's response. If they request changes, make them and re-run the spec review. Only proceed once the user approves.
196
-
197
- ---
198
-
199
- ## The Process (Both Modes)
200
-
201
- **Understanding the idea:**
202
- - Check out the current project state first (files, docs, recent commits)
203
- - Ask questions one at a time to refine the idea
204
- - Prefer multiple choice questions when possible, but open-ended is fine too
205
- - Only one question per message — if a topic needs more exploration, break it into multiple questions
206
- - Focus on understanding: purpose, constraints, success criteria
207
-
208
- **Exploring approaches:**
209
- - Propose 2-3 different approaches with trade-offs
210
- - Present options conversationally with your recommendation and reasoning
211
- - Lead with your recommended option and explain why
212
-
213
- **Presenting the design:**
214
- - Once you believe you understand what you're building, present the design
215
- - Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
216
- - Ask after each section whether it looks right so far
217
- - Cover: architecture, components, data flow, error handling, testing
218
- - Be ready to go back and clarify if something doesn't make sense
219
-
220
- **Design for isolation and clarity** (Advanced mode emphasis, but good practice always):
221
- - Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently
222
- - For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?
223
- - Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.
224
-
225
- **Working in existing codebases:**
226
- - Explore the current structure before proposing changes. Follow existing patterns.
227
- - Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design — the way a good developer improves code they're working in.
228
- - Don't propose unrelated refactoring. Stay focused on what serves the current goal.
229
-
230
- ## After the Design
231
-
232
- **Documentation:**
233
- - Write the validated design to `docs/plans/YYYY-MM-DD-<topic>-design.md`
234
- - (User preferences for spec location override this default)
235
- - Use elements-of-style:writing-clearly-and-concisely skill if available
236
- - Commit the design document to git
237
-
238
- **Implementation:**
239
- - Invoke the writing-plans skill to create a detailed implementation plan
240
- - Do NOT invoke any other skill. writing-plans is the next step.
241
-
242
- **The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
243
-
244
- ## Key Principles
245
-
246
- - **One question at a time** — Don't overwhelm with multiple questions
247
- - **Multiple choice preferred** — Easier to answer than open-ended when possible
248
- - **YAGNI ruthlessly** — Remove unnecessary features from all designs
249
- - **Explore alternatives** — Always propose 2-3 approaches before settling
250
- - **Incremental validation** — Present design, get approval before moving on
251
- - **Be flexible** — Go back and clarify when something doesn't make sense
252
-
253
- ## Visual Presentation Support (Advanced Mode Only)
254
-
255
- Use the `present` MCP tool for showing mockups, diagrams, and visual options during brainstorming. It is available as a tool, not a separate mode. Choosing this means you can present rich visual output when it helps; it does NOT mean every question should become visual.
256
-
257
- **Offering visual presentation:** When you anticipate that upcoming questions will involve visual content (mockups, layouts, diagrams), offer it once for consent:
258
- > "Some of what we're working on might be easier to explain visually. I can use `present({ format: \"html\" })` to show mockups, diagrams, comparisons, and other visuals as we go. Want me to use that when helpful?"
259
-
260
- **This offer MUST be its own message.** Do not combine it with clarifying questions, context summaries, or any other content. Wait for the user's response before continuing. If they decline, proceed with text-only brainstorming.
261
-
262
- **Per-question decision:** Even after the user accepts, decide FOR EACH QUESTION whether to use visual output or plain chat. The test: **would the user understand this better by seeing it than reading it?**
263
-
264
- - **Use `present({ format: "html" })`** for visual content — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs
265
- - **Use regular chat** for text content — requirements questions, conceptual choices, tradeoff lists, A/B/C/D text options, scope decisions
@@ -1,49 +0,0 @@
1
- # Spec Document Reviewer Prompt Template
2
-
3
- Use this template when dispatching a spec document reviewer subagent.
4
-
5
- **Purpose:** Verify the spec is complete, consistent, and ready for implementation planning.
6
-
7
- **Dispatch after:** Spec document is written to docs/specs/
8
-
9
- ```
10
- Task tool (general-purpose):
11
- description: "Review spec document"
12
- prompt: |
13
- You are a spec document reviewer. Verify this spec is complete and ready for planning.
14
-
15
- **Spec to review:** [SPEC_FILE_PATH]
16
-
17
- ## What to Check
18
-
19
- | Category | What to Look For |
20
- |----------|------------------|
21
- | Completeness | TODOs, placeholders, "TBD", incomplete sections |
22
- | Consistency | Internal contradictions, conflicting requirements |
23
- | Clarity | Requirements ambiguous enough to cause someone to build the wrong thing |
24
- | Scope | Focused enough for a single plan — not covering multiple independent subsystems |
25
- | YAGNI | Unrequested features, over-engineering |
26
-
27
- ## Calibration
28
-
29
- **Only flag issues that would cause real problems during implementation planning.**
30
- A missing section, a contradiction, or a requirement so ambiguous it could be
31
- interpreted two different ways — those are issues. Minor wording improvements,
32
- stylistic preferences, and "sections less detailed than others" are not.
33
-
34
- Approve unless there are serious gaps that would lead to a flawed plan.
35
-
36
- ## Output Format
37
-
38
- ## Spec Review
39
-
40
- **Status:** Approved | Issues Found
41
-
42
- **Issues (if any):**
43
- - [Section X]: [specific issue] - [why it matters for planning]
44
-
45
- **Recommendations (advisory, do not block approval):**
46
- - [suggestions for improvement]
47
- ```
48
-
49
- **Reviewer returns:** Status, Issues (if any), Recommendations