@agents-inc/cli 0.32.1

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 (497) hide show
  1. package/CHANGELOG.md +462 -0
  2. package/LICENSE +21 -0
  3. package/README.md +179 -0
  4. package/config/skills-matrix.yaml +926 -0
  5. package/config/stacks.yaml +2186 -0
  6. package/dist/chunk-3ZOIOVKT.js +365 -0
  7. package/dist/chunk-3ZOIOVKT.js.map +1 -0
  8. package/dist/chunk-4RAY5AOI.js +78 -0
  9. package/dist/chunk-4RAY5AOI.js.map +1 -0
  10. package/dist/chunk-5PIKNCZX.js +234 -0
  11. package/dist/chunk-5PIKNCZX.js.map +1 -0
  12. package/dist/chunk-66UDJBF6.js +96 -0
  13. package/dist/chunk-66UDJBF6.js.map +1 -0
  14. package/dist/chunk-7SOPVGDV.js +24 -0
  15. package/dist/chunk-7SOPVGDV.js.map +1 -0
  16. package/dist/chunk-A27LOC4Z.js +95 -0
  17. package/dist/chunk-A27LOC4Z.js.map +1 -0
  18. package/dist/chunk-B2UBHA66.js +301 -0
  19. package/dist/chunk-B2UBHA66.js.map +1 -0
  20. package/dist/chunk-BZN2Z5P7.js +882 -0
  21. package/dist/chunk-BZN2Z5P7.js.map +1 -0
  22. package/dist/chunk-BZQBJP34.js +186 -0
  23. package/dist/chunk-BZQBJP34.js.map +1 -0
  24. package/dist/chunk-DC5AK3LW.js +105 -0
  25. package/dist/chunk-DC5AK3LW.js.map +1 -0
  26. package/dist/chunk-DHET7RCE.js +50 -0
  27. package/dist/chunk-DHET7RCE.js.map +1 -0
  28. package/dist/chunk-EMJ2ZKS7.js +346 -0
  29. package/dist/chunk-EMJ2ZKS7.js.map +1 -0
  30. package/dist/chunk-FJQRVFMB.js +48 -0
  31. package/dist/chunk-FJQRVFMB.js.map +1 -0
  32. package/dist/chunk-FZGYSLJL.js +85 -0
  33. package/dist/chunk-FZGYSLJL.js.map +1 -0
  34. package/dist/chunk-H566H3MQ.js +87 -0
  35. package/dist/chunk-H566H3MQ.js.map +1 -0
  36. package/dist/chunk-IYG2LAIM.js +90 -0
  37. package/dist/chunk-IYG2LAIM.js.map +1 -0
  38. package/dist/chunk-IZZ4IIEG.js +29 -0
  39. package/dist/chunk-IZZ4IIEG.js.map +1 -0
  40. package/dist/chunk-JMVWYAHT.js +63 -0
  41. package/dist/chunk-JMVWYAHT.js.map +1 -0
  42. package/dist/chunk-LAPCUV4D.js +191 -0
  43. package/dist/chunk-LAPCUV4D.js.map +1 -0
  44. package/dist/chunk-LGUI3PMO.js +109 -0
  45. package/dist/chunk-LGUI3PMO.js.map +1 -0
  46. package/dist/chunk-MM7NK5N2.js +4542 -0
  47. package/dist/chunk-MM7NK5N2.js.map +1 -0
  48. package/dist/chunk-N6S7ZRIL.js +31 -0
  49. package/dist/chunk-N6S7ZRIL.js.map +1 -0
  50. package/dist/chunk-O4D67NN7.js +24 -0
  51. package/dist/chunk-O4D67NN7.js.map +1 -0
  52. package/dist/chunk-ODUOU55D.js +56 -0
  53. package/dist/chunk-ODUOU55D.js.map +1 -0
  54. package/dist/chunk-OGJIZ6QH.js +497 -0
  55. package/dist/chunk-OGJIZ6QH.js.map +1 -0
  56. package/dist/chunk-OMV7TLWD.js +340 -0
  57. package/dist/chunk-OMV7TLWD.js.map +1 -0
  58. package/dist/chunk-PBEHPQLK.js +146 -0
  59. package/dist/chunk-PBEHPQLK.js.map +1 -0
  60. package/dist/chunk-QPTOIZAT.js +32 -0
  61. package/dist/chunk-QPTOIZAT.js.map +1 -0
  62. package/dist/chunk-R3XFQKPG.js +111 -0
  63. package/dist/chunk-R3XFQKPG.js.map +1 -0
  64. package/dist/chunk-R74PZWQS.js +69 -0
  65. package/dist/chunk-R74PZWQS.js.map +1 -0
  66. package/dist/chunk-SO22IQPY.js +45 -0
  67. package/dist/chunk-SO22IQPY.js.map +1 -0
  68. package/dist/chunk-T4EXUIBY.js +19 -0
  69. package/dist/chunk-T4EXUIBY.js.map +1 -0
  70. package/dist/chunk-U3IGFMCY.js +31 -0
  71. package/dist/chunk-U3IGFMCY.js.map +1 -0
  72. package/dist/chunk-UICL22RT.js +318 -0
  73. package/dist/chunk-UICL22RT.js.map +1 -0
  74. package/dist/chunk-UX2H2K2G.js +183 -0
  75. package/dist/chunk-UX2H2K2G.js.map +1 -0
  76. package/dist/chunk-W2ZSCZ2U.js +93 -0
  77. package/dist/chunk-W2ZSCZ2U.js.map +1 -0
  78. package/dist/chunk-WEUVWHMA.js +189 -0
  79. package/dist/chunk-WEUVWHMA.js.map +1 -0
  80. package/dist/chunk-XY3XDVMI.js +15599 -0
  81. package/dist/chunk-XY3XDVMI.js.map +1 -0
  82. package/dist/chunk-YND42IXK.js +233 -0
  83. package/dist/chunk-YND42IXK.js.map +1 -0
  84. package/dist/chunk-YZTWZVGX.js +41 -0
  85. package/dist/chunk-YZTWZVGX.js.map +1 -0
  86. package/dist/chunk-Z4TWOP3H.js +81 -0
  87. package/dist/chunk-Z4TWOP3H.js.map +1 -0
  88. package/dist/cli/defaults/agent-mappings.yaml +271 -0
  89. package/dist/commands/build/marketplace.js +252 -0
  90. package/dist/commands/build/marketplace.js.map +1 -0
  91. package/dist/commands/build/plugins.js +114 -0
  92. package/dist/commands/build/plugins.js.map +1 -0
  93. package/dist/commands/build/stack.js +153 -0
  94. package/dist/commands/build/stack.js.map +1 -0
  95. package/dist/commands/compile.js +354 -0
  96. package/dist/commands/compile.js.map +1 -0
  97. package/dist/commands/config/get.js +61 -0
  98. package/dist/commands/config/get.js.map +1 -0
  99. package/dist/commands/config/index.js +23 -0
  100. package/dist/commands/config/index.js.map +1 -0
  101. package/dist/commands/config/path.js +34 -0
  102. package/dist/commands/config/path.js.map +1 -0
  103. package/dist/commands/config/set-project.js +61 -0
  104. package/dist/commands/config/set-project.js.map +1 -0
  105. package/dist/commands/config/show.js +14 -0
  106. package/dist/commands/config/show.js.map +1 -0
  107. package/dist/commands/config/unset-project.js +57 -0
  108. package/dist/commands/config/unset-project.js.map +1 -0
  109. package/dist/commands/diff.js +742 -0
  110. package/dist/commands/diff.js.map +1 -0
  111. package/dist/commands/doctor.js +370 -0
  112. package/dist/commands/doctor.js.map +1 -0
  113. package/dist/commands/edit.js +301 -0
  114. package/dist/commands/edit.js.map +1 -0
  115. package/dist/commands/eject.js +262 -0
  116. package/dist/commands/eject.js.map +1 -0
  117. package/dist/commands/import/skill.js +361 -0
  118. package/dist/commands/import/skill.js.map +1 -0
  119. package/dist/commands/info.js +217 -0
  120. package/dist/commands/info.js.map +1 -0
  121. package/dist/commands/init.js +443 -0
  122. package/dist/commands/init.js.map +1 -0
  123. package/dist/commands/list.js +49 -0
  124. package/dist/commands/list.js.map +1 -0
  125. package/dist/commands/new/agent.js +224 -0
  126. package/dist/commands/new/agent.js.map +1 -0
  127. package/dist/commands/new/skill.js +199 -0
  128. package/dist/commands/new/skill.js.map +1 -0
  129. package/dist/commands/outdated.js +176 -0
  130. package/dist/commands/outdated.js.map +1 -0
  131. package/dist/commands/search.js +288 -0
  132. package/dist/commands/search.js.map +1 -0
  133. package/dist/commands/uninstall.js +302 -0
  134. package/dist/commands/uninstall.js.map +1 -0
  135. package/dist/commands/update.js +304 -0
  136. package/dist/commands/update.js.map +1 -0
  137. package/dist/commands/validate.js +389 -0
  138. package/dist/commands/validate.js.map +1 -0
  139. package/dist/commands/version/bump.js +79 -0
  140. package/dist/commands/version/bump.js.map +1 -0
  141. package/dist/commands/version/index.js +54 -0
  142. package/dist/commands/version/index.js.map +1 -0
  143. package/dist/commands/version/set.js +86 -0
  144. package/dist/commands/version/set.js.map +1 -0
  145. package/dist/commands/version/show.js +54 -0
  146. package/dist/commands/version/show.js.map +1 -0
  147. package/dist/components/common/confirm.js +9 -0
  148. package/dist/components/common/confirm.js.map +1 -0
  149. package/dist/components/common/confirm.test.js +203 -0
  150. package/dist/components/common/confirm.test.js.map +1 -0
  151. package/dist/components/common/message.js +20 -0
  152. package/dist/components/common/message.js.map +1 -0
  153. package/dist/components/common/spinner.js +14 -0
  154. package/dist/components/common/spinner.js.map +1 -0
  155. package/dist/components/skill-search/skill-search.js +12 -0
  156. package/dist/components/skill-search/skill-search.js.map +1 -0
  157. package/dist/components/wizard/category-grid.js +11 -0
  158. package/dist/components/wizard/category-grid.js.map +1 -0
  159. package/dist/components/wizard/category-grid.test.js +997 -0
  160. package/dist/components/wizard/category-grid.test.js.map +1 -0
  161. package/dist/components/wizard/domain-selection.js +14 -0
  162. package/dist/components/wizard/domain-selection.js.map +1 -0
  163. package/dist/components/wizard/help-modal.js +10 -0
  164. package/dist/components/wizard/help-modal.js.map +1 -0
  165. package/dist/components/wizard/menu-item.js +10 -0
  166. package/dist/components/wizard/menu-item.js.map +1 -0
  167. package/dist/components/wizard/search-modal.js +11 -0
  168. package/dist/components/wizard/search-modal.js.map +1 -0
  169. package/dist/components/wizard/search-modal.test.js +218 -0
  170. package/dist/components/wizard/search-modal.test.js.map +1 -0
  171. package/dist/components/wizard/section-progress.js +10 -0
  172. package/dist/components/wizard/section-progress.js.map +1 -0
  173. package/dist/components/wizard/section-progress.test.js +192 -0
  174. package/dist/components/wizard/section-progress.test.js.map +1 -0
  175. package/dist/components/wizard/source-grid.js +14 -0
  176. package/dist/components/wizard/source-grid.js.map +1 -0
  177. package/dist/components/wizard/source-grid.test.js +504 -0
  178. package/dist/components/wizard/source-grid.test.js.map +1 -0
  179. package/dist/components/wizard/stack-selection.js +17 -0
  180. package/dist/components/wizard/stack-selection.js.map +1 -0
  181. package/dist/components/wizard/step-build.js +17 -0
  182. package/dist/components/wizard/step-build.js.map +1 -0
  183. package/dist/components/wizard/step-build.test.js +600 -0
  184. package/dist/components/wizard/step-build.test.js.map +1 -0
  185. package/dist/components/wizard/step-confirm.js +12 -0
  186. package/dist/components/wizard/step-confirm.js.map +1 -0
  187. package/dist/components/wizard/step-confirm.test.js +366 -0
  188. package/dist/components/wizard/step-confirm.test.js.map +1 -0
  189. package/dist/components/wizard/step-refine.js +10 -0
  190. package/dist/components/wizard/step-refine.js.map +1 -0
  191. package/dist/components/wizard/step-refine.test.js +237 -0
  192. package/dist/components/wizard/step-refine.test.js.map +1 -0
  193. package/dist/components/wizard/step-settings.js +17 -0
  194. package/dist/components/wizard/step-settings.js.map +1 -0
  195. package/dist/components/wizard/step-settings.test.js +243 -0
  196. package/dist/components/wizard/step-settings.test.js.map +1 -0
  197. package/dist/components/wizard/step-sources.js +20 -0
  198. package/dist/components/wizard/step-sources.js.map +1 -0
  199. package/dist/components/wizard/step-sources.test.js +294 -0
  200. package/dist/components/wizard/step-sources.test.js.map +1 -0
  201. package/dist/components/wizard/step-stack.js +19 -0
  202. package/dist/components/wizard/step-stack.js.map +1 -0
  203. package/dist/components/wizard/step-stack.test.js +357 -0
  204. package/dist/components/wizard/step-stack.test.js.map +1 -0
  205. package/dist/components/wizard/view-title.js +10 -0
  206. package/dist/components/wizard/view-title.js.map +1 -0
  207. package/dist/components/wizard/wizard-layout.js +16 -0
  208. package/dist/components/wizard/wizard-layout.js.map +1 -0
  209. package/dist/components/wizard/wizard-tabs.js +14 -0
  210. package/dist/components/wizard/wizard-tabs.js.map +1 -0
  211. package/dist/components/wizard/wizard-tabs.test.js +294 -0
  212. package/dist/components/wizard/wizard-tabs.test.js.map +1 -0
  213. package/dist/components/wizard/wizard.js +35 -0
  214. package/dist/components/wizard/wizard.js.map +1 -0
  215. package/dist/config/skills-matrix.yaml +926 -0
  216. package/dist/config/stacks.yaml +2186 -0
  217. package/dist/hooks/init.js +40 -0
  218. package/dist/hooks/init.js.map +1 -0
  219. package/dist/index.js +10 -0
  220. package/dist/index.js.map +1 -0
  221. package/dist/magic-string.es-RGXYGAW3.js +1316 -0
  222. package/dist/magic-string.es-RGXYGAW3.js.map +1 -0
  223. package/dist/source-manager-SBPPLOQQ.js +16 -0
  224. package/dist/source-manager-SBPPLOQQ.js.map +1 -0
  225. package/dist/src/agents/_templates/agent.liquid +140 -0
  226. package/dist/src/agents/developer/api-developer/agent.yaml +12 -0
  227. package/dist/src/agents/developer/api-developer/critical-reminders.md +23 -0
  228. package/dist/src/agents/developer/api-developer/critical-requirements.md +11 -0
  229. package/dist/src/agents/developer/api-developer/examples.md +72 -0
  230. package/dist/src/agents/developer/api-developer/intro.md +22 -0
  231. package/dist/src/agents/developer/api-developer/output-format.md +359 -0
  232. package/dist/src/agents/developer/api-developer/workflow.md +471 -0
  233. package/dist/src/agents/developer/cli-developer/agent.yaml +12 -0
  234. package/dist/src/agents/developer/cli-developer/critical-reminders.md +28 -0
  235. package/dist/src/agents/developer/cli-developer/critical-requirements.md +15 -0
  236. package/dist/src/agents/developer/cli-developer/examples.md +68 -0
  237. package/dist/src/agents/developer/cli-developer/intro.md +23 -0
  238. package/dist/src/agents/developer/cli-developer/output-format.md +216 -0
  239. package/dist/src/agents/developer/cli-developer/workflow.md +509 -0
  240. package/dist/src/agents/developer/web-architecture/agent.yaml +12 -0
  241. package/dist/src/agents/developer/web-architecture/critical-reminders.md +27 -0
  242. package/dist/src/agents/developer/web-architecture/critical-requirements.md +35 -0
  243. package/dist/src/agents/developer/web-architecture/examples.md +187 -0
  244. package/dist/src/agents/developer/web-architecture/intro.md +35 -0
  245. package/dist/src/agents/developer/web-architecture/output-format.md +261 -0
  246. package/dist/src/agents/developer/web-architecture/workflow.md +599 -0
  247. package/dist/src/agents/developer/web-developer/agent.yaml +12 -0
  248. package/dist/src/agents/developer/web-developer/critical-reminders.md +17 -0
  249. package/dist/src/agents/developer/web-developer/critical-requirements.md +15 -0
  250. package/dist/src/agents/developer/web-developer/examples.md +109 -0
  251. package/dist/src/agents/developer/web-developer/intro.md +5 -0
  252. package/dist/src/agents/developer/web-developer/output-format.md +213 -0
  253. package/dist/src/agents/developer/web-developer/workflow.md +459 -0
  254. package/dist/src/agents/meta/agent-summoner/agent.yaml +12 -0
  255. package/dist/src/agents/meta/agent-summoner/critical-reminders.md +31 -0
  256. package/dist/src/agents/meta/agent-summoner/critical-requirements.md +27 -0
  257. package/dist/src/agents/meta/agent-summoner/examples.md +176 -0
  258. package/dist/src/agents/meta/agent-summoner/intro.md +9 -0
  259. package/dist/src/agents/meta/agent-summoner/output-format.md +115 -0
  260. package/dist/src/agents/meta/agent-summoner/workflow.md +1540 -0
  261. package/dist/src/agents/meta/documentor/agent.yaml +11 -0
  262. package/dist/src/agents/meta/documentor/critical-reminders.md +23 -0
  263. package/dist/src/agents/meta/documentor/critical-requirements.md +13 -0
  264. package/dist/src/agents/meta/documentor/examples.md +147 -0
  265. package/dist/src/agents/meta/documentor/intro.md +11 -0
  266. package/dist/src/agents/meta/documentor/output-format.md +237 -0
  267. package/dist/src/agents/meta/documentor/workflow.md +1271 -0
  268. package/dist/src/agents/meta/skill-summoner/agent.yaml +13 -0
  269. package/dist/src/agents/meta/skill-summoner/critical-reminders.md +73 -0
  270. package/dist/src/agents/meta/skill-summoner/critical-requirements.md +62 -0
  271. package/dist/src/agents/meta/skill-summoner/examples.md +116 -0
  272. package/dist/src/agents/meta/skill-summoner/intro.md +5 -0
  273. package/dist/src/agents/meta/skill-summoner/output-format.md +279 -0
  274. package/dist/src/agents/meta/skill-summoner/workflow.md +1485 -0
  275. package/dist/src/agents/migration/cli-migrator/agent.yaml +12 -0
  276. package/dist/src/agents/migration/cli-migrator/anti-patterns.md +158 -0
  277. package/dist/src/agents/migration/cli-migrator/conversion-mappings.md +63 -0
  278. package/dist/src/agents/migration/cli-migrator/critical-reminders.md +17 -0
  279. package/dist/src/agents/migration/cli-migrator/critical-requirements.md +13 -0
  280. package/dist/src/agents/migration/cli-migrator/intro.md +15 -0
  281. package/dist/src/agents/migration/cli-migrator/output-format.md +164 -0
  282. package/dist/src/agents/migration/cli-migrator/workflow.md +230 -0
  283. package/dist/src/agents/pattern/pattern-scout/agent.yaml +10 -0
  284. package/dist/src/agents/pattern/pattern-scout/critical-reminders.md +58 -0
  285. package/dist/src/agents/pattern/pattern-scout/critical-requirements.md +17 -0
  286. package/dist/src/agents/pattern/pattern-scout/examples.md +93 -0
  287. package/dist/src/agents/pattern/pattern-scout/intro.md +3 -0
  288. package/dist/src/agents/pattern/pattern-scout/output-format.md +196 -0
  289. package/dist/src/agents/pattern/pattern-scout/workflow.md +1901 -0
  290. package/dist/src/agents/pattern/web-pattern-critique/agent.yaml +12 -0
  291. package/dist/src/agents/pattern/web-pattern-critique/critical-reminders.md +13 -0
  292. package/dist/src/agents/pattern/web-pattern-critique/critical-requirements.md +11 -0
  293. package/dist/src/agents/pattern/web-pattern-critique/examples.md +56 -0
  294. package/dist/src/agents/pattern/web-pattern-critique/intro.md +5 -0
  295. package/dist/src/agents/pattern/web-pattern-critique/output-format.md +257 -0
  296. package/dist/src/agents/pattern/web-pattern-critique/workflow.md +674 -0
  297. package/dist/src/agents/planning/web-pm/agent.yaml +12 -0
  298. package/dist/src/agents/planning/web-pm/critical-reminders.md +21 -0
  299. package/dist/src/agents/planning/web-pm/critical-requirements.md +17 -0
  300. package/dist/src/agents/planning/web-pm/examples.md +85 -0
  301. package/dist/src/agents/planning/web-pm/intro.md +3 -0
  302. package/dist/src/agents/planning/web-pm/output-format.md +228 -0
  303. package/dist/src/agents/planning/web-pm/workflow.md +393 -0
  304. package/dist/src/agents/researcher/api-researcher/agent.yaml +10 -0
  305. package/dist/src/agents/researcher/api-researcher/critical-reminders.md +27 -0
  306. package/dist/src/agents/researcher/api-researcher/critical-requirements.md +13 -0
  307. package/dist/src/agents/researcher/api-researcher/examples.md +116 -0
  308. package/dist/src/agents/researcher/api-researcher/intro.md +32 -0
  309. package/dist/src/agents/researcher/api-researcher/output-format.md +135 -0
  310. package/dist/src/agents/researcher/api-researcher/workflow.md +261 -0
  311. package/dist/src/agents/researcher/web-researcher/agent.yaml +10 -0
  312. package/dist/src/agents/researcher/web-researcher/critical-reminders.md +23 -0
  313. package/dist/src/agents/researcher/web-researcher/critical-requirements.md +11 -0
  314. package/dist/src/agents/researcher/web-researcher/examples.md +126 -0
  315. package/dist/src/agents/researcher/web-researcher/intro.md +31 -0
  316. package/dist/src/agents/researcher/web-researcher/output-format.md +112 -0
  317. package/dist/src/agents/researcher/web-researcher/workflow.md +322 -0
  318. package/dist/src/agents/reviewer/api-reviewer/agent.yaml +12 -0
  319. package/dist/src/agents/reviewer/api-reviewer/critical-reminders.md +16 -0
  320. package/dist/src/agents/reviewer/api-reviewer/critical-requirements.md +13 -0
  321. package/dist/src/agents/reviewer/api-reviewer/examples.md +54 -0
  322. package/dist/src/agents/reviewer/api-reviewer/intro.md +22 -0
  323. package/dist/src/agents/reviewer/api-reviewer/output-format.md +288 -0
  324. package/dist/src/agents/reviewer/api-reviewer/workflow.md +369 -0
  325. package/dist/src/agents/reviewer/cli-reviewer/agent.yaml +12 -0
  326. package/dist/src/agents/reviewer/cli-reviewer/critical-reminders.md +17 -0
  327. package/dist/src/agents/reviewer/cli-reviewer/critical-requirements.md +13 -0
  328. package/dist/src/agents/reviewer/cli-reviewer/examples.md +83 -0
  329. package/dist/src/agents/reviewer/cli-reviewer/intro.md +21 -0
  330. package/dist/src/agents/reviewer/cli-reviewer/output-format.md +330 -0
  331. package/dist/src/agents/reviewer/cli-reviewer/workflow.md +294 -0
  332. package/dist/src/agents/reviewer/web-reviewer/agent.yaml +12 -0
  333. package/dist/src/agents/reviewer/web-reviewer/critical-reminders.md +17 -0
  334. package/dist/src/agents/reviewer/web-reviewer/critical-requirements.md +11 -0
  335. package/dist/src/agents/reviewer/web-reviewer/examples.md +79 -0
  336. package/dist/src/agents/reviewer/web-reviewer/intro.md +20 -0
  337. package/dist/src/agents/reviewer/web-reviewer/output-format.md +253 -0
  338. package/dist/src/agents/reviewer/web-reviewer/workflow.md +228 -0
  339. package/dist/src/agents/tester/cli-tester/agent.yaml +12 -0
  340. package/dist/src/agents/tester/cli-tester/critical-reminders.md +19 -0
  341. package/dist/src/agents/tester/cli-tester/critical-requirements.md +17 -0
  342. package/dist/src/agents/tester/cli-tester/examples.md +80 -0
  343. package/dist/src/agents/tester/cli-tester/intro.md +19 -0
  344. package/dist/src/agents/tester/cli-tester/output-format.md +232 -0
  345. package/dist/src/agents/tester/cli-tester/workflow.md +304 -0
  346. package/dist/src/agents/tester/web-tester/agent.yaml +12 -0
  347. package/dist/src/agents/tester/web-tester/critical-reminders.md +15 -0
  348. package/dist/src/agents/tester/web-tester/critical-requirements.md +11 -0
  349. package/dist/src/agents/tester/web-tester/examples.md +68 -0
  350. package/dist/src/agents/tester/web-tester/intro.md +18 -0
  351. package/dist/src/agents/tester/web-tester/output-format.md +252 -0
  352. package/dist/src/agents/tester/web-tester/workflow.md +507 -0
  353. package/dist/stores/wizard-store.js +13 -0
  354. package/dist/stores/wizard-store.js.map +1 -0
  355. package/dist/stores/wizard-store.test.js +689 -0
  356. package/dist/stores/wizard-store.test.js.map +1 -0
  357. package/package.json +134 -0
  358. package/src/agents/_templates/agent.liquid +140 -0
  359. package/src/agents/developer/api-developer/agent.yaml +12 -0
  360. package/src/agents/developer/api-developer/critical-reminders.md +23 -0
  361. package/src/agents/developer/api-developer/critical-requirements.md +11 -0
  362. package/src/agents/developer/api-developer/examples.md +72 -0
  363. package/src/agents/developer/api-developer/intro.md +22 -0
  364. package/src/agents/developer/api-developer/output-format.md +359 -0
  365. package/src/agents/developer/api-developer/workflow.md +471 -0
  366. package/src/agents/developer/cli-developer/agent.yaml +12 -0
  367. package/src/agents/developer/cli-developer/critical-reminders.md +28 -0
  368. package/src/agents/developer/cli-developer/critical-requirements.md +15 -0
  369. package/src/agents/developer/cli-developer/examples.md +68 -0
  370. package/src/agents/developer/cli-developer/intro.md +23 -0
  371. package/src/agents/developer/cli-developer/output-format.md +216 -0
  372. package/src/agents/developer/cli-developer/workflow.md +509 -0
  373. package/src/agents/developer/web-architecture/agent.yaml +12 -0
  374. package/src/agents/developer/web-architecture/critical-reminders.md +27 -0
  375. package/src/agents/developer/web-architecture/critical-requirements.md +35 -0
  376. package/src/agents/developer/web-architecture/examples.md +187 -0
  377. package/src/agents/developer/web-architecture/intro.md +35 -0
  378. package/src/agents/developer/web-architecture/output-format.md +261 -0
  379. package/src/agents/developer/web-architecture/workflow.md +599 -0
  380. package/src/agents/developer/web-developer/agent.yaml +12 -0
  381. package/src/agents/developer/web-developer/critical-reminders.md +17 -0
  382. package/src/agents/developer/web-developer/critical-requirements.md +15 -0
  383. package/src/agents/developer/web-developer/examples.md +109 -0
  384. package/src/agents/developer/web-developer/intro.md +5 -0
  385. package/src/agents/developer/web-developer/output-format.md +213 -0
  386. package/src/agents/developer/web-developer/workflow.md +459 -0
  387. package/src/agents/meta/agent-summoner/agent.yaml +12 -0
  388. package/src/agents/meta/agent-summoner/critical-reminders.md +31 -0
  389. package/src/agents/meta/agent-summoner/critical-requirements.md +27 -0
  390. package/src/agents/meta/agent-summoner/examples.md +176 -0
  391. package/src/agents/meta/agent-summoner/intro.md +9 -0
  392. package/src/agents/meta/agent-summoner/output-format.md +115 -0
  393. package/src/agents/meta/agent-summoner/workflow.md +1540 -0
  394. package/src/agents/meta/documentor/agent.yaml +11 -0
  395. package/src/agents/meta/documentor/critical-reminders.md +23 -0
  396. package/src/agents/meta/documentor/critical-requirements.md +13 -0
  397. package/src/agents/meta/documentor/examples.md +147 -0
  398. package/src/agents/meta/documentor/intro.md +11 -0
  399. package/src/agents/meta/documentor/output-format.md +237 -0
  400. package/src/agents/meta/documentor/workflow.md +1271 -0
  401. package/src/agents/meta/skill-summoner/agent.yaml +13 -0
  402. package/src/agents/meta/skill-summoner/critical-reminders.md +73 -0
  403. package/src/agents/meta/skill-summoner/critical-requirements.md +62 -0
  404. package/src/agents/meta/skill-summoner/examples.md +116 -0
  405. package/src/agents/meta/skill-summoner/intro.md +5 -0
  406. package/src/agents/meta/skill-summoner/output-format.md +279 -0
  407. package/src/agents/meta/skill-summoner/workflow.md +1485 -0
  408. package/src/agents/migration/cli-migrator/agent.yaml +12 -0
  409. package/src/agents/migration/cli-migrator/anti-patterns.md +158 -0
  410. package/src/agents/migration/cli-migrator/conversion-mappings.md +63 -0
  411. package/src/agents/migration/cli-migrator/critical-reminders.md +17 -0
  412. package/src/agents/migration/cli-migrator/critical-requirements.md +13 -0
  413. package/src/agents/migration/cli-migrator/intro.md +15 -0
  414. package/src/agents/migration/cli-migrator/output-format.md +164 -0
  415. package/src/agents/migration/cli-migrator/workflow.md +230 -0
  416. package/src/agents/pattern/pattern-scout/agent.yaml +10 -0
  417. package/src/agents/pattern/pattern-scout/critical-reminders.md +58 -0
  418. package/src/agents/pattern/pattern-scout/critical-requirements.md +17 -0
  419. package/src/agents/pattern/pattern-scout/examples.md +93 -0
  420. package/src/agents/pattern/pattern-scout/intro.md +3 -0
  421. package/src/agents/pattern/pattern-scout/output-format.md +196 -0
  422. package/src/agents/pattern/pattern-scout/workflow.md +1901 -0
  423. package/src/agents/pattern/web-pattern-critique/agent.yaml +12 -0
  424. package/src/agents/pattern/web-pattern-critique/critical-reminders.md +13 -0
  425. package/src/agents/pattern/web-pattern-critique/critical-requirements.md +11 -0
  426. package/src/agents/pattern/web-pattern-critique/examples.md +56 -0
  427. package/src/agents/pattern/web-pattern-critique/intro.md +5 -0
  428. package/src/agents/pattern/web-pattern-critique/output-format.md +257 -0
  429. package/src/agents/pattern/web-pattern-critique/workflow.md +674 -0
  430. package/src/agents/planning/web-pm/agent.yaml +12 -0
  431. package/src/agents/planning/web-pm/critical-reminders.md +21 -0
  432. package/src/agents/planning/web-pm/critical-requirements.md +17 -0
  433. package/src/agents/planning/web-pm/examples.md +85 -0
  434. package/src/agents/planning/web-pm/intro.md +3 -0
  435. package/src/agents/planning/web-pm/output-format.md +228 -0
  436. package/src/agents/planning/web-pm/workflow.md +393 -0
  437. package/src/agents/researcher/api-researcher/agent.yaml +10 -0
  438. package/src/agents/researcher/api-researcher/critical-reminders.md +27 -0
  439. package/src/agents/researcher/api-researcher/critical-requirements.md +13 -0
  440. package/src/agents/researcher/api-researcher/examples.md +116 -0
  441. package/src/agents/researcher/api-researcher/intro.md +32 -0
  442. package/src/agents/researcher/api-researcher/output-format.md +135 -0
  443. package/src/agents/researcher/api-researcher/workflow.md +261 -0
  444. package/src/agents/researcher/web-researcher/agent.yaml +10 -0
  445. package/src/agents/researcher/web-researcher/critical-reminders.md +23 -0
  446. package/src/agents/researcher/web-researcher/critical-requirements.md +11 -0
  447. package/src/agents/researcher/web-researcher/examples.md +126 -0
  448. package/src/agents/researcher/web-researcher/intro.md +31 -0
  449. package/src/agents/researcher/web-researcher/output-format.md +112 -0
  450. package/src/agents/researcher/web-researcher/workflow.md +322 -0
  451. package/src/agents/reviewer/api-reviewer/agent.yaml +12 -0
  452. package/src/agents/reviewer/api-reviewer/critical-reminders.md +16 -0
  453. package/src/agents/reviewer/api-reviewer/critical-requirements.md +13 -0
  454. package/src/agents/reviewer/api-reviewer/examples.md +54 -0
  455. package/src/agents/reviewer/api-reviewer/intro.md +22 -0
  456. package/src/agents/reviewer/api-reviewer/output-format.md +288 -0
  457. package/src/agents/reviewer/api-reviewer/workflow.md +369 -0
  458. package/src/agents/reviewer/cli-reviewer/agent.yaml +12 -0
  459. package/src/agents/reviewer/cli-reviewer/critical-reminders.md +17 -0
  460. package/src/agents/reviewer/cli-reviewer/critical-requirements.md +13 -0
  461. package/src/agents/reviewer/cli-reviewer/examples.md +83 -0
  462. package/src/agents/reviewer/cli-reviewer/intro.md +21 -0
  463. package/src/agents/reviewer/cli-reviewer/output-format.md +330 -0
  464. package/src/agents/reviewer/cli-reviewer/workflow.md +294 -0
  465. package/src/agents/reviewer/web-reviewer/agent.yaml +12 -0
  466. package/src/agents/reviewer/web-reviewer/critical-reminders.md +17 -0
  467. package/src/agents/reviewer/web-reviewer/critical-requirements.md +11 -0
  468. package/src/agents/reviewer/web-reviewer/examples.md +79 -0
  469. package/src/agents/reviewer/web-reviewer/intro.md +20 -0
  470. package/src/agents/reviewer/web-reviewer/output-format.md +253 -0
  471. package/src/agents/reviewer/web-reviewer/workflow.md +228 -0
  472. package/src/agents/tester/cli-tester/agent.yaml +12 -0
  473. package/src/agents/tester/cli-tester/critical-reminders.md +19 -0
  474. package/src/agents/tester/cli-tester/critical-requirements.md +17 -0
  475. package/src/agents/tester/cli-tester/examples.md +80 -0
  476. package/src/agents/tester/cli-tester/intro.md +19 -0
  477. package/src/agents/tester/cli-tester/output-format.md +232 -0
  478. package/src/agents/tester/cli-tester/workflow.md +304 -0
  479. package/src/agents/tester/web-tester/agent.yaml +12 -0
  480. package/src/agents/tester/web-tester/critical-reminders.md +15 -0
  481. package/src/agents/tester/web-tester/critical-requirements.md +11 -0
  482. package/src/agents/tester/web-tester/examples.md +68 -0
  483. package/src/agents/tester/web-tester/intro.md +18 -0
  484. package/src/agents/tester/web-tester/output-format.md +252 -0
  485. package/src/agents/tester/web-tester/workflow.md +507 -0
  486. package/src/schemas/agent-frontmatter.schema.json +84 -0
  487. package/src/schemas/agent.schema.json +93 -0
  488. package/src/schemas/hooks.schema.json +47 -0
  489. package/src/schemas/marketplace.schema.json +119 -0
  490. package/src/schemas/metadata.schema.json +113 -0
  491. package/src/schemas/plugin.schema.json +130 -0
  492. package/src/schemas/project-config.schema.json +125 -0
  493. package/src/schemas/project-source-config.schema.json +81 -0
  494. package/src/schemas/skill-frontmatter.schema.json +42 -0
  495. package/src/schemas/skills-matrix.schema.json +467 -0
  496. package/src/schemas/stack.schema.json +191 -0
  497. package/src/schemas/stacks.schema.json +111 -0
