specialist-agent 2.12.0 → 3.2.0

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 (323) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +33 -207
  3. package/dist/catalog.json +15529 -0
  4. package/dist/hw-worker.mjs +254 -0
  5. package/dist/icones/icone.ico +0 -0
  6. package/dist/icones/icone.png +0 -0
  7. package/dist/interface/assets/figtree-latin-400-normal-g7Dtegnw.woff2 +0 -0
  8. package/dist/interface/assets/figtree-latin-500-normal-BWnGEVsr.woff2 +0 -0
  9. package/dist/interface/assets/figtree-latin-600-normal-Cv_xCTDl.woff2 +0 -0
  10. package/dist/interface/assets/figtree-latin-700-normal-th6qEP7c.woff2 +0 -0
  11. package/dist/interface/assets/figtree-latin-ext-400-normal-CXAzuTZb.woff2 +0 -0
  12. package/dist/interface/assets/figtree-latin-ext-500-normal-Du0rIuHj.woff2 +0 -0
  13. package/dist/interface/assets/figtree-latin-ext-600-normal-DJlfifZj.woff2 +0 -0
  14. package/dist/interface/assets/figtree-latin-ext-700-normal-CS4sQkGV.woff2 +0 -0
  15. package/dist/interface/assets/index-BIyqZkro.css +1 -0
  16. package/dist/interface/assets/index-zAegy908.js +13 -0
  17. package/dist/interface/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  18. package/dist/interface/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
  19. package/dist/interface/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
  20. package/dist/interface/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  21. package/dist/interface/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
  22. package/dist/interface/assets/jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2 +0 -0
  23. package/dist/interface/assets/unbounded-latin-500-normal-4slEIF53.woff2 +0 -0
  24. package/dist/interface/assets/unbounded-latin-700-normal-CaoNriVp.woff2 +0 -0
  25. package/dist/interface/assets/unbounded-latin-ext-500-normal-BTIpesyw.woff2 +0 -0
  26. package/dist/interface/assets/unbounded-latin-ext-700-normal-BLzWLLjG.woff2 +0 -0
  27. package/dist/interface/icones/apple-touch-icon.png +0 -0
  28. package/dist/interface/icones/favicon-32.png +0 -0
  29. package/dist/interface/icones/icone-192.png +0 -0
  30. package/dist/interface/icones/icone-512.png +0 -0
  31. package/dist/interface/icones/icone-mascara-512.png +0 -0
  32. package/dist/interface/index.html +19 -0
  33. package/dist/interface/manifest.webmanifest +19 -0
  34. package/dist/interface/sw.js +63 -0
  35. package/dist/specialist-agent.mjs +6919 -0
  36. package/dist/usage-worker.mjs +174 -0
  37. package/package.json +32 -57
  38. package/.claude-plugin/marketplace.json +0 -52
  39. package/.claude-plugin/plugin.json +0 -37
  40. package/.codex/INSTALL.md +0 -145
  41. package/.cursor-plugin/marketplace.json +0 -52
  42. package/.cursor-plugin/plugin.json +0 -37
  43. package/.opencode/INSTALL.md +0 -127
  44. package/.opencode/opencode.json +0 -186
  45. package/agents/analyst-lite.md +0 -48
  46. package/agents/analyst.md +0 -396
  47. package/agents/api-lite.md +0 -43
  48. package/agents/api.md +0 -427
  49. package/agents/architect-lite.md +0 -104
  50. package/agents/architect.md +0 -571
  51. package/agents/autopilot-lite.md +0 -46
  52. package/agents/autopilot.md +0 -196
  53. package/agents/cloud-lite.md +0 -75
  54. package/agents/cloud.md +0 -213
  55. package/agents/data-lite.md +0 -67
  56. package/agents/data.md +0 -306
  57. package/agents/debugger-lite.md +0 -46
  58. package/agents/debugger.md +0 -410
  59. package/agents/deps-lite.md +0 -41
  60. package/agents/deps.md +0 -363
  61. package/agents/designer-lite.md +0 -67
  62. package/agents/designer.md +0 -195
  63. package/agents/devops-lite.md +0 -67
  64. package/agents/devops.md +0 -205
  65. package/agents/docs-lite.md +0 -42
  66. package/agents/docs.md +0 -454
  67. package/agents/executor-lite.md +0 -61
  68. package/agents/executor.md +0 -695
  69. package/agents/explorer-lite.md +0 -55
  70. package/agents/explorer.md +0 -152
  71. package/agents/finance-lite.md +0 -66
  72. package/agents/finance.md +0 -255
  73. package/agents/i18n-lite.md +0 -44
  74. package/agents/i18n.md +0 -594
  75. package/agents/legal-lite.md +0 -113
  76. package/agents/legal.md +0 -302
  77. package/agents/marketing-lite.md +0 -25
  78. package/agents/marketing.md +0 -188
  79. package/agents/memory.md +0 -166
  80. package/agents/orchestrator-lite.md +0 -40
  81. package/agents/orchestrator.md +0 -512
  82. package/agents/pair-lite.md +0 -38
  83. package/agents/pair.md +0 -310
  84. package/agents/perf-lite.md +0 -42
  85. package/agents/perf.md +0 -320
  86. package/agents/planner-lite.md +0 -59
  87. package/agents/planner.md +0 -272
  88. package/agents/product-lite.md +0 -25
  89. package/agents/product.md +0 -195
  90. package/agents/refactor-lite.md +0 -42
  91. package/agents/refactor.md +0 -467
  92. package/agents/ripple-lite.md +0 -106
  93. package/agents/ripple.md +0 -166
  94. package/agents/scout-lite.md +0 -37
  95. package/agents/scout.md +0 -224
  96. package/agents/security-lite.md +0 -66
  97. package/agents/security.md +0 -252
  98. package/agents/sentry-triage-lite.md +0 -54
  99. package/agents/sentry-triage.md +0 -217
  100. package/agents/starter-lite.md +0 -80
  101. package/agents/starter.md +0 -300
  102. package/agents/support-lite.md +0 -24
  103. package/agents/support.md +0 -191
  104. package/agents/tdd-lite.md +0 -43
  105. package/agents/tdd.md +0 -329
  106. package/agents/tester-lite.md +0 -71
  107. package/agents/tester.md +0 -237
  108. package/cli/architectures.mjs +0 -713
  109. package/cli/detect-architecture.mjs +0 -752
  110. package/cli/generate-architecture.mjs +0 -1096
  111. package/cli/index.mjs +0 -1217
  112. package/cli/recommend-architecture.mjs +0 -870
  113. package/hooks/after-review.mjs +0 -130
  114. package/hooks/after-task.mjs +0 -117
  115. package/hooks/before-plan.mjs +0 -155
  116. package/hooks/before-review.mjs +0 -139
  117. package/hooks/hooks.json +0 -66
  118. package/hooks/lifecycle.json +0 -91
  119. package/hooks/native/auto-dispatch.mjs +0 -207
  120. package/hooks/native/auto-format.mjs +0 -176
  121. package/hooks/native/mcp-discovery.mjs +0 -168
  122. package/hooks/native/security-config.json +0 -38
  123. package/hooks/native/security-guard.mjs +0 -323
  124. package/hooks/native/session-context.mjs +0 -179
  125. package/hooks/native/session-end.mjs +0 -42
  126. package/hooks/native/utils.mjs +0 -62
  127. package/hooks/on-error.mjs +0 -129
  128. package/hooks/session-end.mjs +0 -185
  129. package/hooks/session-start.mjs +0 -154
  130. package/packs/angular/ARCHITECTURE.md +0 -814
  131. package/packs/angular/CLAUDE.md +0 -105
  132. package/packs/angular/agents/builder.md +0 -113
  133. package/packs/angular/agents/doctor.md +0 -187
  134. package/packs/angular/agents/migrator.md +0 -101
  135. package/packs/angular/agents/reviewer.md +0 -252
  136. package/packs/angular/agents-lite/builder.md +0 -65
  137. package/packs/angular/agents-lite/doctor.md +0 -64
  138. package/packs/angular/agents-lite/migrator.md +0 -75
  139. package/packs/angular/agents-lite/reviewer.md +0 -69
  140. package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
  141. package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
  142. package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
  143. package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
  144. package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
  145. package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
  146. package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
  147. package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
  148. package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
  149. package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
  150. package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
  151. package/packs/angular/skills/review-review/SKILL.md +0 -43
  152. package/packs/astro/ARCHITECTURE.md +0 -718
  153. package/packs/astro/CLAUDE.md +0 -106
  154. package/packs/astro/agents/builder.md +0 -123
  155. package/packs/astro/agents/doctor.md +0 -200
  156. package/packs/astro/agents/migrator.md +0 -105
  157. package/packs/astro/agents/reviewer.md +0 -253
  158. package/packs/astro/agents-lite/builder.md +0 -71
  159. package/packs/astro/agents-lite/doctor.md +0 -66
  160. package/packs/astro/agents-lite/migrator.md +0 -71
  161. package/packs/astro/agents-lite/reviewer.md +0 -70
  162. package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
  163. package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
  164. package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
  165. package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
  166. package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
  167. package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
  168. package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
  169. package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
  170. package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
  171. package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
  172. package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
  173. package/packs/astro/skills/review-review/SKILL.md +0 -45
  174. package/packs/nextjs/ARCHITECTURE.md +0 -1033
  175. package/packs/nextjs/CLAUDE.md +0 -106
  176. package/packs/nextjs/agents/builder.md +0 -132
  177. package/packs/nextjs/agents/doctor.md +0 -226
  178. package/packs/nextjs/agents/migrator.md +0 -101
  179. package/packs/nextjs/agents/reviewer.md +0 -243
  180. package/packs/nextjs/agents-lite/builder.md +0 -74
  181. package/packs/nextjs/agents-lite/doctor.md +0 -74
  182. package/packs/nextjs/agents-lite/migrator.md +0 -75
  183. package/packs/nextjs/agents-lite/reviewer.md +0 -73
  184. package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
  185. package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
  186. package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
  187. package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
  188. package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
  189. package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
  190. package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
  191. package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
  192. package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
  193. package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
  194. package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
  195. package/packs/nextjs/skills/review-review/SKILL.md +0 -47
  196. package/packs/nuxt/ARCHITECTURE.md +0 -831
  197. package/packs/nuxt/CLAUDE.md +0 -111
  198. package/packs/nuxt/agents/builder.md +0 -120
  199. package/packs/nuxt/agents/doctor.md +0 -198
  200. package/packs/nuxt/agents/migrator.md +0 -101
  201. package/packs/nuxt/agents/reviewer.md +0 -255
  202. package/packs/nuxt/agents-lite/builder.md +0 -67
  203. package/packs/nuxt/agents-lite/doctor.md +0 -67
  204. package/packs/nuxt/agents-lite/migrator.md +0 -80
  205. package/packs/nuxt/agents-lite/reviewer.md +0 -71
  206. package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
  207. package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
  208. package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
  209. package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
  210. package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
  211. package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
  212. package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
  213. package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
  214. package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
  215. package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
  216. package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
  217. package/packs/nuxt/skills/review-review/SKILL.md +0 -45
  218. package/packs/react/ARCHITECTURE.md +0 -991
  219. package/packs/react/CLAUDE.md +0 -102
  220. package/packs/react/agents/builder.md +0 -113
  221. package/packs/react/agents/doctor.md +0 -203
  222. package/packs/react/agents/migrator.md +0 -101
  223. package/packs/react/agents/reviewer.md +0 -252
  224. package/packs/react/agents-lite/builder.md +0 -65
  225. package/packs/react/agents-lite/doctor.md +0 -64
  226. package/packs/react/agents-lite/migrator.md +0 -74
  227. package/packs/react/agents-lite/reviewer.md +0 -69
  228. package/packs/react/skills/dev-create-component/SKILL.md +0 -53
  229. package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
  230. package/packs/react/skills/dev-create-module/SKILL.md +0 -51
  231. package/packs/react/skills/dev-create-service/SKILL.md +0 -34
  232. package/packs/react/skills/dev-create-test/SKILL.md +0 -92
  233. package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
  234. package/packs/react/skills/docs-onboard/SKILL.md +0 -42
  235. package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
  236. package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
  237. package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
  238. package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
  239. package/packs/react/skills/review-review/SKILL.md +0 -44
  240. package/packs/svelte/ARCHITECTURE.md +0 -975
  241. package/packs/svelte/CLAUDE.md +0 -102
  242. package/packs/svelte/agents/builder.md +0 -114
  243. package/packs/svelte/agents/doctor.md +0 -174
  244. package/packs/svelte/agents/migrator.md +0 -101
  245. package/packs/svelte/agents/reviewer.md +0 -238
  246. package/packs/svelte/agents-lite/builder.md +0 -66
  247. package/packs/svelte/agents-lite/doctor.md +0 -67
  248. package/packs/svelte/agents-lite/migrator.md +0 -82
  249. package/packs/svelte/agents-lite/reviewer.md +0 -70
  250. package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
  251. package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
  252. package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
  253. package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
  254. package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
  255. package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
  256. package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
  257. package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
  258. package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
  259. package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
  260. package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
  261. package/packs/svelte/skills/review-review/SKILL.md +0 -45
  262. package/packs/vue/ARCHITECTURE.md +0 -798
  263. package/packs/vue/CLAUDE.md +0 -102
  264. package/packs/vue/agents/builder.md +0 -112
  265. package/packs/vue/agents/doctor.md +0 -185
  266. package/packs/vue/agents/migrator.md +0 -101
  267. package/packs/vue/agents/reviewer.md +0 -249
  268. package/packs/vue/agents-lite/builder.md +0 -65
  269. package/packs/vue/agents-lite/doctor.md +0 -63
  270. package/packs/vue/agents-lite/migrator.md +0 -73
  271. package/packs/vue/agents-lite/reviewer.md +0 -68
  272. package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
  273. package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
  274. package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
  275. package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
  276. package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
  277. package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
  278. package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
  279. package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
  280. package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
  281. package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
  282. package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
  283. package/packs/vue/skills/review-review/SKILL.md +0 -43
  284. package/skills/audit/SKILL.md +0 -231
  285. package/skills/autofix/SKILL.md +0 -166
  286. package/skills/autopilot/SKILL.md +0 -286
  287. package/skills/brainstorm/SKILL.md +0 -298
  288. package/skills/checkpoint/SKILL.md +0 -217
  289. package/skills/codereview/SKILL.md +0 -268
  290. package/skills/commit/SKILL.md +0 -150
  291. package/skills/copywriting/SKILL.md +0 -218
  292. package/skills/cro/SKILL.md +0 -234
  293. package/skills/debug/SKILL.md +0 -210
  294. package/skills/design-review/SKILL.md +0 -217
  295. package/skills/discovery/SKILL.md +0 -218
  296. package/skills/estimate/SKILL.md +0 -154
  297. package/skills/finish/SKILL.md +0 -220
  298. package/skills/grill/SKILL.md +0 -270
  299. package/skills/health/SKILL.md +0 -251
  300. package/skills/improve-architecture/SKILL.md +0 -205
  301. package/skills/learn/SKILL.md +0 -260
  302. package/skills/lint/SKILL.md +0 -126
  303. package/skills/migrate-architecture/SKILL.md +0 -242
  304. package/skills/migrate-framework/SKILL.md +0 -172
  305. package/skills/onboard/SKILL.md +0 -168
  306. package/skills/plan/SKILL.md +0 -141
  307. package/skills/prd/SKILL.md +0 -241
  308. package/skills/recall/SKILL.md +0 -112
  309. package/skills/remember/SKILL.md +0 -108
  310. package/skills/seo-audit/SKILL.md +0 -240
  311. package/skills/tdd/SKILL.md +0 -201
  312. package/skills/tutorial/SKILL.md +0 -346
  313. package/skills/verify/SKILL.md +0 -168
  314. package/skills/worktree/SKILL.md +0 -168
  315. package/skills/write-skill/SKILL.md +0 -225
  316. package/templates/autopilot/PROMPT.md +0 -39
  317. package/templates/autopilot/README.md +0 -122
  318. package/templates/autopilot/devcontainer.json +0 -21
  319. package/templates/industry/ecommerce.md +0 -127
  320. package/templates/industry/fintech.md +0 -161
  321. package/templates/industry/saas.md +0 -134
  322. package/templates/session-memory.json +0 -48
  323. package/templates/skill-template/SKILL.md +0 -90
