specialist-agent 2.13.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
@@ -1,141 +0,0 @@
1
- ---
2
- name: plan
3
- description: "Use when starting a new feature, refactor, or multi-step task - before writing any code. Use especially when scope is unclear or multiple files are involved."
4
- user-invocable: true
5
- argument-hint: "[feature description]"
6
- allowed-tools: Read, Glob, Grep
7
- ---
8
-
9
- # /plan - Adaptive Planning
10
-
11
- Create an implementation plan that matches the complexity of the task.
12
-
13
- **Target:** $ARGUMENTS
14
-
15
- ## Workflow
16
-
17
- ### Step 1: Assess Complexity
18
-
19
- Search the codebase to understand scope:
20
-
21
- ```bash
22
- # Find affected files
23
- # Estimate lines of code
24
- # Identify dependencies
25
- ```
26
-
27
- Classify as:
28
- - **TRIVIAL** (1-2 files, <50 lines) → Skip planning
29
- - **SIMPLE** (3-5 files, <200 lines) → Mini-plan
30
- - **MEDIUM** (6-15 files, complete module) → Standard plan
31
- - **COMPLEX** (15+ files, multiple modules) → Full design doc
32
-
33
- ### Step 2: Generate Plan
34
-
35
- #### For TRIVIAL:
36
- ```
37
- ✓ Task is trivial. Delegating to @builder.
38
- ```
39
-
40
- #### For SIMPLE:
41
- ```markdown
42
- ## Quick Plan: [Feature]
43
-
44
- 1. [Step 1] - `file.ts`
45
- 2. [Step 2] - `file.ts`
46
- 3. [Step 3] - `file.ts`
47
- 4. Test: Run `npm test`
48
- 5. Verify: Check [criteria]
49
-
50
- Estimated: ~X tokens
51
- ```
52
-
53
- #### For MEDIUM:
54
- ```markdown
55
- ## Implementation Plan: [Feature]
56
-
57
- ### Overview
58
- [2-3 sentences]
59
-
60
- ### Task Breakdown
61
- - [ ] Task 1: [description] - `file.ts` (~N lines)
62
- - [ ] Task 2: [description] - `file.ts` (~N lines)
63
- - [ ] Task 3: [description] - `file.ts` (~N lines)
64
-
65
- ### Dependencies
66
- - Task 2 depends on Task 1
67
- - Tasks 3-4 can run in parallel
68
-
69
- ### Checkpoints
70
- - After Task 2: Verify [condition]
71
- - After Task 4: Run all tests
72
-
73
- ### Estimated Cost
74
- ~X tokens total
75
- ```
76
-
77
- #### For COMPLEX:
78
- ```markdown
79
- ## Design Document: [Feature]
80
-
81
- ### Problem Statement
82
- [What problem are we solving?]
83
-
84
- ### Requirements
85
- - [ ] Requirement 1
86
- - [ ] Requirement 2
87
-
88
- ### Current State
89
- [How does the system work today?]
90
-
91
- ### Proposed Solution
92
- [High-level architecture]
93
-
94
- ### Alternatives Considered
95
- 1. [Alternative] - Rejected: [reason]
96
-
97
- ### Task Breakdown
98
- [Detailed tasks with estimates]
99
-
100
- ### Risks
101
- - Risk 1: [mitigation]
102
-
103
- ### Estimated Cost
104
- ~X tokens total
105
- ```
106
-
107
- ### Step 3: Confirm
108
-
109
- Ask user: "Approve plan and begin execution?"
110
-
111
- If approved, delegate to @executor with the plan.
112
-
113
- ## Output
114
-
115
- ```
116
- ──── /plan ────
117
- Feature: [name]
118
- Complexity: [TRIVIAL | SIMPLE | MEDIUM | COMPLEX]
119
- Files affected: ~N
120
- Estimated tokens: ~N
121
-
122
- [Plan content]
123
-
124
- Next: Awaiting approval
125
- ```
126
-
127
- ## Anti-Rationalization
128
-
129
- | Excuse | Reality |
130
- |--------|---------|
131
- | "It's simple enough to just start coding" | That's what every developer says before a 3-day rabbit hole. 10 minutes of planning saves hours. |
132
- | "I already know the architecture" | Plans aren't just for you - they create alignment and a checkpoint to rollback to. |
133
- | "Planning is waterfall" | Adaptive planning IS agile. Skipping planning is chaos, not agility. |
134
- | "I'll refactor later if the approach is wrong" | Refactoring costs 10x more than planning. Get it right first. |
135
-
136
- ## Rules
137
-
138
- - Never force heavy planning for simple tasks
139
- - Always estimate token costs
140
- - Ask clarifying questions if needed
141
- - Read existing architecture before planning
@@ -1,241 +0,0 @@
1
- ---
2
- name: prd
3
- description: "Use when translating a product idea, feature request, or stakeholder requirement into a structured PRD with user stories, acceptance criteria, and GitHub issues."
4
- user-invocable: true
5
- argument-hint: "[feature or product idea]"
6
- allowed-tools: Read, Write, Edit, Bash, Glob, Grep
7
- ---
8
-
9
- # /prd - Product Requirements Document
10
-
11
- Transform product ideas into structured, implementable PRDs with user stories, acceptance criteria, and issue decomposition - bridging the gap between stakeholder intent and developer action.
12
-
13
- **Target:** $ARGUMENTS
14
-
15
- ## When to Use
16
-
17
- - Translating a vague feature request into actionable requirements
18
- - Starting a new feature that needs stakeholder alignment
19
- - Converting user feedback into development tasks
20
- - When `@product` or `@analyst` needs a structured output format
21
- - Before `/plan` for features that need formal requirements
22
- - NOT for: bug fixes (use `/debug`)
23
- - NOT for: technical tasks with clear specs (use `/plan` directly)
24
- - NOT for: exploratory ideation (use `/brainstorm` first)
25
-
26
- ## Workflow
27
-
28
- ### Step 1: Problem & Scope Definition
29
-
30
- 1. **Identify the problem statement** - What pain point does this solve?
31
- 2. **Define target users** - Primary and secondary personas
32
- 3. **Establish success criteria** - Measurable outcomes (not vague goals)
33
- 4. **Set scope boundaries** - Explicit in-scope and out-of-scope items
34
- 5. **Scan existing codebase** for related features:
35
-
36
- ```bash
37
- # Find related modules, components, services
38
- grep -rl "$KEYWORD" src/ --include="*.ts" --include="*.tsx" --include="*.vue" --include="*.svelte" 2>/dev/null | head -20
39
- ```
40
-
41
- **Output:**
42
- ```markdown
43
- ## 1. Problem & Scope
44
-
45
- **Problem:** [Clear problem statement with evidence]
46
- **Users:** [Primary: ..., Secondary: ...]
47
- **Success Criteria:**
48
- - [ ] [Measurable outcome 1]
49
- - [ ] [Measurable outcome 2]
50
- **In Scope:** [what's included]
51
- **Out of Scope:** [what's explicitly excluded]
52
- **Existing Code:** [related modules found in codebase]
53
- ```
54
-
55
- **BLOCKED** until problem statement is clear and measurable.
56
-
57
- ### Step 2: User Stories & Acceptance Criteria
58
-
59
- 1. **Write user stories** in standard format with Gherkin acceptance criteria
60
- 2. **Cover all personas** identified in Step 1
61
- 3. **Include edge cases** - What happens when things go wrong?
62
- 4. **Prioritize stories** using MoSCoW (Must/Should/Could/Won't)
63
-
64
- For each story:
65
- ```markdown
66
- ### US-[N]: [Story Title]
67
-
68
- **As a** [persona],
69
- **I want** [action],
70
- **So that** [benefit].
71
-
72
- **Priority:** Must Have | Should Have | Could Have | Won't Have
73
-
74
- **Acceptance Criteria:**
75
- ```gherkin
76
- GIVEN [precondition]
77
- WHEN [action]
78
- THEN [expected result]
79
-
80
- GIVEN [precondition]
81
- WHEN [error condition]
82
- THEN [error handling]
83
- ```
84
- ```
85
-
86
- **BLOCKED** until at least 3 user stories with Gherkin criteria exist.
87
-
88
- ### Step 3: Requirements Matrix
89
-
90
- 1. **Functional requirements** - What the system must do
91
- 2. **Non-functional requirements** - Performance, security, accessibility, i18n
92
- 3. **Technical constraints** - Stack, infrastructure, API compatibility
93
- 4. **Dependencies** - External services, other teams, data sources
94
-
95
- **Output:**
96
- ```markdown
97
- ## 3. Requirements Matrix
98
-
99
- ### Functional
100
- | ID | Requirement | Priority | Story |
101
- |----|------------|----------|-------|
102
- | FR-1 | [requirement] | Must | US-1 |
103
-
104
- ### Non-Functional
105
- | ID | Requirement | Target | Measurement |
106
- |----|------------|--------|-------------|
107
- | NFR-1 | Response time | < 200ms p95 | Load test |
108
- | NFR-2 | Accessibility | WCAG AA | Axe audit |
109
-
110
- ### Constraints
111
- - [Technical constraint 1]
112
- - [Infrastructure constraint]
113
-
114
- ### Dependencies
115
- - [External service/team]
116
- ```
117
-
118
- ### Step 4: Technical Feasibility Scan
119
-
120
- 1. **Scan codebase** for reusable patterns:
121
-
122
- ```bash
123
- # Identify existing patterns, services, utilities
124
- find src/ -type f -name "*.ts" -o -name "*.tsx" | head -50
125
- # Check for existing API routes
126
- find src/ -path "*/api/*" -name "*.ts" 2>/dev/null | head -20
127
- # Check for existing types/interfaces
128
- grep -rn "interface\|type " src/types/ 2>/dev/null | head -20
129
- ```
130
-
131
- 2. **Identify integration points** - What existing code touches this feature?
132
- 3. **Estimate new infrastructure** - New tables, APIs, services, queues needed
133
- 4. **Flag risks** - Breaking changes, migration needs, data concerns
134
-
135
- **Output:**
136
- ```markdown
137
- ## 4. Technical Feasibility
138
-
139
- **Reusable:** [existing modules/patterns to leverage]
140
- **New infrastructure:** [tables, APIs, services needed]
141
- **Integration points:** [existing code that needs changes]
142
- **Risks:** [breaking changes, migrations, data concerns]
143
- ```
144
-
145
- ### Step 5: Issue Decomposition
146
-
147
- 1. **Break PRD into implementable issues** - Each issue is a single PR
148
- 2. **Estimate size** - S (< 2h), M (2-4h), L (4-8h), XL (> 8h, split further)
149
- 3. **Map dependencies** - Which issues block others?
150
- 4. **Suggest agent assignments** - Which specialist agent handles each issue?
151
-
152
- **Output:**
153
- ```markdown
154
- ## 5. Issue Breakdown
155
-
156
- | # | Issue Title | Size | Depends On | Agent |
157
- |---|------------|------|------------|-------|
158
- | 1 | Create [model/schema] | S | - | @data |
159
- | 2 | Implement [API endpoint] | M | #1 | @api |
160
- | 3 | Build [UI component] | M | #2 | @builder |
161
- | 4 | Add [tests] | M | #3 | @tester |
162
- | 5 | Add [observability] | S | #2 | @builder |
163
-
164
- **Critical Path:** #1 → #2 → #3 → #4
165
- **Parallelizable:** #5 can run alongside #3-#4
166
- ```
167
-
168
- ### Step 6: PRD Document Generation
169
-
170
- 1. **Compile all sections** into a single document
171
- 2. **Write to file:** `docs/PRD-[feature-name].md`
172
- 3. **Include metadata:** date, author, version, status (Draft/Review/Approved)
173
-
174
- ### Step 7 (Optional): GitHub Issue Creation
175
-
176
- If the user requests it, create issues:
177
-
178
- ```bash
179
- # Create issues from the breakdown
180
- gh issue create --title "[Issue Title]" --body "[Description with acceptance criteria]" --label "feature,[size]"
181
- ```
182
-
183
- ## Verification Protocol
184
-
185
- **Before claiming the PRD is complete:**
186
-
187
- 1. Problem statement exists with measurable success criteria
188
- 2. At least 3 user stories with Gherkin acceptance criteria
189
- 3. Non-functional requirements have measurable targets (not "fast" but "< 200ms")
190
- 4. Codebase scan was performed - reusable code identified
191
- 5. Issue breakdown exists with size estimates and dependencies
192
- 6. Every Must Have story maps to at least one issue
193
- 7. PRD file was written to `docs/PRD-[name].md`
194
- 8. No vague terms remain - all clarified with specifics
195
-
196
- ## Anti-Rationalization
197
-
198
- | Excuse | Reality |
199
- |--------|---------|
200
- | "Requirements are in my head" | Unwritten requirements become misunderstood requirements. Write them down. Memory is not documentation. |
201
- | "We can figure out scope during development" | Scope creep costs 3-10x more than upfront definition. Define it now. |
202
- | "User stories are too formal" | Stories are negotiable contracts, not bureaucracy. They prevent the rework that comes from verbal specs. |
203
- | "The PRD will be outdated immediately" | A living document beats no document. Update as you learn. Outdated > nonexistent. |
204
- | "Just tell the developer what to build" | Developers need acceptance criteria, not verbal instructions that get lost between Slack messages. |
205
- | "NFRs are obvious, we don't need to write them" | "Fast" means 50ms to one person and 2s to another. Write the number. |
206
- | "We'll add acceptance criteria later" | Criteria written after implementation are just documentation, not specifications. Write them first. |
207
-
208
- ## Rules
209
-
210
- 1. **Problem before solution** - Never write user stories without a clear problem statement
211
- 2. **Measurable criteria only** - Every success metric and NFR must have a number
212
- 3. **Gherkin is mandatory** - Every user story gets GIVEN/WHEN/THEN acceptance criteria
213
- 4. **Codebase grounded** - Scan existing code before proposing new infrastructure
214
- 5. **Issues must be PR-sized** - Any XL issue must be split further
215
- 6. **MoSCoW prioritization** - Every story gets a priority, no "everything is Must Have"
216
- 7. **Dependencies explicit** - Every issue lists what it blocks and what blocks it
217
- 8. **Agent-ready** - Each issue suggests which specialist agent should handle it
218
-
219
- ## Output
220
-
221
- ```
222
- ──── /prd ────
223
- Feature: $ARGUMENTS
224
-
225
- Problem: [1-line problem statement]
226
- Users: [primary persona]
227
- Stories: [N] (Must: X, Should: Y, Could: Z)
228
-
229
- Requirements:
230
- Functional: N
231
- Non-Functional: N
232
- Constraints: N
233
-
234
- Issues: N (S: X, M: Y, L: Z)
235
- Critical Path: [issue chain]
236
-
237
- PRD saved: docs/PRD-[name].md
238
- Issues created: [N] (if requested)
239
-
240
- ──── Ready for /plan ────
241
- ```
@@ -1,112 +0,0 @@
1
- ---
2
- name: recall
3
- description: "Use when you need to retrieve a past decision, preference, or convention that was saved with /remember."
4
- user-invocable: true
5
- argument-hint: "[topic or 'all']"
6
- allowed-tools: Read, Glob
7
- ---
8
-
9
- # /recall - Query Project Memory
10
-
11
- Recall decisions, preferences, and lessons from previous sessions using Claude Code's native auto-memory system.
12
-
13
- **Query:** $ARGUMENTS
14
-
15
- ## Workflow
16
-
17
- ### Step 1: Load Memory Index
18
-
19
- Read `MEMORY.md` from the memory directory. This file is automatically loaded into conversation context, so it may already be available.
20
-
21
- Memory directory: `.claude/projects/<project-hash>/memory/`
22
-
23
- ### Step 2: Process Query
24
-
25
- #### If "all" or empty:
26
- Show full memory summary by reading all memory files listed in MEMORY.md.
27
-
28
- #### If specific topic:
29
- Search memory file names, descriptions, and content for matches.
30
-
31
- ### Step 3: Read Relevant Files
32
-
33
- For matched memories, read the full `.md` file to get details including Why and How to apply.
34
-
35
- ## Output Formats
36
-
37
- ### Full Memory (/recall all)
38
- ```
39
- ══════════════════════════════════════════════
40
- PROJECT MEMORY
41
- ══════════════════════════════════════════════
42
-
43
- ──────────────────────────────────────────────
44
- DECISIONS & CONTEXT (project)
45
- ──────────────────────────────────────────────
46
-
47
- - [Topic]: [Decision]
48
- Why: [Reason]
49
- How to apply: [Guidance]
50
-
51
- ──────────────────────────────────────────────
52
- PREFERENCES & LESSONS (feedback)
53
- ──────────────────────────────────────────────
54
-
55
- - [Rule or preference]
56
- Why: [Reason]
57
- How to apply: [When/where]
58
-
59
- ──────────────────────────────────────────────
60
- REFERENCES
61
- ──────────────────────────────────────────────
62
-
63
- - [Resource]: [Where to find it]
64
-
65
- ══════════════════════════════════════════════
66
- ```
67
-
68
- ### Specific Topic (/recall state management)
69
- ```
70
- ──── /recall: state management ────
71
-
72
- Found 2 related memories:
73
-
74
- Decision: State Management (project)
75
- Use Zustand instead of Redux
76
- Why: Simpler API, less boilerplate
77
- How to apply: All new state should use Zustand
78
-
79
- Pattern (feedback):
80
- Never use Redux in this project
81
- Why: Team consensus on simplicity
82
- ```
83
-
84
- ### No Results
85
- ```
86
- ──── /recall: [topic] ────
87
-
88
- No memories found for "[topic]".
89
-
90
- Suggestions:
91
- - Try /recall all to see all memories
92
- - Use /remember to add new memories
93
- ```
94
-
95
- ## Query Examples
96
-
97
- ```bash
98
- /recall # Show recent memories
99
- /recall all # Show all memories
100
- /recall state management # Search for topic
101
- /recall testing # Search for topic
102
- /recall decisions # Show only project-type memories
103
- /recall preferences # Show only feedback-type memories
104
- /recall references # Show only reference-type memories
105
- ```
106
-
107
- ## Rules
108
-
109
- 1. **Fuzzy match** - "state" matches "state-management-decision"
110
- 2. **Show context** - Include Why and How to apply
111
- 3. **Suggest related** - Link to similar memories
112
- 4. **Handle empty** - Graceful message if no memory exists
@@ -1,108 +0,0 @@
1
- ---
2
- name: remember
3
- description: "Use when making a decision, choosing a convention, or learning a lesson that should persist across sessions."
4
- user-invocable: true
5
- argument-hint: "[what to remember]"
6
- allowed-tools: Read, Write, Glob
7
- ---
8
-
9
- # /remember - Save to Project Memory
10
-
11
- Save decisions, preferences, and lessons that persist across sessions using Claude Code's native auto-memory system.
12
-
13
- **Input:** $ARGUMENTS
14
-
15
- ## Workflow
16
-
17
- ### Step 1: Parse Input
18
-
19
- Detect type of memory:
20
- - **Decision** → type: `project` (e.g., "Use X instead of Y because Z")
21
- - **Preference** → type: `feedback` (e.g., "Always use single quotes")
22
- - **Pattern avoid** → type: `feedback` (e.g., "Never use any types")
23
- - **Pattern prefer** → type: `feedback` (e.g., "Prefer composition over inheritance")
24
- - **Lesson** → type: `feedback` (e.g., "API changed and broke app. Solution: version contracts")
25
- - **Project context** → type: `project` (e.g., "Merge freeze starts March 5")
26
- - **External resource** → type: `reference` (e.g., "Bugs tracked in Linear project INGEST")
27
-
28
- ### Step 2: Create Memory File
29
-
30
- Write a markdown file to the memory directory with frontmatter:
31
-
32
- ```markdown
33
- ---
34
- name: [kebab-case-topic-name]
35
- description: [one-line description for relevance matching]
36
- type: [project | feedback | reference]
37
- ---
38
-
39
- [Memory content]
40
-
41
- **Why:** [reason or context]
42
- **How to apply:** [when/where this applies]
43
- ```
44
-
45
- Memory directory: `.claude/projects/<project-hash>/memory/`
46
-
47
- ### Step 3: Update Memory Index
48
-
49
- Add an entry to `MEMORY.md` in the memory directory. Keep it concise - just a link and brief description.
50
-
51
- ### Step 4: Check for Duplicates
52
-
53
- Before creating a new file, check if a memory on the same topic already exists. If yes, UPDATE the existing file instead of creating a duplicate.
54
-
55
- ## Output
56
-
57
- ```
58
- ──── /remember ────
59
-
60
- Saved to project memory
61
-
62
- Type: [Decision | Preference | Pattern | Lesson | Context | Reference]
63
- Topic: [topic]
64
- Content: [what was saved]
65
-
66
- This will be recalled in future sessions via MEMORY.md.
67
- ```
68
-
69
- ## Examples
70
-
71
- ### Remember a Decision
72
- ```
73
- /remember Use Zustand for state management because it's simpler than Redux
74
- ```
75
-
76
- Output:
77
- ```
78
- Saved to project memory
79
-
80
- Type: Decision (project)
81
- Topic: State Management
82
- Content: Use Zustand instead of Redux
83
- Reason: Simpler API, less boilerplate
84
- ```
85
-
86
- ### Remember a Preference
87
- ```
88
- /remember Always use single quotes in this project
89
- ```
90
-
91
- ### Remember to Avoid
92
- ```
93
- /remember Never use any types in TypeScript
94
- ```
95
-
96
- ### Remember a Lesson
97
- ```
98
- /remember The API changed format and broke parsing. Solution: Always create adapters with versioned contracts.
99
- ```
100
-
101
- ## Rules
102
-
103
- 1. **Extract key info** - Don't store raw text, structure with Why/How to apply
104
- 2. **Categorize correctly** - Use correct memory type (project, feedback, reference)
105
- 3. **No duplicates** - Update existing if same topic
106
- 4. **No secrets** - Never store credentials or PII
107
- 5. **Convert dates** - Use absolute dates, not relative ("2026-03-05" not "Thursday")
108
- 6. **Keep MEMORY.md under 200 lines** - Be concise in the index