@@ -0,0 +1,393 @@
1
+ <self_correction_triggers>
2
+
3
+ ## Self-Correction Triggers
4
+
5
+ **If you notice yourself:**
6
+
7
+ - **Creating specs without reading existing code first** → Stop. Use your context engine to research the codebase.
8
+ - **Providing vague pattern references** → Stop. Find specific files with line numbers.
9
+ - **Including implementation details (HOW)** → Stop. Remove code examples, function signatures. Only specify WHAT and WHERE.
10
+ - **Missing success criteria** → Stop. Add measurable outcomes before finalizing the spec.
11
+ - **Assuming patterns exist** → Stop. Verify the pattern actually exists in the codebase.
12
+ - **Making scope too broad** → Stop. Define what is explicitly OUT of scope.
13
+
14
+ </self_correction_triggers>
15
+
16
+ ---
17
+
18
+ ## Your Investigation Process
19
+
20
+ Before creating any specification:
21
+
22
+ ```xml
23
+ <research_workflow>
24
+ 1. **Understand the business goal**
25
+ - What problem are we solving?
26
+ - Why does this matter?
27
+ - What's the user impact?
28
+
29
+ 2. **Research similar features**
30
+ - Use your context engine to find related functionality
31
+ - Identify the patterns currently in use
32
+ - Note which approaches work well vs. poorly
33
+
34
+ 3. **Identify integration points**
35
+ - What existing code will this touch?
36
+ - What utilities or components can be reused?
37
+ - What should NOT be modified?
38
+
39
+ 4. **Map the minimal path**
40
+ - What's the smallest change that achieves the goal?
41
+ - What files need to be modified?
42
+ - What can leverage existing patterns?
43
+
44
+ 5. **Define clear success**
45
+ - How will we know this is done correctly?
46
+ - What are the measurable outcomes?
47
+ - What are the constraints?
48
+ </research_workflow>
49
+ ```
50
+
51
+ ---
52
+
53
+ <post_action_reflection>
54
+
55
+ ## Post-Action Reflection
56
+
57
+ **After completing each specification, evaluate:**
58
+
59
+ 1. Did I research the codebase before writing? Can I point to specific files I examined?
60
+ 2. Are all pattern references specific (file + line numbers)?
61
+ 3. Are success criteria measurable and verifiable?
62
+ 4. Is scope clearly bounded (what's IN and what's OUT)?
63
+ 5. Did I avoid implementation details (no HOW, only WHAT and WHERE)?
64
+ 6. Would a developer agent be able to implement this autonomously?
65
+
66
+ </post_action_reflection>
67
+
68
+ ---
69
+
70
+ <progress_tracking>
71
+
72
+ ## Progress Tracking
73
+
74
+ **For complex specifications spanning multiple sessions:**
75
+
76
+ 1. **Track research findings** after examining each area of the codebase
77
+ 2. **Note patterns discovered** with file references
78
+ 3. **Document scope decisions** and rationale
79
+ 4. **Record open questions** for user clarification
80
+ 5. **Log specification sections completed** vs remaining
81
+
82
+ </progress_tracking>
83
+
84
+ ---
85
+
86
+ ## Your Specification Approach
87
+
88
+ **1. Be Explicit About Patterns**
89
+
90
+ BAD: "Implement authentication following our standard approach"
91
+ GOOD: "Follow the authentication pattern in auth.py, lines 45-67. Specifically, use the JWT validation middleware and the same error handling structure."
92
+
93
+ **2. Reference Concrete Examples**
94
+
95
+ BAD: "Use proper form handling"
96
+ GOOD: "Follow the form pattern from SettingsForm.tsx (lines 45-89). Use the same validation approach, error display, and success messaging."
97
+
98
+ **3. Minimize Scope**
99
+
100
+ BAD: "Build a comprehensive user management system"
101
+ GOOD: "Add profile editing capability (name, email, bio only). Future: avatar upload, preferences."
102
+
103
+ **4. Make Constraints Explicit**
104
+
105
+ BAD: "Don't break anything"
106
+ GOOD: "Do not modify: authentication system (auth.py), existing stores (stores/), shared components (components/shared/)"
107
+
108
+ **5. Define Measurable Success**
109
+
110
+ BAD: "Feature should work well"
111
+ GOOD: "User can edit profile, validation prevents invalid emails, success message appears, all tests pass, changes limited to profile/ directory"
112
+
113
+ ---
114
+
115
+ ## Coordination with Claude Code
116
+
117
+ Your specifications are passed to Claude Code agents via markdown files in `/specs/_active/`.
118
+
119
+ **File naming:** `REL-XXX-feature-name.md` (matches Linear issue identifier)
120
+
121
+ **Handoff process:**
122
+
123
+ 1. You research and create detailed specification
124
+ 2. Save to `/specs/_active/current.md`
125
+ 3. Claude Code reads this file as its source of truth
126
+ 4. Claude Code subagents execute based on your spec
127
+
128
+ **What Claude Code needs from you:**
129
+
130
+ - Specific file references (not vague descriptions)
131
+ - Exact patterns to follow (with line numbers)
132
+ - Clear scope boundaries (what's in/out)
133
+ - Explicit success criteria (measurable outcomes)
134
+ - Context about WHY (helps them make good decisions)
135
+
136
+ ---
137
+
138
+ <retrieval_strategy>
139
+
140
+ ## Retrieval Strategy
141
+
142
+ **Just-in-time loading for specification research:**
143
+
144
+ 1. **Start broad** - Use context engine to understand the feature area
145
+ 2. **Identify patterns** - Find similar features already implemented
146
+ 3. **Get specific** - Read the exact files you'll reference in the spec
147
+ 4. **Verify existence** - Confirm patterns exist before referencing them
148
+
149
+ **Tool Decision Framework:**
150
+
151
+ ```
152
+ Need to find related features?
153
+ -> Use context engine for semantic understanding
154
+ -> Follow up with specific file reads
155
+
156
+ Need to verify a pattern?
157
+ -> Read the specific file
158
+ -> Note exact line numbers for spec
159
+
160
+ Need to understand dependencies?
161
+ -> Trace imports in related files
162
+ -> Document integration points
163
+ ```
164
+
165
+ Preserve context by loading specific content when needed, not everything upfront.
166
+
167
+ </retrieval_strategy>
168
+
169
+ ---
170
+
171
+ ## Your Documentation Responsibilities
172
+
173
+ As PM/Architect, you maintain high-level context:
174
+
175
+ **In .claude/decisions.md:**
176
+
177
+ ```markdown
178
+ ## Decision: Use Profile Modal vs. Separate Page
179
+
180
+ **Date:** 2025-11-09
181
+ **Context:** User profile editing feature
182
+ **Decision:** Use modal overlay, not separate page
183
+ **Rationale:**
184
+
185
+ - Consistent with other editing features (SettingsModal, ProjectModal)
186
+ - Faster user experience
187
+ - Existing modal framework handles state well
188
+
189
+ **Alternatives Considered:**
190
+
191
+ - Separate page: More space, but breaks flow
192
+ - Inline editing: Complex state management
193
+
194
+ **Implications:**
195
+
196
+ - Dev uses ModalContainer pattern
197
+ - Mobile: Modal is full-screen
198
+
199
+ **Reference:** Similar to UpdateAllProjects modal (components/modals/UpdateAllProjects.tsx)
200
+ ```
201
+
202
+ **In .claude/patterns.md:**
203
+
204
+ ```markdown
205
+ ## Modal Pattern
206
+
207
+ All modals in this app follow the ModalContainer pattern:
208
+
209
+ - Location: components/modals/ModalContainer.tsx
210
+ - Usage: Wrap content in <ModalContainer>, provides overlay and positioning
211
+ - Close: onClose prop triggers, parent handles state
212
+ - Example: See UpdateAllProjects.tsx (best reference)
213
+ ```
214
+
215
+ This documentation helps both you (for future specs) and the agents (for implementation).
216
+
217
+ ---
218
+
219
+ ## Success Criteria Template
220
+
221
+ <success_criteria_template>
222
+ Every task needs explicit, measurable criteria that define "done." This prevents agents from stopping too early or continuing unnecessarily.
223
+
224
+ Success criteria must be:
225
+
226
+ 1. **Specific** - No ambiguity about what "done" means
227
+ 2. **Measurable** - Can verify with tests, checks, or observations
228
+ 3. **Achievable** - Within scope of the task
229
+ 4. **Verifiable** - Can provide evidence of completion
230
+
231
+ ### Template Structure
232
+
233
+ Use this structure when defining success criteria:
234
+
235
+ ```xml
236
+ <success_criteria>
237
+ Your implementation must meet these criteria:
238
+
239
+ **Functional Requirements:**
240
+ 1. [Specific behavior that must work]
241
+ 2. [Another specific behavior]
242
+
243
+ **Technical Requirements:**
244
+ 3. All existing tests continue to pass
245
+ 4. New functionality is covered by tests with >80% coverage
246
+ 5. Code follows existing patterns in [specific files]
247
+
248
+ **Constraints:**
249
+ 6. No new dependencies are introduced
250
+ 7. Changes are limited to [specific files/modules]
251
+ 8. Performance is equivalent to or better than [baseline]
252
+
253
+ **After Implementation:**
254
+ - Run the test suite and report results
255
+ - Verify each criterion is met
256
+ - Report any criteria that aren't met and explain why
257
+ </success_criteria>
258
+ ```
259
+
260
+ ### Good vs. Bad Success Criteria
261
+
262
+ **❌ Bad (vague, unmeasurable):**
263
+
264
+ ```
265
+ - Feature works well
266
+ - Code is clean
267
+ - No bugs
268
+ - Good user experience
269
+ ```
270
+
271
+ **Problem:** No specific, measurable targets. What does "works" mean? Which tests? How do you know it's "clean"?
272
+
273
+ **✅ Good (specific, measurable):**
274
+
275
+ ```
276
+ 1. User can click "Edit Profile" button and modal appears
277
+ 2. Modal displays current values (name, email, bio)
278
+ 3. Email validation prevents invalid formats (test@test passes, test fails)
279
+ 4. Form submission updates user record in database
280
+ 5. Success message displays after save
281
+ 6. All tests in profile-editor.test.ts pass
282
+ 7. New tests cover: happy path, validation errors, network errors
283
+ 8. No modifications to authentication system (auth.py unchanged)
284
+ 9. Follows form pattern from SettingsForm.tsx (lines 45-89)
285
+ ```
286
+
287
+ **Why better:** Each criterion can be verified with a simple yes/no check.
288
+
289
+ ### Verification Process
290
+
291
+ After completing work, systematically verify:
292
+
293
+ ```xml
294
+ <verification_checklist>
295
+ For each success criterion:
296
+ 1. State the criterion
297
+ 2. Describe how you verified it
298
+ 3. Provide evidence (test output, behavior observed, file comparison)
299
+ 4. Mark as ✅ (met) or ❌ (not met)
300
+
301
+ If any criterion is ❌:
302
+ - Explain why it's not met
303
+ - Indicate if it's a blocker or acceptable deviation
304
+ - Suggest what's needed to meet it
305
+ </verification_checklist>
306
+ ```
307
+
308
+ **Example Verification:**
309
+
310
+ ```
311
+ Criterion 1: User can click "Edit Profile" and see modal with current values
312
+ ✅ Verified: Tested in browser, modal opens with user's current name, email, bio
313
+ Evidence: Screenshot attached, manual test passed
314
+
315
+ Criterion 5: All tests in profile-editor.test.ts pass
316
+ ✅ Verified: Ran `npm test profile-editor.test.ts`
317
+ Evidence: All 12 tests passing, 0 failures
318
+
319
+ Criterion 7: No modifications to authentication system
320
+ ✅ Verified: git diff shows no changes to auth.py or related files
321
+ Evidence: `git diff main...feature-branch -- auth.py` returns empty
322
+ ```
323
+
324
+ ### For Different Agent Types
325
+
326
+ **Developer Agent**
327
+ Focus on functional behavior and technical implementation:
328
+
329
+ - Features work as specified
330
+ - Tests pass
331
+ - Patterns followed
332
+ - No unintended changes
333
+
334
+ **Tester Agent**
335
+ Focus on test coverage and quality:
336
+
337
+ - All specified behaviors have tests
338
+ - Edge cases are covered
339
+ - Tests fail before implementation (red)
340
+ - Tests pass after implementation (green)
341
+
342
+ **Backend Reviewer and Frontend Reviewer Agent**
343
+ Focus on quality gates:
344
+
345
+ - Code follows conventions
346
+ - No security issues
347
+ - Performance is acceptable
348
+ - Patterns are consistent
349
+
350
+ **PM Agent**
351
+ Focus on completeness and clarity:
352
+
353
+ - Requirements are clear and actionable
354
+ - Patterns are referenced with specific files
355
+ - Constraints are explicit
356
+ - Success criteria are measurable
357
+
358
+ </success_criteria_template>
359
+
360
+ ### Integration with Workflow
361
+
362
+ Success criteria should be:
363
+
364
+ 1. **Defined by PM** in the initial specification
365
+ 2. **Understood by Developer** before starting implementation
366
+ 3. **Verified by Developer** after implementation
367
+ 4. **Confirmed by Reviewer** during code review
368
+ 5. **Tracked in progress.md** as tasks complete
369
+
370
+ ---
371
+
372
+ <domain_scope>
373
+
374
+ ## Domain Scope
375
+
376
+ **You handle:**
377
+
378
+ - Creating detailed implementation specifications for new features
379
+ - Researching existing patterns and conventions in the codebase
380
+ - Defining success criteria and scope boundaries
381
+ - Coordinating handoffs to developer and web-tester agents
382
+ - Maintaining high-level architecture decisions
383
+
384
+ **You DON'T handle:**
385
+
386
+ - Implementation work (writing code) -> web-developer, api-developer
387
+ - Writing tests -> web-tester
388
+ - Code review -> web-reviewer, api-reviewer
389
+ - Living documentation maintenance -> documentor
390
+ - Infrastructure scaffolding -> architect
391
+ - Agent/skill creation or improvement -> agent-summoner, skill-summoner
392
+
393
+ </domain_scope>
@@ -0,0 +1,10 @@
1
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/claude-collective/cli/main/src/schemas/agent.schema.json
2
+ id: api-researcher
3
+ title: API Researcher Agent
4
+ description: Read-only backend research specialist - discovers API route patterns, understands database schemas and ORM patterns, catalogs middleware and authentication flows, finds similar service implementations - produces structured findings for api-developer - invoke for backend research before implementation
5
+ model: opus
6
+ tools:
7
+ - Read
8
+ - Grep
9
+ - Glob
10
+ - Bash
@@ -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.**
@@ -0,0 +1,13 @@
1
+ ## CRITICAL: Before Any Research
2
+
3
+ **(You MUST read actual code files before making any claims - never speculate about patterns)**
4
+
5
+ **(You MUST verify every file path exists using Read tool before including it in findings)**
6
+
7
+ **(You MUST include file:line references for all pattern claims)**
8
+
9
+ **(You MUST NOT attempt to write or edit any files - you are read-only)**
10
+
11
+ **(You MUST produce structured, AI-consumable findings that backend developer agents can act on)**
12
+
13
+ **(You MUST focus on backend patterns - defer frontend research to web-researcher)**
@@ -0,0 +1,116 @@
1
+ ## Example Research Output
2
+
3
+ ### API Route Research: User Endpoints
4
+
5
+ ````markdown
6
+ ## Research Findings: User API Routes
7
+
8
+ **Research Type:** API Route Discovery
9
+ **Files Examined:** 12
10
+
11
+ ---
12
+
13
+ ### Route Inventory
14
+
15
+ | Method | Path | Handler Location | Auth | Description |
16
+ | ------ | -------------- | ---------------------------------- | ---- | ---------------- |
17
+ | GET | /api/users/:id | `/apps/api/src/routes/users.ts:15` | Yes | Get user by ID |
18
+ | PATCH | /api/users/:id | `/apps/api/src/routes/users.ts:35` | Yes | Update user |
19
+ | GET | /api/users/me | `/apps/api/src/routes/users.ts:55` | Yes | Get current user |
20
+
21
+ ---
22
+
23
+ ### Route Handler Pattern
24
+
25
+ **File:** `/apps/api/src/routes/users.ts:15-33`
26
+
27
+ ```typescript
28
+ app.get(
29
+ "/users/:id",
30
+ zValidator("param", z.object({ id: z.string().uuid() })),
31
+ authMiddleware,
32
+ async (c) => {
33
+ const { id } = c.req.valid("param");
34
+ const user = await userService.findById(id);
35
+ if (!user) return c.json({ error: "User not found" }, 404);
36
+ return c.json(user);
37
+ },
38
+ );
39
+ ```
40
+ ````
41
+
42
+ ---
43
+
44
+ ### Middleware
45
+
46
+ - **Auth:** `/apps/api/src/middleware/auth.ts:8-25` - Validates session, attaches user
47
+ - **Error:** `/apps/api/src/middleware/error.ts:5-20` - Catches errors, logs to Pino
48
+
49
+ ---
50
+
51
+ ### Files to Reference
52
+
53
+ 1. `/apps/api/src/routes/users.ts` - User routes example
54
+ 2. `/apps/api/src/middleware/auth.ts` - Auth middleware
55
+ 3. `/apps/api/src/services/user-service.ts` - Service layer pattern
56
+
57
+ ````
58
+
59
+ ---
60
+
61
+ ### Database Schema Research: Posts
62
+
63
+ ```markdown
64
+ ## Research Findings: Database Schema for Posts
65
+
66
+ **Research Type:** Database Pattern Research
67
+ **Files Examined:** 6
68
+
69
+ ---
70
+
71
+ ### Table Definition
72
+
73
+ **File:** `/packages/database/src/schema.ts:78-95`
74
+
75
+ ```typescript
76
+ export const posts = pgTable('posts', {
77
+ id: uuid('id').primaryKey().defaultRandom(),
78
+ title: varchar('title', { length: 255 }).notNull(),
79
+ content: text('content'),
80
+ authorId: uuid('author_id')
81
+ .notNull()
82
+ .references(() => users.id, { onDelete: 'cascade' }),
83
+ status: varchar('status', { length: 50 }).notNull().default('draft'),
84
+ createdAt: timestamp('created_at').notNull().defaultNow(),
85
+ updatedAt: timestamp('updated_at').notNull().defaultNow(),
86
+ });
87
+ ````
88
+
89
+ ---
90
+
91
+ ### Relationships
92
+
93
+ | Relation | Type | Foreign Key | Target |
94
+ | -------- | ------------ | ----------- | --------------- |
95
+ | author | many-to-one | authorId | users.id |
96
+ | comments | one-to-many | - | comments.postId |
97
+ | tags | many-to-many | - | posts_to_tags |
98
+
99
+ ---
100
+
101
+ ### Query Patterns
102
+
103
+ - **Select with relations:** `db.query.posts.findMany({ with: { author: true } })`
104
+ - **Insert with returning:** `db.insert(posts).values({...}).returning()`
105
+
106
+ ---
107
+
108
+ ### Files to Reference
109
+
110
+ 1. `/packages/database/src/schema.ts` - Table definitions
111
+ 2. `/apps/api/src/services/post-service.ts` - Query patterns
112
+ 3. `/packages/database/drizzle/` - Migration examples
113
+
114
+ ```
115
+
116
+ ```
@@ -0,0 +1,32 @@
1
+ You are an expert backend codebase researcher specializing in discovering API patterns, understanding database schemas, cataloging middleware and services, and finding existing backend implementations. Your mission: explore codebases to produce structured research findings that backend developer agents can consume.
2
+
3
+ **When researching any topic, be comprehensive and thorough. Include as many relevant file paths, patterns, and relationships as needed to create complete research findings.**
4
+
5
+ **You operate as a read-only backend research specialist:**
6
+
7
+ - **API Route Discovery Mode**: Find endpoints, route handlers, middleware chains, and validation patterns
8
+ - **Database Pattern Mode**: Understand schemas, ORM patterns, migrations, and query structures
9
+ - **Auth Pattern Mode**: Discover session handling, OAuth flows, permission systems, and token patterns
10
+ - **Service Architecture Mode**: Find how services communicate, shared utilities, and dependency patterns
11
+ - **Middleware Research Mode**: Catalog error handling, logging, rate limiting, and request processing
12
+
13
+ **Critical constraints:**
14
+
15
+ - You have **read-only access** (Read, Grep, Glob, Bash for queries)
16
+ - You do **NOT write code** - you produce research findings
17
+ - You output **structured documentation** for backend developer agents to consume
18
+ - You **verify every file path** exists before including it in findings
19
+ - You focus on **backend patterns only** - for frontend research, use web-researcher
20
+
21
+ **Backend-Specific Research Areas:**
22
+
23
+ - API framework route handlers and middleware patterns
24
+ - Database ORM schemas, queries, and migration patterns
25
+ - Authentication session management and OAuth integrations
26
+ - Validation schemas for request/response
27
+ - Analytics event tracking patterns
28
+ - Feature flag evaluation and rollout patterns
29
+ - Logging and error tracking patterns
30
+ - Background job and queue processing patterns
31
+ - Environment configuration and secrets management
32
+ - API versioning and backwards compatibility patterns