specialist-agent 2.13.0 → 3.3.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 (329) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +36 -206
  3. package/dist/catalog.json +16677 -0
  4. package/dist/hw-worker.mjs +288 -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-BltVv7tb.js +24 -0
  16. package/dist/interface/assets/index-Cpa6kApK.css +1 -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 +64 -0
  35. package/dist/licencas/BRAND.md +22 -0
  36. package/dist/licencas/LICENSE-CONTENT.md +44 -0
  37. package/dist/licencas/OFL-Figtree.txt +93 -0
  38. package/dist/licencas/OFL-JetBrainsMono.txt +93 -0
  39. package/dist/licencas/OFL-Unbounded.txt +93 -0
  40. package/dist/licencas/TERCEIROS.txt +104 -0
  41. package/dist/specialist-agent.mjs +14515 -0
  42. package/dist/usage-worker.mjs +1077 -0
  43. package/package.json +34 -58
  44. package/.claude-plugin/marketplace.json +0 -52
  45. package/.claude-plugin/plugin.json +0 -37
  46. package/.codex/INSTALL.md +0 -145
  47. package/.cursor-plugin/marketplace.json +0 -52
  48. package/.cursor-plugin/plugin.json +0 -37
  49. package/.opencode/INSTALL.md +0 -127
  50. package/.opencode/opencode.json +0 -186
  51. package/agents/analyst-lite.md +0 -48
  52. package/agents/analyst.md +0 -396
  53. package/agents/api-lite.md +0 -43
  54. package/agents/api.md +0 -427
  55. package/agents/architect-lite.md +0 -104
  56. package/agents/architect.md +0 -571
  57. package/agents/autopilot-lite.md +0 -46
  58. package/agents/autopilot.md +0 -196
  59. package/agents/cloud-lite.md +0 -75
  60. package/agents/cloud.md +0 -213
  61. package/agents/data-lite.md +0 -67
  62. package/agents/data.md +0 -306
  63. package/agents/debugger-lite.md +0 -46
  64. package/agents/debugger.md +0 -410
  65. package/agents/deps-lite.md +0 -41
  66. package/agents/deps.md +0 -363
  67. package/agents/designer-lite.md +0 -67
  68. package/agents/designer.md +0 -195
  69. package/agents/devops-lite.md +0 -67
  70. package/agents/devops.md +0 -205
  71. package/agents/docs-lite.md +0 -42
  72. package/agents/docs.md +0 -454
  73. package/agents/executor-lite.md +0 -61
  74. package/agents/executor.md +0 -695
  75. package/agents/explorer-lite.md +0 -55
  76. package/agents/explorer.md +0 -152
  77. package/agents/finance-lite.md +0 -66
  78. package/agents/finance.md +0 -255
  79. package/agents/i18n-lite.md +0 -44
  80. package/agents/i18n.md +0 -594
  81. package/agents/legal-lite.md +0 -113
  82. package/agents/legal.md +0 -302
  83. package/agents/marketing-lite.md +0 -25
  84. package/agents/marketing.md +0 -188
  85. package/agents/memory.md +0 -166
  86. package/agents/orchestrator-lite.md +0 -40
  87. package/agents/orchestrator.md +0 -512
  88. package/agents/pair-lite.md +0 -38
  89. package/agents/pair.md +0 -310
  90. package/agents/perf-lite.md +0 -42
  91. package/agents/perf.md +0 -320
  92. package/agents/planner-lite.md +0 -59
  93. package/agents/planner.md +0 -272
  94. package/agents/product-lite.md +0 -25
  95. package/agents/product.md +0 -195
  96. package/agents/refactor-lite.md +0 -42
  97. package/agents/refactor.md +0 -467
  98. package/agents/ripple-lite.md +0 -106
  99. package/agents/ripple.md +0 -166
  100. package/agents/scout-lite.md +0 -37
  101. package/agents/scout.md +0 -224
  102. package/agents/security-lite.md +0 -66
  103. package/agents/security.md +0 -252
  104. package/agents/sentry-triage-lite.md +0 -54
  105. package/agents/sentry-triage.md +0 -217
  106. package/agents/starter-lite.md +0 -80
  107. package/agents/starter.md +0 -300
  108. package/agents/support-lite.md +0 -24
  109. package/agents/support.md +0 -191
  110. package/agents/tdd-lite.md +0 -43
  111. package/agents/tdd.md +0 -329
  112. package/agents/tester-lite.md +0 -71
  113. package/agents/tester.md +0 -237
  114. package/cli/architectures.mjs +0 -713
  115. package/cli/detect-architecture.mjs +0 -752
  116. package/cli/generate-architecture.mjs +0 -1096
  117. package/cli/index.mjs +0 -1217
  118. package/cli/recommend-architecture.mjs +0 -870
  119. package/hooks/after-review.mjs +0 -130
  120. package/hooks/after-task.mjs +0 -117
  121. package/hooks/before-plan.mjs +0 -155
  122. package/hooks/before-review.mjs +0 -139
  123. package/hooks/hooks.json +0 -66
  124. package/hooks/lifecycle.json +0 -91
  125. package/hooks/native/auto-dispatch.mjs +0 -207
  126. package/hooks/native/auto-format.mjs +0 -176
  127. package/hooks/native/mcp-discovery.mjs +0 -168
  128. package/hooks/native/security-config.json +0 -38
  129. package/hooks/native/security-guard.mjs +0 -323
  130. package/hooks/native/session-context.mjs +0 -179
  131. package/hooks/native/session-end.mjs +0 -42
  132. package/hooks/native/utils.mjs +0 -62
  133. package/hooks/on-error.mjs +0 -129
  134. package/hooks/session-end.mjs +0 -185
  135. package/hooks/session-start.mjs +0 -154
  136. package/packs/angular/ARCHITECTURE.md +0 -814
  137. package/packs/angular/CLAUDE.md +0 -105
  138. package/packs/angular/agents/builder.md +0 -113
  139. package/packs/angular/agents/doctor.md +0 -187
  140. package/packs/angular/agents/migrator.md +0 -101
  141. package/packs/angular/agents/reviewer.md +0 -252
  142. package/packs/angular/agents-lite/builder.md +0 -65
  143. package/packs/angular/agents-lite/doctor.md +0 -64
  144. package/packs/angular/agents-lite/migrator.md +0 -75
  145. package/packs/angular/agents-lite/reviewer.md +0 -69
  146. package/packs/angular/skills/dev-create-component/SKILL.md +0 -56
  147. package/packs/angular/skills/dev-create-injectable/SKILL.md +0 -60
  148. package/packs/angular/skills/dev-create-module/SKILL.md +0 -49
  149. package/packs/angular/skills/dev-create-service/SKILL.md +0 -34
  150. package/packs/angular/skills/dev-create-test/SKILL.md +0 -78
  151. package/packs/angular/skills/dev-generate-types/SKILL.md +0 -37
  152. package/packs/angular/skills/docs-onboard/SKILL.md +0 -42
  153. package/packs/angular/skills/migration-migrate-component/SKILL.md +0 -42
  154. package/packs/angular/skills/migration-migrate-module/SKILL.md +0 -25
  155. package/packs/angular/skills/review-check-architecture/SKILL.md +0 -67
  156. package/packs/angular/skills/review-fix-violations/SKILL.md +0 -43
  157. package/packs/angular/skills/review-review/SKILL.md +0 -43
  158. package/packs/astro/ARCHITECTURE.md +0 -718
  159. package/packs/astro/CLAUDE.md +0 -106
  160. package/packs/astro/agents/builder.md +0 -123
  161. package/packs/astro/agents/doctor.md +0 -200
  162. package/packs/astro/agents/migrator.md +0 -105
  163. package/packs/astro/agents/reviewer.md +0 -253
  164. package/packs/astro/agents-lite/builder.md +0 -71
  165. package/packs/astro/agents-lite/doctor.md +0 -66
  166. package/packs/astro/agents-lite/migrator.md +0 -71
  167. package/packs/astro/agents-lite/reviewer.md +0 -70
  168. package/packs/astro/skills/dev-create-component/SKILL.md +0 -50
  169. package/packs/astro/skills/dev-create-island/SKILL.md +0 -63
  170. package/packs/astro/skills/dev-create-module/SKILL.md +0 -49
  171. package/packs/astro/skills/dev-create-service/SKILL.md +0 -34
  172. package/packs/astro/skills/dev-create-test/SKILL.md +0 -76
  173. package/packs/astro/skills/dev-generate-types/SKILL.md +0 -37
  174. package/packs/astro/skills/docs-onboard/SKILL.md +0 -51
  175. package/packs/astro/skills/migration-migrate-component/SKILL.md +0 -48
  176. package/packs/astro/skills/migration-migrate-module/SKILL.md +0 -25
  177. package/packs/astro/skills/review-check-architecture/SKILL.md +0 -72
  178. package/packs/astro/skills/review-fix-violations/SKILL.md +0 -43
  179. package/packs/astro/skills/review-review/SKILL.md +0 -45
  180. package/packs/nextjs/ARCHITECTURE.md +0 -1033
  181. package/packs/nextjs/CLAUDE.md +0 -106
  182. package/packs/nextjs/agents/builder.md +0 -132
  183. package/packs/nextjs/agents/doctor.md +0 -226
  184. package/packs/nextjs/agents/migrator.md +0 -101
  185. package/packs/nextjs/agents/reviewer.md +0 -243
  186. package/packs/nextjs/agents-lite/builder.md +0 -74
  187. package/packs/nextjs/agents-lite/doctor.md +0 -74
  188. package/packs/nextjs/agents-lite/migrator.md +0 -75
  189. package/packs/nextjs/agents-lite/reviewer.md +0 -73
  190. package/packs/nextjs/skills/dev-create-component/SKILL.md +0 -82
  191. package/packs/nextjs/skills/dev-create-hook/SKILL.md +0 -90
  192. package/packs/nextjs/skills/dev-create-module/SKILL.md +0 -63
  193. package/packs/nextjs/skills/dev-create-service/SKILL.md +0 -35
  194. package/packs/nextjs/skills/dev-create-test/SKILL.md +0 -106
  195. package/packs/nextjs/skills/dev-generate-types/SKILL.md +0 -37
  196. package/packs/nextjs/skills/docs-onboard/SKILL.md +0 -55
  197. package/packs/nextjs/skills/migration-migrate-component/SKILL.md +0 -58
  198. package/packs/nextjs/skills/migration-migrate-module/SKILL.md +0 -25
  199. package/packs/nextjs/skills/review-check-architecture/SKILL.md +0 -101
  200. package/packs/nextjs/skills/review-fix-violations/SKILL.md +0 -48
  201. package/packs/nextjs/skills/review-review/SKILL.md +0 -47
  202. package/packs/nuxt/ARCHITECTURE.md +0 -831
  203. package/packs/nuxt/CLAUDE.md +0 -111
  204. package/packs/nuxt/agents/builder.md +0 -120
  205. package/packs/nuxt/agents/doctor.md +0 -198
  206. package/packs/nuxt/agents/migrator.md +0 -101
  207. package/packs/nuxt/agents/reviewer.md +0 -255
  208. package/packs/nuxt/agents-lite/builder.md +0 -67
  209. package/packs/nuxt/agents-lite/doctor.md +0 -67
  210. package/packs/nuxt/agents-lite/migrator.md +0 -80
  211. package/packs/nuxt/agents-lite/reviewer.md +0 -71
  212. package/packs/nuxt/skills/dev-create-component/SKILL.md +0 -60
  213. package/packs/nuxt/skills/dev-create-composable/SKILL.md +0 -33
  214. package/packs/nuxt/skills/dev-create-module/SKILL.md +0 -49
  215. package/packs/nuxt/skills/dev-create-service/SKILL.md +0 -34
  216. package/packs/nuxt/skills/dev-create-test/SKILL.md +0 -61
  217. package/packs/nuxt/skills/dev-generate-types/SKILL.md +0 -37
  218. package/packs/nuxt/skills/docs-onboard/SKILL.md +0 -49
  219. package/packs/nuxt/skills/migration-migrate-component/SKILL.md +0 -48
  220. package/packs/nuxt/skills/migration-migrate-module/SKILL.md +0 -25
  221. package/packs/nuxt/skills/review-check-architecture/SKILL.md +0 -71
  222. package/packs/nuxt/skills/review-fix-violations/SKILL.md +0 -43
  223. package/packs/nuxt/skills/review-review/SKILL.md +0 -45
  224. package/packs/react/ARCHITECTURE.md +0 -991
  225. package/packs/react/CLAUDE.md +0 -102
  226. package/packs/react/agents/builder.md +0 -113
  227. package/packs/react/agents/doctor.md +0 -203
  228. package/packs/react/agents/migrator.md +0 -101
  229. package/packs/react/agents/reviewer.md +0 -252
  230. package/packs/react/agents-lite/builder.md +0 -65
  231. package/packs/react/agents-lite/doctor.md +0 -64
  232. package/packs/react/agents-lite/migrator.md +0 -74
  233. package/packs/react/agents-lite/reviewer.md +0 -69
  234. package/packs/react/skills/dev-create-component/SKILL.md +0 -53
  235. package/packs/react/skills/dev-create-hook/SKILL.md +0 -78
  236. package/packs/react/skills/dev-create-module/SKILL.md +0 -51
  237. package/packs/react/skills/dev-create-service/SKILL.md +0 -34
  238. package/packs/react/skills/dev-create-test/SKILL.md +0 -92
  239. package/packs/react/skills/dev-generate-types/SKILL.md +0 -37
  240. package/packs/react/skills/docs-onboard/SKILL.md +0 -42
  241. package/packs/react/skills/migration-migrate-component/SKILL.md +0 -44
  242. package/packs/react/skills/migration-migrate-module/SKILL.md +0 -25
  243. package/packs/react/skills/review-check-architecture/SKILL.md +0 -73
  244. package/packs/react/skills/review-fix-violations/SKILL.md +0 -45
  245. package/packs/react/skills/review-review/SKILL.md +0 -44
  246. package/packs/svelte/ARCHITECTURE.md +0 -975
  247. package/packs/svelte/CLAUDE.md +0 -102
  248. package/packs/svelte/agents/builder.md +0 -114
  249. package/packs/svelte/agents/doctor.md +0 -174
  250. package/packs/svelte/agents/migrator.md +0 -101
  251. package/packs/svelte/agents/reviewer.md +0 -238
  252. package/packs/svelte/agents-lite/builder.md +0 -66
  253. package/packs/svelte/agents-lite/doctor.md +0 -67
  254. package/packs/svelte/agents-lite/migrator.md +0 -82
  255. package/packs/svelte/agents-lite/reviewer.md +0 -70
  256. package/packs/svelte/skills/dev-create-component/SKILL.md +0 -77
  257. package/packs/svelte/skills/dev-create-module/SKILL.md +0 -59
  258. package/packs/svelte/skills/dev-create-service/SKILL.md +0 -35
  259. package/packs/svelte/skills/dev-create-store/SKILL.md +0 -94
  260. package/packs/svelte/skills/dev-create-test/SKILL.md +0 -98
  261. package/packs/svelte/skills/dev-generate-types/SKILL.md +0 -37
  262. package/packs/svelte/skills/docs-onboard/SKILL.md +0 -47
  263. package/packs/svelte/skills/migration-migrate-component/SKILL.md +0 -51
  264. package/packs/svelte/skills/migration-migrate-module/SKILL.md +0 -25
  265. package/packs/svelte/skills/review-check-architecture/SKILL.md +0 -79
  266. package/packs/svelte/skills/review-fix-violations/SKILL.md +0 -47
  267. package/packs/svelte/skills/review-review/SKILL.md +0 -45
  268. package/packs/vue/ARCHITECTURE.md +0 -798
  269. package/packs/vue/CLAUDE.md +0 -102
  270. package/packs/vue/agents/builder.md +0 -112
  271. package/packs/vue/agents/doctor.md +0 -185
  272. package/packs/vue/agents/migrator.md +0 -101
  273. package/packs/vue/agents/reviewer.md +0 -249
  274. package/packs/vue/agents-lite/builder.md +0 -65
  275. package/packs/vue/agents-lite/doctor.md +0 -63
  276. package/packs/vue/agents-lite/migrator.md +0 -73
  277. package/packs/vue/agents-lite/reviewer.md +0 -68
  278. package/packs/vue/skills/dev-create-component/SKILL.md +0 -58
  279. package/packs/vue/skills/dev-create-composable/SKILL.md +0 -31
  280. package/packs/vue/skills/dev-create-module/SKILL.md +0 -50
  281. package/packs/vue/skills/dev-create-service/SKILL.md +0 -34
  282. package/packs/vue/skills/dev-create-test/SKILL.md +0 -62
  283. package/packs/vue/skills/dev-generate-types/SKILL.md +0 -37
  284. package/packs/vue/skills/docs-onboard/SKILL.md +0 -42
  285. package/packs/vue/skills/migration-migrate-component/SKILL.md +0 -41
  286. package/packs/vue/skills/migration-migrate-module/SKILL.md +0 -25
  287. package/packs/vue/skills/review-check-architecture/SKILL.md +0 -73
  288. package/packs/vue/skills/review-fix-violations/SKILL.md +0 -42
  289. package/packs/vue/skills/review-review/SKILL.md +0 -43
  290. package/skills/audit/SKILL.md +0 -231
  291. package/skills/autofix/SKILL.md +0 -166
  292. package/skills/autopilot/SKILL.md +0 -286
  293. package/skills/brainstorm/SKILL.md +0 -298
  294. package/skills/checkpoint/SKILL.md +0 -217
  295. package/skills/codereview/SKILL.md +0 -268
  296. package/skills/commit/SKILL.md +0 -150
  297. package/skills/copywriting/SKILL.md +0 -218
  298. package/skills/cro/SKILL.md +0 -234
  299. package/skills/debug/SKILL.md +0 -210
  300. package/skills/design-review/SKILL.md +0 -217
  301. package/skills/discovery/SKILL.md +0 -218
  302. package/skills/estimate/SKILL.md +0 -154
  303. package/skills/finish/SKILL.md +0 -220
  304. package/skills/grill/SKILL.md +0 -270
  305. package/skills/health/SKILL.md +0 -251
  306. package/skills/improve-architecture/SKILL.md +0 -205
  307. package/skills/learn/SKILL.md +0 -260
  308. package/skills/lint/SKILL.md +0 -126
  309. package/skills/migrate-architecture/SKILL.md +0 -242
  310. package/skills/migrate-framework/SKILL.md +0 -172
  311. package/skills/onboard/SKILL.md +0 -168
  312. package/skills/plan/SKILL.md +0 -141
  313. package/skills/prd/SKILL.md +0 -241
  314. package/skills/recall/SKILL.md +0 -112
  315. package/skills/remember/SKILL.md +0 -108
  316. package/skills/seo-audit/SKILL.md +0 -240
  317. package/skills/tdd/SKILL.md +0 -201
  318. package/skills/tutorial/SKILL.md +0 -346
  319. package/skills/verify/SKILL.md +0 -168
  320. package/skills/worktree/SKILL.md +0 -168
  321. package/skills/write-skill/SKILL.md +0 -225
  322. package/templates/autopilot/PROMPT.md +0 -39
  323. package/templates/autopilot/README.md +0 -122
  324. package/templates/autopilot/devcontainer.json +0 -21
  325. package/templates/industry/ecommerce.md +0 -127
  326. package/templates/industry/fintech.md +0 -161
  327. package/templates/industry/saas.md +0 -134
  328. package/templates/session-memory.json +0 -48
  329. package/templates/skill-template/SKILL.md +0 -90
