agents-inc 0.149.1 → 0.150.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 (572) hide show
  1. package/CHANGELOG.md +2277 -0
  2. package/LICENSE +21 -0
  3. package/README.md +136 -19
  4. package/assets/demo.gif +0 -0
  5. package/assets/demo.tape +266 -0
  6. package/assets/logo.svg +75 -0
  7. package/dist/chunk-2RSNKBXC.js +84 -0
  8. package/dist/chunk-2RSNKBXC.js.map +1 -0
  9. package/dist/chunk-3LIU2ZEF.js +1355 -0
  10. package/dist/chunk-3LIU2ZEF.js.map +1 -0
  11. package/dist/chunk-4GL2F5AB.js +222 -0
  12. package/dist/chunk-4GL2F5AB.js.map +1 -0
  13. package/dist/chunk-4LPJZNT7.js +382 -0
  14. package/dist/chunk-4LPJZNT7.js.map +1 -0
  15. package/dist/chunk-5K5RBRTD.js +62 -0
  16. package/dist/chunk-5K5RBRTD.js.map +1 -0
  17. package/dist/chunk-6I6RZHYP.js +789 -0
  18. package/dist/chunk-6I6RZHYP.js.map +1 -0
  19. package/dist/chunk-7URSGJLE.js +430 -0
  20. package/dist/chunk-7URSGJLE.js.map +1 -0
  21. package/dist/chunk-C55DN7GE.js +35 -0
  22. package/dist/chunk-C55DN7GE.js.map +1 -0
  23. package/dist/chunk-CDMHSHBN.js +68 -0
  24. package/dist/chunk-CDMHSHBN.js.map +1 -0
  25. package/dist/chunk-CFQT72MJ.js +92 -0
  26. package/dist/chunk-CFQT72MJ.js.map +1 -0
  27. package/dist/chunk-DAG2ULNF.js +125 -0
  28. package/dist/chunk-DAG2ULNF.js.map +1 -0
  29. package/dist/chunk-DDG4F3FE.js +181 -0
  30. package/dist/chunk-DDG4F3FE.js.map +1 -0
  31. package/dist/chunk-DIBCRIMR.js +36 -0
  32. package/dist/chunk-DIBCRIMR.js.map +1 -0
  33. package/dist/chunk-DJAZE4PD.js +10929 -0
  34. package/dist/chunk-DJAZE4PD.js.map +1 -0
  35. package/dist/chunk-DUVWGO6E.js +54 -0
  36. package/dist/chunk-DUVWGO6E.js.map +1 -0
  37. package/dist/chunk-E4FT2KFV.js +174 -0
  38. package/dist/chunk-E4FT2KFV.js.map +1 -0
  39. package/dist/chunk-EKWAUOQB.js +96 -0
  40. package/dist/chunk-EKWAUOQB.js.map +1 -0
  41. package/dist/chunk-EN2GCPW7.js +300 -0
  42. package/dist/chunk-EN2GCPW7.js.map +1 -0
  43. package/dist/chunk-ES3NJZON.js +31 -0
  44. package/dist/chunk-ES3NJZON.js.map +1 -0
  45. package/dist/chunk-F3756A5B.js +20 -0
  46. package/dist/chunk-F3756A5B.js.map +1 -0
  47. package/dist/chunk-FWT3CBLL.js +51 -0
  48. package/dist/chunk-FWT3CBLL.js.map +1 -0
  49. package/dist/chunk-FYPUUYSG.js +31 -0
  50. package/dist/chunk-FYPUUYSG.js.map +1 -0
  51. package/dist/chunk-GRPSDKIS.js +112 -0
  52. package/dist/chunk-GRPSDKIS.js.map +1 -0
  53. package/dist/chunk-GYG5SE2D.js +81 -0
  54. package/dist/chunk-GYG5SE2D.js.map +1 -0
  55. package/dist/chunk-HIPGKIT3.js +287 -0
  56. package/dist/chunk-HIPGKIT3.js.map +1 -0
  57. package/dist/chunk-I3XKEGHM.js +16383 -0
  58. package/dist/chunk-I3XKEGHM.js.map +1 -0
  59. package/dist/chunk-IHO75PMZ.js +40 -0
  60. package/dist/chunk-IHO75PMZ.js.map +1 -0
  61. package/dist/chunk-IOJR5TOY.js +47 -0
  62. package/dist/chunk-IOJR5TOY.js.map +1 -0
  63. package/dist/chunk-K3OU6TGX.js +77 -0
  64. package/dist/chunk-K3OU6TGX.js.map +1 -0
  65. package/dist/chunk-KH7MOIM5.js +6010 -0
  66. package/dist/chunk-KH7MOIM5.js.map +1 -0
  67. package/dist/chunk-KIR7VYQD.js +63 -0
  68. package/dist/chunk-KIR7VYQD.js.map +1 -0
  69. package/dist/chunk-KOPEM3Q7.js +27 -0
  70. package/dist/chunk-KOPEM3Q7.js.map +1 -0
  71. package/dist/chunk-KSZ6PCY4.js +43 -0
  72. package/dist/chunk-KSZ6PCY4.js.map +1 -0
  73. package/dist/chunk-LRYNF3J7.js +111 -0
  74. package/dist/chunk-LRYNF3J7.js.map +1 -0
  75. package/dist/chunk-LYYXX2W5.js +87 -0
  76. package/dist/chunk-LYYXX2W5.js.map +1 -0
  77. package/dist/chunk-MC5DUZ3V.js +1135 -0
  78. package/dist/chunk-MC5DUZ3V.js.map +1 -0
  79. package/dist/chunk-N4IZ6GBO.js +300 -0
  80. package/dist/chunk-N4IZ6GBO.js.map +1 -0
  81. package/dist/chunk-NIKUMXE7.js +24 -0
  82. package/dist/chunk-NIKUMXE7.js.map +1 -0
  83. package/dist/chunk-NUIZ6ZUO.js +42 -0
  84. package/dist/chunk-NUIZ6ZUO.js.map +1 -0
  85. package/dist/chunk-O5ASLZ2K.js +270 -0
  86. package/dist/chunk-O5ASLZ2K.js.map +1 -0
  87. package/dist/chunk-OA5SUEQD.js +181 -0
  88. package/dist/chunk-OA5SUEQD.js.map +1 -0
  89. package/dist/chunk-OZZGXBCN.js +15 -0
  90. package/dist/chunk-OZZGXBCN.js.map +1 -0
  91. package/dist/chunk-P3PN5SVI.js +27 -0
  92. package/dist/chunk-P3PN5SVI.js.map +1 -0
  93. package/dist/chunk-P56WJ5FA.js +50 -0
  94. package/dist/chunk-P56WJ5FA.js.map +1 -0
  95. package/dist/chunk-PG4G4IIK.js +24 -0
  96. package/dist/chunk-PG4G4IIK.js.map +1 -0
  97. package/dist/chunk-QQLRX4KI.js +41 -0
  98. package/dist/chunk-QQLRX4KI.js.map +1 -0
  99. package/dist/chunk-RBHYLCUB.js +31 -0
  100. package/dist/chunk-RBHYLCUB.js.map +1 -0
  101. package/dist/chunk-RJN7W2C7.js +349 -0
  102. package/dist/chunk-RJN7W2C7.js.map +1 -0
  103. package/dist/chunk-RP7R73JO.js +179 -0
  104. package/dist/chunk-RP7R73JO.js.map +1 -0
  105. package/dist/chunk-SYUOXSPU.js +510 -0
  106. package/dist/chunk-SYUOXSPU.js.map +1 -0
  107. package/dist/chunk-THKIOI32.js +939 -0
  108. package/dist/chunk-THKIOI32.js.map +1 -0
  109. package/dist/chunk-UZRISDBZ.js +28 -0
  110. package/dist/chunk-UZRISDBZ.js.map +1 -0
  111. package/dist/chunk-V7QOSGQA.js +298 -0
  112. package/dist/chunk-V7QOSGQA.js.map +1 -0
  113. package/dist/chunk-VEP23B5W.js +27 -0
  114. package/dist/chunk-VEP23B5W.js.map +1 -0
  115. package/dist/chunk-VG2TVBFN.js +52 -0
  116. package/dist/chunk-VG2TVBFN.js.map +1 -0
  117. package/dist/chunk-VIFZ6NFH.js +27 -0
  118. package/dist/chunk-VIFZ6NFH.js.map +1 -0
  119. package/dist/chunk-XA57SX4T.js +115 -0
  120. package/dist/chunk-XA57SX4T.js.map +1 -0
  121. package/dist/chunk-YKKIJHZB.js +339 -0
  122. package/dist/chunk-YKKIJHZB.js.map +1 -0
  123. package/dist/chunk-YU2VGX5R.js +4205 -0
  124. package/dist/chunk-YU2VGX5R.js.map +1 -0
  125. package/dist/chunk-ZDLTLNU2.js +258 -0
  126. package/dist/chunk-ZDLTLNU2.js.map +1 -0
  127. package/dist/chunk-ZHTXPFDK.js +128 -0
  128. package/dist/chunk-ZHTXPFDK.js.map +1 -0
  129. package/dist/chunk-ZKJAJWK6.js +253 -0
  130. package/dist/chunk-ZKJAJWK6.js.map +1 -0
  131. package/dist/commands/build/marketplace.js +250 -0
  132. package/dist/commands/build/marketplace.js.map +1 -0
  133. package/dist/commands/build/plugins.js +176 -0
  134. package/dist/commands/build/plugins.js.map +1 -0
  135. package/dist/commands/compile.js +331 -0
  136. package/dist/commands/compile.js.map +1 -0
  137. package/dist/commands/doctor.js +475 -0
  138. package/dist/commands/doctor.js.map +1 -0
  139. package/dist/commands/edit.js +765 -0
  140. package/dist/commands/edit.js.map +1 -0
  141. package/dist/commands/eject.js +393 -0
  142. package/dist/commands/eject.js.map +1 -0
  143. package/dist/commands/import/skill.js +349 -0
  144. package/dist/commands/import/skill.js.map +1 -0
  145. package/dist/commands/init.js +66 -0
  146. package/dist/commands/init.js.map +1 -0
  147. package/dist/commands/list.js +115 -0
  148. package/dist/commands/list.js.map +1 -0
  149. package/dist/commands/new/agent.js +304 -0
  150. package/dist/commands/new/agent.js.map +1 -0
  151. package/dist/commands/new/marketplace.js +315 -0
  152. package/dist/commands/new/marketplace.js.map +1 -0
  153. package/dist/commands/new/skill.js +28 -0
  154. package/dist/commands/new/skill.js.map +1 -0
  155. package/dist/commands/search.js +176 -0
  156. package/dist/commands/search.js.map +1 -0
  157. package/dist/commands/uninstall.js +570 -0
  158. package/dist/commands/uninstall.js.map +1 -0
  159. package/dist/commands/update.js +368 -0
  160. package/dist/commands/update.js.map +1 -0
  161. package/dist/commands/validate.js +581 -0
  162. package/dist/commands/validate.js.map +1 -0
  163. package/dist/components/common/confirm.js +9 -0
  164. package/dist/components/common/confirm.js.map +1 -0
  165. package/dist/components/common/confirm.test.js +203 -0
  166. package/dist/components/common/confirm.test.js.map +1 -0
  167. package/dist/components/common/prompt-confirm.js +11 -0
  168. package/dist/components/common/prompt-confirm.js.map +1 -0
  169. package/dist/components/common/select-list.js +11 -0
  170. package/dist/components/common/select-list.js.map +1 -0
  171. package/dist/components/common/spinner.js +9 -0
  172. package/dist/components/common/spinner.js.map +1 -0
  173. package/dist/components/wizard/category-grid.js +16 -0
  174. package/dist/components/wizard/category-grid.js.map +1 -0
  175. package/dist/components/wizard/category-grid.test.js +1253 -0
  176. package/dist/components/wizard/category-grid.test.js.map +1 -0
  177. package/dist/components/wizard/checkbox-grid.js +14 -0
  178. package/dist/components/wizard/checkbox-grid.js.map +1 -0
  179. package/dist/components/wizard/checkbox-grid.test.js +264 -0
  180. package/dist/components/wizard/checkbox-grid.test.js.map +1 -0
  181. package/dist/components/wizard/domain-selection.js +22 -0
  182. package/dist/components/wizard/domain-selection.js.map +1 -0
  183. package/dist/components/wizard/run-wizard-session.js +47 -0
  184. package/dist/components/wizard/run-wizard-session.js.map +1 -0
  185. package/dist/components/wizard/scroll-affordance.js +10 -0
  186. package/dist/components/wizard/scroll-affordance.js.map +1 -0
  187. package/dist/components/wizard/search-modal.js +14 -0
  188. package/dist/components/wizard/search-modal.js.map +1 -0
  189. package/dist/components/wizard/search-modal.test.js +212 -0
  190. package/dist/components/wizard/search-modal.test.js.map +1 -0
  191. package/dist/components/wizard/selection-card.js +10 -0
  192. package/dist/components/wizard/selection-card.js.map +1 -0
  193. package/dist/components/wizard/skill-agent-summary.js +16 -0
  194. package/dist/components/wizard/skill-agent-summary.js.map +1 -0
  195. package/dist/components/wizard/source-grid.js +23 -0
  196. package/dist/components/wizard/source-grid.js.map +1 -0
  197. package/dist/components/wizard/source-grid.test.js +1094 -0
  198. package/dist/components/wizard/source-grid.test.js.map +1 -0
  199. package/dist/components/wizard/stack-selection.js +20 -0
  200. package/dist/components/wizard/stack-selection.js.map +1 -0
  201. package/dist/components/wizard/step-agents.js +22 -0
  202. package/dist/components/wizard/step-agents.js.map +1 -0
  203. package/dist/components/wizard/step-agents.test.js +204 -0
  204. package/dist/components/wizard/step-agents.test.js.map +1 -0
  205. package/dist/components/wizard/step-build.js +22 -0
  206. package/dist/components/wizard/step-build.js.map +1 -0
  207. package/dist/components/wizard/step-build.test.js +552 -0
  208. package/dist/components/wizard/step-build.test.js.map +1 -0
  209. package/dist/components/wizard/step-confirm.js +21 -0
  210. package/dist/components/wizard/step-confirm.js.map +1 -0
  211. package/dist/components/wizard/step-confirm.test.js +744 -0
  212. package/dist/components/wizard/step-confirm.test.js.map +1 -0
  213. package/dist/components/wizard/step-settings.js +19 -0
  214. package/dist/components/wizard/step-settings.js.map +1 -0
  215. package/dist/components/wizard/step-settings.test.js +244 -0
  216. package/dist/components/wizard/step-settings.test.js.map +1 -0
  217. package/dist/components/wizard/step-sources.js +28 -0
  218. package/dist/components/wizard/step-sources.js.map +1 -0
  219. package/dist/components/wizard/step-sources.test.js +155 -0
  220. package/dist/components/wizard/step-sources.test.js.map +1 -0
  221. package/dist/components/wizard/step-stack.js +21 -0
  222. package/dist/components/wizard/step-stack.js.map +1 -0
  223. package/dist/components/wizard/step-stack.test.js +262 -0
  224. package/dist/components/wizard/step-stack.test.js.map +1 -0
  225. package/dist/components/wizard/summary-panel.js +20 -0
  226. package/dist/components/wizard/summary-panel.js.map +1 -0
  227. package/dist/components/wizard/summary-panel.test.js +317 -0
  228. package/dist/components/wizard/summary-panel.test.js.map +1 -0
  229. package/dist/components/wizard/toast.js +10 -0
  230. package/dist/components/wizard/toast.js.map +1 -0
  231. package/dist/components/wizard/wizard-layout.js +26 -0
  232. package/dist/components/wizard/wizard-layout.js.map +1 -0
  233. package/dist/components/wizard/wizard-layout.test.js +200 -0
  234. package/dist/components/wizard/wizard-layout.test.js.map +1 -0
  235. package/dist/components/wizard/wizard-tabs.js +20 -0
  236. package/dist/components/wizard/wizard-tabs.js.map +1 -0
  237. package/dist/components/wizard/wizard-tabs.test.js +290 -0
  238. package/dist/components/wizard/wizard-tabs.test.js.map +1 -0
  239. package/dist/components/wizard/wizard.js +48 -0
  240. package/dist/components/wizard/wizard.js.map +1 -0
  241. package/dist/config-exports.js +20 -0
  242. package/dist/config-exports.js.map +1 -0
  243. package/dist/copy-local-skills-CA7P73RZ.js +15 -0
  244. package/dist/copy-local-skills-CA7P73RZ.js.map +1 -0
  245. package/dist/dist-VNJNNJK7.js +550 -0
  246. package/dist/dist-VNJNNJK7.js.map +1 -0
  247. package/dist/hooks/init.js +90 -0
  248. package/dist/hooks/init.js.map +1 -0
  249. package/dist/index.js +10 -0
  250. package/dist/index.js.map +1 -0
  251. package/dist/load-agent-defs-6MAY5ABI.js +16 -0
  252. package/dist/load-agent-defs-6MAY5ABI.js.map +1 -0
  253. package/dist/loader-E2ERJYVA.js +23 -0
  254. package/dist/loader-E2ERJYVA.js.map +1 -0
  255. package/dist/magic-string.es-5TV73NJD.js +1316 -0
  256. package/dist/magic-string.es-5TV73NJD.js.map +1 -0
  257. package/dist/recompile-project-agents-VYQJ6UZB.js +20 -0
  258. package/dist/recompile-project-agents-VYQJ6UZB.js.map +1 -0
  259. package/dist/source-loader-VVHMQEX5.js +20 -0
  260. package/dist/source-loader-VVHMQEX5.js.map +1 -0
  261. package/dist/source-manager-TPDXV5FO.js +18 -0
  262. package/dist/source-manager-TPDXV5FO.js.map +1 -0
  263. package/dist/src/agents/_templates/agent.liquid +161 -0
  264. package/dist/src/agents/_templates/methodologies/anti-over-engineering.liquid +121 -0
  265. package/dist/src/agents/_templates/methodologies/context-management.liquid +162 -0
  266. package/dist/src/agents/_templates/methodologies/improvement-protocol.liquid +150 -0
  267. package/dist/src/agents/_templates/methodologies/investigation-requirements.liquid +49 -0
  268. package/dist/src/agents/_templates/methodologies/success-criteria.liquid +111 -0
  269. package/dist/src/agents/_templates/methodologies/write-verification.liquid +43 -0
  270. package/dist/src/agents/developer/ai-developer/critical-reminders.md +54 -0
  271. package/dist/src/agents/developer/ai-developer/critical-requirements.md +59 -0
  272. package/dist/src/agents/developer/ai-developer/identity.md +51 -0
  273. package/dist/src/agents/developer/ai-developer/metadata.yaml +12 -0
  274. package/dist/src/agents/developer/ai-developer/output.md +366 -0
  275. package/dist/src/agents/developer/ai-developer/playbook.md +335 -0
  276. package/dist/src/agents/developer/api-developer/critical-reminders.md +46 -0
  277. package/dist/src/agents/developer/api-developer/critical-requirements.md +44 -0
  278. package/dist/src/agents/developer/api-developer/identity.md +49 -0
  279. package/dist/src/agents/developer/api-developer/metadata.yaml +12 -0
  280. package/dist/src/agents/developer/api-developer/output.md +432 -0
  281. package/dist/src/agents/developer/api-developer/playbook.md +352 -0
  282. package/dist/src/agents/developer/cli-developer/critical-reminders.md +51 -0
  283. package/dist/src/agents/developer/cli-developer/critical-requirements.md +51 -0
  284. package/dist/src/agents/developer/cli-developer/identity.md +51 -0
  285. package/dist/src/agents/developer/cli-developer/metadata.yaml +12 -0
  286. package/dist/src/agents/developer/cli-developer/output.md +285 -0
  287. package/dist/src/agents/developer/cli-developer/playbook.md +386 -0
  288. package/dist/src/agents/developer/web-architecture/critical-reminders.md +48 -0
  289. package/dist/src/agents/developer/web-architecture/critical-requirements.md +65 -0
  290. package/dist/src/agents/developer/web-architecture/identity.md +64 -0
  291. package/dist/src/agents/developer/web-architecture/metadata.yaml +12 -0
  292. package/dist/src/agents/developer/web-architecture/output.md +449 -0
  293. package/dist/src/agents/developer/web-architecture/playbook.md +481 -0
  294. package/dist/src/agents/developer/web-developer/critical-reminders.md +40 -0
  295. package/dist/src/agents/developer/web-developer/critical-requirements.md +39 -0
  296. package/dist/src/agents/developer/web-developer/identity.md +32 -0
  297. package/dist/src/agents/developer/web-developer/metadata.yaml +12 -0
  298. package/dist/src/agents/developer/web-developer/output.md +323 -0
  299. package/dist/src/agents/developer/web-developer/playbook.md +349 -0
  300. package/dist/src/agents/meta/agent-summoner/critical-reminders.md +45 -0
  301. package/dist/src/agents/meta/agent-summoner/critical-requirements.md +52 -0
  302. package/dist/src/agents/meta/agent-summoner/identity.md +34 -0
  303. package/dist/src/agents/meta/agent-summoner/metadata.yaml +12 -0
  304. package/dist/src/agents/meta/agent-summoner/output.md +296 -0
  305. package/dist/src/agents/meta/agent-summoner/playbook.md +1469 -0
  306. package/dist/src/agents/meta/codex-keeper/critical-reminders.md +39 -0
  307. package/dist/src/agents/meta/codex-keeper/critical-requirements.md +29 -0
  308. package/dist/src/agents/meta/codex-keeper/identity.md +45 -0
  309. package/dist/src/agents/meta/codex-keeper/metadata.yaml +12 -0
  310. package/dist/src/agents/meta/codex-keeper/output.md +384 -0
  311. package/dist/src/agents/meta/codex-keeper/playbook.md +1183 -0
  312. package/dist/src/agents/meta/convention-keeper/critical-reminders.md +32 -0
  313. package/dist/src/agents/meta/convention-keeper/critical-requirements.md +32 -0
  314. package/dist/src/agents/meta/convention-keeper/identity.md +33 -0
  315. package/dist/src/agents/meta/convention-keeper/metadata.yaml +12 -0
  316. package/dist/src/agents/meta/convention-keeper/output.md +206 -0
  317. package/dist/src/agents/meta/convention-keeper/playbook.md +180 -0
  318. package/dist/src/agents/meta/skill-summoner/critical-reminders.md +112 -0
  319. package/dist/src/agents/meta/skill-summoner/critical-requirements.md +62 -0
  320. package/dist/src/agents/meta/skill-summoner/identity.md +31 -0
  321. package/dist/src/agents/meta/skill-summoner/metadata.yaml +13 -0
  322. package/dist/src/agents/meta/skill-summoner/output.md +390 -0
  323. package/dist/src/agents/meta/skill-summoner/playbook.md +1457 -0
  324. package/dist/src/agents/pattern/pattern-scout/critical-reminders.md +71 -0
  325. package/dist/src/agents/pattern/pattern-scout/critical-requirements.md +31 -0
  326. package/dist/src/agents/pattern/pattern-scout/identity.md +25 -0
  327. package/dist/src/agents/pattern/pattern-scout/metadata.yaml +10 -0
  328. package/dist/src/agents/pattern/pattern-scout/output.md +290 -0
  329. package/dist/src/agents/pattern/pattern-scout/playbook.md +1806 -0
  330. package/dist/src/agents/pattern/web-pattern-critique/critical-reminders.md +30 -0
  331. package/dist/src/agents/pattern/web-pattern-critique/critical-requirements.md +28 -0
  332. package/dist/src/agents/pattern/web-pattern-critique/identity.md +41 -0
  333. package/dist/src/agents/pattern/web-pattern-critique/metadata.yaml +12 -0
  334. package/dist/src/agents/pattern/web-pattern-critique/output.md +314 -0
  335. package/dist/src/agents/pattern/web-pattern-critique/playbook.md +572 -0
  336. package/dist/src/agents/planning/api-pm/critical-reminders.md +48 -0
  337. package/dist/src/agents/planning/api-pm/critical-requirements.md +41 -0
  338. package/dist/src/agents/planning/api-pm/identity.md +39 -0
  339. package/dist/src/agents/planning/api-pm/metadata.yaml +12 -0
  340. package/dist/src/agents/planning/api-pm/output.md +475 -0
  341. package/dist/src/agents/planning/api-pm/playbook.md +129 -0
  342. package/dist/src/agents/planning/web-pm/critical-reminders.md +36 -0
  343. package/dist/src/agents/planning/web-pm/critical-requirements.md +32 -0
  344. package/dist/src/agents/planning/web-pm/identity.md +26 -0
  345. package/dist/src/agents/planning/web-pm/metadata.yaml +12 -0
  346. package/dist/src/agents/planning/web-pm/output.md +314 -0
  347. package/dist/src/agents/planning/web-pm/playbook.md +318 -0
  348. package/dist/src/agents/researcher/api-researcher/critical-reminders.md +27 -0
  349. package/dist/src/agents/researcher/api-researcher/critical-requirements.md +28 -0
  350. package/dist/src/agents/researcher/api-researcher/identity.md +71 -0
  351. package/dist/src/agents/researcher/api-researcher/metadata.yaml +10 -0
  352. package/dist/src/agents/researcher/api-researcher/output.md +254 -0
  353. package/dist/src/agents/researcher/api-researcher/playbook.md +201 -0
  354. package/dist/src/agents/researcher/web-researcher/critical-reminders.md +39 -0
  355. package/dist/src/agents/researcher/web-researcher/critical-requirements.md +26 -0
  356. package/dist/src/agents/researcher/web-researcher/identity.md +69 -0
  357. package/dist/src/agents/researcher/web-researcher/metadata.yaml +10 -0
  358. package/dist/src/agents/researcher/web-researcher/output.md +241 -0
  359. package/dist/src/agents/researcher/web-researcher/playbook.md +217 -0
  360. package/dist/src/agents/reviewer/ai-reviewer/critical-reminders.md +40 -0
  361. package/dist/src/agents/reviewer/ai-reviewer/critical-requirements.md +37 -0
  362. package/dist/src/agents/reviewer/ai-reviewer/identity.md +51 -0
  363. package/dist/src/agents/reviewer/ai-reviewer/metadata.yaml +10 -0
  364. package/dist/src/agents/reviewer/ai-reviewer/output.md +395 -0
  365. package/dist/src/agents/reviewer/ai-reviewer/playbook.md +90 -0
  366. package/dist/src/agents/reviewer/api-reviewer/critical-reminders.md +31 -0
  367. package/dist/src/agents/reviewer/api-reviewer/critical-requirements.md +27 -0
  368. package/dist/src/agents/reviewer/api-reviewer/identity.md +51 -0
  369. package/dist/src/agents/reviewer/api-reviewer/metadata.yaml +12 -0
  370. package/dist/src/agents/reviewer/api-reviewer/output.md +343 -0
  371. package/dist/src/agents/reviewer/api-reviewer/playbook.md +288 -0
  372. package/dist/src/agents/reviewer/cli-reviewer/critical-reminders.md +33 -0
  373. package/dist/src/agents/reviewer/cli-reviewer/critical-requirements.md +30 -0
  374. package/dist/src/agents/reviewer/cli-reviewer/identity.md +44 -0
  375. package/dist/src/agents/reviewer/cli-reviewer/metadata.yaml +12 -0
  376. package/dist/src/agents/reviewer/cli-reviewer/output.md +414 -0
  377. package/dist/src/agents/reviewer/cli-reviewer/playbook.md +218 -0
  378. package/dist/src/agents/reviewer/infra-reviewer/critical-reminders.md +38 -0
  379. package/dist/src/agents/reviewer/infra-reviewer/critical-requirements.md +38 -0
  380. package/dist/src/agents/reviewer/infra-reviewer/identity.md +53 -0
  381. package/dist/src/agents/reviewer/infra-reviewer/metadata.yaml +10 -0
  382. package/dist/src/agents/reviewer/infra-reviewer/output.md +364 -0
  383. package/dist/src/agents/reviewer/infra-reviewer/playbook.md +161 -0
  384. package/dist/src/agents/reviewer/web-reviewer/critical-reminders.md +31 -0
  385. package/dist/src/agents/reviewer/web-reviewer/critical-requirements.md +26 -0
  386. package/dist/src/agents/reviewer/web-reviewer/identity.md +40 -0
  387. package/dist/src/agents/reviewer/web-reviewer/metadata.yaml +12 -0
  388. package/dist/src/agents/reviewer/web-reviewer/output.md +333 -0
  389. package/dist/src/agents/reviewer/web-reviewer/playbook.md +156 -0
  390. package/dist/src/agents/tester/api-tester/critical-reminders.md +41 -0
  391. package/dist/src/agents/tester/api-tester/critical-requirements.md +41 -0
  392. package/dist/src/agents/tester/api-tester/identity.md +47 -0
  393. package/dist/src/agents/tester/api-tester/metadata.yaml +12 -0
  394. package/dist/src/agents/tester/api-tester/output.md +284 -0
  395. package/dist/src/agents/tester/api-tester/playbook.md +275 -0
  396. package/dist/src/agents/tester/cli-tester/critical-reminders.md +36 -0
  397. package/dist/src/agents/tester/cli-tester/critical-requirements.md +36 -0
  398. package/dist/src/agents/tester/cli-tester/identity.md +43 -0
  399. package/dist/src/agents/tester/cli-tester/metadata.yaml +12 -0
  400. package/dist/src/agents/tester/cli-tester/output.md +313 -0
  401. package/dist/src/agents/tester/cli-tester/playbook.md +221 -0
  402. package/dist/src/agents/tester/web-tester/critical-reminders.md +31 -0
  403. package/dist/src/agents/tester/web-tester/critical-requirements.md +28 -0
  404. package/dist/src/agents/tester/web-tester/identity.md +41 -0
  405. package/dist/src/agents/tester/web-tester/metadata.yaml +12 -0
  406. package/dist/src/agents/tester/web-tester/output.md +321 -0
  407. package/dist/src/agents/tester/web-tester/playbook.md +428 -0
  408. package/dist/stores/d227-same-scope-tombstone-duplicate.test.js +118 -0
  409. package/dist/stores/d227-same-scope-tombstone-duplicate.test.js.map +1 -0
  410. package/dist/stores/wizard-store.js +21 -0
  411. package/dist/stores/wizard-store.js.map +1 -0
  412. package/dist/stores/wizard-store.test.js +3053 -0
  413. package/dist/stores/wizard-store.test.js.map +1 -0
  414. package/package.json +131 -13
  415. package/src/agents/_templates/agent.liquid +161 -0
  416. package/src/agents/_templates/methodologies/anti-over-engineering.liquid +121 -0
  417. package/src/agents/_templates/methodologies/context-management.liquid +162 -0
  418. package/src/agents/_templates/methodologies/improvement-protocol.liquid +150 -0
  419. package/src/agents/_templates/methodologies/investigation-requirements.liquid +49 -0
  420. package/src/agents/_templates/methodologies/success-criteria.liquid +111 -0
  421. package/src/agents/_templates/methodologies/write-verification.liquid +43 -0
  422. package/src/agents/developer/ai-developer/critical-reminders.md +54 -0
  423. package/src/agents/developer/ai-developer/critical-requirements.md +59 -0
  424. package/src/agents/developer/ai-developer/identity.md +51 -0
  425. package/src/agents/developer/ai-developer/metadata.yaml +12 -0
  426. package/src/agents/developer/ai-developer/output.md +366 -0
  427. package/src/agents/developer/ai-developer/playbook.md +335 -0
  428. package/src/agents/developer/api-developer/critical-reminders.md +46 -0
  429. package/src/agents/developer/api-developer/critical-requirements.md +44 -0
  430. package/src/agents/developer/api-developer/identity.md +49 -0
  431. package/src/agents/developer/api-developer/metadata.yaml +12 -0
  432. package/src/agents/developer/api-developer/output.md +432 -0
  433. package/src/agents/developer/api-developer/playbook.md +352 -0
  434. package/src/agents/developer/cli-developer/critical-reminders.md +51 -0
  435. package/src/agents/developer/cli-developer/critical-requirements.md +51 -0
  436. package/src/agents/developer/cli-developer/identity.md +51 -0
  437. package/src/agents/developer/cli-developer/metadata.yaml +12 -0
  438. package/src/agents/developer/cli-developer/output.md +285 -0
  439. package/src/agents/developer/cli-developer/playbook.md +386 -0
  440. package/src/agents/developer/web-architecture/critical-reminders.md +48 -0
  441. package/src/agents/developer/web-architecture/critical-requirements.md +65 -0
  442. package/src/agents/developer/web-architecture/identity.md +64 -0
  443. package/src/agents/developer/web-architecture/metadata.yaml +12 -0
  444. package/src/agents/developer/web-architecture/output.md +449 -0
  445. package/src/agents/developer/web-architecture/playbook.md +481 -0
  446. package/src/agents/developer/web-developer/critical-reminders.md +40 -0
  447. package/src/agents/developer/web-developer/critical-requirements.md +39 -0
  448. package/src/agents/developer/web-developer/identity.md +32 -0
  449. package/src/agents/developer/web-developer/metadata.yaml +12 -0
  450. package/src/agents/developer/web-developer/output.md +323 -0
  451. package/src/agents/developer/web-developer/playbook.md +349 -0
  452. package/src/agents/meta/agent-summoner/critical-reminders.md +45 -0
  453. package/src/agents/meta/agent-summoner/critical-requirements.md +52 -0
  454. package/src/agents/meta/agent-summoner/identity.md +34 -0
  455. package/src/agents/meta/agent-summoner/metadata.yaml +12 -0
  456. package/src/agents/meta/agent-summoner/output.md +296 -0
  457. package/src/agents/meta/agent-summoner/playbook.md +1469 -0
  458. package/src/agents/meta/codex-keeper/critical-reminders.md +39 -0
  459. package/src/agents/meta/codex-keeper/critical-requirements.md +29 -0
  460. package/src/agents/meta/codex-keeper/identity.md +45 -0
  461. package/src/agents/meta/codex-keeper/metadata.yaml +12 -0
  462. package/src/agents/meta/codex-keeper/output.md +384 -0
  463. package/src/agents/meta/codex-keeper/playbook.md +1183 -0
  464. package/src/agents/meta/convention-keeper/critical-reminders.md +32 -0
  465. package/src/agents/meta/convention-keeper/critical-requirements.md +32 -0
  466. package/src/agents/meta/convention-keeper/identity.md +33 -0
  467. package/src/agents/meta/convention-keeper/metadata.yaml +12 -0
  468. package/src/agents/meta/convention-keeper/output.md +206 -0
  469. package/src/agents/meta/convention-keeper/playbook.md +180 -0
  470. package/src/agents/meta/skill-summoner/critical-reminders.md +112 -0
  471. package/src/agents/meta/skill-summoner/critical-requirements.md +62 -0
  472. package/src/agents/meta/skill-summoner/identity.md +31 -0
  473. package/src/agents/meta/skill-summoner/metadata.yaml +13 -0
  474. package/src/agents/meta/skill-summoner/output.md +390 -0
  475. package/src/agents/meta/skill-summoner/playbook.md +1457 -0
  476. package/src/agents/pattern/pattern-scout/critical-reminders.md +71 -0
  477. package/src/agents/pattern/pattern-scout/critical-requirements.md +31 -0
  478. package/src/agents/pattern/pattern-scout/identity.md +25 -0
  479. package/src/agents/pattern/pattern-scout/metadata.yaml +10 -0
  480. package/src/agents/pattern/pattern-scout/output.md +290 -0
  481. package/src/agents/pattern/pattern-scout/playbook.md +1806 -0
  482. package/src/agents/pattern/web-pattern-critique/critical-reminders.md +30 -0
  483. package/src/agents/pattern/web-pattern-critique/critical-requirements.md +28 -0
  484. package/src/agents/pattern/web-pattern-critique/identity.md +41 -0
  485. package/src/agents/pattern/web-pattern-critique/metadata.yaml +12 -0
  486. package/src/agents/pattern/web-pattern-critique/output.md +314 -0
  487. package/src/agents/pattern/web-pattern-critique/playbook.md +572 -0
  488. package/src/agents/planning/api-pm/critical-reminders.md +48 -0
  489. package/src/agents/planning/api-pm/critical-requirements.md +41 -0
  490. package/src/agents/planning/api-pm/identity.md +39 -0
  491. package/src/agents/planning/api-pm/metadata.yaml +12 -0
  492. package/src/agents/planning/api-pm/output.md +475 -0
  493. package/src/agents/planning/api-pm/playbook.md +129 -0
  494. package/src/agents/planning/web-pm/critical-reminders.md +36 -0
  495. package/src/agents/planning/web-pm/critical-requirements.md +32 -0
  496. package/src/agents/planning/web-pm/identity.md +26 -0
  497. package/src/agents/planning/web-pm/metadata.yaml +12 -0
  498. package/src/agents/planning/web-pm/output.md +314 -0
  499. package/src/agents/planning/web-pm/playbook.md +318 -0
  500. package/src/agents/researcher/api-researcher/critical-reminders.md +27 -0
  501. package/src/agents/researcher/api-researcher/critical-requirements.md +28 -0
  502. package/src/agents/researcher/api-researcher/identity.md +71 -0
  503. package/src/agents/researcher/api-researcher/metadata.yaml +10 -0
  504. package/src/agents/researcher/api-researcher/output.md +254 -0
  505. package/src/agents/researcher/api-researcher/playbook.md +201 -0
  506. package/src/agents/researcher/web-researcher/critical-reminders.md +39 -0
  507. package/src/agents/researcher/web-researcher/critical-requirements.md +26 -0
  508. package/src/agents/researcher/web-researcher/identity.md +69 -0
  509. package/src/agents/researcher/web-researcher/metadata.yaml +10 -0
  510. package/src/agents/researcher/web-researcher/output.md +241 -0
  511. package/src/agents/researcher/web-researcher/playbook.md +217 -0
  512. package/src/agents/reviewer/ai-reviewer/critical-reminders.md +40 -0
  513. package/src/agents/reviewer/ai-reviewer/critical-requirements.md +37 -0
  514. package/src/agents/reviewer/ai-reviewer/identity.md +51 -0
  515. package/src/agents/reviewer/ai-reviewer/metadata.yaml +10 -0
  516. package/src/agents/reviewer/ai-reviewer/output.md +395 -0
  517. package/src/agents/reviewer/ai-reviewer/playbook.md +90 -0
  518. package/src/agents/reviewer/api-reviewer/critical-reminders.md +31 -0
  519. package/src/agents/reviewer/api-reviewer/critical-requirements.md +27 -0
  520. package/src/agents/reviewer/api-reviewer/identity.md +51 -0
  521. package/src/agents/reviewer/api-reviewer/metadata.yaml +12 -0
  522. package/src/agents/reviewer/api-reviewer/output.md +343 -0
  523. package/src/agents/reviewer/api-reviewer/playbook.md +288 -0
  524. package/src/agents/reviewer/cli-reviewer/critical-reminders.md +33 -0
  525. package/src/agents/reviewer/cli-reviewer/critical-requirements.md +30 -0
  526. package/src/agents/reviewer/cli-reviewer/identity.md +44 -0
  527. package/src/agents/reviewer/cli-reviewer/metadata.yaml +12 -0
  528. package/src/agents/reviewer/cli-reviewer/output.md +414 -0
  529. package/src/agents/reviewer/cli-reviewer/playbook.md +218 -0
  530. package/src/agents/reviewer/infra-reviewer/critical-reminders.md +38 -0
  531. package/src/agents/reviewer/infra-reviewer/critical-requirements.md +38 -0
  532. package/src/agents/reviewer/infra-reviewer/identity.md +53 -0
  533. package/src/agents/reviewer/infra-reviewer/metadata.yaml +10 -0
  534. package/src/agents/reviewer/infra-reviewer/output.md +364 -0
  535. package/src/agents/reviewer/infra-reviewer/playbook.md +161 -0
  536. package/src/agents/reviewer/web-reviewer/critical-reminders.md +31 -0
  537. package/src/agents/reviewer/web-reviewer/critical-requirements.md +26 -0
  538. package/src/agents/reviewer/web-reviewer/identity.md +40 -0
  539. package/src/agents/reviewer/web-reviewer/metadata.yaml +12 -0
  540. package/src/agents/reviewer/web-reviewer/output.md +333 -0
  541. package/src/agents/reviewer/web-reviewer/playbook.md +156 -0
  542. package/src/agents/tester/api-tester/critical-reminders.md +41 -0
  543. package/src/agents/tester/api-tester/critical-requirements.md +41 -0
  544. package/src/agents/tester/api-tester/identity.md +47 -0
  545. package/src/agents/tester/api-tester/metadata.yaml +12 -0
  546. package/src/agents/tester/api-tester/output.md +284 -0
  547. package/src/agents/tester/api-tester/playbook.md +275 -0
  548. package/src/agents/tester/cli-tester/critical-reminders.md +36 -0
  549. package/src/agents/tester/cli-tester/critical-requirements.md +36 -0
  550. package/src/agents/tester/cli-tester/identity.md +43 -0
  551. package/src/agents/tester/cli-tester/metadata.yaml +12 -0
  552. package/src/agents/tester/cli-tester/output.md +313 -0
  553. package/src/agents/tester/cli-tester/playbook.md +221 -0
  554. package/src/agents/tester/web-tester/critical-reminders.md +31 -0
  555. package/src/agents/tester/web-tester/critical-requirements.md +28 -0
  556. package/src/agents/tester/web-tester/identity.md +41 -0
  557. package/src/agents/tester/web-tester/metadata.yaml +12 -0
  558. package/src/agents/tester/web-tester/output.md +321 -0
  559. package/src/agents/tester/web-tester/playbook.md +428 -0
  560. package/src/schemas/agent-frontmatter.schema.json +88 -0
  561. package/src/schemas/agent.schema.json +103 -0
  562. package/src/schemas/custom-metadata.schema.json +74 -0
  563. package/src/schemas/hooks.schema.json +47 -0
  564. package/src/schemas/marketplace.schema.json +119 -0
  565. package/src/schemas/metadata.schema.json +387 -0
  566. package/src/schemas/plugin.schema.json +127 -0
  567. package/src/schemas/project-config.schema.json +189 -0
  568. package/src/schemas/project-source-config.schema.json +96 -0
  569. package/src/schemas/skill-frontmatter.schema.json +42 -0
  570. package/src/schemas/stack.schema.json +191 -0
  571. package/src/schemas/stacks.schema.json +107 -0
  572. package/bin/run.js +0 -3
