@givolt/i3-composer-agent 0.0.0-stage → 0.6.12

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 (213) hide show
  1. package/.agents/plugins/marketplace.json +22 -0
  2. package/.claude/commands/build.md +44 -0
  3. package/.claude/commands/code-simplify.md +22 -0
  4. package/.claude/commands/constraints.md +32 -0
  5. package/.claude/commands/plan.md +18 -0
  6. package/.claude/commands/review.md +16 -0
  7. package/.claude/commands/ship.md +72 -0
  8. package/.claude/commands/spec.md +17 -0
  9. package/.claude/commands/test.md +19 -0
  10. package/.claude/commands/webperf.md +32 -0
  11. package/.claude-plugin/marketplace.json +26 -0
  12. package/.claude-plugin/plugin.json +17 -0
  13. package/.codex-plugin/plugin.json +26 -0
  14. package/.gemini/commands/build.toml +43 -0
  15. package/.gemini/commands/code-simplify.toml +22 -0
  16. package/.gemini/commands/constraints.toml +32 -0
  17. package/.gemini/commands/planning.toml +18 -0
  18. package/.gemini/commands/review.toml +16 -0
  19. package/.gemini/commands/ship.toml +72 -0
  20. package/.gemini/commands/spec.toml +17 -0
  21. package/.gemini/commands/test.toml +19 -0
  22. package/.gemini/commands/webperf.toml +32 -0
  23. package/LICENSE +21 -0
  24. package/NOTICE.md +9 -0
  25. package/README.md +177 -2
  26. package/agents/code-reviewer.md +102 -0
  27. package/agents/security-auditor.md +112 -0
  28. package/agents/test-engineer.md +95 -0
  29. package/agents/web-performance-auditor.md +184 -0
  30. package/bin/i3-composer-agent.cjs +119 -0
  31. package/commands/build.toml +43 -0
  32. package/commands/code-simplify.toml +22 -0
  33. package/commands/constraints.toml +32 -0
  34. package/commands/planning.toml +18 -0
  35. package/commands/review.toml +16 -0
  36. package/commands/ship.toml +72 -0
  37. package/commands/spec.toml +17 -0
  38. package/commands/test.toml +19 -0
  39. package/commands/webperf.toml +32 -0
  40. package/docs/adoption-guide.md +129 -0
  41. package/docs/advanced-per-agent-configuration.md +70 -0
  42. package/docs/agents.md +123 -0
  43. package/docs/antigravity-setup.md +128 -0
  44. package/docs/codebuddy-setup.md +41 -0
  45. package/docs/codex-setup.md +34 -0
  46. package/docs/commandcode-setup.md +69 -0
  47. package/docs/comparison.md +131 -0
  48. package/docs/copilot-cli-setup.md +64 -0
  49. package/docs/copilot-setup.md +162 -0
  50. package/docs/cursor-setup.md +225 -0
  51. package/docs/developer-onboarding.md +116 -0
  52. package/docs/gemini-cli-setup.md +133 -0
  53. package/docs/getting-started.md +208 -0
  54. package/docs/opencode-setup.md +259 -0
  55. package/docs/other-hosts.md +7 -0
  56. package/docs/skill-anatomy.md +203 -0
  57. package/docs/windsurf-setup.md +48 -0
  58. package/evals/README.md +101 -0
  59. package/evals/cases/api-and-interface-design.json +45 -0
  60. package/evals/cases/browser-testing-with-devtools.json +44 -0
  61. package/evals/cases/ci-cd-and-automation.json +45 -0
  62. package/evals/cases/code-review-and-quality.json +49 -0
  63. package/evals/cases/code-simplification.json +45 -0
  64. package/evals/cases/constraint-driven-development.json +79 -0
  65. package/evals/cases/context-engineering.json +44 -0
  66. package/evals/cases/debugging-and-error-recovery.json +58 -0
  67. package/evals/cases/deprecation-and-migration.json +52 -0
  68. package/evals/cases/documentation-and-adrs.json +44 -0
  69. package/evals/cases/doubt-driven-development.json +43 -0
  70. package/evals/cases/frontend-ui-engineering.json +52 -0
  71. package/evals/cases/git-workflow-and-versioning.json +47 -0
  72. package/evals/cases/idea-refine.json +43 -0
  73. package/evals/cases/incremental-implementation.json +57 -0
  74. package/evals/cases/interview-me.json +42 -0
  75. package/evals/cases/observability-and-instrumentation.json +44 -0
  76. package/evals/cases/performance-optimization.json +53 -0
  77. package/evals/cases/planning-and-task-breakdown.json +45 -0
  78. package/evals/cases/security-and-hardening.json +53 -0
  79. package/evals/cases/shipping-and-launch.json +56 -0
  80. package/evals/cases/source-driven-development.json +44 -0
  81. package/evals/cases/spec-driven-development.json +72 -0
  82. package/evals/cases/test-driven-development.json +73 -0
  83. package/evals/cases/using-agent-skills.json +44 -0
  84. package/evals/fixtures/api-and-interface-design/service-brief.md +19 -0
  85. package/evals/fixtures/browser-testing-with-devtools/README.md +5 -0
  86. package/evals/fixtures/browser-testing-with-devtools/index.html +24 -0
  87. package/evals/fixtures/browser-testing-with-devtools/server.js +15 -0
  88. package/evals/fixtures/ci-cd-and-automation/package.json +8 -0
  89. package/evals/fixtures/ci-cd-and-automation/src/slug.js +3 -0
  90. package/evals/fixtures/ci-cd-and-automation/test/slug.test.js +9 -0
  91. package/evals/fixtures/code-review-and-quality/user-search.diff +16 -0
  92. package/evals/fixtures/code-simplification/config-parser.js +46 -0
  93. package/evals/fixtures/code-simplification/config-parser.test.js +15 -0
  94. package/evals/fixtures/context-engineering/context-audit.md +15 -0
  95. package/evals/fixtures/debugging-and-error-recovery/pagination.js +8 -0
  96. package/evals/fixtures/debugging-and-error-recovery/pagination.test.js +9 -0
  97. package/evals/fixtures/debugging-and-error-recovery/time-pressure.md +6 -0
  98. package/evals/fixtures/deprecation-and-migration/api-inventory.md +9 -0
  99. package/evals/fixtures/documentation-and-adrs/decision-context.md +16 -0
  100. package/evals/fixtures/doubt-driven-development/migration-plan.md +19 -0
  101. package/evals/fixtures/frontend-ui-engineering/Button.tsx +7 -0
  102. package/evals/fixtures/frontend-ui-engineering/design-system.md +11 -0
  103. package/evals/fixtures/git-workflow-and-versioning/.eval/working-tree.patch +21 -0
  104. package/evals/fixtures/git-workflow-and-versioning/app.js +7 -0
  105. package/evals/fixtures/git-workflow-and-versioning/app.test.js +9 -0
  106. package/evals/fixtures/incremental-implementation/reports.js +7 -0
  107. package/evals/fixtures/incremental-implementation/reports.test.js +12 -0
  108. package/evals/fixtures/incremental-implementation/tasks/plan.md +8 -0
  109. package/evals/fixtures/incremental-implementation-pressure/draft-export.js +17 -0
  110. package/evals/fixtures/incremental-implementation-pressure/scenario.md +9 -0
  111. package/evals/fixtures/observability-and-instrumentation/operations.md +11 -0
  112. package/evals/fixtures/observability-and-instrumentation/payment-retry.js +14 -0
  113. package/evals/fixtures/performance-optimization/benchmark.js +15 -0
  114. package/evals/fixtures/performance-optimization/products.js +14 -0
  115. package/evals/fixtures/planning-and-task-breakdown/notifications-spec.md +18 -0
  116. package/evals/fixtures/security-and-hardening/webhook.js +11 -0
  117. package/evals/fixtures/security-and-hardening/webhook.test.js +13 -0
  118. package/evals/fixtures/shipping-and-launch/authority-pressure.md +6 -0
  119. package/evals/fixtures/shipping-and-launch/launch-status.md +11 -0
  120. package/evals/fixtures/source-driven-development/framework-task.md +10 -0
  121. package/evals/fixtures/spec-driven-development/billing-brief.md +16 -0
  122. package/evals/fixtures/spec-driven-development-decomposition/portal-brief.md +22 -0
  123. package/evals/fixtures/test-driven-development/BUG.md +10 -0
  124. package/evals/fixtures/test-driven-development/README.md +28 -0
  125. package/evals/fixtures/test-driven-development/package.json +9 -0
  126. package/evals/fixtures/test-driven-development/src/split.js +8 -0
  127. package/evals/fixtures/test-driven-development/test/split.test.js +13 -0
  128. package/evals/fixtures/test-driven-development-ecosystem/README.md +9 -0
  129. package/evals/fixtures/test-driven-development-ecosystem/ledger.py +15 -0
  130. package/evals/fixtures/test-driven-development-ecosystem/test_ledger.py +19 -0
  131. package/evals/fixtures/using-agent-skills/incident.md +6 -0
  132. package/evals/plugin/code-review-fires/graders/off-by-one.md +7 -0
  133. package/evals/plugin/code-review-fires/graders/severity-labels.md +4 -0
  134. package/evals/plugin/code-review-fires/graders/skill-fired.md +5 -0
  135. package/evals/plugin/code-review-fires/prompt.md +31 -0
  136. package/evals/plugin/code-review-stays-quiet/graders/not-fired.md +8 -0
  137. package/evals/plugin/code-review-stays-quiet/graders/tdd-fired.md +6 -0
  138. package/evals/plugin/code-review-stays-quiet/prompt.md +8 -0
  139. package/evals/plugin/code-review-stays-quiet-on-commit-message/graders/not-fired.md +8 -0
  140. package/evals/plugin/code-review-stays-quiet-on-commit-message/prompt.md +25 -0
  141. package/evals/skill-impact.md +6 -0
  142. package/hooks/SDD-CACHE.md +167 -0
  143. package/hooks/SIMPLIFY-IGNORE.md +91 -0
  144. package/hooks/sdd-cache-post.sh +135 -0
  145. package/hooks/sdd-cache-pre.sh +106 -0
  146. package/hooks/sdd-cache-test.sh +246 -0
  147. package/hooks/session-start-test.sh +47 -0
  148. package/hooks/session-start.sh +33 -0
  149. package/hooks/simplify-ignore-test.sh +476 -0
  150. package/hooks/simplify-ignore.sh +352 -0
  151. package/package.json +31 -4
  152. package/plugin.json +5 -0
  153. package/rebrand/MAINTENANCE.md +51 -0
  154. package/rebrand/apply.cjs +121 -0
  155. package/rebrand/brand.json +9 -0
  156. package/rebrand/templates/README.md +178 -0
  157. package/rebrand/templates/codebuddy-setup.md +41 -0
  158. package/rebrand/templates/codex-setup.md +34 -0
  159. package/references/accessibility-checklist.md +160 -0
  160. package/references/definition-of-done.md +67 -0
  161. package/references/observability-checklist.md +92 -0
  162. package/references/orchestration-patterns.md +370 -0
  163. package/references/performance-checklist.md +236 -0
  164. package/references/security-checklist.md +248 -0
  165. package/references/testing-patterns.md +235 -0
  166. package/scripts/floor-guard-reference-test.js +291 -0
  167. package/scripts/lib/skill-lint-test.js +650 -0
  168. package/scripts/lib/skill-lint.js +584 -0
  169. package/scripts/run-evals-test.js +623 -0
  170. package/scripts/run-evals.js +638 -0
  171. package/scripts/validate-artifact-paths-test.js +179 -0
  172. package/scripts/validate-artifact-paths.js +128 -0
  173. package/scripts/validate-brand.cjs +36 -0
  174. package/scripts/validate-commands-test.js +216 -0
  175. package/scripts/validate-commands.js +222 -0
  176. package/scripts/validate-reference-links-test.js +495 -0
  177. package/scripts/validate-reference-links.js +187 -0
  178. package/scripts/validate-skills.js +69 -0
  179. package/scripts/validate-versions-test.js +32 -0
  180. package/scripts/validate-versions.js +35 -0
  181. package/skills/api-and-interface-design/SKILL.md +367 -0
  182. package/skills/browser-testing-with-devtools/SKILL.md +317 -0
  183. package/skills/ci-cd-and-automation/SKILL.md +390 -0
  184. package/skills/code-review-and-quality/SKILL.md +398 -0
  185. package/skills/code-simplification/SKILL.md +331 -0
  186. package/skills/constraint-driven-development/SKILL.md +311 -0
  187. package/skills/constraint-driven-development/references/floor-guard.md +182 -0
  188. package/skills/context-engineering/SKILL.md +353 -0
  189. package/skills/debugging-and-error-recovery/SKILL.md +300 -0
  190. package/skills/deprecation-and-migration/SKILL.md +247 -0
  191. package/skills/documentation-and-adrs/SKILL.md +288 -0
  192. package/skills/doubt-driven-development/SKILL.md +243 -0
  193. package/skills/frontend-ui-engineering/SKILL.md +340 -0
  194. package/skills/git-workflow-and-versioning/SKILL.md +355 -0
  195. package/skills/idea-refine/SKILL.md +178 -0
  196. package/skills/idea-refine/examples.md +238 -0
  197. package/skills/idea-refine/frameworks.md +99 -0
  198. package/skills/idea-refine/refinement-criteria.md +113 -0
  199. package/skills/idea-refine/scripts/idea-refine.sh +15 -0
  200. package/skills/incremental-implementation/SKILL.md +249 -0
  201. package/skills/interview-me/SKILL.md +235 -0
  202. package/skills/observability-and-instrumentation/SKILL.md +238 -0
  203. package/skills/performance-optimization/SKILL.md +267 -0
  204. package/skills/performance-optimization/references/optimization-patterns.md +250 -0
  205. package/skills/planning-and-task-breakdown/SKILL.md +257 -0
  206. package/skills/security-and-hardening/SKILL.md +216 -0
  207. package/skills/security-and-hardening/references/hardening-patterns.md +324 -0
  208. package/skills/shipping-and-launch/SKILL.md +330 -0
  209. package/skills/source-driven-development/SKILL.md +216 -0
  210. package/skills/spec-driven-development/SKILL.md +259 -0
  211. package/skills/test-driven-development/SKILL.md +398 -0
  212. package/skills/using-agent-skills/SKILL.md +192 -0
  213. package/tests/bundle.test.cjs +79 -0