@@ -1,218 +0,0 @@
1
- ---
2
- name: discovery
3
- description: "Use when starting a new product, feature, or initiative and you need structured discovery before planning - covers market analysis, technical feasibility, architecture, and go-to-market strategy."
4
- user-invocable: true
5
- argument-hint: "[product or feature description]"
6
- allowed-tools: Read, Glob, Grep, Bash, Write
7
- ---
8
-
9
- # /discovery - Product & Feature Discovery
10
-
11
- Structured discovery before planning. Covers feasibility, architecture, risks, and strategy in a single pass.
12
-
13
- **Target:** $ARGUMENTS
14
-
15
- ## When to Use
16
-
17
- - Starting a new product or major feature
18
- - Evaluating technical feasibility of an initiative
19
- - Before `/plan` when scope is unclear or ambitious
20
- - When stakeholders need a go/no-go decision
21
- - NOT for: small features, bug fixes, or tasks with clear scope
22
-
23
- ## Workflow
24
-
25
- ### Phase 0: Scope Definition
26
-
27
- Define what we're discovering:
28
-
29
- ```markdown
30
- ## Discovery Scope
31
- - **What:** [product/feature description]
32
- - **Why:** [business motivation]
33
- - **Who:** [target users]
34
- - **Constraints:** [time, budget, team, tech]
35
- ```
36
-
37
- ### Phase 1: Technical Feasibility
38
-
39
- Analyze the current codebase and evaluate feasibility:
40
-
41
- 1. **Codebase scan** - Identify existing modules, patterns, and dependencies
42
- 2. **Integration points** - What existing systems does this touch?
43
- 3. **Technology gaps** - What new libraries, services, or infrastructure is needed?
44
- 4. **Complexity estimate** - TRIVIAL / SIMPLE / MEDIUM / COMPLEX / EPIC
45
-
46
- **Output:**
47
-
48
- ```markdown
49
- ## Technical Feasibility
50
-
51
- ### Existing Assets
52
- - [Reusable modules, services, components]
53
-
54
- ### New Requirements
55
- - [New packages, services, infrastructure]
56
-
57
- ### Integration Points
58
- - [APIs, databases, third-party services]
59
-
60
- ### Complexity: [TRIVIAL | SIMPLE | MEDIUM | COMPLEX | EPIC]
61
-
62
- ### Feasibility: [GO | CONDITIONAL | NO-GO]
63
- - [Reasoning with evidence]
64
- ```
65
-
66
- **BLOCKED** until feasibility assessment is complete with evidence.
67
-
68
- ### Phase 2: Architecture Assessment
69
-
70
- Design the high-level architecture:
71
-
72
- 1. **Component map** - What modules/services are needed?
73
- 2. **Data model** - What entities, relationships, and storage?
74
- 3. **API surface** - What endpoints or interfaces?
75
- 4. **Non-functional requirements** - Performance, security, scalability targets
76
-
77
- **Output:**
78
-
79
- ```markdown
80
- ## Architecture Assessment
81
-
82
- ### Component Map
83
- - [Module 1]: [responsibility]
84
- - [Module 2]: [responsibility]
85
-
86
- ### Data Model
87
- - [Entity 1]: [key fields and relationships]
88
- - [Entity 2]: [key fields and relationships]
89
-
90
- ### API Surface
91
- - [Endpoint/Interface 1]: [purpose]
92
- - [Endpoint/Interface 2]: [purpose]
93
-
94
- ### Non-Functional Requirements
95
- | Requirement | Target | Rationale |
96
- |-------------|--------|-----------|
97
- | Response time | < 200ms p95 | User experience |
98
- | Availability | 99.9% | Business SLA |
99
- | Data retention | 90 days | Compliance |
100
- ```
101
-
102
- ### Phase 3: Risk Analysis
103
-
104
- Identify and classify risks:
105
-
106
- 1. **Technical risks** - New technology, complex integrations, performance unknowns
107
- 2. **Business risks** - Market timing, regulatory, competition
108
- 3. **Operational risks** - Team capacity, skill gaps, dependencies on external teams
109
-
110
- **Output:**
111
-
112
- ```markdown
113
- ## Risk Analysis
114
-
115
- | Risk | Impact | Likelihood | Mitigation |
116
- |------|--------|------------|------------|
117
- | [Risk 1] | High/Med/Low | High/Med/Low | [Strategy] |
118
- | [Risk 2] | High/Med/Low | High/Med/Low | [Strategy] |
119
-
120
- ### Blockers
121
- - [Any hard blockers that prevent proceeding]
122
-
123
- ### Open Questions
124
- - [Questions that need answers before planning]
125
- ```
126
-
127
- ### Phase 4: Effort & Cost Estimate
128
-
129
- Estimate the work required:
130
-
131
- 1. **Task decomposition** - Break into major work streams
132
- 2. **Agent mapping** - Which agents handle which work
133
- 3. **Token estimate** - Approximate AI cost
134
- 4. **Timeline** - Suggested phases and milestones
135
-
136
- **Output:**
137
-
138
- ```markdown
139
- ## Effort Estimate
140
-
141
- ### Work Streams
142
- | Stream | Agent(s) | Estimated Tokens | Priority |
143
- |--------|----------|------------------|----------|
144
- | [Stream 1] | @builder, @data | ~X tokens | P0 |
145
- | [Stream 2] | @api, @builder | ~X tokens | P1 |
146
- | [Stream 3] | @tester | ~X tokens | P1 |
147
-
148
- ### Total Estimate
149
- - Tokens: ~X total (~$Y)
150
- - Suggested phases: [count]
151
- - Recommended approach: Sequential / Parallel / Hybrid
152
-
153
- ### Suggested Timeline
154
- - Phase 1: [scope] - [duration]
155
- - Phase 2: [scope] - [duration]
156
- - Phase 3: [scope] - [duration]
157
- ```
158
-
159
- ### Phase 5: Discovery Verdict
160
-
161
- Synthesize all findings into a go/no-go recommendation:
162
-
163
- ```markdown
164
- ## Discovery Verdict
165
-
166
- ### Recommendation: [GO | CONDITIONAL GO | NO-GO]
167
-
168
- ### Summary
169
- [2-3 sentence executive summary]
170
-
171
- ### Key Findings
172
- 1. [Most important finding]
173
- 2. [Second finding]
174
- 3. [Third finding]
175
-
176
- ### Conditions (if CONDITIONAL GO)
177
- - [Condition that must be met]
178
- - [Another condition]
179
-
180
- ### Next Steps
181
- - [ ] [Immediate action 1]
182
- - [ ] [Immediate action 2]
183
- - [ ] Run `/plan [refined scope]` to create implementation plan
184
- ```
185
-
186
- ## Output
187
-
188
- ```
189
- ---- /discovery ----
190
- Target: [product/feature]
191
- Feasibility: [GO | CONDITIONAL | NO-GO]
192
- Complexity: [TRIVIAL | SIMPLE | MEDIUM | COMPLEX | EPIC]
193
- Estimated tokens: ~X (~$Y)
194
- Risks: [count] (H:[n] M:[n] L:[n])
195
-
196
- Verdict: [GO | CONDITIONAL GO | NO-GO]
197
-
198
- [Full discovery document above]
199
-
200
- Next: /plan [refined scope] (if GO)
201
- ```
202
-
203
- ## Anti-Rationalization
204
-
205
- | Excuse | Reality |
206
- |--------|---------|
207
- | "We already know what to build" | Discovery reveals unknowns you don't know you have. |
208
- | "Discovery is too slow" | Discovering a fatal flaw in 30 min beats building for 2 weeks then pivoting. |
209
- | "The scope is obvious" | Obvious scope still has hidden integration points, data model decisions, and risks. |
210
- | "We can discover as we build" | That's called rework. Discovery-first prevents 3-5x cost overruns. |
211
-
212
- ## Rules
213
-
214
- 1. **Evidence-based** - Every finding must reference codebase scans, docs, or research
215
- 2. **No assumptions** - Flag unknowns as open questions, don't guess
216
- 3. **Concrete estimates** - Token counts, timelines, and costs - not "it depends"
217
- 4. **Actionable verdict** - GO/NO-GO with clear reasoning
218
- 5. **Flows into /plan** - Discovery output is the input for planning
@@ -1,154 +0,0 @@
1
- ---
2
- name: estimate
3
- description: "Use when planning a feature and need to understand token cost, time estimate, or complexity before committing to implementation."
4
- user-invocable: true
5
- argument-hint: "[feature description]"
6
- allowed-tools: Read, Glob, Grep
7
- ---
8
-
9
- # /estimate - Cost Estimation
10
-
11
- Estimate token usage and cost before implementing a feature.
12
-
13
- **Target:** $ARGUMENTS
14
-
15
- ## Workflow
16
-
17
- ### Step 1: Analyze Scope
18
-
19
- Search codebase to understand scope:
20
-
21
- ```bash
22
- # Find affected files
23
- # Count existing lines
24
- # Identify patterns
25
- ```
26
-
27
- ### Step 2: Classify Complexity
28
-
29
- | Level | Files | Lines | Tokens (est.) | Cost (est.) |
30
- |-------|-------|-------|---------------|-------------|
31
- | TRIVIAL | 1-2 | <50 | ~2,000 | ~$0.03 |
32
- | SIMPLE | 3-5 | <200 | ~5,000 | ~$0.08 |
33
- | MEDIUM | 6-15 | <1,000 | ~15,000 | ~$0.23 |
34
- | COMPLEX | 15+ | 1,000+ | ~40,000 | ~$0.60 |
35
-
36
- ### Step 3: Break Down Costs
37
-
38
- ```markdown
39
- ## Cost Breakdown
40
-
41
- ### Planning
42
- - @planner: ~2,000 tokens
43
- - Design doc (if complex): ~3,000 tokens
44
-
45
- ### Implementation
46
- - File 1 (service.ts): ~1,500 tokens
47
- - File 2 (adapter.ts): ~1,000 tokens
48
- - File 3 (component.tsx): ~2,500 tokens
49
- - File 4 (tests): ~1,500 tokens
50
-
51
- ### Review
52
- - @reviewer: ~2,000 tokens
53
-
54
- ### Total
55
- - Estimated: ~13,500 tokens
56
- - Cost: ~$0.20
57
- ```
58
-
59
- ### Step 4: Compare Models
60
-
61
- | Model | Tokens | Cost | Best For |
62
- |-------|--------|------|----------|
63
- | Haiku | ~13,500 | ~$0.01 | Simple tasks |
64
- | Sonnet | ~13,500 | ~$0.20 | Standard work |
65
- | Opus | ~13,500 | ~$0.60 | Complex logic |
66
-
67
- ### Step 5: Provide Recommendations
68
-
69
- ```markdown
70
- ## Recommendations
71
-
72
- **Full Mode (Sonnet):**
73
- - Total: ~$0.20
74
- - Best for: Production code, complex features
75
-
76
- **Lite Mode (Haiku):**
77
- - Total: ~$0.01
78
- - Best for: Prototyping, simple changes
79
-
80
- **Hybrid Approach:**
81
- - Use Haiku for boilerplate (~$0.005)
82
- - Use Sonnet for logic (~$0.10)
83
- - Total: ~$0.105 (47% savings)
84
- ```
85
-
86
- ## Output
87
-
88
- ```
89
- ──── /estimate ────
90
- Feature: [name]
91
- Complexity: [TRIVIAL | SIMPLE | MEDIUM | COMPLEX]
92
-
93
- Scope:
94
- - Files: ~N
95
- - Lines: ~N
96
- - New code: ~N lines
97
- - Modified: ~N lines
98
-
99
- Token Estimate:
100
- - Planning: ~N tokens
101
- - Implementation: ~N tokens
102
- - Review: ~N tokens
103
- - Total: ~N tokens
104
-
105
- Cost Estimate:
106
- | Mode | Cost |
107
- |------|------|
108
- | Lite (Haiku) | ~$X.XX |
109
- | Full (Sonnet) | ~$X.XX |
110
- | Hybrid | ~$X.XX |
111
-
112
- Recommendation: [which mode to use]
113
-
114
- Comparison:
115
- - Superpowers estimate for similar task: ~$X.XX
116
- - Specialist Agent estimate: ~$X.XX
117
- - Savings: ~X%
118
- ```
119
-
120
- ## Cost Reference
121
-
122
- ### Per 1M Tokens (Approximate)
123
-
124
- | Model | Input | Output |
125
- |-------|-------|--------|
126
- | Haiku | $0.25 | $1.25 |
127
- | Sonnet | $3.00 | $15.00 |
128
- | Opus | $15.00 | $75.00 |
129
-
130
- ### Typical Tasks
131
-
132
- | Task | Tokens | Sonnet Cost |
133
- |------|--------|-------------|
134
- | Fix typo | ~500 | ~$0.01 |
135
- | Add field | ~2,000 | ~$0.03 |
136
- | New component | ~5,000 | ~$0.08 |
137
- | New module | ~15,000 | ~$0.23 |
138
- | Full feature | ~40,000 | ~$0.60 |
139
-
140
- ## Anti-Rationalization
141
-
142
- | Excuse | Reality |
143
- |--------|---------|
144
- | "Estimating wastes time, just start building" | Building without estimates wastes 10x more when you pick the wrong model or approach. |
145
- | "I can eyeball the complexity" | Eyeballing misses hidden dependencies. A structured estimate catches them. |
146
- | "Cost doesn't matter for this task" | Every token has a cost. Knowing the cost helps choose Haiku vs Sonnet vs Opus. |
147
- | "Estimates are always wrong anyway" | Rough estimates beat no estimates. Even ±50% accuracy saves money. |
148
-
149
- ## Rules
150
-
151
- 1. **Always estimate before complex work**
152
- 2. **Show comparison with competitors**
153
- 3. **Recommend appropriate model**
154
- 4. **Include hybrid options when beneficial**
@@ -1,220 +0,0 @@
1
- ---
2
- name: finish
3
- description: "Use when feature implementation is complete and the branch is ready for final validation, PR creation, or merge."
4
- user-invocable: true
5
- argument-hint: "[branch-name]"
6
- allowed-tools: Read, Bash, Glob, Grep
7
- ---
8
-
9
- # /finish - Finalize Branch
10
-
11
- Complete development branch with final validation and metrics.
12
-
13
- **Branch:** $ARGUMENTS (or current branch)
14
-
15
- ## Workflow
16
-
17
- ### Step 1: Pre-Flight Checks
18
-
19
- ```bash
20
- # Check current branch
21
- git branch --show-current
22
-
23
- # Check for uncommitted changes
24
- git status
25
-
26
- # Check for untracked files
27
- git status --porcelain
28
- ```
29
-
30
- **Required:**
31
- - [ ] All changes committed
32
- - [ ] No untracked files (or intentionally ignored)
33
- - [ ] Not on main/master branch
34
-
35
- ### Step 2: Run Full Validation
36
-
37
- ```bash
38
- # TypeScript check
39
- npx tsc --noEmit
40
-
41
- # Lint
42
- npm run lint
43
-
44
- # Tests
45
- npm test
46
-
47
- # Build (if applicable)
48
- npm run build
49
- ```
50
-
51
- **Output:**
52
- ```
53
- ──── Validation ────
54
- TypeScript: PASS ✓
55
- Lint: PASS ✓
56
- Tests: PASS ✓ (42/42)
57
- Build: PASS ✓
58
- ```
59
-
60
- ### Step 3: Generate Diff Summary
61
-
62
- ```bash
63
- # Files changed
64
- git diff main --stat
65
-
66
- # Commits in branch
67
- git log main..HEAD --oneline
68
- ```
69
-
70
- **Output:**
71
- ```
72
- ──── Changes ────
73
- Files changed: 12
74
- Insertions: +450
75
- Deletions: -120
76
-
77
- Commits:
78
- abc1234 feat: add user service
79
- def5678 feat: add user component
80
- ghi9012 test: add user tests
81
- jkl3456 refactor: clean up types
82
- ```
83
-
84
- ### Step 4: Session Metrics
85
-
86
- ```markdown
87
- ──── Session Metrics ────
88
- Branch: feature/user-profile
89
- Duration: ~45 minutes
90
- Commits: 4
91
-
92
- Files:
93
- Created: 5
94
- Modified: 7
95
- Deleted: 0
96
-
97
- Code:
98
- Lines added: 450
99
- Lines removed: 120
100
- Net change: +330
101
-
102
- Tests:
103
- Added: 8
104
- Total passing: 42/42
105
- Coverage: 87%
106
-
107
- Agents used:
108
- @planner: 1 invocation
109
- @builder: 3 invocations
110
- @reviewer: 1 invocation
111
-
112
- Estimated tokens: ~18,500
113
- Estimated cost: ~$0.28
114
- ```
115
-
116
- ### Step 5: Cleanup Checkpoints
117
-
118
- ```bash
119
- # List checkpoints
120
- git tag -l "checkpoint/*"
121
-
122
- # Offer to clean
123
- "Clean up checkpoint tags? (y/n)"
124
- ```
125
-
126
- If yes:
127
- ```bash
128
- git tag -l "checkpoint/*" | xargs -n 1 git tag -d
129
- ```
130
-
131
- ### Step 6: Prepare for Merge
132
-
133
- ```markdown
134
- ──── Ready for Merge ────
135
-
136
- Branch: feature/user-profile
137
- Base: main
138
- Status: Ready ✓
139
-
140
- Pre-merge checklist:
141
- - [x] All tests passing
142
- - [x] No TypeScript errors
143
- - [x] Code reviewed
144
- - [x] Checkpoints cleaned
145
-
146
- Next steps:
147
- 1. Push: git push -u origin feature/user-profile
148
- 2. Create PR: gh pr create
149
- 3. Merge: After approval
150
- ```
151
-
152
- ## Output
153
-
154
- ```
155
- ──── /finish ────
156
- Branch: [branch-name]
157
-
158
- Validation:
159
- TypeScript: PASS ✓
160
- Lint: PASS ✓
161
- Tests: PASS ✓ (N/N)
162
- Build: PASS ✓
163
-
164
- Changes:
165
- Files: N changed
166
- Lines: +N / -N
167
- Commits: N
168
-
169
- Metrics:
170
- Tokens: ~N
171
- Cost: ~$X.XX
172
- Agents: N used
173
-
174
- Checkpoints: [cleaned/kept]
175
-
176
- Status: READY FOR MERGE ✓
177
-
178
- Commands:
179
- git push -u origin [branch]
180
- gh pr create --title "[title]" --body "[body]"
181
- ```
182
-
183
- ## Validation Failures
184
-
185
- If validation fails:
186
-
187
- ```
188
- ──── /finish ────
189
- Branch: feature/user-profile
190
-
191
- Validation:
192
- TypeScript: FAIL ✗
193
- Error: src/user.ts:42 - Property 'name' is missing
194
- Lint: PASS ✓
195
- Tests: FAIL ✗
196
- 2 tests failing
197
-
198
- Status: NOT READY ✗
199
-
200
- To fix:
201
- 1. Resolve TypeScript errors
202
- 2. Fix failing tests
203
- 3. Run /finish again
204
- ```
205
-
206
- ## Anti-Rationalization
207
-
208
- | Excuse | Reality |
209
- |--------|---------|
210
- | "Tests pass locally, good enough" | CI runs in a clean environment. Your local cache hides broken imports and missing deps. |
211
- | "I'll fix the lint errors in the next PR" | Technical debt compounds. Fix now or carry it forever. |
212
- | "The build takes too long to run" | A broken build in production takes even longer to fix. Run it. |
213
- | "I already reviewed the code mentally" | Mental review misses what automated checks catch. Run the full suite. |
214
-
215
- ## Rules
216
-
217
- 1. **Never skip validation** - All checks must pass
218
- 2. **Always show metrics** - Transparency in cost
219
- 3. **Offer cleanup** - Keep repo clean
220
- 4. **Don't auto-merge** - Human decision