cc-agentic-framework 1.14.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 (1097) hide show
  1. package/README.md +686 -0
  2. package/bin/agentic-framework +2 -0
  3. package/bin/mcp-server +14 -0
  4. package/dist/__mocks__/chalk.d.ts +11 -0
  5. package/dist/__mocks__/chalk.d.ts.map +1 -0
  6. package/dist/__mocks__/chalk.js +20 -0
  7. package/dist/__mocks__/chalk.js.map +1 -0
  8. package/dist/__mocks__/ora.d.ts +20 -0
  9. package/dist/__mocks__/ora.d.ts.map +1 -0
  10. package/dist/__mocks__/ora.js +52 -0
  11. package/dist/__mocks__/ora.js.map +1 -0
  12. package/dist/commands/add.d.ts +6 -0
  13. package/dist/commands/add.d.ts.map +1 -0
  14. package/dist/commands/add.js +105 -0
  15. package/dist/commands/add.js.map +1 -0
  16. package/dist/commands/agent/index.d.ts +11 -0
  17. package/dist/commands/agent/index.d.ts.map +1 -0
  18. package/dist/commands/agent/index.js +22 -0
  19. package/dist/commands/agent/index.js.map +1 -0
  20. package/dist/commands/agent/list.d.ts +8 -0
  21. package/dist/commands/agent/list.d.ts.map +1 -0
  22. package/dist/commands/agent/list.js +53 -0
  23. package/dist/commands/agent/list.js.map +1 -0
  24. package/dist/commands/agent/run.d.ts +9 -0
  25. package/dist/commands/agent/run.d.ts.map +1 -0
  26. package/dist/commands/agent/run.js +180 -0
  27. package/dist/commands/agent/run.js.map +1 -0
  28. package/dist/commands/agent/show.d.ts +8 -0
  29. package/dist/commands/agent/show.d.ts.map +1 -0
  30. package/dist/commands/agent/show.js +109 -0
  31. package/dist/commands/agent/show.js.map +1 -0
  32. package/dist/commands/backlog/create-ticket.d.ts +19 -0
  33. package/dist/commands/backlog/create-ticket.d.ts.map +1 -0
  34. package/dist/commands/backlog/create-ticket.js +168 -0
  35. package/dist/commands/backlog/create-ticket.js.map +1 -0
  36. package/dist/commands/backlog/import-jira.d.ts +32 -0
  37. package/dist/commands/backlog/import-jira.d.ts.map +1 -0
  38. package/dist/commands/backlog/import-jira.js +126 -0
  39. package/dist/commands/backlog/import-jira.js.map +1 -0
  40. package/dist/commands/backlog/migrate-milestones.d.ts +21 -0
  41. package/dist/commands/backlog/migrate-milestones.d.ts.map +1 -0
  42. package/dist/commands/backlog/migrate-milestones.js +155 -0
  43. package/dist/commands/backlog/migrate-milestones.js.map +1 -0
  44. package/dist/commands/backlog/update-fields.d.ts +36 -0
  45. package/dist/commands/backlog/update-fields.d.ts.map +1 -0
  46. package/dist/commands/backlog/update-fields.js +251 -0
  47. package/dist/commands/backlog/update-fields.js.map +1 -0
  48. package/dist/commands/backlog/validate-enhanced.d.ts +19 -0
  49. package/dist/commands/backlog/validate-enhanced.d.ts.map +1 -0
  50. package/dist/commands/backlog/validate-enhanced.js +282 -0
  51. package/dist/commands/backlog/validate-enhanced.js.map +1 -0
  52. package/dist/commands/backlog/validate.d.ts +19 -0
  53. package/dist/commands/backlog/validate.d.ts.map +1 -0
  54. package/dist/commands/backlog/validate.js +283 -0
  55. package/dist/commands/backlog/validate.js.map +1 -0
  56. package/dist/commands/build.d.ts +20 -0
  57. package/dist/commands/build.d.ts.map +1 -0
  58. package/dist/commands/build.js +116 -0
  59. package/dist/commands/build.js.map +1 -0
  60. package/dist/commands/bump-version.d.ts +61 -0
  61. package/dist/commands/bump-version.d.ts.map +1 -0
  62. package/dist/commands/bump-version.js +618 -0
  63. package/dist/commands/bump-version.js.map +1 -0
  64. package/dist/commands/confluence/create-page.d.ts +11 -0
  65. package/dist/commands/confluence/create-page.d.ts.map +1 -0
  66. package/dist/commands/confluence/create-page.js +72 -0
  67. package/dist/commands/confluence/create-page.js.map +1 -0
  68. package/dist/commands/confluence/fetch-page.d.ts +11 -0
  69. package/dist/commands/confluence/fetch-page.d.ts.map +1 -0
  70. package/dist/commands/confluence/fetch-page.js +64 -0
  71. package/dist/commands/confluence/fetch-page.js.map +1 -0
  72. package/dist/commands/confluence/import-reports.d.ts +12 -0
  73. package/dist/commands/confluence/import-reports.d.ts.map +1 -0
  74. package/dist/commands/confluence/import-reports.js +68 -0
  75. package/dist/commands/confluence/import-reports.js.map +1 -0
  76. package/dist/commands/confluence/validate.d.ts +23 -0
  77. package/dist/commands/confluence/validate.d.ts.map +1 -0
  78. package/dist/commands/confluence/validate.js +272 -0
  79. package/dist/commands/confluence/validate.js.map +1 -0
  80. package/dist/commands/create-agent.d.ts +8 -0
  81. package/dist/commands/create-agent.d.ts.map +1 -0
  82. package/dist/commands/create-agent.js +104 -0
  83. package/dist/commands/create-agent.js.map +1 -0
  84. package/dist/commands/create-module.d.ts +8 -0
  85. package/dist/commands/create-module.d.ts.map +1 -0
  86. package/dist/commands/create-module.js +123 -0
  87. package/dist/commands/create-module.js.map +1 -0
  88. package/dist/commands/create-skill.d.ts +8 -0
  89. package/dist/commands/create-skill.d.ts.map +1 -0
  90. package/dist/commands/create-skill.js +108 -0
  91. package/dist/commands/create-skill.js.map +1 -0
  92. package/dist/commands/dev.d.ts +21 -0
  93. package/dist/commands/dev.d.ts.map +1 -0
  94. package/dist/commands/dev.js +304 -0
  95. package/dist/commands/dev.js.map +1 -0
  96. package/dist/commands/generate-agents.d.ts +19 -0
  97. package/dist/commands/generate-agents.d.ts.map +1 -0
  98. package/dist/commands/generate-agents.js +146 -0
  99. package/dist/commands/generate-agents.js.map +1 -0
  100. package/dist/commands/generate-commands.d.ts +13 -0
  101. package/dist/commands/generate-commands.d.ts.map +1 -0
  102. package/dist/commands/generate-commands.js +229 -0
  103. package/dist/commands/generate-commands.js.map +1 -0
  104. package/dist/commands/info.d.ts +2 -0
  105. package/dist/commands/info.d.ts.map +1 -0
  106. package/dist/commands/info.js +83 -0
  107. package/dist/commands/info.js.map +1 -0
  108. package/dist/commands/init.d.ts +27 -0
  109. package/dist/commands/init.d.ts.map +1 -0
  110. package/dist/commands/init.js +740 -0
  111. package/dist/commands/init.js.map +1 -0
  112. package/dist/commands/jira/export.d.ts +19 -0
  113. package/dist/commands/jira/export.d.ts.map +1 -0
  114. package/dist/commands/jira/export.js +212 -0
  115. package/dist/commands/jira/export.js.map +1 -0
  116. package/dist/commands/jira/sync.d.ts +20 -0
  117. package/dist/commands/jira/sync.d.ts.map +1 -0
  118. package/dist/commands/jira/sync.js +242 -0
  119. package/dist/commands/jira/sync.js.map +1 -0
  120. package/dist/commands/list.d.ts +6 -0
  121. package/dist/commands/list.d.ts.map +1 -0
  122. package/dist/commands/list.js +51 -0
  123. package/dist/commands/list.js.map +1 -0
  124. package/dist/commands/mcp/check.d.ts +11 -0
  125. package/dist/commands/mcp/check.d.ts.map +1 -0
  126. package/dist/commands/mcp/check.js +71 -0
  127. package/dist/commands/mcp/check.js.map +1 -0
  128. package/dist/commands/mcp/index.d.ts +15 -0
  129. package/dist/commands/mcp/index.d.ts.map +1 -0
  130. package/dist/commands/mcp/index.js +28 -0
  131. package/dist/commands/mcp/index.js.map +1 -0
  132. package/dist/commands/mcp/seed.d.ts +11 -0
  133. package/dist/commands/mcp/seed.d.ts.map +1 -0
  134. package/dist/commands/mcp/seed.js +222 -0
  135. package/dist/commands/mcp/seed.js.map +1 -0
  136. package/dist/commands/mcp/setup.d.ts +13 -0
  137. package/dist/commands/mcp/setup.d.ts.map +1 -0
  138. package/dist/commands/mcp/setup.js +387 -0
  139. package/dist/commands/mcp/setup.js.map +1 -0
  140. package/dist/commands/mcp/status.d.ts +11 -0
  141. package/dist/commands/mcp/status.d.ts.map +1 -0
  142. package/dist/commands/mcp/status.js +126 -0
  143. package/dist/commands/mcp/status.js.map +1 -0
  144. package/dist/commands/openclaw/export.d.ts +9 -0
  145. package/dist/commands/openclaw/export.d.ts.map +1 -0
  146. package/dist/commands/openclaw/export.js +72 -0
  147. package/dist/commands/openclaw/export.js.map +1 -0
  148. package/dist/commands/openclaw/index.d.ts +6 -0
  149. package/dist/commands/openclaw/index.d.ts.map +1 -0
  150. package/dist/commands/openclaw/index.js +11 -0
  151. package/dist/commands/openclaw/index.js.map +1 -0
  152. package/dist/commands/planning/create-plan.d.ts +21 -0
  153. package/dist/commands/planning/create-plan.d.ts.map +1 -0
  154. package/dist/commands/planning/create-plan.js +74 -0
  155. package/dist/commands/planning/create-plan.js.map +1 -0
  156. package/dist/commands/planning/validate-plan.d.ts +19 -0
  157. package/dist/commands/planning/validate-plan.d.ts.map +1 -0
  158. package/dist/commands/planning/validate-plan.js +276 -0
  159. package/dist/commands/planning/validate-plan.js.map +1 -0
  160. package/dist/commands/remove.d.ts +8 -0
  161. package/dist/commands/remove.d.ts.map +1 -0
  162. package/dist/commands/remove.js +157 -0
  163. package/dist/commands/remove.js.map +1 -0
  164. package/dist/commands/routes.d.ts +16 -0
  165. package/dist/commands/routes.d.ts.map +1 -0
  166. package/dist/commands/routes.js +153 -0
  167. package/dist/commands/routes.js.map +1 -0
  168. package/dist/commands/skill/deploy.d.ts +12 -0
  169. package/dist/commands/skill/deploy.d.ts.map +1 -0
  170. package/dist/commands/skill/deploy.js +327 -0
  171. package/dist/commands/skill/deploy.js.map +1 -0
  172. package/dist/commands/skill/index.d.ts +6 -0
  173. package/dist/commands/skill/index.d.ts.map +1 -0
  174. package/dist/commands/skill/index.js +20 -0
  175. package/dist/commands/skill/index.js.map +1 -0
  176. package/dist/commands/skill/info.d.ts +11 -0
  177. package/dist/commands/skill/info.d.ts.map +1 -0
  178. package/dist/commands/skill/info.js +260 -0
  179. package/dist/commands/skill/info.js.map +1 -0
  180. package/dist/commands/skill/list.d.ts +11 -0
  181. package/dist/commands/skill/list.d.ts.map +1 -0
  182. package/dist/commands/skill/list.js +242 -0
  183. package/dist/commands/skill/list.js.map +1 -0
  184. package/dist/commands/skill/pull.d.ts +12 -0
  185. package/dist/commands/skill/pull.d.ts.map +1 -0
  186. package/dist/commands/skill/pull.js +133 -0
  187. package/dist/commands/skill/pull.js.map +1 -0
  188. package/dist/commands/skill/remove.d.ts +12 -0
  189. package/dist/commands/skill/remove.d.ts.map +1 -0
  190. package/dist/commands/skill/remove.js +99 -0
  191. package/dist/commands/skill/remove.js.map +1 -0
  192. package/dist/commands/status.d.ts +11 -0
  193. package/dist/commands/status.d.ts.map +1 -0
  194. package/dist/commands/status.js +195 -0
  195. package/dist/commands/status.js.map +1 -0
  196. package/dist/commands/sync.d.ts +20 -0
  197. package/dist/commands/sync.d.ts.map +1 -0
  198. package/dist/commands/sync.js +517 -0
  199. package/dist/commands/sync.js.map +1 -0
  200. package/dist/commands/template/index.d.ts +12 -0
  201. package/dist/commands/template/index.d.ts.map +1 -0
  202. package/dist/commands/template/index.js +24 -0
  203. package/dist/commands/template/index.js.map +1 -0
  204. package/dist/commands/template/info.d.ts +8 -0
  205. package/dist/commands/template/info.d.ts.map +1 -0
  206. package/dist/commands/template/info.js +125 -0
  207. package/dist/commands/template/info.js.map +1 -0
  208. package/dist/commands/template/list.d.ts +8 -0
  209. package/dist/commands/template/list.d.ts.map +1 -0
  210. package/dist/commands/template/list.js +77 -0
  211. package/dist/commands/template/list.js.map +1 -0
  212. package/dist/commands/template/render.d.ts +8 -0
  213. package/dist/commands/template/render.d.ts.map +1 -0
  214. package/dist/commands/template/render.js +115 -0
  215. package/dist/commands/template/render.js.map +1 -0
  216. package/dist/commands/template/validate.d.ts +8 -0
  217. package/dist/commands/template/validate.d.ts.map +1 -0
  218. package/dist/commands/template/validate.js +137 -0
  219. package/dist/commands/template/validate.js.map +1 -0
  220. package/dist/commands/test.d.ts +40 -0
  221. package/dist/commands/test.d.ts.map +1 -0
  222. package/dist/commands/test.js +240 -0
  223. package/dist/commands/test.js.map +1 -0
  224. package/dist/commands/update.d.ts +12 -0
  225. package/dist/commands/update.d.ts.map +1 -0
  226. package/dist/commands/update.js +248 -0
  227. package/dist/commands/update.js.map +1 -0
  228. package/dist/commands/validate.d.ts +12 -0
  229. package/dist/commands/validate.d.ts.map +1 -0
  230. package/dist/commands/validate.js +355 -0
  231. package/dist/commands/validate.js.map +1 -0
  232. package/dist/commands/writer/analyze.d.ts +19 -0
  233. package/dist/commands/writer/analyze.d.ts.map +1 -0
  234. package/dist/commands/writer/analyze.js +210 -0
  235. package/dist/commands/writer/analyze.js.map +1 -0
  236. package/dist/commands/writer/build.d.ts +21 -0
  237. package/dist/commands/writer/build.d.ts.map +1 -0
  238. package/dist/commands/writer/build.js +241 -0
  239. package/dist/commands/writer/build.js.map +1 -0
  240. package/dist/commands/writer/create-chapter.d.ts +19 -0
  241. package/dist/commands/writer/create-chapter.d.ts.map +1 -0
  242. package/dist/commands/writer/create-chapter.js +260 -0
  243. package/dist/commands/writer/create-chapter.js.map +1 -0
  244. package/dist/commands/writer/create-character.d.ts +19 -0
  245. package/dist/commands/writer/create-character.d.ts.map +1 -0
  246. package/dist/commands/writer/create-character.js +263 -0
  247. package/dist/commands/writer/create-character.js.map +1 -0
  248. package/dist/commands/writer/create-part.d.ts +19 -0
  249. package/dist/commands/writer/create-part.d.ts.map +1 -0
  250. package/dist/commands/writer/create-part.js +239 -0
  251. package/dist/commands/writer/create-part.js.map +1 -0
  252. package/dist/commands/writer/create-scene.d.ts +19 -0
  253. package/dist/commands/writer/create-scene.d.ts.map +1 -0
  254. package/dist/commands/writer/create-scene.js +286 -0
  255. package/dist/commands/writer/create-scene.js.map +1 -0
  256. package/dist/commands/writer/export.d.ts +21 -0
  257. package/dist/commands/writer/export.d.ts.map +1 -0
  258. package/dist/commands/writer/export.js +230 -0
  259. package/dist/commands/writer/export.js.map +1 -0
  260. package/dist/commands/writer/init.d.ts +19 -0
  261. package/dist/commands/writer/init.d.ts.map +1 -0
  262. package/dist/commands/writer/init.js +227 -0
  263. package/dist/commands/writer/init.js.map +1 -0
  264. package/dist/commands/writer/lib/immutability-utils.d.ts +82 -0
  265. package/dist/commands/writer/lib/immutability-utils.d.ts.map +1 -0
  266. package/dist/commands/writer/lib/immutability-utils.js +253 -0
  267. package/dist/commands/writer/lib/immutability-utils.js.map +1 -0
  268. package/dist/commands/writer/lib/lock-utils.d.ts +48 -0
  269. package/dist/commands/writer/lib/lock-utils.d.ts.map +1 -0
  270. package/dist/commands/writer/lib/lock-utils.js +122 -0
  271. package/dist/commands/writer/lib/lock-utils.js.map +1 -0
  272. package/dist/commands/writer/lock-fact.d.ts +20 -0
  273. package/dist/commands/writer/lock-fact.d.ts.map +1 -0
  274. package/dist/commands/writer/lock-fact.js +174 -0
  275. package/dist/commands/writer/lock-fact.js.map +1 -0
  276. package/dist/commands/writer/unlock-fact.d.ts +20 -0
  277. package/dist/commands/writer/unlock-fact.d.ts.map +1 -0
  278. package/dist/commands/writer/unlock-fact.js +160 -0
  279. package/dist/commands/writer/unlock-fact.js.map +1 -0
  280. package/dist/commands/writer/validate-immutability.d.ts +19 -0
  281. package/dist/commands/writer/validate-immutability.d.ts.map +1 -0
  282. package/dist/commands/writer/validate-immutability.js +148 -0
  283. package/dist/commands/writer/validate-immutability.js.map +1 -0
  284. package/dist/commands/writer/validate.d.ts +20 -0
  285. package/dist/commands/writer/validate.d.ts.map +1 -0
  286. package/dist/commands/writer/validate.js +370 -0
  287. package/dist/commands/writer/validate.js.map +1 -0
  288. package/dist/hooks/claude-folder-protection.d.ts +23 -0
  289. package/dist/hooks/claude-folder-protection.d.ts.map +1 -0
  290. package/dist/hooks/claude-folder-protection.js +98 -0
  291. package/dist/hooks/claude-folder-protection.js.map +1 -0
  292. package/dist/hooks/index.d.ts +24 -0
  293. package/dist/hooks/index.d.ts.map +1 -0
  294. package/dist/hooks/index.js +24 -0
  295. package/dist/hooks/index.js.map +1 -0
  296. package/dist/hooks/post-write-validate.d.ts +14 -0
  297. package/dist/hooks/post-write-validate.d.ts.map +1 -0
  298. package/dist/hooks/post-write-validate.js +142 -0
  299. package/dist/hooks/post-write-validate.js.map +1 -0
  300. package/dist/hooks/pre-commit-skill-reminder.d.ts +21 -0
  301. package/dist/hooks/pre-commit-skill-reminder.d.ts.map +1 -0
  302. package/dist/hooks/pre-commit-skill-reminder.js +142 -0
  303. package/dist/hooks/pre-commit-skill-reminder.js.map +1 -0
  304. package/dist/hooks/pre-write-quality.d.ts +14 -0
  305. package/dist/hooks/pre-write-quality.d.ts.map +1 -0
  306. package/dist/hooks/pre-write-quality.js +114 -0
  307. package/dist/hooks/pre-write-quality.js.map +1 -0
  308. package/dist/hooks/skill-reminder.d.ts +22 -0
  309. package/dist/hooks/skill-reminder.d.ts.map +1 -0
  310. package/dist/hooks/skill-reminder.js +285 -0
  311. package/dist/hooks/skill-reminder.js.map +1 -0
  312. package/dist/hooks/stop-quality-check.d.ts +14 -0
  313. package/dist/hooks/stop-quality-check.d.ts.map +1 -0
  314. package/dist/hooks/stop-quality-check.js +122 -0
  315. package/dist/hooks/stop-quality-check.js.map +1 -0
  316. package/dist/hooks/subagent-context-loader.d.ts +12 -0
  317. package/dist/hooks/subagent-context-loader.d.ts.map +1 -0
  318. package/dist/hooks/subagent-context-loader.js +124 -0
  319. package/dist/hooks/subagent-context-loader.js.map +1 -0
  320. package/dist/hooks/types.d.ts +89 -0
  321. package/dist/hooks/types.d.ts.map +1 -0
  322. package/dist/hooks/types.js +57 -0
  323. package/dist/hooks/types.js.map +1 -0
  324. package/dist/index.d.ts +3 -0
  325. package/dist/index.d.ts.map +1 -0
  326. package/dist/index.js +256 -0
  327. package/dist/index.js.map +1 -0
  328. package/dist/lib/affected-modules.d.ts +104 -0
  329. package/dist/lib/affected-modules.d.ts.map +1 -0
  330. package/dist/lib/affected-modules.js +283 -0
  331. package/dist/lib/affected-modules.js.map +1 -0
  332. package/dist/lib/agent-generator.d.ts +137 -0
  333. package/dist/lib/agent-generator.d.ts.map +1 -0
  334. package/dist/lib/agent-generator.js +274 -0
  335. package/dist/lib/agent-generator.js.map +1 -0
  336. package/dist/lib/backlog/__mocks__/prompt-utils.d.ts +5 -0
  337. package/dist/lib/backlog/__mocks__/prompt-utils.d.ts.map +1 -0
  338. package/dist/lib/backlog/__mocks__/prompt-utils.js +5 -0
  339. package/dist/lib/backlog/__mocks__/prompt-utils.js.map +1 -0
  340. package/dist/lib/backlog/content-parser.d.ts +83 -0
  341. package/dist/lib/backlog/content-parser.d.ts.map +1 -0
  342. package/dist/lib/backlog/content-parser.js +284 -0
  343. package/dist/lib/backlog/content-parser.js.map +1 -0
  344. package/dist/lib/backlog/csv-extractor.d.ts +87 -0
  345. package/dist/lib/backlog/csv-extractor.d.ts.map +1 -0
  346. package/dist/lib/backlog/csv-extractor.js +338 -0
  347. package/dist/lib/backlog/csv-extractor.js.map +1 -0
  348. package/dist/lib/backlog/epic-handler.d.ts +55 -0
  349. package/dist/lib/backlog/epic-handler.d.ts.map +1 -0
  350. package/dist/lib/backlog/epic-handler.js +222 -0
  351. package/dist/lib/backlog/epic-handler.js.map +1 -0
  352. package/dist/lib/backlog/field-updater.d.ts +195 -0
  353. package/dist/lib/backlog/field-updater.d.ts.map +1 -0
  354. package/dist/lib/backlog/field-updater.js +287 -0
  355. package/dist/lib/backlog/field-updater.js.map +1 -0
  356. package/dist/lib/backlog/import-engine.d.ts +110 -0
  357. package/dist/lib/backlog/import-engine.d.ts.map +1 -0
  358. package/dist/lib/backlog/import-engine.js +241 -0
  359. package/dist/lib/backlog/import-engine.js.map +1 -0
  360. package/dist/lib/backlog/import-strategies.d.ts +110 -0
  361. package/dist/lib/backlog/import-strategies.d.ts.map +1 -0
  362. package/dist/lib/backlog/import-strategies.js +398 -0
  363. package/dist/lib/backlog/import-strategies.js.map +1 -0
  364. package/dist/lib/backlog/jira-file-generators.d.ts +154 -0
  365. package/dist/lib/backlog/jira-file-generators.d.ts.map +1 -0
  366. package/dist/lib/backlog/jira-file-generators.js +265 -0
  367. package/dist/lib/backlog/jira-file-generators.js.map +1 -0
  368. package/dist/lib/backlog/jira-import-workflows.d.ts +112 -0
  369. package/dist/lib/backlog/jira-import-workflows.d.ts.map +1 -0
  370. package/dist/lib/backlog/jira-import-workflows.js +339 -0
  371. package/dist/lib/backlog/jira-import-workflows.js.map +1 -0
  372. package/dist/lib/backlog/jira-lookup.d.ts +121 -0
  373. package/dist/lib/backlog/jira-lookup.d.ts.map +1 -0
  374. package/dist/lib/backlog/jira-lookup.js +232 -0
  375. package/dist/lib/backlog/jira-lookup.js.map +1 -0
  376. package/dist/lib/backlog/jira-prompts.d.ts +66 -0
  377. package/dist/lib/backlog/jira-prompts.d.ts.map +1 -0
  378. package/dist/lib/backlog/jira-prompts.js +232 -0
  379. package/dist/lib/backlog/jira-prompts.js.map +1 -0
  380. package/dist/lib/backlog/jira-validators.d.ts +123 -0
  381. package/dist/lib/backlog/jira-validators.d.ts.map +1 -0
  382. package/dist/lib/backlog/jira-validators.js +394 -0
  383. package/dist/lib/backlog/jira-validators.js.map +1 -0
  384. package/dist/lib/backlog/milestone-generator.d.ts +172 -0
  385. package/dist/lib/backlog/milestone-generator.d.ts.map +1 -0
  386. package/dist/lib/backlog/milestone-generator.js +378 -0
  387. package/dist/lib/backlog/milestone-generator.js.map +1 -0
  388. package/dist/lib/backlog/milestone-migrator.d.ts +174 -0
  389. package/dist/lib/backlog/milestone-migrator.d.ts.map +1 -0
  390. package/dist/lib/backlog/milestone-migrator.js +401 -0
  391. package/dist/lib/backlog/milestone-migrator.js.map +1 -0
  392. package/dist/lib/backlog/milestone-sanitizer.d.ts +72 -0
  393. package/dist/lib/backlog/milestone-sanitizer.d.ts.map +1 -0
  394. package/dist/lib/backlog/milestone-sanitizer.js +139 -0
  395. package/dist/lib/backlog/milestone-sanitizer.js.map +1 -0
  396. package/dist/lib/backlog/prompt-utils.d.ts +9 -0
  397. package/dist/lib/backlog/prompt-utils.d.ts.map +1 -0
  398. package/dist/lib/backlog/prompt-utils.js +11 -0
  399. package/dist/lib/backlog/prompt-utils.js.map +1 -0
  400. package/dist/lib/backlog/sprint-creator.d.ts +145 -0
  401. package/dist/lib/backlog/sprint-creator.d.ts.map +1 -0
  402. package/dist/lib/backlog/sprint-creator.js +295 -0
  403. package/dist/lib/backlog/sprint-creator.js.map +1 -0
  404. package/dist/lib/backlog/ticket-generator.d.ts +79 -0
  405. package/dist/lib/backlog/ticket-generator.d.ts.map +1 -0
  406. package/dist/lib/backlog/ticket-generator.js +281 -0
  407. package/dist/lib/backlog/ticket-generator.js.map +1 -0
  408. package/dist/lib/backlog/ticket-processor.d.ts +205 -0
  409. package/dist/lib/backlog/ticket-processor.d.ts.map +1 -0
  410. package/dist/lib/backlog/ticket-processor.js +422 -0
  411. package/dist/lib/backlog/ticket-processor.js.map +1 -0
  412. package/dist/lib/backlog/types.d.ts +37 -0
  413. package/dist/lib/backlog/types.d.ts.map +1 -0
  414. package/dist/lib/backlog/types.js +7 -0
  415. package/dist/lib/backlog/types.js.map +1 -0
  416. package/dist/lib/backlog/validator.d.ts +61 -0
  417. package/dist/lib/backlog/validator.d.ts.map +1 -0
  418. package/dist/lib/backlog/validator.js +285 -0
  419. package/dist/lib/backlog/validator.js.map +1 -0
  420. package/dist/lib/boundary-validator.d.ts +88 -0
  421. package/dist/lib/boundary-validator.d.ts.map +1 -0
  422. package/dist/lib/boundary-validator.js +494 -0
  423. package/dist/lib/boundary-validator.js.map +1 -0
  424. package/dist/lib/build/build-engine.d.ts +142 -0
  425. package/dist/lib/build/build-engine.d.ts.map +1 -0
  426. package/dist/lib/build/build-engine.js +487 -0
  427. package/dist/lib/build/build-engine.js.map +1 -0
  428. package/dist/lib/build/index.d.ts +7 -0
  429. package/dist/lib/build/index.d.ts.map +1 -0
  430. package/dist/lib/build/index.js +7 -0
  431. package/dist/lib/build/index.js.map +1 -0
  432. package/dist/lib/cleanup-engine.d.ts +121 -0
  433. package/dist/lib/cleanup-engine.d.ts.map +1 -0
  434. package/dist/lib/cleanup-engine.js +252 -0
  435. package/dist/lib/cleanup-engine.js.map +1 -0
  436. package/dist/lib/cli-context.d.ts +283 -0
  437. package/dist/lib/cli-context.d.ts.map +1 -0
  438. package/dist/lib/cli-context.js +403 -0
  439. package/dist/lib/cli-context.js.map +1 -0
  440. package/dist/lib/cli-version.d.ts +7 -0
  441. package/dist/lib/cli-version.d.ts.map +1 -0
  442. package/dist/lib/cli-version.js +30 -0
  443. package/dist/lib/cli-version.js.map +1 -0
  444. package/dist/lib/command-factory.d.ts +76 -0
  445. package/dist/lib/command-factory.d.ts.map +1 -0
  446. package/dist/lib/command-factory.js +166 -0
  447. package/dist/lib/command-factory.js.map +1 -0
  448. package/dist/lib/common/api-client.d.ts +92 -0
  449. package/dist/lib/common/api-client.d.ts.map +1 -0
  450. package/dist/lib/common/api-client.js +206 -0
  451. package/dist/lib/common/api-client.js.map +1 -0
  452. package/dist/lib/common/file-utils.d.ts +92 -0
  453. package/dist/lib/common/file-utils.d.ts.map +1 -0
  454. package/dist/lib/common/file-utils.js +143 -0
  455. package/dist/lib/common/file-utils.js.map +1 -0
  456. package/dist/lib/common/validation.d.ts +91 -0
  457. package/dist/lib/common/validation.d.ts.map +1 -0
  458. package/dist/lib/common/validation.js +213 -0
  459. package/dist/lib/common/validation.js.map +1 -0
  460. package/dist/lib/common/yaml-frontmatter.d.ts +76 -0
  461. package/dist/lib/common/yaml-frontmatter.d.ts.map +1 -0
  462. package/dist/lib/common/yaml-frontmatter.js +89 -0
  463. package/dist/lib/common/yaml-frontmatter.js.map +1 -0
  464. package/dist/lib/confluence/adf-converter.d.ts +30 -0
  465. package/dist/lib/confluence/adf-converter.d.ts.map +1 -0
  466. package/dist/lib/confluence/adf-converter.js +649 -0
  467. package/dist/lib/confluence/adf-converter.js.map +1 -0
  468. package/dist/lib/confluence/confluence-client.d.ts +121 -0
  469. package/dist/lib/confluence/confluence-client.d.ts.map +1 -0
  470. package/dist/lib/confluence/confluence-client.js +249 -0
  471. package/dist/lib/confluence/confluence-client.js.map +1 -0
  472. package/dist/lib/confluence/confluence-commands.d.ts +58 -0
  473. package/dist/lib/confluence/confluence-commands.d.ts.map +1 -0
  474. package/dist/lib/confluence/confluence-commands.js +231 -0
  475. package/dist/lib/confluence/confluence-commands.js.map +1 -0
  476. package/dist/lib/discovery-engine.d.ts +159 -0
  477. package/dist/lib/discovery-engine.d.ts.map +1 -0
  478. package/dist/lib/discovery-engine.js +538 -0
  479. package/dist/lib/discovery-engine.js.map +1 -0
  480. package/dist/lib/framework-validator.d.ts +81 -0
  481. package/dist/lib/framework-validator.d.ts.map +1 -0
  482. package/dist/lib/framework-validator.js +546 -0
  483. package/dist/lib/framework-validator.js.map +1 -0
  484. package/dist/lib/global-skills-manager.d.ts +90 -0
  485. package/dist/lib/global-skills-manager.d.ts.map +1 -0
  486. package/dist/lib/global-skills-manager.js +180 -0
  487. package/dist/lib/global-skills-manager.js.map +1 -0
  488. package/dist/lib/jira/acceptance-criteria.d.ts +76 -0
  489. package/dist/lib/jira/acceptance-criteria.d.ts.map +1 -0
  490. package/dist/lib/jira/acceptance-criteria.js +163 -0
  491. package/dist/lib/jira/acceptance-criteria.js.map +1 -0
  492. package/dist/lib/jira/export-engine.d.ts +132 -0
  493. package/dist/lib/jira/export-engine.d.ts.map +1 -0
  494. package/dist/lib/jira/export-engine.js +332 -0
  495. package/dist/lib/jira/export-engine.js.map +1 -0
  496. package/dist/lib/jira/field-mapper.d.ts +101 -0
  497. package/dist/lib/jira/field-mapper.d.ts.map +1 -0
  498. package/dist/lib/jira/field-mapper.js +346 -0
  499. package/dist/lib/jira/field-mapper.js.map +1 -0
  500. package/dist/lib/jira/jira-client.d.ts +117 -0
  501. package/dist/lib/jira/jira-client.d.ts.map +1 -0
  502. package/dist/lib/jira/jira-client.js +255 -0
  503. package/dist/lib/jira/jira-client.js.map +1 -0
  504. package/dist/lib/jira/sync-engine.d.ts +154 -0
  505. package/dist/lib/jira/sync-engine.d.ts.map +1 -0
  506. package/dist/lib/jira/sync-engine.js +420 -0
  507. package/dist/lib/jira/sync-engine.js.map +1 -0
  508. package/dist/lib/jira/wiki-converter.d.ts +133 -0
  509. package/dist/lib/jira/wiki-converter.d.ts.map +1 -0
  510. package/dist/lib/jira/wiki-converter.js +245 -0
  511. package/dist/lib/jira/wiki-converter.js.map +1 -0
  512. package/dist/lib/link-transformer.d.ts +176 -0
  513. package/dist/lib/link-transformer.d.ts.map +1 -0
  514. package/dist/lib/link-transformer.js +349 -0
  515. package/dist/lib/link-transformer.js.map +1 -0
  516. package/dist/lib/link-validator.d.ts +232 -0
  517. package/dist/lib/link-validator.d.ts.map +1 -0
  518. package/dist/lib/link-validator.js +504 -0
  519. package/dist/lib/link-validator.js.map +1 -0
  520. package/dist/lib/manifest-manager.d.ts +112 -0
  521. package/dist/lib/manifest-manager.d.ts.map +1 -0
  522. package/dist/lib/manifest-manager.js +153 -0
  523. package/dist/lib/manifest-manager.js.map +1 -0
  524. package/dist/lib/mcp/extractors/framework-project.d.ts +29 -0
  525. package/dist/lib/mcp/extractors/framework-project.d.ts.map +1 -0
  526. package/dist/lib/mcp/extractors/framework-project.js +402 -0
  527. package/dist/lib/mcp/extractors/framework-project.js.map +1 -0
  528. package/dist/lib/mcp/extractors/generic-project.d.ts +25 -0
  529. package/dist/lib/mcp/extractors/generic-project.d.ts.map +1 -0
  530. package/dist/lib/mcp/extractors/generic-project.js +344 -0
  531. package/dist/lib/mcp/extractors/generic-project.js.map +1 -0
  532. package/dist/lib/mcp/extractors/index.d.ts +48 -0
  533. package/dist/lib/mcp/extractors/index.d.ts.map +1 -0
  534. package/dist/lib/mcp/extractors/index.js +28 -0
  535. package/dist/lib/mcp/extractors/index.js.map +1 -0
  536. package/dist/lib/mcp/index.d.ts +11 -0
  537. package/dist/lib/mcp/index.d.ts.map +1 -0
  538. package/dist/lib/mcp/index.js +11 -0
  539. package/dist/lib/mcp/index.js.map +1 -0
  540. package/dist/lib/mcp/install-instructions.d.ts +39 -0
  541. package/dist/lib/mcp/install-instructions.d.ts.map +1 -0
  542. package/dist/lib/mcp/install-instructions.js +317 -0
  543. package/dist/lib/mcp/install-instructions.js.map +1 -0
  544. package/dist/lib/mcp/prerequisite-checker.d.ts +79 -0
  545. package/dist/lib/mcp/prerequisite-checker.d.ts.map +1 -0
  546. package/dist/lib/mcp/prerequisite-checker.js +213 -0
  547. package/dist/lib/mcp/prerequisite-checker.js.map +1 -0
  548. package/dist/lib/module-loader.d.ts +77 -0
  549. package/dist/lib/module-loader.d.ts.map +1 -0
  550. package/dist/lib/module-loader.js +135 -0
  551. package/dist/lib/module-loader.js.map +1 -0
  552. package/dist/lib/path-resolver.d.ts +160 -0
  553. package/dist/lib/path-resolver.d.ts.map +1 -0
  554. package/dist/lib/path-resolver.js +205 -0
  555. package/dist/lib/path-resolver.js.map +1 -0
  556. package/dist/lib/planning/plan-creator.d.ts +132 -0
  557. package/dist/lib/planning/plan-creator.d.ts.map +1 -0
  558. package/dist/lib/planning/plan-creator.js +361 -0
  559. package/dist/lib/planning/plan-creator.js.map +1 -0
  560. package/dist/lib/project-resolver.d.ts +124 -0
  561. package/dist/lib/project-resolver.d.ts.map +1 -0
  562. package/dist/lib/project-resolver.js +362 -0
  563. package/dist/lib/project-resolver.js.map +1 -0
  564. package/dist/lib/registry-generator.d.ts +11 -0
  565. package/dist/lib/registry-generator.d.ts.map +1 -0
  566. package/dist/lib/registry-generator.js +288 -0
  567. package/dist/lib/registry-generator.js.map +1 -0
  568. package/dist/lib/routes-validator.d.ts +50 -0
  569. package/dist/lib/routes-validator.d.ts.map +1 -0
  570. package/dist/lib/routes-validator.js +260 -0
  571. package/dist/lib/routes-validator.js.map +1 -0
  572. package/dist/lib/schemas/agent.schema.d.ts +175 -0
  573. package/dist/lib/schemas/agent.schema.d.ts.map +1 -0
  574. package/dist/lib/schemas/agent.schema.js +86 -0
  575. package/dist/lib/schemas/agent.schema.js.map +1 -0
  576. package/dist/lib/schemas/index.d.ts +13 -0
  577. package/dist/lib/schemas/index.d.ts.map +1 -0
  578. package/dist/lib/schemas/index.js +13 -0
  579. package/dist/lib/schemas/index.js.map +1 -0
  580. package/dist/lib/schemas/skill.schema.d.ts +92 -0
  581. package/dist/lib/schemas/skill.schema.d.ts.map +1 -0
  582. package/dist/lib/schemas/skill.schema.js +98 -0
  583. package/dist/lib/schemas/skill.schema.js.map +1 -0
  584. package/dist/lib/sdk/executor.d.ts +37 -0
  585. package/dist/lib/sdk/executor.d.ts.map +1 -0
  586. package/dist/lib/sdk/executor.js +137 -0
  587. package/dist/lib/sdk/executor.js.map +1 -0
  588. package/dist/lib/sdk/generator.d.ts +79 -0
  589. package/dist/lib/sdk/generator.d.ts.map +1 -0
  590. package/dist/lib/sdk/generator.js +316 -0
  591. package/dist/lib/sdk/generator.js.map +1 -0
  592. package/dist/lib/sdk/index.d.ts +12 -0
  593. package/dist/lib/sdk/index.d.ts.map +1 -0
  594. package/dist/lib/sdk/index.js +15 -0
  595. package/dist/lib/sdk/index.js.map +1 -0
  596. package/dist/lib/sdk/message-handler.d.ts +40 -0
  597. package/dist/lib/sdk/message-handler.d.ts.map +1 -0
  598. package/dist/lib/sdk/message-handler.js +215 -0
  599. package/dist/lib/sdk/message-handler.js.map +1 -0
  600. package/dist/lib/sdk/sub-agents.d.ts +51 -0
  601. package/dist/lib/sdk/sub-agents.d.ts.map +1 -0
  602. package/dist/lib/sdk/sub-agents.js +234 -0
  603. package/dist/lib/sdk/sub-agents.js.map +1 -0
  604. package/dist/lib/sdk/types.d.ts +169 -0
  605. package/dist/lib/sdk/types.d.ts.map +1 -0
  606. package/dist/lib/sdk/types.js +7 -0
  607. package/dist/lib/sdk/types.js.map +1 -0
  608. package/dist/lib/skill-cli-parser.d.ts +79 -0
  609. package/dist/lib/skill-cli-parser.d.ts.map +1 -0
  610. package/dist/lib/skill-cli-parser.js +172 -0
  611. package/dist/lib/skill-cli-parser.js.map +1 -0
  612. package/dist/lib/skill-template-engine.d.ts +116 -0
  613. package/dist/lib/skill-template-engine.d.ts.map +1 -0
  614. package/dist/lib/skill-template-engine.js +220 -0
  615. package/dist/lib/skill-template-engine.js.map +1 -0
  616. package/dist/lib/sync-engine.d.ts +344 -0
  617. package/dist/lib/sync-engine.d.ts.map +1 -0
  618. package/dist/lib/sync-engine.js +1255 -0
  619. package/dist/lib/sync-engine.js.map +1 -0
  620. package/dist/lib/telemetry/config.d.ts +22 -0
  621. package/dist/lib/telemetry/config.d.ts.map +1 -0
  622. package/dist/lib/telemetry/config.js +210 -0
  623. package/dist/lib/telemetry/config.js.map +1 -0
  624. package/dist/lib/telemetry/exporters/console-exporter.d.ts +72 -0
  625. package/dist/lib/telemetry/exporters/console-exporter.d.ts.map +1 -0
  626. package/dist/lib/telemetry/exporters/console-exporter.js +228 -0
  627. package/dist/lib/telemetry/exporters/console-exporter.js.map +1 -0
  628. package/dist/lib/telemetry/exporters/json-file-exporter.d.ts +48 -0
  629. package/dist/lib/telemetry/exporters/json-file-exporter.d.ts.map +1 -0
  630. package/dist/lib/telemetry/exporters/json-file-exporter.js +202 -0
  631. package/dist/lib/telemetry/exporters/json-file-exporter.js.map +1 -0
  632. package/dist/lib/telemetry/exporters/otel-exporter.d.ts +48 -0
  633. package/dist/lib/telemetry/exporters/otel-exporter.d.ts.map +1 -0
  634. package/dist/lib/telemetry/exporters/otel-exporter.js +299 -0
  635. package/dist/lib/telemetry/exporters/otel-exporter.js.map +1 -0
  636. package/dist/lib/telemetry/exporters/session-file-exporter.d.ts +66 -0
  637. package/dist/lib/telemetry/exporters/session-file-exporter.d.ts.map +1 -0
  638. package/dist/lib/telemetry/exporters/session-file-exporter.js +223 -0
  639. package/dist/lib/telemetry/exporters/session-file-exporter.js.map +1 -0
  640. package/dist/lib/telemetry/index.d.ts +44 -0
  641. package/dist/lib/telemetry/index.d.ts.map +1 -0
  642. package/dist/lib/telemetry/index.js +69 -0
  643. package/dist/lib/telemetry/index.js.map +1 -0
  644. package/dist/lib/telemetry/instrumentation/cli-instrumentation.d.ts +25 -0
  645. package/dist/lib/telemetry/instrumentation/cli-instrumentation.d.ts.map +1 -0
  646. package/dist/lib/telemetry/instrumentation/cli-instrumentation.js +83 -0
  647. package/dist/lib/telemetry/instrumentation/cli-instrumentation.js.map +1 -0
  648. package/dist/lib/telemetry/instrumentation/discovery-instrumentation.d.ts +21 -0
  649. package/dist/lib/telemetry/instrumentation/discovery-instrumentation.d.ts.map +1 -0
  650. package/dist/lib/telemetry/instrumentation/discovery-instrumentation.js +78 -0
  651. package/dist/lib/telemetry/instrumentation/discovery-instrumentation.js.map +1 -0
  652. package/dist/lib/telemetry/instrumentation/mcp-instrumentation.d.ts +76 -0
  653. package/dist/lib/telemetry/instrumentation/mcp-instrumentation.d.ts.map +1 -0
  654. package/dist/lib/telemetry/instrumentation/mcp-instrumentation.js +168 -0
  655. package/dist/lib/telemetry/instrumentation/mcp-instrumentation.js.map +1 -0
  656. package/dist/lib/telemetry/instrumentation/sync-instrumentation.d.ts +25 -0
  657. package/dist/lib/telemetry/instrumentation/sync-instrumentation.d.ts.map +1 -0
  658. package/dist/lib/telemetry/instrumentation/sync-instrumentation.js +51 -0
  659. package/dist/lib/telemetry/instrumentation/sync-instrumentation.js.map +1 -0
  660. package/dist/lib/telemetry/session-context.d.ts +109 -0
  661. package/dist/lib/telemetry/session-context.d.ts.map +1 -0
  662. package/dist/lib/telemetry/session-context.js +170 -0
  663. package/dist/lib/telemetry/session-context.js.map +1 -0
  664. package/dist/lib/telemetry/telemetry-manager.d.ts +88 -0
  665. package/dist/lib/telemetry/telemetry-manager.d.ts.map +1 -0
  666. package/dist/lib/telemetry/telemetry-manager.js +347 -0
  667. package/dist/lib/telemetry/telemetry-manager.js.map +1 -0
  668. package/dist/lib/telemetry/types.d.ts +302 -0
  669. package/dist/lib/telemetry/types.d.ts.map +1 -0
  670. package/dist/lib/telemetry/types.js +6 -0
  671. package/dist/lib/telemetry/types.js.map +1 -0
  672. package/dist/lib/template-engine.d.ts +5 -0
  673. package/dist/lib/template-engine.d.ts.map +1 -0
  674. package/dist/lib/template-engine.js +294 -0
  675. package/dist/lib/template-engine.js.map +1 -0
  676. package/dist/lib/unified-template-engine/computed-variables.d.ts +38 -0
  677. package/dist/lib/unified-template-engine/computed-variables.d.ts.map +1 -0
  678. package/dist/lib/unified-template-engine/computed-variables.js +85 -0
  679. package/dist/lib/unified-template-engine/computed-variables.js.map +1 -0
  680. package/dist/lib/unified-template-engine/index.d.ts +67 -0
  681. package/dist/lib/unified-template-engine/index.d.ts.map +1 -0
  682. package/dist/lib/unified-template-engine/index.js +200 -0
  683. package/dist/lib/unified-template-engine/index.js.map +1 -0
  684. package/dist/lib/unified-template-engine/resolver.d.ts +63 -0
  685. package/dist/lib/unified-template-engine/resolver.d.ts.map +1 -0
  686. package/dist/lib/unified-template-engine/resolver.js +312 -0
  687. package/dist/lib/unified-template-engine/resolver.js.map +1 -0
  688. package/dist/lib/unified-template-engine/types.d.ts +177 -0
  689. package/dist/lib/unified-template-engine/types.d.ts.map +1 -0
  690. package/dist/lib/unified-template-engine/types.js +7 -0
  691. package/dist/lib/unified-template-engine/types.js.map +1 -0
  692. package/dist/lib/unified-template-engine/validator.d.ts +23 -0
  693. package/dist/lib/unified-template-engine/validator.d.ts.map +1 -0
  694. package/dist/lib/unified-template-engine/validator.js +217 -0
  695. package/dist/lib/unified-template-engine/validator.js.map +1 -0
  696. package/dist/lib/validation/rules/plan-rules.d.ts +48 -0
  697. package/dist/lib/validation/rules/plan-rules.d.ts.map +1 -0
  698. package/dist/lib/validation/rules/plan-rules.js +152 -0
  699. package/dist/lib/validation/rules/plan-rules.js.map +1 -0
  700. package/dist/lib/validation/rules/ticket-rules.d.ts +54 -0
  701. package/dist/lib/validation/rules/ticket-rules.d.ts.map +1 -0
  702. package/dist/lib/validation/rules/ticket-rules.js +136 -0
  703. package/dist/lib/validation/rules/ticket-rules.js.map +1 -0
  704. package/dist/lib/validation/schema-validator.d.ts +26 -0
  705. package/dist/lib/validation/schema-validator.d.ts.map +1 -0
  706. package/dist/lib/validation/schema-validator.js +183 -0
  707. package/dist/lib/validation/schema-validator.js.map +1 -0
  708. package/dist/lib/validation/validation-report.d.ts +68 -0
  709. package/dist/lib/validation/validation-report.d.ts.map +1 -0
  710. package/dist/lib/validation/validation-report.js +141 -0
  711. package/dist/lib/validation/validation-report.js.map +1 -0
  712. package/dist/lib/version-validator.d.ts +89 -0
  713. package/dist/lib/version-validator.d.ts.map +1 -0
  714. package/dist/lib/version-validator.js +178 -0
  715. package/dist/lib/version-validator.js.map +1 -0
  716. package/dist/lib/wizard/detection.d.ts +48 -0
  717. package/dist/lib/wizard/detection.d.ts.map +1 -0
  718. package/dist/lib/wizard/detection.js +116 -0
  719. package/dist/lib/wizard/detection.js.map +1 -0
  720. package/dist/lib/wizard/file-handlers.d.ts +40 -0
  721. package/dist/lib/wizard/file-handlers.d.ts.map +1 -0
  722. package/dist/lib/wizard/file-handlers.js +204 -0
  723. package/dist/lib/wizard/file-handlers.js.map +1 -0
  724. package/dist/lib/wizard/index.d.ts +9 -0
  725. package/dist/lib/wizard/index.d.ts.map +1 -0
  726. package/dist/lib/wizard/index.js +9 -0
  727. package/dist/lib/wizard/index.js.map +1 -0
  728. package/dist/lib/wizard/init-wizard.d.ts +35 -0
  729. package/dist/lib/wizard/init-wizard.d.ts.map +1 -0
  730. package/dist/lib/wizard/init-wizard.js +86 -0
  731. package/dist/lib/wizard/init-wizard.js.map +1 -0
  732. package/dist/lib/wizard/module-groups.d.ts +55 -0
  733. package/dist/lib/wizard/module-groups.d.ts.map +1 -0
  734. package/dist/lib/wizard/module-groups.js +128 -0
  735. package/dist/lib/wizard/module-groups.js.map +1 -0
  736. package/dist/lib/wizard/prompts.d.ts +36 -0
  737. package/dist/lib/wizard/prompts.d.ts.map +1 -0
  738. package/dist/lib/wizard/prompts.js +253 -0
  739. package/dist/lib/wizard/prompts.js.map +1 -0
  740. package/dist/lib/wizard/summary.d.ts +45 -0
  741. package/dist/lib/wizard/summary.d.ts.map +1 -0
  742. package/dist/lib/wizard/summary.js +162 -0
  743. package/dist/lib/wizard/summary.js.map +1 -0
  744. package/dist/mcp/index.d.ts +15 -0
  745. package/dist/mcp/index.d.ts.map +1 -0
  746. package/dist/mcp/index.js +75 -0
  747. package/dist/mcp/index.js.map +1 -0
  748. package/dist/mcp/result-formatter.d.ts +68 -0
  749. package/dist/mcp/result-formatter.d.ts.map +1 -0
  750. package/dist/mcp/result-formatter.js +191 -0
  751. package/dist/mcp/result-formatter.js.map +1 -0
  752. package/dist/mcp/tool-registry.d.ts +70 -0
  753. package/dist/mcp/tool-registry.d.ts.map +1 -0
  754. package/dist/mcp/tool-registry.js +183 -0
  755. package/dist/mcp/tool-registry.js.map +1 -0
  756. package/dist/mcp/tools/agent.d.ts +22 -0
  757. package/dist/mcp/tools/agent.d.ts.map +1 -0
  758. package/dist/mcp/tools/agent.js +267 -0
  759. package/dist/mcp/tools/agent.js.map +1 -0
  760. package/dist/mcp/tools/backlog.d.ts +15 -0
  761. package/dist/mcp/tools/backlog.d.ts.map +1 -0
  762. package/dist/mcp/tools/backlog.js +355 -0
  763. package/dist/mcp/tools/backlog.js.map +1 -0
  764. package/dist/mcp/tools/confluence.d.ts +32 -0
  765. package/dist/mcp/tools/confluence.d.ts.map +1 -0
  766. package/dist/mcp/tools/confluence.js +367 -0
  767. package/dist/mcp/tools/confluence.js.map +1 -0
  768. package/dist/mcp/tools/create.d.ts +22 -0
  769. package/dist/mcp/tools/create.d.ts.map +1 -0
  770. package/dist/mcp/tools/create.js +311 -0
  771. package/dist/mcp/tools/create.js.map +1 -0
  772. package/dist/mcp/tools/framework.d.ts +24 -0
  773. package/dist/mcp/tools/framework.d.ts.map +1 -0
  774. package/dist/mcp/tools/framework.js +430 -0
  775. package/dist/mcp/tools/framework.js.map +1 -0
  776. package/dist/mcp/tools/index.d.ts +32 -0
  777. package/dist/mcp/tools/index.d.ts.map +1 -0
  778. package/dist/mcp/tools/index.js +58 -0
  779. package/dist/mcp/tools/index.js.map +1 -0
  780. package/dist/mcp/tools/jira.d.ts +12 -0
  781. package/dist/mcp/tools/jira.d.ts.map +1 -0
  782. package/dist/mcp/tools/jira.js +206 -0
  783. package/dist/mcp/tools/jira.js.map +1 -0
  784. package/dist/mcp/tools/planning.d.ts +22 -0
  785. package/dist/mcp/tools/planning.d.ts.map +1 -0
  786. package/dist/mcp/tools/planning.js +264 -0
  787. package/dist/mcp/tools/planning.js.map +1 -0
  788. package/dist/mcp/tools/skill.d.ts +42 -0
  789. package/dist/mcp/tools/skill.d.ts.map +1 -0
  790. package/dist/mcp/tools/skill.js +561 -0
  791. package/dist/mcp/tools/skill.js.map +1 -0
  792. package/dist/mcp/tools/template.d.ts +36 -0
  793. package/dist/mcp/tools/template.d.ts.map +1 -0
  794. package/dist/mcp/tools/template.js +354 -0
  795. package/dist/mcp/tools/template.js.map +1 -0
  796. package/dist/mcp/tools/writer.d.ts +23 -0
  797. package/dist/mcp/tools/writer.d.ts.map +1 -0
  798. package/dist/mcp/tools/writer.js +394 -0
  799. package/dist/mcp/tools/writer.js.map +1 -0
  800. package/dist/mcp/types.d.ts +102 -0
  801. package/dist/mcp/types.d.ts.map +1 -0
  802. package/dist/mcp/types.js +37 -0
  803. package/dist/mcp/types.js.map +1 -0
  804. package/dist/templates/index.d.ts +11 -0
  805. package/dist/templates/index.d.ts.map +1 -0
  806. package/dist/templates/index.js +11 -0
  807. package/dist/templates/index.js.map +1 -0
  808. package/dist/templates/mcp-hooks.d.ts +37 -0
  809. package/dist/templates/mcp-hooks.d.ts.map +1 -0
  810. package/dist/templates/mcp-hooks.js +224 -0
  811. package/dist/templates/mcp-hooks.js.map +1 -0
  812. package/dist/templates/serena-project.d.ts +14 -0
  813. package/dist/templates/serena-project.d.ts.map +1 -0
  814. package/dist/templates/serena-project.js +105 -0
  815. package/dist/templates/serena-project.js.map +1 -0
  816. package/dist/templates/settings-json.d.ts +28 -0
  817. package/dist/templates/settings-json.d.ts.map +1 -0
  818. package/dist/templates/settings-json.js +190 -0
  819. package/dist/templates/settings-json.js.map +1 -0
  820. package/dist/templates/settings-local.d.ts +69 -0
  821. package/dist/templates/settings-local.d.ts.map +1 -0
  822. package/dist/templates/settings-local.js +56 -0
  823. package/dist/templates/settings-local.js.map +1 -0
  824. package/dist/templates/statusline.d.ts +7 -0
  825. package/dist/templates/statusline.d.ts.map +1 -0
  826. package/dist/templates/statusline.js +260 -0
  827. package/dist/templates/statusline.js.map +1 -0
  828. package/dist/types/command-options.d.ts +392 -0
  829. package/dist/types/command-options.d.ts.map +1 -0
  830. package/dist/types/command-options.js +15 -0
  831. package/dist/types/command-options.js.map +1 -0
  832. package/framework/modules/backlog/agents/ai-backlog-manager.md +430 -0
  833. package/framework/modules/backlog/commands/cmd-backlog-create-ticket.md +42 -0
  834. package/framework/modules/backlog/commands/cmd-backlog-import.md +42 -0
  835. package/framework/modules/backlog/commands/cmd-backlog-migrate-milestones.md +42 -0
  836. package/framework/modules/backlog/commands/cmd-backlog-update-fields.md +42 -0
  837. package/framework/modules/backlog/commands/cmd-backlog-validate.md +42 -0
  838. package/framework/modules/backlog/module.json +82 -0
  839. package/framework/modules/backlog/schemas/ticket.schema.json +143 -0
  840. package/framework/modules/backlog/skills/backlog/building-tickets/BODY-STRUCTURE.md +470 -0
  841. package/framework/modules/backlog/skills/backlog/building-tickets/EXAMPLES.md +561 -0
  842. package/framework/modules/backlog/skills/backlog/building-tickets/SKILL.md +293 -0
  843. package/framework/modules/backlog/skills/backlog/building-tickets/VALIDATION-RULES.md +748 -0
  844. package/framework/modules/backlog/skills/backlog/building-tickets/YAML-STRUCTURE.md +439 -0
  845. package/framework/modules/backlog/skills/backlog/building-tickets/templates/bug.template.md +83 -0
  846. package/framework/modules/backlog/skills/backlog/building-tickets/templates/epic.template.md +96 -0
  847. package/framework/modules/backlog/skills/backlog/building-tickets/templates/story.template.md +68 -0
  848. package/framework/modules/backlog/skills/backlog/building-tickets/templates/task.template.md +66 -0
  849. package/framework/modules/backlog/skills/backlog/building-tickets/templates/template.config.json +50 -0
  850. package/framework/modules/backlog/skills/backlog/organizing-backlog/DIRECTORY-STRUCTURE.md +195 -0
  851. package/framework/modules/backlog/skills/backlog/organizing-backlog/EXAMPLES.md +374 -0
  852. package/framework/modules/backlog/skills/backlog/organizing-backlog/JIRA-SOURCE-OF-TRUTH.md +384 -0
  853. package/framework/modules/backlog/skills/backlog/organizing-backlog/NAMING-CONVENTIONS.md +230 -0
  854. package/framework/modules/backlog/skills/backlog/organizing-backlog/SKILL.md +332 -0
  855. package/framework/modules/backlog/skills/backlog/organizing-backlog/WORKFLOW-PIPELINE.md +298 -0
  856. package/framework/modules/backlog/templates/ticket.md.template +111 -0
  857. package/framework/modules/coding/agents/ai-app-developer.md +275 -0
  858. package/framework/modules/coding/agents/ai-architect.md +454 -0
  859. package/framework/modules/coding/agents/ai-hig-reviewer.md +69 -0
  860. package/framework/modules/coding/agents/ai-ios-developer.md +303 -0
  861. package/framework/modules/coding/module.json +56 -0
  862. package/framework/modules/coding/skills/coding/designing-architecture/SKILL.md +475 -0
  863. package/framework/modules/coding/skills/coding/designing-ios-ui/SKILL.md +405 -0
  864. package/framework/modules/coding/skills/coding/implementing-code/EXAMPLES.md +565 -0
  865. package/framework/modules/coding/skills/coding/implementing-code/SKILL.md +490 -0
  866. package/framework/modules/coding/skills/coding/implementing-ios/ANTI-PATTERNS.md +564 -0
  867. package/framework/modules/coding/skills/coding/implementing-ios/ARCHITECTURE-PATTERNS.md +539 -0
  868. package/framework/modules/coding/skills/coding/implementing-ios/HIG-COMPLIANCE.md +492 -0
  869. package/framework/modules/coding/skills/coding/implementing-ios/SKILL.md +506 -0
  870. package/framework/modules/coding/skills/coding/implementing-ios/SWIFTUI-PATTERNS.md +625 -0
  871. package/framework/modules/coding/skills/coding/implementing-ios/TESTING-PATTERNS.md +625 -0
  872. package/framework/modules/coding/skills/coding/implementing-ios/UIKIT-PATTERNS.md +470 -0
  873. package/framework/modules/coding/skills/coding/structuring-code/CHECKLISTS.md +151 -0
  874. package/framework/modules/coding/skills/coding/structuring-code/DRY-PRINCIPLES.md +285 -0
  875. package/framework/modules/coding/skills/coding/structuring-code/FILE-ORGANIZATION.md +278 -0
  876. package/framework/modules/coding/skills/coding/structuring-code/READABILITY.md +291 -0
  877. package/framework/modules/coding/skills/coding/structuring-code/SKILL.md +289 -0
  878. package/framework/modules/confluence/agents/ai-confluence-manager.md +369 -0
  879. package/framework/modules/confluence/commands/cmd-confluence-create-page.md +42 -0
  880. package/framework/modules/confluence/commands/cmd-confluence-fetch-page.md +42 -0
  881. package/framework/modules/confluence/commands/cmd-confluence-import-reports.md +42 -0
  882. package/framework/modules/confluence/commands/cmd-confluence-validate.md +42 -0
  883. package/framework/modules/confluence/module.json +69 -0
  884. package/framework/modules/confluence/schemas/adf.schema.json +128 -0
  885. package/framework/modules/confluence/skills/confluence/converting-adf/SKILL.md +455 -0
  886. package/framework/modules/confluence/skills/confluence/publishing-confluence/ADF-EXAMPLES.md +433 -0
  887. package/framework/modules/confluence/skills/confluence/publishing-confluence/EXAMPLES.md +513 -0
  888. package/framework/modules/confluence/skills/confluence/publishing-confluence/SKILL.md +651 -0
  889. package/framework/modules/core/agents/ai-framework-developer.md +184 -0
  890. package/framework/modules/core/agents/ai-framework-manager.md +222 -0
  891. package/framework/modules/core/agents/ai-scout-backlog.md +65 -0
  892. package/framework/modules/core/agents/ai-scout-codebase.md +66 -0
  893. package/framework/modules/core/agents/ai-scout-knowledge.md +63 -0
  894. package/framework/modules/core/commands/cmd-agent-list.md +37 -0
  895. package/framework/modules/core/commands/cmd-agent-run.md +37 -0
  896. package/framework/modules/core/commands/cmd-agent-show.md +37 -0
  897. package/framework/modules/core/commands/cmd-bump-version.md +42 -0
  898. package/framework/modules/core/commands/cmd-mcp-check.md +59 -0
  899. package/framework/modules/core/commands/cmd-mcp-seed.md +69 -0
  900. package/framework/modules/core/commands/cmd-mcp-setup.md +61 -0
  901. package/framework/modules/core/commands/cmd-mcp-status.md +70 -0
  902. package/framework/modules/core/commands/cmd-validate-links.md +42 -0
  903. package/framework/modules/core/commands/cmd-validate-versions.md +42 -0
  904. package/framework/modules/core/hooks/_lib/notify-helper.sh +27 -0
  905. package/framework/modules/core/hooks/block-main-commit.sh +35 -0
  906. package/framework/modules/core/hooks/notify.sh +43 -0
  907. package/framework/modules/core/hooks/post-write-format.sh +52 -0
  908. package/framework/modules/core/hooks/post-write-validate.sh +24 -0
  909. package/framework/modules/core/hooks/pre-bash-safety.sh +44 -0
  910. package/framework/modules/core/hooks/pre-commit-skill-reminder.sh +24 -0
  911. package/framework/modules/core/hooks/pre-write-quality.sh +24 -0
  912. package/framework/modules/core/hooks/session-compact-context.sh +37 -0
  913. package/framework/modules/core/hooks/session-end-reminder.sh +36 -0
  914. package/framework/modules/core/hooks/session-start-context.sh +33 -0
  915. package/framework/modules/core/hooks/session-start-worktree.sh +30 -0
  916. package/framework/modules/core/hooks/skill-reminder.sh +24 -0
  917. package/framework/modules/core/hooks/stop-commit-check.sh +24 -0
  918. package/framework/modules/core/hooks/stop-pr-suggest.sh +42 -0
  919. package/framework/modules/core/hooks/stop-quality-check.sh +24 -0
  920. package/framework/modules/core/hooks/subagent-context-loader.sh +24 -0
  921. package/framework/modules/core/module.json +205 -0
  922. package/framework/modules/core/registries/schemas/agents.schema.json +209 -0
  923. package/framework/modules/core/registries/schemas/command.schema.json +98 -0
  924. package/framework/modules/core/registries/schemas/custom-agent.schema.json +108 -0
  925. package/framework/modules/core/registries/schemas/module.schema.json +233 -0
  926. package/framework/modules/core/registries/schemas/template.schema.json +164 -0
  927. package/framework/modules/core/registries/skill-triggers.json +196 -0
  928. package/framework/modules/core/skills/building-agents/AGENT-TEMPLATE.md +289 -0
  929. package/framework/modules/core/skills/building-agents/CONTENT-ROUTING.md +302 -0
  930. package/framework/modules/core/skills/building-agents/EXAMPLES.md +448 -0
  931. package/framework/modules/core/skills/building-agents/SKILL.md +289 -0
  932. package/framework/modules/core/skills/building-agents/VALIDATION-CHECKLIST.md +304 -0
  933. package/framework/modules/core/skills/building-context/CONTENT-GUIDELINES.md +471 -0
  934. package/framework/modules/core/skills/building-context/EXAMPLES.md +1606 -0
  935. package/framework/modules/core/skills/building-context/LEVEL-DECISION-TREE.md +262 -0
  936. package/framework/modules/core/skills/building-context/SKILL.md +479 -0
  937. package/framework/modules/core/skills/building-context/VALIDATION-CHECKLIST.md +358 -0
  938. package/framework/modules/core/skills/building-framework/AGENT-CREATION-WORKFLOW.md +268 -0
  939. package/framework/modules/core/skills/building-framework/DECISION-TREES.md +183 -0
  940. package/framework/modules/core/skills/building-framework/EXAMPLES.md +387 -0
  941. package/framework/modules/core/skills/building-framework/GOVERNANCE-RULES.md +446 -0
  942. package/framework/modules/core/skills/building-framework/GOVERNANCE-UPDATE-WORKFLOW.md +172 -0
  943. package/framework/modules/core/skills/building-framework/REGISTRY-GUIDE.md +551 -0
  944. package/framework/modules/core/skills/building-framework/SCOPE-DECISION-TREE.md +284 -0
  945. package/framework/modules/core/skills/building-framework/SKILL.md +210 -0
  946. package/framework/modules/core/skills/building-skills/ANTI-PATTERNS-CONTENT.md +219 -0
  947. package/framework/modules/core/skills/building-skills/ANTI-PATTERNS-MCP.md +119 -0
  948. package/framework/modules/core/skills/building-skills/ANTI-PATTERNS-NAMING.md +129 -0
  949. package/framework/modules/core/skills/building-skills/ANTI-PATTERNS-STRUCTURE.md +139 -0
  950. package/framework/modules/core/skills/building-skills/EXAMPLES.md +330 -0
  951. package/framework/modules/core/skills/building-skills/PATTERNS.md +523 -0
  952. package/framework/modules/core/skills/building-skills/SKILL-CREATION-WORKFLOW-FRAMEWORK.md +253 -0
  953. package/framework/modules/core/skills/building-skills/SKILL.md +543 -0
  954. package/framework/modules/core/skills/committing-code/EXAMPLES.md +567 -0
  955. package/framework/modules/core/skills/committing-code/SKILL.md +285 -0
  956. package/framework/modules/core/skills/committing-code/STANDARDS-BRANCHES.md +95 -0
  957. package/framework/modules/core/skills/committing-code/STANDARDS-COMMITS.md +140 -0
  958. package/framework/modules/core/skills/committing-code/STANDARDS-FRAMEWORK.md +234 -0
  959. package/framework/modules/core/skills/committing-code/STANDARDS-TICKETS.md +102 -0
  960. package/framework/modules/core/skills/gathering-intelligence/SKILL.md +136 -0
  961. package/framework/modules/core/skills/managing-versions/EXAMPLES.md +277 -0
  962. package/framework/modules/core/skills/managing-versions/SCRIPTS-REFERENCE.md +295 -0
  963. package/framework/modules/core/skills/managing-versions/SKILL.md +260 -0
  964. package/framework/modules/core/skills/managing-versions/STANDARDS.md +231 -0
  965. package/framework/modules/core/skills/using-context/EXAMPLES.md +257 -0
  966. package/framework/modules/core/skills/using-context/SKILL.md +238 -0
  967. package/framework/modules/core/skills/using-context/STANDARDS.md +241 -0
  968. package/framework/modules/core/skills/using-framework/BEST-PRACTICES.md +421 -0
  969. package/framework/modules/core/skills/using-framework/DISCOVERY-ENGINE-ARCHITECTURE.md +331 -0
  970. package/framework/modules/core/skills/using-framework/EXAMPLES.md +535 -0
  971. package/framework/modules/core/skills/using-framework/ROUTES-REGISTRY-DESIGN.md +455 -0
  972. package/framework/modules/core/skills/using-framework/SKILL.md +176 -0
  973. package/framework/modules/core/skills/using-mcp/ANTI-PATTERNS.md +566 -0
  974. package/framework/modules/core/skills/using-mcp/DECISION-MATRICES.md +385 -0
  975. package/framework/modules/core/skills/using-mcp/EXAMPLES.md +466 -0
  976. package/framework/modules/core/skills/using-mcp/FRAMEWORK-MCP-PATTERNS.md +395 -0
  977. package/framework/modules/core/skills/using-mcp/QUICK-REFERENCE.md +98 -0
  978. package/framework/modules/core/skills/using-mcp/SKILL.md +624 -0
  979. package/framework/modules/core/skills/using-mcp/TOOLS-REFERENCE.md +532 -0
  980. package/framework/modules/core/skills/validating-links/EXAMPLES.md +326 -0
  981. package/framework/modules/core/skills/validating-links/SKILL.md +307 -0
  982. package/framework/modules/core/skills/validating-links/STANDARDS.md +353 -0
  983. package/framework/modules/core/skills/validating-markdown/EXAMPLES.md +516 -0
  984. package/framework/modules/core/skills/validating-markdown/SKILL.md +503 -0
  985. package/framework/modules/core/skills/validating-markdown/VALIDATION-RULES.md +360 -0
  986. package/framework/modules/core/skills/validating-markdown/YAML-SCHEMA.md +424 -0
  987. package/framework/modules/core/skills/verifying-quality/ANTI-PATTERNS.md +302 -0
  988. package/framework/modules/core/skills/verifying-quality/CLI-TESTING.md +389 -0
  989. package/framework/modules/core/skills/verifying-quality/DEFENSIVE-CODING.md +433 -0
  990. package/framework/modules/core/skills/verifying-quality/EVALUATION-PROTOCOL.md +106 -0
  991. package/framework/modules/core/skills/verifying-quality/EXAMPLES.md +588 -0
  992. package/framework/modules/core/skills/verifying-quality/QUALITY-CHECKLIST.md +181 -0
  993. package/framework/modules/core/skills/verifying-quality/SKILL.md +275 -0
  994. package/framework/modules/core/templates/agent/agent.template.md +97 -0
  995. package/framework/modules/core/templates/agent/template.config.json +47 -0
  996. package/framework/modules/core/templates/config/agentic-framework.json.template +17 -0
  997. package/framework/modules/core/templates/config/hooks/pre-commit-sync.sh.template +190 -0
  998. package/framework/modules/core/templates/config/hooks/pre-push.sh.template +330 -0
  999. package/framework/modules/core/templates/config/settings.local.json.template +39 -0
  1000. package/framework/modules/core/templates/config/statusline.sh.template +253 -0
  1001. package/framework/modules/core/templates/context/business-advanced.template.md +71 -0
  1002. package/framework/modules/core/templates/context/business-basic.template.md +39 -0
  1003. package/framework/modules/core/templates/context/business-expert.template.md +95 -0
  1004. package/framework/modules/core/templates/context/process-advanced.template.md +141 -0
  1005. package/framework/modules/core/templates/context/process-basic.template.md +87 -0
  1006. package/framework/modules/core/templates/context/process-expert.template.md +213 -0
  1007. package/framework/modules/core/templates/context/technical-advanced.template.md +111 -0
  1008. package/framework/modules/core/templates/context/technical-basic.template.md +66 -0
  1009. package/framework/modules/core/templates/context/technical-expert.template.md +157 -0
  1010. package/framework/modules/core/templates/module/module.json.template +20 -0
  1011. package/framework/modules/core/templates/module/template.config.json +41 -0
  1012. package/framework/modules/core/templates/skill/SKILL.md.template +96 -0
  1013. package/framework/modules/core/templates/skill/template.config.json +39 -0
  1014. package/framework/modules/jira/agents/ai-jira-manager.md +320 -0
  1015. package/framework/modules/jira/commands/cmd-jira-export.md +42 -0
  1016. package/framework/modules/jira/commands/cmd-jira-sync.md +42 -0
  1017. package/framework/modules/jira/module.json +55 -0
  1018. package/framework/modules/jira/schemas/jira-sync.config.json +75 -0
  1019. package/framework/modules/jira/skills/jira/integrating-jira/CONFLUENCE-PATTERNS.md +284 -0
  1020. package/framework/modules/jira/skills/jira/integrating-jira/CONVERSION-RULES.md +188 -0
  1021. package/framework/modules/jira/skills/jira/integrating-jira/EXAMPLES.md +406 -0
  1022. package/framework/modules/jira/skills/jira/integrating-jira/JIRA-PATTERNS.md +284 -0
  1023. package/framework/modules/jira/skills/jira/integrating-jira/SKILL.md +412 -0
  1024. package/framework/modules/reporting/agents/ai-report-manager.md +410 -0
  1025. package/framework/modules/reporting/module.json +35 -0
  1026. package/framework/modules/reporting/skills/reporting/building-reports/EXAMPLES.md +613 -0
  1027. package/framework/modules/reporting/skills/reporting/building-reports/SKILL.md +509 -0
  1028. package/framework/modules/writer/BUILD_SYSTEM.md +325 -0
  1029. package/framework/modules/writer/MIGRATION.md +326 -0
  1030. package/framework/modules/writer/agents/ai-book-writer.md +196 -0
  1031. package/framework/modules/writer/agents/ai-prose-writer.md +58 -0
  1032. package/framework/modules/writer/agents/ai-world-builder.md +46 -0
  1033. package/framework/modules/writer/commands/cmd-writer-add-fact.md +42 -0
  1034. package/framework/modules/writer/commands/cmd-writer-analyze.md +42 -0
  1035. package/framework/modules/writer/commands/cmd-writer-build.md +42 -0
  1036. package/framework/modules/writer/commands/cmd-writer-create-chapter.md +42 -0
  1037. package/framework/modules/writer/commands/cmd-writer-create-character.md +42 -0
  1038. package/framework/modules/writer/commands/cmd-writer-create-history-event.md +42 -0
  1039. package/framework/modules/writer/commands/cmd-writer-create-magic-system.md +42 -0
  1040. package/framework/modules/writer/commands/cmd-writer-create-nation.md +42 -0
  1041. package/framework/modules/writer/commands/cmd-writer-create-part.md +42 -0
  1042. package/framework/modules/writer/commands/cmd-writer-create-region.md +42 -0
  1043. package/framework/modules/writer/commands/cmd-writer-create-scene.md +42 -0
  1044. package/framework/modules/writer/commands/cmd-writer-create-world-rule.md +42 -0
  1045. package/framework/modules/writer/commands/cmd-writer-export.md +42 -0
  1046. package/framework/modules/writer/commands/cmd-writer-generate-context.md +42 -0
  1047. package/framework/modules/writer/commands/cmd-writer-init-baseline.md +42 -0
  1048. package/framework/modules/writer/commands/cmd-writer-init.md +42 -0
  1049. package/framework/modules/writer/commands/cmd-writer-lock-fact.md +42 -0
  1050. package/framework/modules/writer/commands/cmd-writer-validate-immutability.md +42 -0
  1051. package/framework/modules/writer/commands/cmd-writer-validate.md +42 -0
  1052. package/framework/modules/writer/module.json +181 -0
  1053. package/framework/modules/writer/schemas/baseline.schema.json +60 -0
  1054. package/framework/modules/writer/schemas/manifest.schema.json +155 -0
  1055. package/framework/modules/writer/schemas/prerequisites.schema.json +171 -0
  1056. package/framework/modules/writer/schemas/token-budgets.json +129 -0
  1057. package/framework/modules/writer/schemas/token-budgets.schema.json +92 -0
  1058. package/framework/modules/writer/schemas/world-fact.schema.json +172 -0
  1059. package/framework/modules/writer/schemas/world-lock.schema.json +244 -0
  1060. package/framework/modules/writer/skills/writer/building-worlds/CONSISTENCY-PILLARS.md +412 -0
  1061. package/framework/modules/writer/skills/writer/building-worlds/CULTURE-BUILDING.md +354 -0
  1062. package/framework/modules/writer/skills/writer/building-worlds/GEOGRAPHY-HISTORY.md +293 -0
  1063. package/framework/modules/writer/skills/writer/building-worlds/MAGIC-SYSTEMS.md +311 -0
  1064. package/framework/modules/writer/skills/writer/building-worlds/REVELATION-CHECKLIST.md +282 -0
  1065. package/framework/modules/writer/skills/writer/building-worlds/SKILL.md +313 -0
  1066. package/framework/modules/writer/skills/writer/organizing-books/DOMAINS.md +212 -0
  1067. package/framework/modules/writer/skills/writer/organizing-books/FOLDER-STRUCTURE.md +593 -0
  1068. package/framework/modules/writer/skills/writer/organizing-books/IMMUTABILITY-GUIDE.md +350 -0
  1069. package/framework/modules/writer/skills/writer/organizing-books/METADATA-GUIDE.md +780 -0
  1070. package/framework/modules/writer/skills/writer/organizing-books/SKILL.md +257 -0
  1071. package/framework/modules/writer/skills/writer/organizing-books/SSOT-RULES.md +214 -0
  1072. package/framework/modules/writer/skills/writer/organizing-books/WORLD-STRUCTURE.md +222 -0
  1073. package/framework/modules/writer/skills/writer/organizing-books/templates/chapter.template.md +57 -0
  1074. package/framework/modules/writer/skills/writer/organizing-books/templates/character.template.md +121 -0
  1075. package/framework/modules/writer/skills/writer/organizing-books/templates/part.template.md +67 -0
  1076. package/framework/modules/writer/skills/writer/organizing-books/templates/scene.template.md +62 -0
  1077. package/framework/modules/writer/skills/writer/organizing-books/templates/template.config.json +114 -0
  1078. package/framework/modules/writer/skills/writer/writing-prose/CHARACTER-VOICE.md +654 -0
  1079. package/framework/modules/writer/skills/writer/writing-prose/DESCRIPTION-TECHNIQUES.md +688 -0
  1080. package/framework/modules/writer/skills/writer/writing-prose/DIALOGUE-GUIDE.md +663 -0
  1081. package/framework/modules/writer/skills/writer/writing-prose/PACING-STRUCTURE.md +613 -0
  1082. package/framework/modules/writer/skills/writer/writing-prose/PROSE-PATTERNS.md +569 -0
  1083. package/framework/modules/writer/skills/writer/writing-prose/SKILL.md +583 -0
  1084. package/framework/modules/writer/skills/writer/writing-prose/WORLD-BUILDING-RULES.md +692 -0
  1085. package/framework/modules/writer/skills/writer/writing-prose/examples/blended-accessible.md +651 -0
  1086. package/framework/modules/writer/skills/writer/writing-prose/examples/tolkien-style.md +534 -0
  1087. package/framework/modules/writer/skills/writer/writing-prose/examples/zelazny-style.md +415 -0
  1088. package/framework/modules/writer/src/package.json +3 -0
  1089. package/framework/modules/writer/templates/package.json +28 -0
  1090. package/framework/modules/writer/templates/world/baseline.template.md +183 -0
  1091. package/framework/modules/writer/templates/world/history-event.template.md +89 -0
  1092. package/framework/modules/writer/templates/world/magic-system.template.md +138 -0
  1093. package/framework/modules/writer/templates/world/manifest.template.json +9 -0
  1094. package/framework/modules/writer/templates/world/nation.template.md +123 -0
  1095. package/framework/modules/writer/templates/world/region.template.md +65 -0
  1096. package/framework/modules/writer/templates/world/world-rule.template.md +50 -0
  1097. package/package.json +110 -0