@@ -0,0 +1,249 @@
1
+ ---
2
+ name: incremental-implementation
3
+ description: Delivers changes incrementally in thin, verifiable slices. Use when implementing any feature or change that touches more than one file, or when picking up the next task from a plan. Use when rolling a change out behind a feature flag, when you're about to write a large amount of code at once, or when a task feels too big to land in one step.
4
+ ---
5
+
6
+ # Incremental Implementation
7
+
8
+ ## Overview
9
+
10
+ Build in thin vertical slices — implement one piece, test it, verify it, then expand. Avoid implementing an entire feature in one pass. Each increment should leave the system in a working, testable state. This is the execution discipline that makes large features manageable.
11
+
12
+ ## When to Use
13
+
14
+ - Implementing any multi-file change
15
+ - Building a new feature from a task breakdown
16
+ - Refactoring existing code
17
+ - Any time you're tempted to write more than ~100 lines before testing
18
+
19
+ **When NOT to use:** Single-file, single-function changes where the scope is already minimal.
20
+
21
+ ## The Increment Cycle
22
+
23
+ ```
24
+ ┌──────────────────────────────────────┐
25
+ │ │
26
+ │ Implement ──→ Test ──→ Verify ──┐ │
27
+ │ ▲ │ │
28
+ │ └───── Commit ◄─────────────┘ │
29
+ │ │ │
30
+ │ ▼ │
31
+ │ Next slice │
32
+ │ │
33
+ └──────────────────────────────────────┘
34
+ ```
35
+
36
+ For each slice:
37
+
38
+ 1. **Implement** the smallest complete piece of functionality
39
+ 2. **Test** — run the test suite (or write a test if none exists)
40
+ 3. **Verify** — confirm the slice works as expected (tests pass, build succeeds, manual check)
41
+ 4. **Commit** -- save your progress with a descriptive message (see `git-workflow-and-versioning` for atomic commit guidance)
42
+ 5. **Move to the next slice** — carry forward, don't restart
43
+
44
+ ## Slicing Strategies
45
+
46
+ ### Vertical Slices (Preferred)
47
+
48
+ Build one complete path through the stack:
49
+
50
+ ```
51
+ Slice 1: Create a task (DB + API + basic UI)
52
+ → Tests pass, user can create a task via the UI
53
+
54
+ Slice 2: List tasks (query + API + UI)
55
+ → Tests pass, user can see their tasks
56
+
57
+ Slice 3: Edit a task (update + API + UI)
58
+ → Tests pass, user can modify tasks
59
+
60
+ Slice 4: Delete a task (delete + API + UI + confirmation)
61
+ → Tests pass, full CRUD complete
62
+ ```
63
+
64
+ Each slice delivers working end-to-end functionality.
65
+
66
+ ### Contract-First Slicing
67
+
68
+ When backend and frontend need to develop in parallel:
69
+
70
+ ```
71
+ Slice 0: Define the API contract (types, interfaces, OpenAPI spec)
72
+ Slice 1a: Implement backend against the contract + API tests
73
+ Slice 1b: Implement frontend against mock data matching the contract
74
+ Slice 2: Integrate and test end-to-end
75
+ ```
76
+
77
+ ### Risk-First Slicing
78
+
79
+ Tackle the riskiest or most uncertain piece first:
80
+
81
+ ```
82
+ Slice 1: Prove the WebSocket connection works (highest risk)
83
+ Slice 2: Build real-time task updates on the proven connection
84
+ Slice 3: Add offline support and reconnection
85
+ ```
86
+
87
+ If Slice 1 fails, you discover it before investing in Slices 2 and 3.
88
+
89
+ ## Implementation Rules
90
+
91
+ ### Rule 0: Simplicity First
92
+
93
+ Before writing any code, ask: "What is the simplest thing that could work?"
94
+
95
+ After writing code, review it against these checks:
96
+ - Can this be done in fewer lines?
97
+ - Are these abstractions earning their complexity?
98
+ - Would a staff engineer look at this and say "why didn't you just..."?
99
+ - Am I building for hypothetical future requirements, or the current task?
100
+
101
+ ```
102
+ SIMPLICITY CHECK:
103
+ ✗ Generic EventBus with middleware pipeline for one notification
104
+ ✓ Simple function call
105
+
106
+ ✗ Abstract factory pattern for two similar components
107
+ ✓ Two straightforward components with shared utilities
108
+
109
+ ✗ Config-driven form builder for three forms
110
+ ✓ Three form components
111
+ ```
112
+
113
+ Three similar lines of code is better than a premature abstraction. Implement the naive, obviously-correct version first. Optimize only after correctness is proven with tests.
114
+
115
+ ### Rule 0.5: Scope Discipline
116
+
117
+ Touch only what the task requires.
118
+
119
+ Do NOT:
120
+ - "Clean up" code adjacent to your change
121
+ - Refactor imports in files you're not modifying
122
+ - Remove comments you don't fully understand
123
+ - Add features not in the spec because they "seem useful"
124
+ - Modernize syntax in files you're only reading
125
+
126
+ If you notice something worth improving outside your task scope, note it — don't fix it:
127
+
128
+ ```
129
+ NOTICED BUT NOT TOUCHING:
130
+ - src/utils/format.ts has an unused import (unrelated to this task)
131
+ - The auth middleware could use better error messages (separate task)
132
+ → Want me to create tasks for these?
133
+ ```
134
+
135
+ ### Rule 1: One Thing at a Time
136
+
137
+ Each increment changes one logical thing. Don't mix concerns:
138
+
139
+ **Bad:** One commit that adds a new component, refactors an existing one, and updates the build config.
140
+
141
+ **Good:** Three separate commits — one for each change.
142
+
143
+ ### Rule 2: Keep It Compilable
144
+
145
+ After each increment, the project must build and existing tests must pass. Don't leave the codebase in a broken state between slices.
146
+
147
+ ### Rule 3: Feature Flags for Incomplete Features
148
+
149
+ If a feature isn't ready for users but you need to merge increments:
150
+
151
+ ```typescript
152
+ // Feature flag for work-in-progress
153
+ const ENABLE_TASK_SHARING = process.env.FEATURE_TASK_SHARING === 'true';
154
+
155
+ if (ENABLE_TASK_SHARING) {
156
+ // New sharing UI
157
+ }
158
+ ```
159
+
160
+ This lets you merge small increments to the main branch without exposing incomplete work.
161
+
162
+ ### Rule 4: Safe Defaults
163
+
164
+ New code should default to safe, conservative behavior:
165
+
166
+ ```typescript
167
+ // Safe: disabled by default, opt-in
168
+ export function createTask(data: TaskInput, options?: { notify?: boolean }) {
169
+ const shouldNotify = options?.notify ?? false;
170
+ // ...
171
+ }
172
+ ```
173
+
174
+ ### Rule 5: Rollback-Friendly
175
+
176
+ Each increment should be independently revertable:
177
+
178
+ - Additive changes (new files, new functions) are easy to revert
179
+ - Modifications to existing code should be minimal and focused
180
+ - Database migrations should have corresponding rollback migrations
181
+ - Avoid deleting something in one commit and replacing it in the same commit — separate them
182
+
183
+ ## Working with Agents
184
+
185
+ When directing an agent to implement incrementally:
186
+
187
+ ```
188
+ "Let's implement Task 3 from the plan.
189
+
190
+ Start with just the database schema change and the API endpoint.
191
+ Don't touch the UI yet — we'll do that in the next increment.
192
+
193
+ After implementing, run the repository's test and build commands to
194
+ verify nothing is broken."
195
+ ```
196
+
197
+ Be explicit about what's in scope and what's NOT in scope for each increment.
198
+
199
+ ## Increment Checklist
200
+
201
+ After each increment, verify with the repository's own commands (see the test-driven-development skill's Discover the Stack First section):
202
+
203
+ - [ ] The change does one thing and does it completely
204
+ - [ ] All existing tests still pass (the repository's test command: `npm test`, `./gradlew test`, `pytest`, ...)
205
+ - [ ] The build succeeds (the repository's build command)
206
+ - [ ] Type checking passes, where the stack has one (`npx tsc --noEmit`, `mypy`, ...)
207
+ - [ ] Linting passes (the repository's lint command)
208
+ - [ ] The new functionality works as expected
209
+ - [ ] The change is committed with a descriptive message
210
+
211
+ **Note:** Run each verification command after a change that could affect it. After a successful run, don't repeat the same command unless the code has changed since — re-running on unchanged code adds no information.
212
+
213
+ ## Common Rationalizations
214
+
215
+ | Rationalization | Reality |
216
+ |---|---|
217
+ | "I'll test it all at the end" | Bugs compound. A bug in Slice 1 makes Slices 2-5 wrong. Test each slice. |
218
+ | "It's faster to do it all at once" | It *feels* faster until something breaks and you can't find which of 500 changed lines caused it. |
219
+ | "These changes are too small to commit separately" | Small commits are free. Large commits hide bugs and make rollbacks painful. |
220
+ | "I'll add the feature flag later" | If the feature isn't complete, it shouldn't be user-visible. Add the flag now. |
221
+ | "This refactor is small enough to include" | Refactors mixed with features make both harder to review and debug. Separate them. |
222
+ | "Let me run the build command again just to be sure" | After a successful run, repeating the same command adds nothing unless the code has changed since. Run it again after subsequent edits, not as reassurance. |
223
+
224
+ ## Red Flags
225
+
226
+ - More than 100 lines of code written without running tests
227
+ - Multiple unrelated changes in a single increment
228
+ - "Let me just quickly add this too" scope expansion
229
+ - Skipping the test/verify step to move faster
230
+ - Build or tests broken between increments
231
+ - Large uncommitted changes accumulating
232
+ - Building abstractions before the third use case demands it
233
+ - Touching files outside the task scope "while I'm here"
234
+ - Creating new utility files for one-time operations
235
+ - Running the same build/test command twice in a row without any intervening code change
236
+
237
+ ## Verification
238
+
239
+ After completing all increments for a task:
240
+
241
+ - [ ] Each increment was individually tested and committed
242
+ - [ ] The full test suite passes
243
+ - [ ] The build is clean
244
+ - [ ] The feature works end-to-end as specified
245
+ - [ ] No uncommitted changes remain
246
+
247
+ ## See Also
248
+
249
+ Per-increment verification is the local check. Before declaring a task done, apply the project-wide Definition of Done as the final gate, the standing bar every increment clears regardless of the task. See `../../references/definition-of-done.md`.
@@ -0,0 +1,235 @@
1
+ ---
2
+ name: interview-me
3
+ description: Extracts what the user actually wants instead of what they think they should want. Achieves this through one-question-at-a-time interview until ~95% confidence about the underlying intent. Use when an ask is underspecified ("build me X" without "for whom" or "why now"), when the user explicitly invokes ("interview me", "grill me", "are we sure?", "stress-test my thinking"), or when you catch yourself silently filling in ambiguous requirements before any plan, spec, or code exists.
4
+ ---
5
+
6
+ # Interview Me
7
+
8
+ ## Overview
9
+
10
+ What people ask for and what they actually want are different things. They ask for "a dashboard" because that's what one asks for, not because a dashboard solves their problem. They say "make it faster" without a number to hit.
11
+
12
+ The cheapest moment to find this gap is before any plan, spec, or code exists. Once you've started building, switching costs are real, and the user will rationalize the wrong thing into a "good enough" thing. The misfit gets locked in.
13
+
14
+ This skill closes the gap before it costs anything. The other Define-phase skills assume you already know roughly what you want: `idea-refine` generates variations from an idea, `spec-driven-development` writes the requirements down, `doubt-driven-development` stress-tests a plan after you've drafted one. Interview-me is the part before all of those, where you ask one question at a time, with your best guess attached, until you can predict what the user is going to say before they say it.
15
+
16
+ ## When to Use
17
+
18
+ Apply this skill when:
19
+
20
+ - The ask is missing at least one of: **who** the user is, **why** they want it, what **success** looks like, what the binding **constraint** is
21
+ - The request is conventional rather than specific ("build me X", "make it faster") and you can't unpack the convention without guessing
22
+ - You're tempted to start with assumptions you haven't surfaced
23
+ - The user hasn't said which value they're optimizing for when two reasonable ones are in tension (simplicity vs. flexibility, cost vs. speed)
24
+ - The user explicitly invokes: "interview me", "grill me", "before we start, are we sure?", "stress-test my thinking"
25
+
26
+ **When NOT to use:**
27
+
28
+ - The ask is unambiguous and self-contained ("rename this variable", "fix this typo")
29
+ - The user has explicitly asked for speed over verification
30
+ - Pure information requests ("how does X work?", "what does this code do?")
31
+ - Mechanical operations (renames, formats, file moves)
32
+ - You already have ≥95% confidence; re-read the stop condition below before assuming you don't
33
+
34
+ ## Loading Constraints
35
+
36
+ This skill needs a live, responsive user. **Do not invoke in non-interactive contexts** like CI pipelines, scheduled runs, `/loop`, or autonomous-loop. If you're in one of those and the ask is underspecified, flag that as a blocker for the user instead of guessing.
37
+
38
+ ## The Process
39
+
40
+ ### Step 1: Hypothesize, with a confidence number
41
+
42
+ Before asking anything, write down your current best read of what the user wants in **one sentence**, plus an honest confidence number (0–100%):
43
+
44
+ ```
45
+ HYPOTHESIS: You want a way to answer "how are we doing?" in standup, and "dashboard" was the convention that came to mind.
46
+ CONFIDENCE: ~30% — missing: who it's for, what "metrics" means in context, and what success looks like
47
+ ```
48
+
49
+ The number forces honesty. If you wrote down a high number but can't actually predict the user's reactions to the next three questions you'd ask, the number is wrong. Start at the confidence level you can defend.
50
+
51
+ When confidence is below ~70%, append a brief reason on the same line — what's still unresolved or missing. This tells the user exactly what the interview needs to surface, and prevents the number from being a vague signal.
52
+
53
+ ### Step 2: Ask one question at a time, each with a guess attached
54
+
55
+ Format:
56
+
57
+ ```
58
+ Q: <one focused question>
59
+ GUESS: <your hypothesis for the answer, with the reasoning that produced it>
60
+ ```
61
+
62
+ Wait for the user to react before asking the next question.
63
+
64
+ **Why one at a time, not a batch:**
65
+
66
+ - The user can't react to your hypotheses if you bury them in a list
67
+ - Batches encourage skim-reading and surface answers
68
+ - The third question often depends on the answer to the first; asking them all at once locks in the wrong framing
69
+ - The user's energy for thinking carefully is finite; spend it one question at a time
70
+
71
+ **Why attach a guess:**
72
+
73
+ - The user reacts faster to a wrong guess than they generate an answer from scratch
74
+ - It commits you to a hypothesis you can be visibly wrong about, which keeps you honest
75
+ - It surfaces *your* assumptions, which is what the interview is meant to expose
76
+
77
+ The risk here is a polite user agreeing with your guess to be agreeable. Mitigate by being visibly willing to be wrong, and occasionally guess in a direction you expect the user to push back on.
78
+
79
+ ### Step 3: Listen for "want vs. should want"
80
+
81
+ The most dangerous answers are the ones where the user says what a thoughtful answer *sounds like* rather than what they actually want. Watch for:
82
+
83
+ - Answers that pattern-match best-practice talk ("I want it to be scalable", "clean architecture") without specifics
84
+ - Answers that defer to convention ("the way most apps do it", "the standard approach")
85
+ - Phrases like "I should probably…", "I think I'm supposed to…", "good engineering practice says…"
86
+ - Buzzwords as goals — when "modern", "scalable", "robust" are the answer instead of a specific outcome
87
+
88
+ When you hear these, the question to ask is:
89
+
90
+ > *"If you didn't have to justify this to anyone, what would you actually want?"*
91
+
92
+ That single question often does more work than the previous five.
93
+
94
+ ### Step 4: Restate intent in the user's own words
95
+
96
+ When your confidence is high, write back what you now think the user wants. Keep it tight (5–8 lines), use their language where possible, and structure it so the user can confirm or correct line by line:
97
+
98
+ ```
99
+ Here's what I now think you want:
100
+
101
+ - Outcome: <one line>
102
+ - User: <one line — who benefits>
103
+ - Why now: <one line — what changed>
104
+ - Success: <one line — how we know it worked>
105
+ - Constraint: <one line — the binding limit>
106
+ - Out of scope: <one line — what we're explicitly not doing>
107
+
108
+ Yes / no / refine?
109
+ ```
110
+
111
+ Including "Out of scope" is non-negotiable. Half of misalignment is silent disagreement about what is *not* being built.
112
+
113
+ ### Step 5: Confirm — explicit yes, not "whatever you think"
114
+
115
+ The gate is an explicit "yes." The following are **not** yes:
116
+
117
+ - "Whatever you think is best." → The user is delegating, which means they don't have 95% confidence either. Re-ask with two concrete options framed as a choice.
118
+ - "Sounds good." → Ambiguous. Ask: "Anything you'd refine?" Silence isn't confirmation.
119
+ - "Sure, let's go." → Often a polite exit, not an endorsement. Same follow-up.
120
+ - Silence followed by "okay let's start." → The user has given up on the interview, not converged. Stop and ask whether you've missed something.
121
+
122
+ If they correct you, fold the correction in and restate. Loop until you get an explicit yes.
123
+
124
+ ### Step 6: Terminal Turn & Stop Rule (CRITICAL)
125
+
126
+ When the user confirms the statement of intent with an explicit "yes":
127
+
128
+ 1. **Deliver the confirmed Statement of Intent.**
129
+ 2. **Offer downstream paths** (offer to save it to `docs/intent/[topic].md`, draft a spec with `spec-driven-development`, or move to task planning after the spec).
130
+ 3. **STOP YOUR TURN IMMEDIATELY.** Do NOT invoke tools or start downstream work in this turn. Hand control back to the user to choose the next step.
131
+
132
+ ### The 95% Confidence Stop
133
+
134
+ You're done when you can answer yes to this:
135
+
136
+ > *Can I predict the user's reaction to the next three questions I would ask?*
137
+
138
+ If yes, you have shared understanding. Stop interviewing and produce the restate. If no, you're not done; ask the next question.
139
+
140
+ This is a checkable test, not a vibe. It also has a floor: if you've gone several rounds and still can't predict, that's information about the ask, not a reason to keep grinding. Stop and tell the user: "I've asked X questions and I still can't predict your reactions. Something foundational is missing. Want to step back?"
141
+
142
+ ## Output
143
+
144
+ The output of this skill is a **confirmed statement of intent**: the restate from Step 4, with an explicit yes from Step 5. That's the deliverable. Specs, plans, and task lists are downstream; they consume the intent this skill produces.
145
+
146
+ If the user wants the intent to persist (a multi-session project, a handoff to another collaborator), offer to save it to `docs/intent/[topic].md`. Only save if they confirm.
147
+
148
+ ## Example
149
+
150
+ A short before-and-after.
151
+
152
+ **Without `interview-me`:**
153
+
154
+ ```
155
+ User: build me a dashboard for our metrics
156
+ Agent: <starts proposing chart libraries and layouts>
157
+ ```
158
+
159
+ The agent has assumed: who it's for, what metrics, what "for our team" means, what success looks like. None of these are stated. Every assumption is a place the user can later say "that's not what I meant."
160
+
161
+ **With `interview-me`:**
162
+
163
+ ```
164
+ User: build me a dashboard for our metrics
165
+
166
+ Agent:
167
+ HYPOTHESIS: You want a way to answer "how are we doing?" in standup, and "dashboard" came to mind because that's the conventional answer.
168
+ CONFIDENCE: ~30% — missing: who it's for, what "metrics" are, and what success looks like
169
+
170
+ Q: When you say "how are we doing?", who's asking — you alone, the engineering team in standup, or up the chain (e.g., your manager, an exec, a board)?
171
+ GUESS: engineering team in standup, because "we" usually scopes that way and standups are where this question gets asked. If it's for execs the metrics and the framing change a lot.
172
+
173
+ User: It's actually for me. I keep losing track of which experiments are running and what their early signal looks like.
174
+
175
+ Agent:
176
+ Updated read: not a team dashboard at all. It's a personal experiment tracker. Confidence: ~60% — still missing: what "early signal" means and what done looks like.
177
+
178
+ Q: Is the gap that you don't know which experiments exist, or that you can't see their results in one place?
179
+ GUESS: the second one. You have a list of experiments somewhere, but their results live in five different tools, and reconciling them by hand is what you're tired of.
180
+
181
+ User: First one actually. I literally don't have a list. They're spread across different docs.
182
+
183
+ Agent: <continues>
184
+ ```
185
+
186
+ Two questions in, the agent has discovered the actual ask isn't "a dashboard." It's "a list." Different artifact, different scope, different work. The dashboard would have been wrong.
187
+
188
+ ## Interaction with Other Skills
189
+
190
+ - **`idea-refine`**: downstream. If the confirmed intent is "I want X but I don't know how to scope it," hand off to `idea-refine` to generate variations against the now-explicit intent.
191
+ - **`spec-driven-development`**: downstream. If the confirmed intent is concrete ("I want X for Y users with Z success criteria"), hand off to `spec-driven-development` to write it down.
192
+ - **`planning-and-task-breakdown`**: two hops downstream of this skill (after the spec).
193
+ - **`doubt-driven-development`**: opposite end of the timeline. Interview-me is pre-decision intent extraction; doubt-driven is post-decision artifact review. Both catch divergence, but at different moments.
194
+ - **`source-driven-development`**: orthogonal. Interview-me clarifies what the user wants; SDD verifies framework facts. They don't compete.
195
+
196
+ ## Common Rationalizations
197
+
198
+ | Rationalization | Reality |
199
+ |---|---|
200
+ | "The ask is clear enough" | If you can't write the user's desired outcome in one sentence right now, the ask isn't clear. Run Step 1 before deciding. |
201
+ | "Asking too many questions wastes their time" | Time wasted by 4–6 targeted questions is small. Time wasted by building the wrong thing is enormous, and the user is the one bearing that cost. |
202
+ | "I'll figure it out as I build" | Switching costs after code exists are 10x what they are now. Discovery during implementation is rework. |
203
+ | "They said 'whatever you think,' so I should just decide" | "Whatever you think" is delegation, not decision. Re-ask with two concrete options as a choice. |
204
+ | "I should give them several options to pick from" | Options work when the user knows what they want and is choosing between trade-offs. They don't know what they want yet. Listing options widens the search; asking narrows it. |
205
+ | "If I attach my guess, I'm leading them" | Leading is the point. Reacting is faster than generating from scratch. The risk is sycophancy, not leading; mitigate by being visibly willing to be wrong. |
206
+ | "We've talked enough, I get it" | Test it: can you predict their reaction to the next three questions? If not, you don't get it yet. |
207
+ | "The user said yes, we're done" | If the yes followed a vague restate or an open-ended "sounds good," the yes is hollow. Restate concretely and re-confirm. |
208
+
209
+ ## Red Flags
210
+
211
+ - Three or more questions in a single message: that's batching, not interviewing
212
+ - A question without your hypothesis attached: that's surveying, not committing
213
+ - Accepting "whatever you think is best" as a terminal answer
214
+ - Producing a spec, plan, or task list before the user has explicitly confirmed your restate
215
+ - Invoking tools or starting downstream work immediately upon intent confirmation instead of stopping the turn
216
+ - Questions framed as "what would be best practice?" instead of "what do you actually want?"
217
+ - The user gives a sophistication-signaling answer ("scalable", "clean", "modern") and you accept it without probing whether it's what they actually want
218
+ - Three or more rounds without your confidence visibly rising: you're asking the wrong questions, step back and reframe
219
+ - A confidence number below ~70% with no reason attached: the user can't help close the gap if they don't know what's missing
220
+ - Saving the intent doc before the user has confirmed (the doc itself implies a yes the user didn't give)
221
+ - Skipping the "Out of scope" line in the restate (silent disagreement about non-goals is half of misalignment)
222
+
223
+ ## Verification
224
+
225
+ After applying interview-me:
226
+
227
+ - [ ] An explicit hypothesis with a confidence number was stated in the first turn
228
+ - [ ] Every confidence number below ~70% was accompanied by a one-line reason (what's still unresolved or missing)
229
+ - [ ] Questions were asked one at a time, each with the agent's guess attached
230
+ - [ ] At least one "what would you actually want if you didn't have to justify it?" probe ran when the user gave a sophistication-signaling or convention-signaling answer
231
+ - [ ] A concrete restate (Outcome / User / Why now / Success / Constraint / Out of scope) was written back to the user
232
+ - [ ] The user confirmed the restate with an explicit yes (not "whatever you think," not "sounds good," not silence)
233
+ - [ ] At the stop point, the agent could predict reactions to the next three questions it would ask
234
+ - [ ] Upon receiving explicit confirmation, stopped the turn immediately without invoking tools or starting downstream work
235
+ - [ ] Any handoff to a downstream skill (`idea-refine`, `spec-driven-development`) was framed in terms of the confirmed intent, not the original underspecified ask