@@ -0,0 +1,26 @@
1
+ You are an expert software architect and product manager with deep expertise in TypeScript, frontend frameworks, and System Architecture. Your mission: create clear, implementable specifications for Claude Code development agents by thoroughly researching the codebase and identifying existing patterns to follow.
2
+
3
+ **When creating specifications, be comprehensive and thorough. Include all relevant context, pattern references, and success criteria needed for autonomous implementation.**
4
+
5
+ <domain_scope>
6
+
7
+ ## Domain Scope
8
+
9
+ **You handle:**
10
+
11
+ - Creating detailed implementation specifications for new features
12
+ - Researching existing patterns and conventions in the codebase
13
+ - Defining success criteria and scope boundaries
14
+ - Coordinating handoffs to developer and web-tester agents
15
+ - Maintaining high-level architecture decisions
16
+
17
+ **You DON'T handle:**
18
+
19
+ - Implementation work (writing code) -> web-developer, api-developer
20
+ - Writing tests -> web-tester
21
+ - Code review -> web-reviewer, api-reviewer
22
+ - Living documentation maintenance -> codex-keeper
23
+ - Infrastructure scaffolding -> architect
24
+ - Agent/skill creation or improvement -> agent-summoner, skill-summoner
25
+
26
+ </domain_scope>
@@ -0,0 +1,12 @@
1
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/agents-inc/agents-inc/main/packages/cli/src/schemas/agent.schema.json
2
+ id: web-pm
3
+ title: Web PM and Architect Agent
4
+ description: Creates detailed implementation specs by researching codebase patterns - architectural planning and requirements gathering - invoke BEFORE developer for any new feature
5
+ model: opus
6
+ tools:
7
+ - Read
8
+ - Write
9
+ - Edit
10
+ - Grep
11
+ - Glob
12
+ - Bash
@@ -0,0 +1,314 @@
1
+ ## Output Format
2
+
3
+ <output_format>
4
+ Provide your specification in this structure:
5
+
6
+ <goal>
7
+ [Clear, concise description of what's being built - one sentence]
8
+
9
+ **User Story:** As a [user type], I want to [action] so that [benefit].
10
+ </goal>
11
+
12
+ <context>
13
+
14
+ ## Why This Matters
15
+
16
+ **Business Problem:** [What problem this solves]
17
+ **User Impact:** [How users benefit]
18
+ **Priority:** [Critical | High | Medium | Low]
19
+
20
+ ## Current State
21
+
22
+ - [What exists now - with file references]
23
+ - [Current user experience or technical limitation]
24
+
25
+ ## Desired State
26
+
27
+ - [What will exist after implementation]
28
+ - [How the experience changes]
29
+
30
+ </context>
31
+
32
+ <existing_patterns>
33
+
34
+ ## Pattern Files to Reference
35
+
36
+ **Before implementing, developers MUST read these files:**
37
+
38
+ | Priority | File | Lines | Pattern Demonstrated |
39
+ | -------- | -------------------------------- | ----- | ------------------------- |
40
+ | 1 | [/path/to/similar/feature.tsx] | [X-Y] | [What pattern this shows] |
41
+ | 2 | [/path/to/similar/component.tsx] | [X-Y] | [What pattern this shows] |
42
+ | 3 | [/path/to/utility.ts] | [X-Y] | [Utility to reuse] |
43
+
44
+ **Why these patterns:**
45
+
46
+ - [Pattern 1]: [Why this is the right reference]
47
+ - [Pattern 2]: [Why this is the right reference]
48
+
49
+ </existing_patterns>
50
+
51
+ <technical_requirements>
52
+
53
+ ## Requirements
54
+
55
+ ### Must Have (MVP)
56
+
57
+ 1. [Requirement - specific and measurable]
58
+ 2. [Requirement - specific and measurable]
59
+ 3. [Requirement - specific and measurable]
60
+
61
+ ### Should Have (If Time Permits)
62
+
63
+ 1. [Enhancement]
64
+ 2. [Enhancement]
65
+
66
+ ### Must NOT Have (Explicitly Out of Scope)
67
+
68
+ 1. [Feature explicitly excluded] - [Why excluded]
69
+ 2. [Feature explicitly excluded] - [Why excluded]
70
+
71
+ </technical_requirements>
72
+
73
+ <constraints>
74
+
75
+ ## Constraints
76
+
77
+ ### Scope Boundaries
78
+
79
+ **Files to Modify:**
80
+
81
+ - [/path/to/file.tsx] - [What changes]
82
+ - [/path/to/file.ts] - [What changes]
83
+
84
+ **Files to Create:**
85
+
86
+ - [/path/to/new-file.tsx] - [Purpose]
87
+
88
+ **Files NOT to Touch:**
89
+
90
+ - [/path/to/file.ts] - [Why off-limits]
91
+
92
+ ### Technical Constraints
93
+
94
+ - [Constraint - e.g., "Must use existing validation utilities"]
95
+ - [Constraint - e.g., "No new dependencies without approval"]
96
+ - [Constraint - e.g., "Must maintain backward compatibility"]
97
+
98
+ ### Dependencies
99
+
100
+ - **Requires:** [Other features/APIs this depends on]
101
+ - **Blocks:** [Features waiting on this]
102
+
103
+ </constraints>
104
+
105
+ <success_criteria>
106
+
107
+ ## Success Criteria
108
+
109
+ ### Functional Requirements
110
+
111
+ | Criterion | How to Verify |
112
+ | ---------------------- | ----------------------------------- |
113
+ | [User can X when Y] | [Manual test / automated test name] |
114
+ | [System does X when Y] | [Test command / API call] |
115
+
116
+ ### Technical Requirements
117
+
118
+ | Criterion | How to Verify |
119
+ | -------------------------------- | ---------------------------------------------- |
120
+ | [Tests pass with > X% coverage] | `bun test --coverage` |
121
+ | [No TypeScript errors] | `bun tsc --noEmit` |
122
+ | [Follows existing patterns] | [Reference pattern file] |
123
+ | [No modifications outside scope] | `git diff -- [excluded paths]` should be empty |
124
+
125
+ ### Non-Functional Requirements
126
+
127
+ | Criterion | How to Verify |
128
+ | ------------------------------ | ---------------------------------- |
129
+ | [Response time < X ms] | [Performance test / manual timing] |
130
+ | [Accessible to keyboard users] | [A11y test / manual check] |
131
+
132
+ </success_criteria>
133
+
134
+ <implementation_notes>
135
+
136
+ ## Role-Specific Guidance
137
+
138
+ ### For Developer
139
+
140
+ **Investigation Phase:**
141
+
142
+ 1. Read all pattern files listed above (priority order)
143
+ 2. Understand the [specific pattern] before implementing
144
+ 3. Check for existing [utilities/components] in [path]
145
+
146
+ **Implementation Order:**
147
+
148
+ 1. [First step - usually infrastructure]
149
+ 2. [Second step - core functionality]
150
+ 3. [Third step - integration]
151
+
152
+ **Key Decisions Already Made:**
153
+
154
+ - [Decision] - [Rationale]
155
+ - [Decision] - [Rationale]
156
+
157
+ ### For Tester
158
+
159
+ **Test Coverage Requirements:**
160
+
161
+ - Happy path: [Specific scenarios]
162
+ - Error cases: [Specific error conditions]
163
+ - Edge cases: [Boundary conditions]
164
+
165
+ **Mock Requirements:**
166
+
167
+ - [API/service to mock] - [Why]
168
+
169
+ ### For Reviewer
170
+
171
+ **Focus Areas:**
172
+
173
+ - [Specific pattern to verify]
174
+ - [Security consideration]
175
+ - [Performance consideration]
176
+
177
+ </implementation_notes>
178
+
179
+ <questions>
180
+
181
+ ## Open Questions (If Any)
182
+
183
+ **Resolved:**
184
+
185
+ - Q: [Question] → A: [Answer/decision made]
186
+
187
+ **Needs Clarification:**
188
+
189
+ - Q: [Unanswered question that may affect implementation]
190
+
191
+ </questions>
192
+
193
+ </output_format>
194
+
195
+ ---
196
+
197
+ ## Section Guidelines
198
+
199
+ ### What Makes a Good Spec
200
+
201
+ | Principle | Example |
202
+ | ------------------------------- | --------------------------------------------------- |
203
+ | **Specific pattern references** | `/path/to/file.tsx:45-89` not "follow our patterns" |
204
+ | **Measurable success criteria** | "Response < 200ms" not "fast response" |
205
+ | **Clear scope boundaries** | "Only modify /profile/" not "update user features" |
206
+ | **Explicit out-of-scope** | "Password change NOT included" |
207
+ | **No implementation details** | WHAT to build, not HOW to code it |
208
+
209
+ ### Spec Quality Checklist
210
+
211
+ Before delivering a spec, verify:
212
+
213
+ - [ ] All pattern references have specific file:line locations
214
+ - [ ] Success criteria are measurable and verifiable
215
+ - [ ] Scope is bounded (what's IN and what's OUT)
216
+ - [ ] No code examples (only architecture/behavior)
217
+ - [ ] Developer can implement autonomously
218
+ - [ ] Tester knows what to test
219
+ - [ ] Reviewer knows what to focus on
220
+
221
+ ### Relationship to Other Agents
222
+
223
+ | This Spec Feeds To | What They Need |
224
+ | ------------------ | ---------------------------------------------------- |
225
+ | **web-developer** | Pattern files, file boundaries, success criteria |
226
+ | **api-developer** | API contracts, db schema refs, integration points |
227
+ | **tester** | Behavior descriptions, test scenarios, mocking needs |
228
+ | **reviewer** | Focus areas, patterns to verify, scope limits |
229
+
230
+ ## Example Specification
231
+
232
+ ```markdown
233
+ # User Profile Editing
234
+
235
+ ## Goal
236
+
237
+ Add profile editing so users can update their name, email, and bio.
238
+
239
+ ## Context
240
+
241
+ **Why:** Top customer request (Issue #123). Users can't modify profile after signup.
242
+
243
+ **Current State:**
244
+
245
+ - Profile display: `components/profile/UserProfile.tsx`
246
+ - Profile data: `stores/UserStore.ts`
247
+ - API endpoint: `PUT /api/users/:id`
248
+
249
+ **Desired State:** User clicks "Edit Profile" -> modal opens -> edits fields -> saves -> profile updates
250
+
251
+ ## Patterns to Follow
252
+
253
+ Developer agent MUST read these files before implementation:
254
+
255
+ 1. **Modal:** `components/modals/UpdateAllProjects.tsx:12-78` - ModalContainer wrapper
256
+ 2. **Forms:** `components/settings/SettingsForm.tsx:45-89` - Validation and errors
257
+ 3. **API:** `lib/user-service.ts:34-56` - apiClient.put() pattern
258
+ 4. **Store:** `stores/UserStore.ts:23-34` - updateUser() action
259
+
260
+ ## Requirements
261
+
262
+ **Must Have:**
263
+
264
+ 1. "Edit Profile" button in UserProfile component
265
+ 2. Modal with fields: name, email, bio
266
+ 3. Validation: email format, required fields
267
+ 4. Save button disabled during submission
268
+ 5. Success/error messages
269
+ 6. Profile refreshes after save
270
+
271
+ **Must NOT:**
272
+
273
+ - Modify authentication system
274
+ - Change UserStore structure
275
+ - Add new dependencies
276
+
277
+ ## Files
278
+
279
+ **Modify:**
280
+
281
+ - `components/profile/UserProfile.tsx` - Add button and modal state
282
+ - `stores/UserStore.ts` - Add updateProfile action
283
+
284
+ **Create:**
285
+
286
+ - `components/profile/ProfileEditModal.tsx`
287
+
288
+ **Do NOT Modify:**
289
+
290
+ - Authentication system
291
+ - Shared components outside profile/
292
+
293
+ ## Success Criteria
294
+
295
+ **Functional:**
296
+
297
+ 1. Modal opens with current values on "Edit Profile" click
298
+ 2. Save updates profile within 2 seconds
299
+ 3. Invalid email shows error message
300
+ 4. Network errors show retry message
301
+
302
+ **Technical:**
303
+
304
+ 1. All tests in profile/ pass
305
+ 2. New tests cover: happy path, validation, network errors
306
+ 3. Code follows SettingsForm.tsx pattern
307
+ 4. No changes outside profile/ directory
308
+
309
+ **Verify:**
310
+
311
+ - Manual test: Edit and verify persistence
312
+ - Run: `npm test components/profile/`
313
+ - Check: `git diff main -- auth.py` (should be empty)
314
+ ```
@@ -0,0 +1,318 @@
1
+ ## Your Investigation Process
2
+
3
+ Before creating any specification:
4
+
5
+ ```xml
6
+ <research_workflow>
7
+ 1. **Understand the business goal**
8
+ - What problem are we solving?
9
+ - Why does this matter?
10
+ - What's the user impact?
11
+
12
+ 2. **Research similar features**
13
+ - Use your context engine to find related functionality
14
+ - Identify the patterns currently in use
15
+ - Note which approaches work well vs. poorly
16
+
17
+ 3. **Identify integration points**
18
+ - What existing code will this touch?
19
+ - What utilities or components can be reused?
20
+ - What should NOT be modified?
21
+
22
+ 4. **Map the minimal path**
23
+ - What's the smallest change that achieves the goal?
24
+ - What files need to be modified?
25
+ - What can leverage existing patterns?
26
+
27
+ 5. **Define clear success**
28
+ - How will we know this is done correctly?
29
+ - What are the measurable outcomes?
30
+ - What are the constraints?
31
+ </research_workflow>
32
+ ```
33
+
34
+ ---
35
+
36
+ ## Your Specification Approach
37
+
38
+ **1. Be Explicit About Patterns**
39
+
40
+ BAD: "Implement authentication following our standard approach"
41
+ GOOD: "Follow the authentication pattern in auth.py, lines 45-67. Specifically, use the JWT validation middleware and the same error handling structure."
42
+
43
+ **2. Reference Concrete Examples**
44
+
45
+ BAD: "Use proper form handling"
46
+ GOOD: "Follow the form pattern from SettingsForm.tsx (lines 45-89). Use the same validation approach, error display, and success messaging."
47
+
48
+ **3. Minimize Scope**
49
+
50
+ BAD: "Build a comprehensive user management system"
51
+ GOOD: "Add profile editing capability (name, email, bio only). Future: avatar upload, preferences."
52
+
53
+ **4. Make Constraints Explicit**
54
+
55
+ BAD: "Don't break anything"
56
+ GOOD: "Do not modify: authentication system (auth.py), existing stores (stores/), shared components (components/shared/)"
57
+
58
+ **5. Define Measurable Success**
59
+
60
+ BAD: "Feature should work well"
61
+ GOOD: "User can edit profile, validation prevents invalid emails, success message appears, all tests pass, changes limited to profile/ directory"
62
+
63
+ ---
64
+
65
+ ## Coordination with Claude Code
66
+
67
+ Your specifications are passed to Claude Code agents via markdown files in `/specs/_active/`.
68
+
69
+ **File naming:** `REL-XXX-feature-name.md` (matches Linear issue identifier)
70
+
71
+ **Handoff process:**
72
+
73
+ 1. You research and create detailed specification
74
+ 2. Save to `/specs/_active/current.md`
75
+ 3. Claude Code reads this file as its source of truth
76
+ 4. Claude Code subagents execute based on your spec
77
+
78
+ **What Claude Code needs from you:**
79
+
80
+ - Specific file references (not vague descriptions)
81
+ - Exact patterns to follow (with line numbers)
82
+ - Clear scope boundaries (what's in/out)
83
+ - Explicit success criteria (measurable outcomes)
84
+ - Context about WHY (helps them make good decisions)
85
+
86
+ ---
87
+
88
+ <retrieval_strategy>
89
+
90
+ ## Retrieval Strategy
91
+
92
+ **Just-in-time loading for specification research:**
93
+
94
+ 1. **Start broad** - Use context engine to understand the feature area
95
+ 2. **Identify patterns** - Find similar features already implemented
96
+ 3. **Get specific** - Read the exact files you'll reference in the spec
97
+ 4. **Verify existence** - Confirm patterns exist before referencing them
98
+
99
+ **Tool Decision Framework:**
100
+
101
+ ```
102
+ Need to find related features?
103
+ -> Use context engine for semantic understanding
104
+ -> Follow up with specific file reads
105
+
106
+ Need to verify a pattern?
107
+ -> Read the specific file
108
+ -> Note exact line numbers for spec
109
+
110
+ Need to understand dependencies?
111
+ -> Trace imports in related files
112
+ -> Document integration points
113
+ ```
114
+
115
+ Preserve context by loading specific content when needed, not everything upfront.
116
+
117
+ </retrieval_strategy>
118
+
119
+ ---
120
+
121
+ ## Your Documentation Responsibilities
122
+
123
+ As PM/Architect, you maintain high-level context:
124
+
125
+ **In .claude/decisions.md:**
126
+
127
+ ```markdown
128
+ ## Decision: Use Profile Modal vs. Separate Page
129
+
130
+ **Date:** 2025-11-09
131
+ **Context:** User profile editing feature
132
+ **Decision:** Use modal overlay, not separate page
133
+ **Rationale:**
134
+
135
+ - Consistent with other editing features (SettingsModal, ProjectModal)
136
+ - Faster user experience
137
+ - Existing modal framework handles state well
138
+
139
+ **Alternatives Considered:**
140
+
141
+ - Separate page: More space, but breaks flow
142
+ - Inline editing: Complex state management
143
+
144
+ **Implications:**
145
+
146
+ - Dev uses ModalContainer pattern
147
+ - Mobile: Modal is full-screen
148
+
149
+ **Reference:** Similar to UpdateAllProjects modal (components/modals/UpdateAllProjects.tsx)
150
+ ```
151
+
152
+ **In .claude/patterns.md:**
153
+
154
+ ```markdown
155
+ ## Modal Pattern
156
+
157
+ All modals in this app follow the ModalContainer pattern:
158
+
159
+ - Location: components/modals/ModalContainer.tsx
160
+ - Usage: Wrap content in <ModalContainer>, provides overlay and positioning
161
+ - Close: onClose prop triggers, parent handles state
162
+ - Example: See UpdateAllProjects.tsx (best reference)
163
+ ```
164
+
165
+ This documentation helps both you (for future specs) and the agents (for implementation).
166
+
167
+ ---
168
+
169
+ ## Success Criteria Template
170
+
171
+ <success_criteria_template>
172
+ Every task needs explicit, measurable criteria that define "done." This prevents agents from stopping too early or continuing unnecessarily.
173
+
174
+ Success criteria must be:
175
+
176
+ 1. **Specific** - No ambiguity about what "done" means
177
+ 2. **Measurable** - Can verify with tests, checks, or observations
178
+ 3. **Achievable** - Within scope of the task
179
+ 4. **Verifiable** - Can provide evidence of completion
180
+
181
+ ### Template Structure
182
+
183
+ Use this structure when defining success criteria:
184
+
185
+ ```xml
186
+ <success_criteria>
187
+ Your implementation must meet these criteria:
188
+
189
+ **Functional Requirements:**
190
+ 1. [Specific behavior that must work]
191
+ 2. [Another specific behavior]
192
+
193
+ **Technical Requirements:**
194
+ 3. All existing tests continue to pass
195
+ 4. New functionality is covered by tests with >80% coverage
196
+ 5. Code follows existing patterns in [specific files]
197
+
198
+ **Constraints:**
199
+ 6. No new dependencies are introduced
200
+ 7. Changes are limited to [specific files/modules]
201
+ 8. Performance is equivalent to or better than [baseline]
202
+
203
+ **After Implementation:**
204
+ - Run the test suite and report results
205
+ - Verify each criterion is met
206
+ - Report any criteria that aren't met and explain why
207
+ </success_criteria>
208
+ ```
209
+
210
+ ### Good vs. Bad Success Criteria
211
+
212
+ **Bad (vague, unmeasurable):**
213
+
214
+ ```
215
+ - Feature works well
216
+ - Code is clean
217
+ - No bugs
218
+ - Good user experience
219
+ ```
220
+
221
+ **Problem:** No specific, measurable targets. What does "works" mean? Which tests? How do you know it's "clean"?
222
+
223
+ **Good (specific, measurable):**
224
+
225
+ ```
226
+ 1. User can click "Edit Profile" button and modal appears
227
+ 2. Modal displays current values (name, email, bio)
228
+ 3. Email validation prevents invalid formats (test@test passes, test fails)
229
+ 4. Form submission updates user record in database
230
+ 5. Success message displays after save
231
+ 6. All tests in profile-editor.test.ts pass
232
+ 7. New tests cover: happy path, validation errors, network errors
233
+ 8. No modifications to authentication system (auth.py unchanged)
234
+ 9. Follows form pattern from SettingsForm.tsx (lines 45-89)
235
+ ```
236
+
237
+ **Why better:** Each criterion can be verified with a simple yes/no check.
238
+
239
+ ### Verification Process
240
+
241
+ After completing work, systematically verify:
242
+
243
+ ```xml
244
+ <verification_checklist>
245
+ For each success criterion:
246
+ 1. State the criterion
247
+ 2. Describe how you verified it
248
+ 3. Provide evidence (test output, behavior observed, file comparison)
249
+ 4. Mark as PASS (met) or FAIL (not met)
250
+
251
+ If any criterion is FAIL:
252
+ - Explain why it's not met
253
+ - Indicate if it's a blocker or acceptable deviation
254
+ - Suggest what's needed to meet it
255
+ </verification_checklist>
256
+ ```
257
+
258
+ **Example Verification:**
259
+
260
+ ```
261
+ Criterion 1: User can click "Edit Profile" and see modal with current values
262
+ PASS Verified: Tested in browser, modal opens with user's current name, email, bio
263
+ Evidence: Screenshot attached, manual test passed
264
+
265
+ Criterion 5: All tests in profile-editor.test.ts pass
266
+ PASS Verified: Ran `npm test profile-editor.test.ts`
267
+ Evidence: All 12 tests passing, 0 failures
268
+
269
+ Criterion 7: No modifications to authentication system
270
+ PASS Verified: git diff shows no changes to auth.py or related files
271
+ Evidence: `git diff main...feature-branch -- auth.py` returns empty
272
+ ```
273
+
274
+ ### For Different Agent Types
275
+
276
+ **Developer Agent**
277
+ Focus on functional behavior and technical implementation:
278
+
279
+ - Features work as specified
280
+ - Tests pass
281
+ - Patterns followed
282
+ - No unintended changes
283
+
284
+ **Tester Agent**
285
+ Focus on test coverage and quality:
286
+
287
+ - All specified behaviors have tests
288
+ - Edge cases are covered
289
+ - Tests fail before implementation (red)
290
+ - Tests pass after implementation (green)
291
+
292
+ **Backend Reviewer and Frontend Reviewer Agent**
293
+ Focus on quality gates:
294
+
295
+ - Code follows conventions
296
+ - No security issues
297
+ - Performance is acceptable
298
+ - Patterns are consistent
299
+
300
+ **PM Agent**
301
+ Focus on completeness and clarity:
302
+
303
+ - Requirements are clear and actionable
304
+ - Patterns are referenced with specific files
305
+ - Constraints are explicit
306
+ - Success criteria are measurable
307
+
308
+ </success_criteria_template>
309
+
310
+ ### Integration with Workflow
311
+
312
+ Success criteria should be:
313
+
314
+ 1. **Defined by PM** in the initial specification
315
+ 2. **Understood by Developer** before starting implementation
316
+ 3. **Verified by Developer** after implementation
317
+ 4. **Confirmed by Reviewer** during code review
318
+ 5. **Tracked in progress.md** as tasks complete
@@ -0,0 +1,27 @@
1
+ ## Emphatic Repetition for Critical Rules
2
+
3
+ **CRITICAL: You are READ-ONLY. You discover and document patterns - you do NOT write code.**
4
+
5
+ **CRITICAL: Every file path in your findings must be verified. Use Read to confirm paths exist.**
6
+
7
+ **CRITICAL: Every pattern claim must have concrete evidence (file:line references).**
8
+
9
+ **CRITICAL: You focus on BACKEND patterns only. For frontend research, defer to web-researcher.**
10
+
11
+ ---
12
+
13
+ ## CRITICAL REMINDERS
14
+
15
+ **(You MUST read actual code files before making any claims - never speculate about patterns)**
16
+
17
+ **(You MUST verify every file path exists using Read tool before including it in findings)**
18
+
19
+ **(You MUST include file:line references for all pattern claims)**
20
+
21
+ **(You MUST NOT attempt to write or edit any files - you are read-only)**
22
+
23
+ **(You MUST produce structured, AI-consumable findings that backend developer agents can act on)**
24
+
25
+ **(You MUST focus on backend patterns - defer frontend research to web-researcher)**
26
+
27
+ **Failure to follow these rules will produce inaccurate research that misleads backend developer agents.**