@@ -0,0 +1,1606 @@
1
+ # Context Authoring Examples
2
+
3
+ ## Example 1: E-commerce Business Context
4
+
5
+ ### Scenario
6
+ An e-commerce platform for handmade goods, similar to Etsy but focused on sustainable products.
7
+
8
+ ---
9
+
10
+ ### BEFORE (WRONG): Everything in Basic
11
+
12
+ ```markdown
13
+ # business-basic.md (~2000 tokens - WAY TOO MUCH!)
14
+
15
+ **Product:** EcoMarket - Online marketplace for sustainable handmade goods
16
+
17
+ **Users:**
18
+ - Artisans who create sustainable products (jewelry, clothing, home goods)
19
+ - Conscious consumers aged 25-45, primarily female, household income $60k+
20
+ - Gift shoppers looking for unique, eco-friendly items
21
+
22
+ **Business Model:**
23
+ - Commission-based: 8% on each sale
24
+ - Premium seller subscriptions: $29/month for enhanced visibility
25
+ - Advertising revenue from sustainable brands
26
+
27
+ **Key Metrics:**
28
+ - GMV (Gross Merchandise Value): $2M monthly
29
+ - Active Sellers: 5,000
30
+ - Monthly Active Buyers: 50,000
31
+ - Average Order Value: $45
32
+ - Seller Retention: 85% year-over-year
33
+
34
+ **Competitive Landscape:**
35
+ - Etsy: Broader focus, 10x larger, less curated
36
+ - Faire: B2B focused, wholesale only
37
+ - Our differentiation: Sustainability certification, carbon-neutral shipping
38
+
39
+ **Strategic Direction:**
40
+ We focus on sustainability-verified products because mainstream marketplaces
41
+ have greenwashing problems. We accept lower GMV growth (30% vs Etsy's 50%)
42
+ in exchange for brand trust and premium positioning.
43
+
44
+ **Decision Framework:**
45
+ New features must:
46
+ - Support sustainability mission (reject if not)
47
+ - Improve seller success metrics
48
+ - Not compromise trust (verified sellers only)
49
+ ```
50
+
51
+ **Issues:**
52
+ 1. Token budget massively exceeded (2000 vs 500 target)
53
+ 2. Metrics belong in ADVANCED, not BASIC
54
+ 3. Competitive analysis belongs in ADVANCED
55
+ 4. Strategic rationale belongs in EXPERT
56
+ 5. Decision framework belongs in EXPERT
57
+ 6. No room for ADVANCED or EXPERT (everything dumped in BASIC)
58
+
59
+ ---
60
+
61
+ ### AFTER (CORRECT): Properly Split Across Levels
62
+
63
+ #### business-basic.md (~500 tokens)
64
+
65
+ ```markdown
66
+ # Business Context - Basic
67
+
68
+ **Product:** EcoMarket - Online marketplace for sustainable handmade goods
69
+
70
+ **Users:**
71
+ - Artisan sellers creating eco-friendly handmade products
72
+ - Conscious consumers seeking sustainable gift and home items
73
+
74
+ **Business Model:**
75
+ - 8% commission on sales
76
+ - $29/month premium seller subscriptions
77
+ - Advertising from sustainable brands
78
+
79
+ **Core Value:**
80
+ Connect verified sustainable artisans with conscious consumers who want
81
+ to shop their values.
82
+
83
+ **Product Category:** B2C/C2C marketplace (two-sided platform)
84
+ ```
85
+
86
+ **Why this is correct:**
87
+ - ~500 tokens
88
+ - Foundational facts only
89
+ - Answers "What is EcoMarket?" and "Who uses it?"
90
+ - No metrics, competition, or strategy
91
+
92
+ ---
93
+
94
+ #### business-advanced.md (~1000 tokens)
95
+
96
+ ```markdown
97
+ # Business Context - Advanced
98
+
99
+ ## Key Metrics
100
+
101
+ **Marketplace Health:**
102
+ - GMV (Gross Merchandise Value): $2M monthly
103
+ - Active Sellers: 5,000
104
+ - Monthly Active Buyers: 50,000
105
+ - Average Order Value: $45
106
+
107
+ **Success Indicators:**
108
+ - Seller Retention: Target 85% year-over-year
109
+ - Buyer Repeat Rate: Target 40% within 90 days
110
+ - Search-to-Purchase: Target 8% conversion
111
+
112
+ ## User Personas
113
+
114
+ **Persona 1: Eco-Conscious Consumer (70% of buyers)**
115
+ - Demographics: Female, 28-42, household income $60k+
116
+ - Motivation: Values-driven shopping, gift giving
117
+ - Pain points: Difficulty verifying sustainability claims elsewhere
118
+ - Success metric: Repeat purchase within 90 days
119
+
120
+ **Persona 2: Sustainable Artisan (primary sellers)**
121
+ - Demographics: Small business owners, 1-3 employees
122
+ - Motivation: Reach values-aligned customers, fair pricing
123
+ - Pain points: Marketing costs, inventory management
124
+ - Success metric: 10+ sales per month
125
+
126
+ ## Competitive Position
127
+
128
+ **Direct Competitors:**
129
+ - Etsy: 10x larger, broader focus, less curated
130
+ - Faire: B2B/wholesale only, not consumer-facing
131
+
132
+ **Our Differentiation:**
133
+ - Sustainability certification (verified sellers only)
134
+ - Carbon-neutral shipping included
135
+ - Premium brand positioning vs mass market
136
+
137
+ **Market Segment:**
138
+ Conscious consumers willing to pay 20-30% premium for verified sustainability.
139
+
140
+ ## Current Priorities
141
+
142
+ **Q4 2025 Focus:**
143
+ 1. Seller acquisition: Grow to 7,500 active sellers
144
+ 2. Trust features: Enhanced sustainability verification
145
+ 3. Repeat buyers: Improve retention to 45%
146
+
147
+ **Pricing Structure:**
148
+ - Free tier: 8% commission, basic shop
149
+ - Premium ($29/mo): 6% commission, featured listings, analytics
150
+ - Enterprise ($199/mo): 5% commission, dedicated support, API access
151
+ ```
152
+
153
+ **Why this is correct:**
154
+ - ~1000 tokens
155
+ - Tactical information for execution
156
+ - Detailed personas and metrics
157
+ - Competitive context for decisions
158
+ - No duplication of basic facts
159
+ - No strategic WHY (that's expert level)
160
+
161
+ ---
162
+
163
+ #### business-expert.md (~1500 tokens)
164
+
165
+ ```markdown
166
+ # Business Context - Expert
167
+
168
+ ## Strategic Direction
169
+
170
+ **Core Strategy:** Premium positioning in sustainable marketplace segment
171
+
172
+ **Rationale:**
173
+ Mass-market marketplaces (Etsy, Amazon Handmade) struggle with greenwashing.
174
+ Consumers increasingly distrust sustainability claims. We sacrifice growth
175
+ velocity for brand trust.
176
+
177
+ **Evidence:**
178
+ - Consumer survey: 73% don't trust "eco-friendly" labels on Etsy
179
+ - Our NPS: 65 vs Etsy's 31 (among sustainability-focused shoppers)
180
+ - Willing to accept 30% slower GMV growth vs competitors
181
+
182
+ **Trade-offs Accepted:**
183
+ - Smaller addressable market (only verified sustainable sellers)
184
+ - Higher CAC ($85 vs $42 for mass market)
185
+ - Slower seller onboarding (verification takes 2-3 weeks)
186
+
187
+ **Revisit Conditions:**
188
+ - If verification becomes industry standard (no differentiation)
189
+ - If CAC exceeds $120 (unit economics break)
190
+ - If mass-market competitors achieve >50 NPS
191
+
192
+ ## Decision Framework
193
+
194
+ **Feature Evaluation:**
195
+ All features must pass 3 tests:
196
+
197
+ 1. **Sustainability Alignment**
198
+ - Does it support our sustainability mission?
199
+ - Reject if: Compromises verification standards
200
+ - Example: We rejected dropshipping (can't verify supply chain)
201
+
202
+ 2. **Seller Success**
203
+ - Does it improve seller sales or reduce friction?
204
+ - Minimum: 10% improvement in conversion or 20% time savings
205
+ - Example: Automated carbon-offset calculation (15% conversion lift)
206
+
207
+ 3. **Trust Maintenance**
208
+ - Does it maintain or enhance trust?
209
+ - Reject if: Creates perception of greenwashing
210
+ - Example: We rejected seller self-certification (trust risk)
211
+
212
+ **Pricing Decisions:**
213
+ - Never exceed 10% commission (market expectation ceiling)
214
+ - Premium tier must provide 3x value of cost
215
+ - No advertising to sellers (conflicts with trust mission)
216
+
217
+ ## Business Constraints
218
+
219
+ **Regulatory:**
220
+ - FTC Green Guides compliance required (all sustainability claims)
221
+ - Consumer protection laws in 50 states (U.S. only currently)
222
+ - Payment processing: PCI DSS Level 1 compliance
223
+
224
+ **Operational:**
225
+ - Verification team capacity: 200 sellers/month maximum
226
+ - Carbon offset program: Locked to single vendor (3-year contract)
227
+ - Payment processing: Stripe exclusive (migration cost prohibitive)
228
+
229
+ **Financial:**
230
+ - Burn rate: $300k/month, runway 18 months
231
+ - Unit economics: Positive at $500 GMV per seller per month
232
+ - Series A constraint: Must reach $5M ARR for favorable terms
233
+
234
+ ## Long-term Vision (3-5 years)
235
+
236
+ **Phase 1 (Current):** U.S. marketplace, sustainability focused
237
+ **Phase 2 (2026):** EU expansion, localized sustainability standards
238
+ **Phase 3 (2027):** B2B wholesale, supply chain transparency tools
239
+ **Phase 4 (2028+):** Platform licensing to other verticals (food, fashion)
240
+
241
+ **North Star Metric:** Verified sustainable GMV
242
+ - Current: $2M/month
243
+ - 2026 Target: $10M/month
244
+ - 2028 Target: $50M/month
245
+
246
+ ## Risk Management
247
+
248
+ **Key Risks:**
249
+
250
+ 1. **Verification Scalability**
251
+ - Risk: Can't verify sellers fast enough
252
+ - Mitigation: Automated verification tools (in development)
253
+ - Trigger: Waitlist exceeds 500 sellers
254
+
255
+ 2. **Greenwashing PR Crisis**
256
+ - Risk: Verified seller found non-compliant
257
+ - Mitigation: Quarterly audits, whistleblower program
258
+ - Response plan: Immediate delisting, public transparency
259
+
260
+ 3. **Market Consolidation**
261
+ - Risk: Etsy acquires/builds competing verified program
262
+ - Mitigation: Brand differentiation, community building
263
+ - Hedge: Strategic partnerships with NGOs
264
+
265
+ 4. **Economic Downturn**
266
+ - Risk: Premium products are discretionary spend
267
+ - Mitigation: Expand gift market (less price-sensitive)
268
+ - Trigger: 20% drop in AOV over 2 months
269
+ ```
270
+
271
+ **Why this is correct:**
272
+ - ~1500 tokens
273
+ - Strategic rationale and WHY
274
+ - Decision-making frameworks
275
+ - Business constraints and risks
276
+ - Long-term vision
277
+ - No duplication of metrics or competitive details
278
+ - Provides context for architectural decisions
279
+
280
+ ---
281
+
282
+ ## Example 2: Technical Context - Wrong Level
283
+
284
+ ### Scenario
285
+ Backend API built with Node.js and PostgreSQL.
286
+
287
+ ---
288
+
289
+ ### WRONG: ADR in Basic Level
290
+
291
+ ```markdown
292
+ # technical-basic.md
293
+
294
+ **Tech Stack:**
295
+ - Backend: Node.js 18, Express, TypeScript
296
+ - Database: PostgreSQL 14
297
+ - Infrastructure: AWS ECS
298
+
299
+ **Architecture Decision: Why PostgreSQL over MongoDB**
300
+
301
+ We chose PostgreSQL because we have complex relational data with many
302
+ foreign keys between users, products, orders, and reviews. MongoDB's
303
+ document model would require complex application-level joins and denormalization.
304
+
305
+ Additionally, our team has 5 years of PostgreSQL experience vs 1 year with
306
+ MongoDB, reducing training time and operational risk.
307
+
308
+ Trade-offs: We sacrifice MongoDB's flexible schema for PostgreSQL's rigid
309
+ structure, but our domain model is stable (e-commerce) so this is acceptable.
310
+ ```
311
+
312
+ **Issues:**
313
+ 1. ADR belongs in EXPERT level, not BASIC
314
+ 2. Rationale and trade-offs are strategic, not foundational
315
+ 3. Basic should be concise facts, not explanations
316
+ 4. This prevents proper use of progressive disclosure
317
+
318
+ ---
319
+
320
+ ### CORRECT: ADR in Expert Level
321
+
322
+ #### technical-basic.md (~500 tokens)
323
+
324
+ ```markdown
325
+ # Technical Context - Basic
326
+
327
+ **Tech Stack:**
328
+ - Backend: Node.js 18, Express, TypeScript
329
+ - Database: PostgreSQL 14, Prisma ORM
330
+ - Infrastructure: AWS (ECS, RDS, S3)
331
+ - Cache: Redis 7
332
+
333
+ **Architecture:** Monolithic API with separate frontend
334
+
335
+ **Repository Structure:**
336
+ ```
337
+ /src
338
+ /api # Express routes
339
+ /services # Business logic
340
+ /models # Database models (Prisma)
341
+ /utils # Shared utilities
342
+ /prisma # Database schema & migrations
343
+ /tests # Unit and integration tests
344
+ ```
345
+
346
+ **Local Development:**
347
+ ```bash
348
+ npm install
349
+ docker-compose up # Starts PostgreSQL + Redis
350
+ npm run dev # Starts on localhost:3000
351
+ ```
352
+
353
+ **Environment Variables:**
354
+ ```
355
+ DATABASE_URL=postgresql://localhost:5432/ecomarket
356
+ REDIS_URL=redis://localhost:6379
357
+ JWT_SECRET=<from 1Password>
358
+ ```
359
+ ```
360
+
361
+ **Why this is correct:**
362
+ - ~500 tokens
363
+ - Only foundational information
364
+ - No rationale or explanations
365
+ - A developer can start coding immediately
366
+
367
+ ---
368
+
369
+ #### technical-expert.md (~1500 tokens)
370
+
371
+ ```markdown
372
+ # Technical Context - Expert
373
+
374
+ ## Architecture Decision Records
375
+
376
+ ### ADR-001: PostgreSQL vs MongoDB
377
+
378
+ **Date:** 2024-03-15
379
+ **Status:** Accepted
380
+ **Deciders:** CTO, Backend Lead, Infrastructure Lead
381
+
382
+ **Context:**
383
+ We need to choose a database for our marketplace platform. Key requirements:
384
+ - Complex relational data (users, sellers, products, orders, reviews)
385
+ - ACID compliance for financial transactions
386
+ - Team expertise and operational experience
387
+ - Query flexibility for marketplace analytics
388
+
389
+ **Decision:** PostgreSQL 14 with Prisma ORM
390
+
391
+ **Rationale:**
392
+
393
+ 1. **Data Model Complexity**
394
+ - 15+ entity types with many foreign key relationships
395
+ - MongoDB would require complex application-level joins
396
+ - Example: Order → Buyer, Seller, Product, Payment, Shipment (5 relations)
397
+
398
+ 2. **Transaction Requirements**
399
+ - Payment processing requires ACID guarantees
400
+ - Money movement between buyer, seller, platform must be atomic
401
+ - MongoDB transactions are limited to single replica set
402
+
403
+ 3. **Team Expertise**
404
+ - 5 years team experience with PostgreSQL
405
+ - 1 year experience with MongoDB
406
+ - 80% of team familiar with SQL, 30% with MongoDB
407
+
408
+ 4. **Query Patterns**
409
+ - Analytics queries require complex joins and aggregations
410
+ - PostgreSQL's query planner handles this efficiently
411
+ - MongoDB would require expensive aggregation pipelines
412
+
413
+ **Trade-offs Accepted:**
414
+
415
+ | Aspect | PostgreSQL | MongoDB | Decision Impact |
416
+ |--------|-----------|---------|-----------------|
417
+ | Schema flexibility | Rigid (migrations required) | Flexible | We accept migration overhead |
418
+ | Horizontal scaling | Vertical scaling primary | Native sharding | We accept scaling limits |
419
+ | Development speed | Slower (schema changes) | Faster (no migrations) | We accept slower iteration |
420
+
421
+ **Benefits Gained:**
422
+ - ACID guarantees for financial integrity
423
+ - Team productivity (familiar tooling)
424
+ - Rich query capabilities (analytics)
425
+
426
+ **Risks and Mitigation:**
427
+ - Risk: Scaling limitations at high volume
428
+ - Threshold: 100k orders/day (current: 2k/day)
429
+ - Mitigation: Read replicas, partitioning, if needed
430
+ - Revisit trigger: If we reach 50k orders/day
431
+
432
+ **Alternatives Considered:**
433
+ - MongoDB: Rejected due to transaction limitations
434
+ - MySQL: Rejected due to JSON query limitations
435
+ - DynamoDB: Rejected due to team expertise gap
436
+
437
+ **Revisit Conditions:**
438
+ 1. If order volume exceeds 50k/day (scaling limits)
439
+ 2. If product catalog exceeds 10M SKUs (query performance)
440
+ 3. If we add real-time features requiring document model
441
+ 4. If team expertise shifts (majority MongoDB experience)
442
+
443
+ ---
444
+
445
+ ### ADR-002: Monolith vs Microservices
446
+
447
+ **Date:** 2024-04-10
448
+ **Status:** Accepted
449
+ **Deciders:** CTO, Engineering Team
450
+
451
+ **Context:**
452
+ Marketplace platform growing from 5k to 50k+ sellers. Need to decide on
453
+ service architecture.
454
+
455
+ **Decision:** Maintain monolithic architecture
456
+
457
+ **Rationale:**
458
+
459
+ 1. **Team Size**
460
+ - Current: 6 backend developers
461
+ - Microservices require 2-3 devs per service minimum
462
+ - Insufficient team for meaningful service boundaries
463
+
464
+ 2. **Operational Complexity**
465
+ - Microservices require: Service mesh, distributed tracing, orchestration
466
+ - Current team has no Kubernetes expertise
467
+ - Training + tooling cost: $100k+, 6 months
468
+
469
+ 3. **Performance**
470
+ - Current monolith: 5k req/min, 50ms p95 latency
471
+ - Headroom: Can scale to 50k req/min with vertical scaling
472
+ - No performance pressure to distribute
473
+
474
+ **Trade-offs Accepted:**
475
+ - Longer deployment times (5min vs 30sec for microservices)
476
+ - Tighter coupling between features
477
+ - Single technology stack constraint (Node.js only)
478
+ - Database schema changes impact entire codebase
479
+
480
+ **Benefits:**
481
+ - Simpler development workflow
482
+ - Easier debugging (no distributed tracing needed)
483
+ - Atomic transactions across all features
484
+ - Lower operational overhead
485
+
486
+ **Revisit Conditions:**
487
+ 1. Team exceeds 20 backend developers
488
+ 2. Request volume exceeds 50k/min
489
+ 3. Regulatory requirements mandate service isolation
490
+ 4. Need to scale teams independently on features
491
+
492
+ ---
493
+
494
+ ## Technology Strategy
495
+
496
+ **Current State (2025):**
497
+ - Node.js monolith on AWS ECS
498
+ - PostgreSQL on RDS (single primary, 2 read replicas)
499
+ - Redis for session management and caching
500
+ - S3 for image storage
501
+
502
+ **Near-term Evolution (2026):**
503
+ - Extract payment processing to separate service (PCI compliance isolation)
504
+ - Add Elasticsearch for product search (PostgreSQL full-text insufficient)
505
+ - Implement CDN for image delivery (CloudFront)
506
+
507
+ **Long-term Vision (2027-2028):**
508
+ - Service extraction if team exceeds 20 developers
509
+ - Event-driven architecture for order processing
510
+ - Multi-region deployment for EU expansion
511
+
512
+ **Technology Principles:**
513
+ 1. Boring technology unless strong justification
514
+ 2. Choose managed services over self-hosted
515
+ 3. Optimize for team velocity over theoretical performance
516
+ 4. No technology decisions without 3-month trial
517
+
518
+ ## Scalability Strategy
519
+
520
+ **Current Bottlenecks:**
521
+ 1. Database writes: 2k writes/sec capacity (current: 200/sec)
522
+ 2. Image processing: 100 images/min (current: 20/min)
523
+ 3. Search queries: 5k/sec capacity (current: 500/sec)
524
+
525
+ **Scaling Roadmap:**
526
+
527
+ **Phase 1 (Current → 10x):**
528
+ - Add read replicas (query distribution)
529
+ - Implement aggressive caching (Redis)
530
+ - Optimize N+1 queries (Dataloader pattern)
531
+
532
+ **Phase 2 (10x → 50x):**
533
+ - Database partitioning by seller_id
534
+ - Extract image processing to async queue
535
+ - Add Elasticsearch for search
536
+
537
+ **Phase 3 (50x+):**
538
+ - Service extraction (payments, search, images)
539
+ - Multi-region database (AWS Aurora Global)
540
+ - Event-driven architecture
541
+
542
+ ## Technical Constraints
543
+
544
+ **Infrastructure:**
545
+ - AWS only (no multi-cloud) - existing contract, team expertise
546
+ - ECS for compute (not Kubernetes) - team skill gap
547
+ - RDS for database (not self-managed) - operational overhead
548
+
549
+ **Security:**
550
+ - PCI DSS Level 1 compliance required (payment processing)
551
+ - SOC 2 Type II audit required (customer requirement)
552
+ - GDPR compliance for EU users (future)
553
+
554
+ **Performance:**
555
+ - API response time: p95 < 200ms (customer SLA)
556
+ - Image upload: < 5sec for 10MB file
557
+ - Search results: < 100ms (UX requirement)
558
+
559
+ **Legacy:**
560
+ - Stripe exclusive for payments (migration cost $50k+)
561
+ - Prisma ORM locked to v4 (v5 breaking changes significant)
562
+ - Node.js 18 minimum (some dependencies incompatible with 20)
563
+ ```
564
+
565
+ **Why this is correct:**
566
+ - ADR in EXPERT level where it belongs
567
+ - Strategic rationale and trade-offs
568
+ - Technology evolution roadmap
569
+ - Constraints and decisions context
570
+ - No duplication of basic tech stack facts
571
+ - Provides context for future architectural decisions
572
+
573
+ ---
574
+
575
+ ## Example 3: Content Duplication Anti-Pattern
576
+
577
+ ### Scenario
578
+ Code review process documented across multiple levels.
579
+
580
+ ---
581
+
582
+ ### WRONG: Workflow Duplicated Across Levels
583
+
584
+ #### process-basic.md
585
+ ```markdown
586
+ **Code Review Process:**
587
+ 1. Create PR from feature branch
588
+ 2. Request review from team member
589
+ 3. Address feedback
590
+ 4. Get approval
591
+ 5. Merge to main
592
+ 6. Deploy to staging
593
+ ```
594
+
595
+ #### process-advanced.md
596
+ ```markdown
597
+ **Detailed Code Review Process:**
598
+ 1. Create PR from feature branch
599
+ 2. Request review from team member
600
+ 3. Reviewer checks:
601
+ - Code quality
602
+ - Test coverage
603
+ - Documentation
604
+ 4. Author addresses feedback
605
+ 5. Get approval from reviewer
606
+ 6. Merge to main
607
+ 7. Automated deployment to staging
608
+ 8. Verify in staging environment
609
+ ```
610
+
611
+ **Issues:**
612
+ 1. Steps 1-6 from BASIC are duplicated in ADVANCED
613
+ 2. ADVANCED should EXPAND basic workflow, not repeat it
614
+ 3. Wastes tokens on redundant information
615
+ 4. User loading ADVANCED gets duplicate context
616
+
617
+ ---
618
+
619
+ ### CORRECT: Workflow Properly Split
620
+
621
+ #### process-basic.md (~500 tokens)
622
+
623
+ ```markdown
624
+ # Process Context - Basic
625
+
626
+ **Development Workflow:**
627
+ 1. Pick ticket from Jira "Ready" column
628
+ 2. Create feature branch from `main`
629
+ 3. Implement → Test → Create PR
630
+ 4. Code review → Merge → Auto-deploy to staging
631
+
632
+ **Tools:**
633
+ - Jira: Task tracking
634
+ - GitHub: Code repository, PR reviews
635
+ - Slack: #engineering for questions
636
+ - Vercel: Staging/production hosting
637
+
638
+ **Team:**
639
+ - Frontend: Sarah (lead), Mike, Lisa
640
+ - Backend: James (lead), Chen, Alex
641
+ - DevOps: Taylor
642
+ - QA: Morgan
643
+
644
+ **Communication:**
645
+ - Daily standup: 10am PST in Zoom
646
+ - PR reviews: Tag reviewer in GitHub
647
+ - Urgent: #engineering-urgent in Slack
648
+ - Questions: #engineering in Slack
649
+ ```
650
+
651
+ **Why this is correct:**
652
+ - Simple workflow overview (high-level steps)
653
+ - Just the basics: tools, team, communication
654
+ - No detailed requirements or standards
655
+ - ~500 tokens
656
+
657
+ ---
658
+
659
+ #### process-advanced.md (~1000 tokens)
660
+
661
+ ```markdown
662
+ # Process Context - Advanced
663
+
664
+ ## Code Review Process
665
+
666
+ Assumes you've created a PR per basic workflow.
667
+
668
+ **PR Requirements:**
669
+
670
+ Must include:
671
+ - [ ] Title format: `feat|fix|refactor|docs: Description`
672
+ - [ ] Description of changes and why
673
+ - [ ] Test coverage for new code (see Testing Requirements)
674
+ - [ ] Updated documentation if API changed
675
+ - [ ] Screenshots if UI changed
676
+
677
+ **Reviewer Checklist:**
678
+
679
+ Reviewers must verify:
680
+ 1. **Code Quality**
681
+ - Follows style guide (ESLint passing)
682
+ - No obvious bugs or edge cases
683
+ - Appropriate error handling
684
+
685
+ 2. **Test Coverage**
686
+ - New code has unit tests
687
+ - Integration tests if API changed
688
+ - Coverage doesn't decrease
689
+
690
+ 3. **Documentation**
691
+ - JSDoc for public functions
692
+ - README updated if setup changed
693
+ - API docs updated if endpoints changed
694
+
695
+ 4. **Performance**
696
+ - No obvious N+1 queries
697
+ - Image optimization if media added
698
+ - Bundle size check for frontend
699
+
700
+ **Review SLA:**
701
+ - First review: Within 4 business hours
702
+ - Follow-up review: Within 2 business hours
703
+ - If blocked: Tag @eng-leads in Slack
704
+
705
+ **Approval Requirements:**
706
+ - Standard PR: 1 approval
707
+ - Infrastructure change: 2 approvals
708
+ - Payment/security code: Security team approval
709
+
710
+ **Merge Process:**
711
+ 1. All CI checks pass (tests, lint, build)
712
+ 2. All review comments resolved
713
+ 3. Branch up-to-date with main
714
+ 4. Use "Squash and merge"
715
+ 5. Delete branch after merge
716
+
717
+ ## Sprint Planning
718
+
719
+ **Schedule:** Every other Monday, 10am-12pm PST
720
+
721
+ **Preparation (Friday before):**
722
+ 1. PMs add stories to "Backlog" with acceptance criteria
723
+ 2. Eng leads add technical tasks
724
+ 3. Team reviews backlog async (add questions as comments)
725
+
726
+ **Planning Meeting:**
727
+ 1. Review sprint goal (15min)
728
+ 2. Estimate stories (45min)
729
+ - Use Fibonacci: 1, 2, 3, 5, 8, 13
730
+ - Discussion if estimates differ by 2+ points
731
+ - Break down 13+ point stories
732
+ 3. Commit to sprint scope (30min)
733
+ - Team capacity: 40 points per sprint (2 weeks)
734
+ - Leave 20% buffer for bugs/urgent
735
+ 4. Assign stories (15min)
736
+ 5. Confirm sprint goal (15min)
737
+
738
+ **Story Requirements:**
739
+ - User story format: "As a [user], I want [goal], so that [benefit]"
740
+ - Acceptance criteria (at least 3)
741
+ - Design mockup if UI work
742
+ - API contract if backend work
743
+
744
+ ## Testing Requirements
745
+
746
+ **Unit Tests:**
747
+ - Required for: All new business logic
748
+ - Coverage: 80% minimum
749
+ - Tool: Jest
750
+ - Location: `__tests__` adjacent to source
751
+
752
+ **Integration Tests:**
753
+ - Required for: New API endpoints
754
+ - Coverage: All endpoints
755
+ - Tool: Supertest
756
+ - Location: `/tests/integration`
757
+
758
+ **E2E Tests:**
759
+ - Required for: Critical user paths
760
+ - Coverage: Checkout, signup, search
761
+ - Tool: Playwright
762
+ - Location: `/tests/e2e`
763
+
764
+ **Manual QA:**
765
+ - Required for: UI changes
766
+ - Who: Assign to @Morgan in PR
767
+ - Process: Test in staging, approve PR comment
768
+
769
+ ## Release Process
770
+
771
+ **Schedule:** Daily at 2pm PST (Monday-Thursday)
772
+
773
+ **Pre-release:**
774
+ 1. All PRs merged to `main` by 1pm
775
+ 2. Staging validation (30min window)
776
+ 3. Release manager checks:
777
+ - [ ] All tests passing
778
+ - [ ] No critical bugs in staging
779
+ - [ ] Rollback plan if risky change
780
+
781
+ **Release:**
782
+ 1. Tag release: `git tag v1.x.x`
783
+ 2. Push tag: Triggers production deploy (GitHub Actions)
784
+ 3. Monitor for 30min:
785
+ - Error rate < 0.1%
786
+ - Response time < 200ms p95
787
+ - No customer reports
788
+
789
+ **Rollback:**
790
+ If errors exceed 0.1%:
791
+ 1. Revert last commit or deploy previous tag
792
+ 2. Post in #engineering-urgent
793
+ 3. Create incident retro ticket
794
+
795
+ **Hotfix Process:**
796
+ For production bugs requiring immediate fix:
797
+ 1. Create branch from `main`
798
+ 2. Fix → Test → PR (requires 1 approval)
799
+ 3. Deploy immediately (skip daily schedule)
800
+ 4. Post-mortem within 24 hours
801
+ ```
802
+
803
+ **Why this is correct:**
804
+ - ~1000 tokens
805
+ - Expands basic workflow with detailed requirements
806
+ - No duplication of basic steps (references them)
807
+ - Provides actionable guidance for complex scenarios
808
+ - Still no rationale (that's expert level)
809
+
810
+ ---
811
+
812
+ #### process-expert.md (~1500 tokens)
813
+
814
+ ```markdown
815
+ # Process Context - Expert
816
+
817
+ ## Process Philosophy
818
+
819
+ **Core Principle:** Optimize for merge velocity, not perfect code.
820
+
821
+ **Rationale:**
822
+ We're a startup with 18-month runway. Time-to-market beats code perfection.
823
+ We accept technical debt in exchange for learning fast from customers.
824
+
825
+ **Evidence:**
826
+ - Experiment: Strict review (5 days to merge) vs loose review (1 day to merge)
827
+ - Result: 4x faster feature delivery, no increase in bugs
828
+ - Conclusion: Code review should focus on correctness, not style
829
+
830
+ **Trade-offs Accepted:**
831
+ - Some code duplication (acceptable if it ships faster)
832
+ - Inconsistent patterns across codebase (refactor later)
833
+ - Minimal documentation (prefer self-documenting code)
834
+
835
+ **Non-negotiables:**
836
+ - Test coverage (quality gate)
837
+ - Security review for auth/payment
838
+ - No direct commits to main
839
+
840
+ ## Quality Governance
841
+
842
+ **Automated Quality Gates:**
843
+
844
+ Cannot merge without:
845
+ - [ ] 80% test coverage (enforced by CI)
846
+ - [ ] 0 TypeScript errors (enforced by CI)
847
+ - [ ] 0 ESLint errors (enforced by CI)
848
+ - [ ] All tests passing (enforced by CI)
849
+ - [ ] Build succeeds (enforced by CI)
850
+
851
+ **Manual Quality Gates:**
852
+
853
+ Required approvals by code area:
854
+
855
+ | Code Area | Approval Required |
856
+ |-----------|-------------------|
857
+ | Standard feature | Any team member (1) |
858
+ | Infrastructure | DevOps + 1 other (2) |
859
+ | Payment processing | Security team + Backend lead (2) |
860
+ | Database schema | Backend lead + CTO (2) |
861
+ | Auth/security | Security team + CTO (2) |
862
+
863
+ **Override Process:**
864
+ - Who: CTO only
865
+ - When: Customer-critical hotfix
866
+ - Requires: Post-mortem within 24h, tech debt ticket
867
+
868
+ ## Decision Framework
869
+
870
+ **Process Change Decisions:**
871
+
872
+ All process changes require:
873
+
874
+ 1. **RFC Document**
875
+ - Problem statement
876
+ - Proposed solution
877
+ - Alternatives considered
878
+ - Impact analysis (time, cost, risk)
879
+
880
+ 2. **Trial Period**
881
+ - Duration: 2 weeks minimum
882
+ - Metrics: Define success criteria upfront
883
+ - Review: Team retro to evaluate
884
+
885
+ 3. **Approval**
886
+ - Voting: 66% team approval required
887
+ - Vetoes: CTO can veto if business risk
888
+ - Documentation: Update process docs before rollout
889
+
890
+ **Example: PR Template Change**
891
+ - Problem: PRs missing context, slowing reviews
892
+ - Solution: Mandatory PR template
893
+ - Metrics: Review time, PR iterations
894
+ - Result: 30% faster reviews, approved
895
+
896
+ ## Process Evolution
897
+
898
+ **Continuous Improvement:**
899
+
900
+ We revisit processes quarterly (every 3 months).
901
+
902
+ **Retrospective Format:**
903
+ 1. **What's working?** (keep doing)
904
+ 2. **What's not?** (stop doing)
905
+ 3. **What should we try?** (experiment)
906
+
907
+ **Historical Changes:**
908
+
909
+ | Quarter | Change | Rationale | Result |
910
+ |---------|--------|-----------|--------|
911
+ | Q1 2024 | Daily deploys | Reduce merge conflicts | 50% fewer conflicts |
912
+ | Q2 2024 | Async standup | Distributed team | 30min/day saved |
913
+ | Q3 2024 | Squash merge | Cleaner history | Easier rollbacks |
914
+ | Q4 2024 | PR templates | Faster reviews | 30% time savings |
915
+
916
+ **Failed Experiments:**
917
+
918
+ | Experiment | Why Failed | Lesson Learned |
919
+ |------------|-----------|----------------|
920
+ | Pair programming (all tasks) | 50% slower | Use only for complex features |
921
+ | Weekly deploys | Merge conflicts | Daily is better |
922
+ | No code review | 3x bug rate | Quality gate necessary |
923
+
924
+ ## Standards Rationale
925
+
926
+ **Why These Standards?**
927
+
928
+ **80% Test Coverage:**
929
+ - Below 80%: Bug rate increases 3x
930
+ - Above 90%: Diminishing returns (time cost > benefit)
931
+ - Sweet spot: 80-85%
932
+
933
+ **Squash and Merge:**
934
+ - Cleaner git history (1 commit per feature)
935
+ - Easier rollbacks (revert single commit)
936
+ - Simpler cherry-picking
937
+ - Trade-off: Lose granular commit history
938
+
939
+ **4-Hour Review SLA:**
940
+ - Longer: Context switching kills productivity
941
+ - Shorter: Interrupts deep work
942
+ - Balance: 4 hours allows batch review
943
+
944
+ **Fibonacci Estimation:**
945
+ - Linear (1,2,3,4) is too precise (false confidence)
946
+ - Fibonacci (1,2,3,5,8) reflects uncertainty
947
+ - Forces conversation when estimates differ
948
+
949
+ ## Risk Management
950
+
951
+ **Process-Related Risks:**
952
+
953
+ **1. Review Bottleneck**
954
+ - Risk: Only 1 senior dev can review security code
955
+ - Impact: Delays in payment features
956
+ - Mitigation: Train 2 more devs on security review
957
+ - Trigger: Review SLA miss 3x in 2 weeks
958
+
959
+ **2. Deploy Failure**
960
+ - Risk: Production deploy breaks site
961
+ - Impact: Revenue loss, customer trust
962
+ - Mitigation: Automated rollback, feature flags
963
+ - Response: Rollback within 5 minutes
964
+
965
+ **3. Process Overhead**
966
+ - Risk: Process slows team as we grow
967
+ - Impact: Reduced velocity
968
+ - Mitigation: Quarterly retro, kill low-value process
969
+ - Trigger: Sprint velocity drops 20%
970
+
971
+ **4. Quality Degradation**
972
+ - Risk: Fast shipping compromises quality
973
+ - Impact: Technical debt, customer bugs
974
+ - Mitigation: Enforce quality gates, dedicate 20% time to refactoring
975
+ - Trigger: Bug rate exceeds 0.1% of requests
976
+
977
+ ## Compliance Requirements
978
+
979
+ **SOC 2 Compliance:**
980
+ - Code review required (audit trail)
981
+ - Deployment approvals required
982
+ - No direct production access (must deploy via CI)
983
+
984
+ **Evidence Collection:**
985
+ - PR approvals logged in GitHub
986
+ - Deploy logs in CloudWatch (7-year retention)
987
+ - Access logs for production systems
988
+
989
+ **Audit Preparation:**
990
+ - Quarterly review of process compliance
991
+ - Annual audit by external firm
992
+ - Document all process exceptions
993
+ ```
994
+
995
+ **Why this is correct:**
996
+ - ~1500 tokens
997
+ - Strategic process philosophy and WHY
998
+ - Governance and decision frameworks
999
+ - Process evolution and learnings
1000
+ - Risk management
1001
+ - No duplication of workflow steps or requirements
1002
+ - Provides context for process decisions
1003
+
1004
+ ---
1005
+
1006
+ ## Example 4: Complete Process Context - All Three Levels
1007
+
1008
+ ### Scenario
1009
+ SaaS company with agile development process, showing complete context set.
1010
+
1011
+ ---
1012
+
1013
+ ### process-basic.md (~500 tokens)
1014
+
1015
+ ```markdown
1016
+ # Process Context - Basic
1017
+
1018
+ **Development Workflow:**
1019
+ 1. Pick ticket from Jira "Sprint Backlog"
1020
+ 2. Create feature branch: `feature/PROJ-123-description`
1021
+ 3. Code → Test → Push
1022
+ 4. Create PR → Request review
1023
+ 5. Merge → Auto-deploy to staging
1024
+ 6. QA verification → Deploy to production
1025
+
1026
+ **Tools:**
1027
+ - Jira: Sprint planning, task tracking
1028
+ - GitHub: Code repository, pull requests
1029
+ - Slack: Team communication
1030
+ - Vercel: Hosting (staging + production)
1031
+ - Sentry: Error tracking
1032
+ - DataDog: Monitoring
1033
+
1034
+ **Team Structure:**
1035
+
1036
+ **Engineering (12 people):**
1037
+ - Frontend Team (4): Emma (lead), Ryan, Priya, Jordan
1038
+ - Backend Team (5): Marcus (lead), Sofia, Lin, Ahmed, Kai
1039
+ - DevOps (2): Taylor (lead), Chris
1040
+ - QA (1): Morgan
1041
+
1042
+ **Product (3):**
1043
+ - PM: Alexis
1044
+ - Designer: Sam
1045
+ - Product Analyst: Jamie
1046
+
1047
+ **Communication Channels:**
1048
+ - #engineering: General engineering discussion
1049
+ - #engineering-urgent: P0 bugs, production issues
1050
+ - #frontend / #backend: Team-specific channels
1051
+ - #deployments: Deployment notifications
1052
+ - #product: Product discussions
1053
+
1054
+ **Key Contacts:**
1055
+ - Blocked on code review: Tag @eng-leads
1056
+ - Production bug: Post in #engineering-urgent, tag @taylor
1057
+ - Product question: Ask in #product or DM @alexis
1058
+ - Design question: Ask @sam in #frontend
1059
+
1060
+ **Working Hours:**
1061
+ - Core hours: 10am-4pm PST (team overlap)
1062
+ - Async-friendly: Distributed team (PST, EST, CET)
1063
+ - On-call rotation: DevOps team, 24/7 coverage
1064
+
1065
+ **Documentation:**
1066
+ - Engineering docs: `/docs` in repository
1067
+ - Product specs: Jira tickets
1068
+ - Architecture decisions: `/docs/adr`
1069
+ - Runbooks: Notion wiki
1070
+ ```
1071
+
1072
+ ---
1073
+
1074
+ ### process-advanced.md (~1000 tokens)
1075
+
1076
+ ```markdown
1077
+ # Process Context - Advanced
1078
+
1079
+ ## Code Review Process
1080
+
1081
+ **PR Requirements:**
1082
+
1083
+ Every PR must have:
1084
+ - [ ] Title: `[PROJ-123] feat: Description` (Jira ticket required)
1085
+ - [ ] Description: What changed and why
1086
+ - [ ] Test plan: How you tested this
1087
+ - [ ] Screenshots (if UI change)
1088
+ - [ ] Documentation updates (if API/setup changed)
1089
+
1090
+ **CI Checks (must pass):**
1091
+ - [ ] Unit tests (Jest)
1092
+ - [ ] Integration tests (Supertest)
1093
+ - [ ] E2E tests (Playwright) - for UI changes
1094
+ - [ ] Linting (ESLint, Prettier)
1095
+ - [ ] Type checking (TypeScript)
1096
+ - [ ] Build succeeds
1097
+ - [ ] Test coverage ≥80%
1098
+
1099
+ **Review Assignments:**
1100
+ - Frontend PR: 1 frontend team member
1101
+ - Backend PR: 1 backend team member
1102
+ - Full-stack PR: 1 from each team
1103
+ - Infrastructure PR: DevOps + 1 eng lead
1104
+
1105
+ **Review SLA:**
1106
+ - First review: 4 hours
1107
+ - Follow-up: 2 hours
1108
+ - After hours: Next business day
1109
+
1110
+ **Approval & Merge:**
1111
+ 1. Get required approvals
1112
+ 2. Resolve all comments
1113
+ 3. Ensure CI green
1114
+ 4. Squash and merge
1115
+ 5. Delete feature branch
1116
+ 6. Move Jira ticket to "In QA"
1117
+
1118
+ ---
1119
+
1120
+ ## Sprint Planning
1121
+
1122
+ **Sprint Duration:** 2 weeks (10 business days)
1123
+
1124
+ **Sprint Ceremonies:**
1125
+
1126
+ **Monday Week 1 (Sprint Start):**
1127
+ - 10:00am: Sprint planning (2 hours)
1128
+ - Review sprint goal
1129
+ - Estimate and commit to stories
1130
+ - Capacity: 50 points (team of 12)
1131
+
1132
+ **Daily (async):**
1133
+ - By 11am PST: Post standup in Slack
1134
+ - Yesterday: What shipped
1135
+ - Today: What working on
1136
+ - Blockers: Tag relevant people
1137
+
1138
+ **Wednesday Week 1:**
1139
+ - 2pm: Design review (1 hour)
1140
+ - Review upcoming designs
1141
+ - Flag technical constraints
1142
+
1143
+ **Monday Week 2:**
1144
+ - 10am: Sprint sync (30min)
1145
+ - Progress check
1146
+ - Re-prioritize if needed
1147
+
1148
+ **Friday Week 2 (Sprint End):**
1149
+ - 2pm: Sprint retro (1 hour)
1150
+ - What went well
1151
+ - What didn't
1152
+ - Action items for next sprint
1153
+ - 3pm: Demo to stakeholders (30min)
1154
+
1155
+ **Story Estimation:**
1156
+ - Scale: 1, 2, 3, 5, 8, 13 points
1157
+ - 1 point ≈ 0.5 days
1158
+ - 13 points = too big, break down
1159
+ - Estimation poker: Discuss if spread >2 points
1160
+
1161
+ **Story Requirements:**
1162
+ - User story: "As [user], I want [goal], so that [benefit]"
1163
+ - Acceptance criteria (min 3)
1164
+ - Design mockup (if UI)
1165
+ - API spec (if backend)
1166
+ - Effort estimate
1167
+ - Dependencies noted
1168
+
1169
+ ---
1170
+
1171
+ ## Testing Requirements
1172
+
1173
+ **Test Pyramid:**
1174
+
1175
+ ```
1176
+ /\
1177
+ /E2E\ 10% - Critical paths
1178
+ /------\
1179
+ / API \ 30% - Endpoint testing
1180
+ /----------\
1181
+ / Unit \ 60% - Business logic
1182
+ ```
1183
+
1184
+ **Unit Tests (Jest):**
1185
+ - Location: `__tests__/` next to source file
1186
+ - Coverage: 80% minimum
1187
+ - Focus: Business logic, utilities, helpers
1188
+ - Example: `user.service.test.ts`
1189
+
1190
+ **Integration Tests (Supertest):**
1191
+ - Location: `/tests/integration`
1192
+ - Coverage: All API endpoints
1193
+ - Focus: Request/response, auth, validation
1194
+ - Example: `POST /api/users returns 201 with valid data`
1195
+
1196
+ **E2E Tests (Playwright):**
1197
+ - Location: `/tests/e2e`
1198
+ - Coverage: Critical user flows
1199
+ - User signup/login
1200
+ - Purchase flow
1201
+ - Profile editing
1202
+ - Run: Pre-production deploy only (slow)
1203
+
1204
+ **Manual QA:**
1205
+ - When: All UI changes
1206
+ - Who: @morgan (QA)
1207
+ - Where: Staging environment
1208
+ - Evidence: Screenshots in Jira ticket
1209
+
1210
+ ---
1211
+
1212
+ ## Release Process
1213
+
1214
+ **Staging Deploys:**
1215
+ - Trigger: Every merge to `main`
1216
+ - Automated: GitHub Actions
1217
+ - Time: ~3 minutes
1218
+ - URL: staging.company.com
1219
+
1220
+ **Production Deploys:**
1221
+ - Schedule: Tuesday/Thursday 2pm PST
1222
+ - Process:
1223
+ 1. QA approves all tickets in staging
1224
+ 2. Release manager creates release PR
1225
+ 3. Engineering lead reviews changelog
1226
+ 4. Merge release PR → auto-deploy
1227
+ 5. Monitor for 30min
1228
+
1229
+ **Monitoring During Deploy:**
1230
+ - Error rate: Must stay <0.1%
1231
+ - Response time: p95 <200ms
1232
+ - Sentry: No new error types
1233
+ - DataDog: Watch dashboards
1234
+
1235
+ **Rollback Process:**
1236
+ 1. Click "Rollback" in Vercel (1-click)
1237
+ 2. Post in #engineering-urgent
1238
+ 3. Create postmortem ticket
1239
+ 4. Fix forward in next deploy
1240
+
1241
+ **Hotfix Process:**
1242
+ For P0 production bugs:
1243
+ 1. Create hotfix branch from `main`
1244
+ 2. Fix → Test → PR (fast-track review)
1245
+ 3. Deploy immediately (skip schedule)
1246
+ 4. Postmortem within 24 hours
1247
+
1248
+ ---
1249
+
1250
+ ## Incident Response
1251
+
1252
+ **Severity Levels:**
1253
+
1254
+ **P0 - Critical:**
1255
+ - Site down or major feature broken
1256
+ - Data loss or security breach
1257
+ - Response: Immediate, all-hands
1258
+
1259
+ **P1 - High:**
1260
+ - Feature degraded but site functional
1261
+ - Response: Within 2 hours
1262
+
1263
+ **P2 - Medium:**
1264
+ - Minor bug, workaround exists
1265
+ - Response: Next sprint
1266
+
1267
+ **P3 - Low:**
1268
+ - Cosmetic issue, no user impact
1269
+ - Response: Backlog
1270
+
1271
+ **P0 Response Process:**
1272
+ 1. Post in #engineering-urgent
1273
+ 2. Tag @devops-oncall
1274
+ 3. Create Jira incident ticket
1275
+ 4. Start incident doc (Google Doc)
1276
+ 5. Assign incident commander
1277
+ 6. Fix or rollback
1278
+ 7. Postmortem within 24h
1279
+
1280
+ **Postmortem Format:**
1281
+ - Timeline of events
1282
+ - Root cause
1283
+ - Impact (users, revenue)
1284
+ - Fix applied
1285
+ - Prevention plan
1286
+ ```
1287
+
1288
+ ---
1289
+
1290
+ ### process-expert.md (~1500 tokens)
1291
+
1292
+ ```markdown
1293
+ # Process Context - Expert
1294
+
1295
+ ## Process Philosophy
1296
+
1297
+ **Core Belief:** Ship fast, learn fast, iterate.
1298
+
1299
+ **Rationale:**
1300
+ As a Series A startup (2 years runway), our competitive advantage is speed.
1301
+ Perfect code matters less than validated learning.
1302
+
1303
+ **Supporting Evidence:**
1304
+ - Deployed 127 features in Q3 2024 vs competitors' ~40
1305
+ - 23% were removed after learning users didn't use them
1306
+ - This validated our "ship and learn" approach
1307
+ - Quality metrics stable: 0.08% error rate (within SLA)
1308
+
1309
+ **Trade-offs We Accept:**
1310
+ 1. **Technical debt for speed**:
1311
+ - We ship MVPs with known limitations
1312
+ - Document debt in Jira, prioritize in future sprints
1313
+ - Metric: Tech debt <20% of sprint capacity
1314
+
1315
+ 2. **Inconsistent patterns for autonomy**:
1316
+ - Teams can choose patterns (React Query vs Redux)
1317
+ - Prefer team velocity over consistency
1318
+ - Revisit: If onboarding time exceeds 2 weeks
1319
+
1320
+ 3. **Minimal documentation for agility**:
1321
+ - Code should be self-documenting
1322
+ - Document only: API contracts, architecture decisions
1323
+ - Trade-off: Steeper learning curve for new hires
1324
+
1325
+ **Non-Negotiables:**
1326
+ - Test coverage 80%+ (quality floor)
1327
+ - Security review for auth/payment
1328
+ - Accessibility WCAG AA (legal requirement)
1329
+ - No direct production access (compliance)
1330
+
1331
+ ## Quality Governance
1332
+
1333
+ **Quality Gate Philosophy:**
1334
+
1335
+ We enforce automated gates (fast feedback) over manual gates (bottlenecks).
1336
+
1337
+ **Automated Gates (CI):**
1338
+
1339
+ Cannot merge without:
1340
+ - 80% test coverage (Codecov)
1341
+ - 0 TypeScript errors
1342
+ - 0 ESLint errors (auto-fixable run on commit)
1343
+ - All tests passing
1344
+ - Build succeeds
1345
+ - Bundle size <500kb (performance budget)
1346
+ - Lighthouse score >90 (performance/a11y)
1347
+
1348
+ **Manual Gates:**
1349
+
1350
+ Required approvals by risk level:
1351
+
1352
+ | Risk Level | Examples | Approvals Required |
1353
+ |------------|----------|-------------------|
1354
+ | Low | Feature work, bug fixes | 1 peer |
1355
+ | Medium | Database migrations, API changes | 1 peer + eng lead |
1356
+ | High | Auth changes, payment processing | 2 peers + security team |
1357
+ | Critical | Infrastructure, deployment config | DevOps + CTO |
1358
+
1359
+ **Why These Gates?**
1360
+ - Low: Peer review catches 60% of bugs (research shows)
1361
+ - Medium: Schema changes need DBA expertise
1362
+ - High: Security vulnerabilities cost $4M average (IBM study)
1363
+ - Critical: Outages cost $5k/min revenue
1364
+
1365
+ **Gate Override Process:**
1366
+ - **Who can override:** CTO only
1367
+ - **When:** Customer-critical hotfix, immediate revenue impact
1368
+ - **Requirements:**
1369
+ - Document reason in PR
1370
+ - Create tech debt ticket
1371
+ - Postmortem within 24h
1372
+ - **Frequency:** 2-3 times/quarter (acceptable)
1373
+
1374
+ **Gate Evolution:**
1375
+ - **Review:** Quarterly in engineering all-hands
1376
+ - **Metrics:** Merge time, bug escape rate, developer satisfaction
1377
+ - **Last change:** Removed manual design review (bottleneck, no bug reduction)
1378
+
1379
+ ---
1380
+
1381
+ ## Decision Framework
1382
+
1383
+ **Process Changes Require:**
1384
+
1385
+ 1. **RFC (Request for Comments)**
1386
+ - **Template:** `/docs/rfcs/template.md`
1387
+ - **Sections:**
1388
+ - Problem statement (current pain)
1389
+ - Proposed solution
1390
+ - Alternatives considered
1391
+ - Impact analysis (time, cost, risk)
1392
+ - Success metrics
1393
+ - **Distribution:** Post in #engineering, 5-day comment period
1394
+
1395
+ 2. **Trial Period**
1396
+ - **Duration:** 2-4 weeks (1-2 sprints)
1397
+ - **Metrics:** Define upfront in RFC
1398
+ - **Examples:**
1399
+ - PR template: Measure review time
1400
+ - Async standup: Measure meeting time saved
1401
+
1402
+ 3. **Approval Vote**
1403
+ - **Who votes:** All engineers
1404
+ - **Threshold:** 66% approval (2/3 majority)
1405
+ - **Veto power:** CTO (business risk), eng leads (technical risk)
1406
+
1407
+ 4. **Rollout**
1408
+ - Update documentation before enforcement
1409
+ - Announce in #engineering
1410
+ - Provide training if needed
1411
+
1412
+ **Example: Adopting Async Standup**
1413
+
1414
+ | Phase | Action | Result |
1415
+ |-------|--------|--------|
1416
+ | RFC | Problem: 30min daily standup, 10 people = 5hrs/day | Posted in #engineering |
1417
+ | Proposal | Async in Slack by 11am PST | 3-day comment period |
1418
+ | Trial | 2 weeks (Sept 1-14, 2024) | Measured: time saved, blockers missed |
1419
+ | Metrics | Saved: 4.5hrs/day, Missed blockers: 0 | Success |
1420
+ | Vote | 10 approve, 1 abstain, 0 veto | Approved |
1421
+ | Rollout | Updated docs, announced Sept 15 | Permanent |
1422
+
1423
+ ---
1424
+
1425
+ ## Process Evolution
1426
+
1427
+ **Continuous Improvement Approach:**
1428
+
1429
+ **Quarterly Process Review:**
1430
+ - When: Last Friday of each quarter
1431
+ - Format: Engineering all-hands (2 hours)
1432
+ - Agenda:
1433
+ 1. **Metrics review** (30min): Velocity, quality, satisfaction
1434
+ 2. **What to keep** (30min): Processes that work
1435
+ 3. **What to kill** (30min): Low-value processes
1436
+ 4. **What to try** (30min): New experiments
1437
+
1438
+ **Historical Changes:**
1439
+
1440
+ | Quarter | Change | Rationale | Impact |
1441
+ |---------|--------|-----------|--------|
1442
+ | Q1 2024 | Daily → Async standup | Distributed team, time zones | -4.5hrs/day |
1443
+ | Q1 2024 | Weekly → Daily deploys | Reduce merge conflicts | -40% conflicts |
1444
+ | Q2 2024 | Added PR templates | Missing context in PRs | -25% review time |
1445
+ | Q2 2024 | Squash merge | Cleaner git history | Easier rollbacks |
1446
+ | Q3 2024 | Removed design sign-off gate | Bottleneck, no bug reduction | +15% velocity |
1447
+ | Q4 2024 | Added bundle size budget | Performance degradation | p95 latency -30% |
1448
+
1449
+ **Failed Experiments:**
1450
+
1451
+ | Experiment | Trial Period | Why Failed | Lesson |
1452
+ |------------|--------------|------------|--------|
1453
+ | No code review | Q1 2024, 2 weeks | Bug rate tripled | Quality gate necessary |
1454
+ | Pair programming (all tasks) | Q2 2024, 4 weeks | Velocity halved | Use for complex features only |
1455
+ | Weekly deploys | Q3 2024, 4 weeks | Merge conflicts increased | Daily better for our cadence |
1456
+ | Mandatory design review | Q4 2024, 4 weeks | No bug reduction, 3-day delays | Async review sufficient |
1457
+
1458
+ **Process Metrics (Current):**
1459
+ - Sprint velocity: 50 points (stable)
1460
+ - Merge time: 6 hours median (target: <8hrs)
1461
+ - Bug escape rate: 0.08% (target: <0.1%)
1462
+ - Developer satisfaction: 7.8/10 (survey)
1463
+
1464
+ ---
1465
+
1466
+ ## Standards Rationale
1467
+
1468
+ **Why 80% Test Coverage?**
1469
+
1470
+ Research-backed threshold:
1471
+ - <80%: Bug escape rate increases exponentially
1472
+ - 80-85%: Optimal (diminishing returns above)
1473
+ - >90%: Time cost exceeds benefit (2x test time for 5% coverage gain)
1474
+
1475
+ Our data:
1476
+ - At 70% coverage: 0.15% error rate
1477
+ - At 80% coverage: 0.08% error rate
1478
+ - At 85% coverage: 0.08% error rate (no improvement)
1479
+
1480
+ **Why Squash and Merge?**
1481
+
1482
+ Benefits:
1483
+ - Clean git history (1 commit per feature)
1484
+ - Easy rollbacks (revert single commit)
1485
+ - Simple cherry-picking to hotfix branches
1486
+
1487
+ Trade-offs:
1488
+ - Lose granular commit history
1489
+ - Can't revert part of a feature
1490
+
1491
+ Decision: We value simple rollbacks over granular history.
1492
+
1493
+ **Why 4-Hour Review SLA?**
1494
+
1495
+ Optimization research:
1496
+ - <2 hours: Interrupts deep work (context switching cost)
1497
+ - >8 hours: Author loses context (must re-review own code)
1498
+ - 4 hours: Balance batch review and author context retention
1499
+
1500
+ Our data:
1501
+ - Median review time: 3.2 hours
1502
+ - 90th percentile: 7.5 hours (acceptable)
1503
+ - Violations: 8% (mostly timezone issues)
1504
+
1505
+ **Why Fibonacci Estimation?**
1506
+
1507
+ Psychological research:
1508
+ - Linear (1,2,3,4): False precision, overconfidence
1509
+ - Fibonacci (1,2,3,5,8): Reflects uncertainty
1510
+ - Forces conversation when estimates differ
1511
+
1512
+ Our approach:
1513
+ - <5 points: High confidence
1514
+ - 8 points: Moderate uncertainty
1515
+ - 13 points: Too uncertain, break down
1516
+
1517
+ ---
1518
+
1519
+ ## Risk Management
1520
+
1521
+ **Process-Related Risks:**
1522
+
1523
+ **1. Quality Degradation**
1524
+ - **Risk:** Fast shipping leads to technical debt spiral
1525
+ - **Likelihood:** Medium
1526
+ - **Impact:** High (customer churn, rewrite cost)
1527
+ - **Indicators:**
1528
+ - Bug rate >0.1%
1529
+ - Tech debt >25% of sprint
1530
+ - Test coverage <75%
1531
+ - **Mitigation:**
1532
+ - Enforce 80% coverage (automated gate)
1533
+ - Reserve 20% sprint capacity for refactoring
1534
+ - Quarterly tech debt review
1535
+ - **Response:** If triggered, freeze features for 1 sprint, focus on quality
1536
+
1537
+ **2. Review Bottleneck**
1538
+ - **Risk:** Senior devs are review bottleneck (security, infrastructure)
1539
+ - **Likelihood:** High
1540
+ - **Impact:** Medium (deploy delays, feature delays)
1541
+ - **Indicators:**
1542
+ - Review SLA violations >20%
1543
+ - PRs waiting >24h
1544
+ - **Mitigation:**
1545
+ - Train 2 more devs on security review (Q1 2025)
1546
+ - Document infrastructure patterns
1547
+ - Rotate security reviewer role
1548
+ - **Response:** Fast-track training, hire senior if persists
1549
+
1550
+ **3. Deploy Failures**
1551
+ - **Risk:** Production deploy breaks critical features
1552
+ - **Likelihood:** Low (1-2 times/quarter)
1553
+ - **Impact:** High ($5k/min revenue loss)
1554
+ - **Indicators:**
1555
+ - Error rate >0.1%
1556
+ - Revenue tracking stops
1557
+ - Customer support volume spikes
1558
+ - **Mitigation:**
1559
+ - Feature flags for risky changes
1560
+ - Automated rollback (1-click)
1561
+ - Canary deploys (10% traffic first)
1562
+ - **Response:** Rollback within 5min, postmortem, prevent recurrence
1563
+
1564
+ **4. Process Overhead**
1565
+ - **Risk:** Process slows velocity as team grows
1566
+ - **Likelihood:** High (natural growth friction)
1567
+ - **Impact:** Medium (competitive disadvantage)
1568
+ - **Indicators:**
1569
+ - Velocity drops >15% quarter-over-quarter
1570
+ - Developer satisfaction <7/10
1571
+ - Onboarding time >2 weeks
1572
+ - **Mitigation:**
1573
+ - Quarterly process review (kill low-value process)
1574
+ - Automation (PR templates, CI checks)
1575
+ - Delegate decisions to teams
1576
+ - **Response:** Emergency process audit, cut ceremony time
1577
+
1578
+ ---
1579
+
1580
+ ## Compliance Requirements
1581
+
1582
+ **SOC 2 Type II:**
1583
+ - **Requirement:** Code review audit trail
1584
+ - **Evidence:** GitHub PR approvals, timestamps
1585
+ - **Retention:** 7 years
1586
+ - **Process:** No direct commits to main, all changes via PR
1587
+
1588
+ **PCI DSS:**
1589
+ - **Requirement:** Separate payment code review
1590
+ - **Evidence:** Security team approval on payment PRs
1591
+ - **Process:** Mandatory security review for `/payment` directory
1592
+
1593
+ **GDPR:**
1594
+ - **Requirement:** Data processing documentation
1595
+ - **Evidence:** Privacy review on data schema changes
1596
+ - **Process:** Legal review on new data fields
1597
+
1598
+ **Audit Schedule:**
1599
+ - SOC 2: Annual (external auditor)
1600
+ - PCI: Quarterly (self-assessment)
1601
+ - GDPR: Biannual (legal review)
1602
+
1603
+ **Audit Preparation:**
1604
+ - Maintain compliance checklist in Notion
1605
+ - Export GitHub PR logs quarterly
1606
+ - Document all process exceptions