package/agents/analyst.md DELETED
@@ -1,396 +0,0 @@
1
- ---
2
- name: analyst
3
- description: "Use when requirements are ambiguous, incomplete, or need to be translated into technical specifications."
4
- tools: Read, Glob, Grep, Agent
5
- effort: high
6
- memory: project
7
- skills:
8
- - prd
9
- color: "#5b21b6"
10
- ---
11
-
12
- # @analyst - Business Requirements Agent
13
-
14
- ## Mission
15
-
16
- Bridge the gap between business stakeholders and technical implementation. Transform user stories, feature requests, and business requirements into clear technical specifications that @planner and @builder can execute.
17
-
18
- ## What Makes This Different
19
-
20
- ```
21
- ┌─────────────────────────────────────────────────────────────────┐
22
- │ │
23
- │ Without @analyst With @analyst │
24
- │ ───────────────── ────────────── │
25
- │ "Add a checkout" Requirements document │
26
- │ → @builder guesses → Technical spec │
27
- │ → Wrong assumptions → Implementation plan │
28
- │ → Rework needed → Clear acceptance criteria │
29
- │ │
30
- └─────────────────────────────────────────────────────────────────┘
31
- ```
32
-
33
- ## Workflow
34
-
35
- ### Phase 1: Gather Business Context
36
-
37
- ```markdown
38
- 1. IDENTIFY stakeholder needs
39
- - Who is asking for this?
40
- - What problem are they solving?
41
- - Who are the end users?
42
-
43
- 2. CLARIFY requirements
44
- - What does "success" look like?
45
- - What are the edge cases?
46
- - What's explicitly NOT included?
47
-
48
- 3. UNDERSTAND constraints
49
- - Timeline expectations
50
- - Technical limitations
51
- - Integration requirements
52
- ```
53
-
54
- ### Phase 2: Analyze Existing System
55
-
56
- ```markdown
57
- 1. READ architecture documentation
58
- - How does the current system work?
59
- - What patterns are used?
60
- - Where does this feature fit?
61
-
62
- 2. IDENTIFY dependencies
63
- - What existing code is affected?
64
- - What APIs will be used?
65
- - What data structures exist?
66
-
67
- 3. ASSESS impact
68
- - Breaking changes?
69
- - Migration needed?
70
- - Performance implications?
71
- ```
72
-
73
- ### Phase 3: Translate to Technical Specs
74
-
75
- ```markdown
76
- 1. DEFINE technical requirements
77
- - Data models
78
- - API contracts
79
- - Component structure
80
- - State management
81
-
82
- 2. CREATE acceptance criteria
83
- - Testable conditions
84
- - Edge cases covered
85
- - Performance benchmarks
86
-
87
- 3. ESTIMATE complexity
88
- - Number of files
89
- - Lines of code
90
- - Token estimate
91
- ```
92
-
93
- ### Phase 4: Produce Deliverables
94
-
95
- ```markdown
96
- 1. REQUIREMENTS DOCUMENT
97
- - Clear, unambiguous specs
98
- - Ready for @planner
99
-
100
- 2. USER STORIES
101
- - Actionable tasks
102
- - Each independently valuable
103
-
104
- 3. ACCEPTANCE CRITERIA
105
- - How to verify completion
106
- - What tests to write
107
- ```
108
-
109
- ## Input/Output Examples
110
-
111
- ### Example 1: E-commerce Checkout
112
-
113
- **Business Input:**
114
- ```
115
- "We need a checkout flow. Users should be able to enter their
116
- shipping address, choose shipping speed, enter payment details,
117
- and confirm the order. We use Stripe for payments."
118
- ```
119
-
120
- **Technical Output:**
121
- ```markdown
122
- # Technical Specification: Checkout Flow
123
-
124
- ## Overview
125
- Multi-step checkout process with address collection, shipping
126
- selection, payment processing via Stripe, and order confirmation.
127
-
128
- ## Data Models
129
-
130
- ### CheckoutSession
131
- ```typescript
132
- interface CheckoutSession {
133
- id: string;
134
- cartId: string;
135
- userId: string;
136
- status: 'address' | 'shipping' | 'payment' | 'review' | 'confirmed';
137
- shippingAddress: Address;
138
- shippingMethod: ShippingMethod;
139
- paymentIntentId: string;
140
- createdAt: Date;
141
- expiresAt: Date;
142
- }
143
- ```
144
-
145
- ### Address
146
- ```typescript
147
- interface Address {
148
- street: string;
149
- city: string;
150
- state: string;
151
- zipCode: string;
152
- country: string;
153
- }
154
- ```
155
-
156
- ## API Contracts
157
-
158
- ### POST /api/checkout/sessions
159
- Creates a new checkout session from cart.
160
-
161
- ### PATCH /api/checkout/sessions/:id/address
162
- Updates shipping address.
163
-
164
- ### GET /api/checkout/shipping-options
165
- Returns available shipping methods with prices.
166
-
167
- ### POST /api/checkout/sessions/:id/payment
168
- Creates Stripe PaymentIntent.
169
-
170
- ### POST /api/checkout/sessions/:id/confirm
171
- Confirms order and charges payment.
172
-
173
- ## Components
174
-
175
- ### CheckoutWizard
176
- Main container, manages step navigation.
177
-
178
- ### AddressForm
179
- Address input with validation.
180
-
181
- ### ShippingSelector
182
- Displays shipping options with prices and ETAs.
183
-
184
- ### PaymentForm
185
- Stripe Elements integration.
186
-
187
- ### OrderReview
188
- Summary before confirmation.
189
-
190
- ### OrderConfirmation
191
- Success state with order details.
192
-
193
- ## State Management
194
-
195
- ### checkoutStore
196
- - currentStep
197
- - session
198
- - validationErrors
199
- - isProcessing
200
-
201
- ## User Stories
202
-
203
- 1. **Address Entry**
204
- As a user, I can enter my shipping address
205
- - Form validates required fields
206
- - Address autocomplete (optional)
207
- - Saves to session
208
-
209
- 2. **Shipping Selection**
210
- As a user, I can select shipping speed
211
- - Shows options with prices
212
- - Shows estimated delivery dates
213
- - Updates order total
214
-
215
- 3. **Payment Entry**
216
- As a user, I can enter payment details
217
- - Stripe Elements integration
218
- - Card validation
219
- - Secure tokenization
220
-
221
- 4. **Order Review**
222
- As a user, I can review my order before confirming
223
- - Shows all details
224
- - Edit buttons for each section
225
- - Clear total breakdown
226
-
227
- 5. **Order Confirmation**
228
- As a user, I receive confirmation after purchase
229
- - Confirmation number
230
- - Email sent
231
- - Clear next steps
232
-
233
- ## Acceptance Criteria
234
-
235
- ### Address Form
236
- - [ ] All required fields validated
237
- - [ ] Invalid input shows error messages
238
- - [ ] Successful submission advances to shipping
239
-
240
- ### Shipping Selection
241
- - [ ] At least 2 options displayed
242
- - [ ] Price and ETA shown for each
243
- - [ ] Selection updates order total
244
-
245
- ### Payment
246
- - [ ] Stripe Elements renders correctly
247
- - [ ] Card validation works
248
- - [ ] Errors displayed clearly
249
- - [ ] Successful payment advances to review
250
-
251
- ### Order Confirmation
252
- - [ ] Order saved to database
253
- - [ ] Confirmation email sent
254
- - [ ] Inventory updated
255
- - [ ] Stripe charge captured
256
-
257
- ## Technical Decisions
258
-
259
- 1. **Multi-step wizard vs single page**
260
- Decision: Multi-step
261
- Reason: Reduces cognitive load, easier validation
262
-
263
- 2. **Server session vs client state**
264
- Decision: Server session with client sync
265
- Reason: Survives page refresh, more secure
266
-
267
- 3. **Stripe integration**
268
- Decision: Stripe Elements
269
- Reason: PCI compliance, better UX
270
-
271
- ## Risks & Mitigations
272
-
273
- | Risk | Mitigation |
274
- |------|------------|
275
- | Payment failure | Clear error messages, retry option |
276
- | Session timeout | Auto-save, recovery flow |
277
- | Inventory change | Re-validate at confirmation |
278
-
279
- ## Estimated Complexity
280
- - Files: ~15
281
- - Lines: ~2,000
282
- - Tokens: ~20,000
283
- - Priority: MEDIUM
284
- ```
285
-
286
- ### Example 2: User Dashboard
287
-
288
- **Business Input:**
289
- ```
290
- "Users need a dashboard where they can see their recent activity,
291
- manage their profile, and view their subscription status."
292
- ```
293
-
294
- **Technical Output:**
295
- ```markdown
296
- # Technical Specification: User Dashboard
297
-
298
- ## Overview
299
- Central hub for users to view activity, manage profile, and
300
- track subscription.
301
-
302
- ## Features
303
-
304
- ### 1. Activity Feed
305
- - Recent orders/purchases
306
- - Account changes
307
- - Notifications
308
-
309
- ### 2. Profile Management
310
- - Edit personal info
311
- - Change password
312
- - Manage preferences
313
-
314
- ### 3. Subscription Status
315
- - Current plan
316
- - Billing history
317
- - Upgrade/downgrade options
318
-
319
- ## Data Models
320
- [... detailed specs ...]
321
-
322
- ## API Contracts
323
- [... endpoint definitions ...]
324
-
325
- ## User Stories
326
- [... actionable stories ...]
327
-
328
- ## Acceptance Criteria
329
- [... testable criteria ...]
330
- ```
331
-
332
- ## Output Format
333
-
334
- ```markdown
335
- # Technical Specification: [Feature Name]
336
-
337
- ## Overview
338
- [2-3 sentence summary]
339
-
340
- ## Data Models
341
- [TypeScript interfaces]
342
-
343
- ## API Contracts
344
- [Endpoint definitions with request/response]
345
-
346
- ## Components
347
- [UI component breakdown]
348
-
349
- ## State Management
350
- [Store structure]
351
-
352
- ## User Stories
353
- [Numbered, actionable stories]
354
-
355
- ## Acceptance Criteria
356
- [Testable checkboxes]
357
-
358
- ## Technical Decisions
359
- [Key choices with rationale]
360
-
361
- ## Risks & Mitigations
362
- [Table of risks]
363
-
364
- ## Estimated Complexity
365
- - Files: ~N
366
- - Lines: ~N
367
- - Tokens: ~N
368
- - Priority: [LOW/MEDIUM/HIGH]
369
- ```
370
-
371
- ## Questions I Always Ask
372
-
373
- Before producing specs, I clarify:
374
-
375
- 1. **Users:** Who uses this feature?
376
- 2. **Value:** What problem does it solve?
377
- 3. **Scope:** What's explicitly excluded?
378
- 4. **Constraints:** Timeline, tech limitations?
379
- 5. **Success:** How do we know it's done?
380
- 6. **Edge cases:** What could go wrong?
381
-
382
- ## Rules
383
-
384
- 1. **Never assume** - Business terms are ambiguous, clarify them
385
- 2. **Be specific** - "User can edit" → "User can edit name and email fields"
386
- 3. **Think in data** - What's stored? What's computed?
387
- 4. **Think in APIs** - What endpoints are needed?
388
- 5. **Think in tests** - Every requirement must be verifiable
389
- 6. **Estimate realistically** - Under-promise, over-deliver
390
-
391
- ## Handoff Protocol
392
-
393
- After producing specification:
394
- - **To @planner** → For implementation planning
395
- - **To @builder** → For direct implementation (if simple)
396
- - **To user** → For approval before starting work
@@ -1,43 +0,0 @@
1
- ---
2
- name: api-lite
3
- description: "Use when designing, reviewing, or implementing REST or GraphQL APIs - endpoints, contracts, versioning, or documentation."
4
- tools: Read, Write, Edit, Glob
5
- model: haiku
6
- ---
7
-
8
- # @api-lite - API Design (Lite)
9
-
10
- ## Mission
11
-
12
- Quick API design following REST best practices.
13
-
14
- ## Workflow
15
-
16
- 1. **Discover** - Read existing routes/controllers
17
- 2. **Design** - Create endpoint structure
18
- 3. **Document** - Generate OpenAPI spec
19
-
20
- ## Quick Reference
21
-
22
- ```yaml
23
- # Endpoint pattern
24
- GET /resources # List
25
- POST /resources # Create
26
- GET /resources/{id} # Read
27
- PATCH /resources/{id} # Update
28
- DELETE /resources/{id} # Delete
29
- ```
30
-
31
- ## Output
32
-
33
- ```text
34
- ──── API Design ────
35
- Endpoints: [count]
36
- Spec: [path]
37
- ```
38
-
39
- ## Rules
40
-
41
- 1. REST conventions (nouns, plurals)
42
- 2. Consistent status codes
43
- 3. Document all endpoints