maestro-flow 0.4.9 → 0.4.11

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 (410) hide show
  1. package/.agents/agents/cli-explore-agent.md +189 -0
  2. package/.agents/agents/conceptual-planning-agent.md +247 -0
  3. package/.agents/agents/impeccable-agent.md +101 -0
  4. package/.agents/agents/team-supervisor.md +145 -0
  5. package/.agents/agents/team-worker.md +239 -0
  6. package/.agents/agents/ui-design-agent.md +289 -0
  7. package/.agents/agents/workflow-analyzer.md +117 -0
  8. package/.agents/agents/workflow-codebase-mapper.md +79 -0
  9. package/.agents/agents/workflow-collab-planner.md +145 -0
  10. package/.agents/agents/workflow-debugger.md +105 -0
  11. package/.agents/agents/workflow-executor.md +134 -0
  12. package/.agents/agents/workflow-external-researcher.md +88 -0
  13. package/.agents/agents/workflow-integration-checker.md +85 -0
  14. package/.agents/agents/workflow-nyquist-auditor.md +87 -0
  15. package/.agents/agents/workflow-phase-researcher.md +87 -0
  16. package/.agents/agents/workflow-plan-checker.md +92 -0
  17. package/.agents/agents/workflow-planner.md +197 -0
  18. package/.agents/agents/workflow-project-researcher.md +76 -0
  19. package/.agents/agents/workflow-research-synthesizer.md +72 -0
  20. package/.agents/agents/workflow-reviewer.md +84 -0
  21. package/.agents/agents/workflow-roadmapper.md +83 -0
  22. package/.agents/agents/workflow-verifier.md +122 -0
  23. package/.agents/skills/codify-to-knowhow/SKILL.md +169 -0
  24. package/.agents/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
  25. package/.agents/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
  26. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
  27. package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
  28. package/.agents/skills/learn-decompose/SKILL.md +118 -0
  29. package/.agents/skills/learn-follow/SKILL.md +129 -0
  30. package/.agents/skills/learn-investigate/SKILL.md +154 -0
  31. package/.agents/skills/learn-retro/SKILL.md +159 -0
  32. package/.agents/skills/learn-second-opinion/SKILL.md +124 -0
  33. package/.agents/skills/maestro/SKILL.md +224 -0
  34. package/.agents/skills/maestro-amend/SKILL.md +165 -0
  35. package/.agents/skills/maestro-analyze/SKILL.md +135 -0
  36. package/.agents/skills/maestro-brainstorm/SKILL.md +118 -0
  37. package/.agents/skills/maestro-collab/SKILL.md +174 -0
  38. package/.agents/skills/maestro-composer/SKILL.md +181 -0
  39. package/.agents/skills/maestro-execute/SKILL.md +133 -0
  40. package/.agents/skills/maestro-fork/SKILL.md +88 -0
  41. package/.agents/skills/maestro-guard/SKILL.md +103 -0
  42. package/.agents/skills/maestro-help/SKILL.md +266 -0
  43. package/.agents/skills/maestro-help/index/catalog.json +184 -0
  44. package/.agents/skills/maestro-help/phases/01-parse-intent.md +122 -0
  45. package/.agents/skills/maestro-help/phases/02-search-present.md +181 -0
  46. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +186 -0
  47. package/.agents/skills/maestro-impeccable/SKILL.md +251 -0
  48. package/.agents/skills/maestro-init/SKILL.md +80 -0
  49. package/.agents/skills/maestro-learn/SKILL.md +142 -0
  50. package/.agents/skills/maestro-merge/SKILL.md +66 -0
  51. package/.agents/skills/maestro-milestone-audit/SKILL.md +70 -0
  52. package/.agents/skills/maestro-milestone-complete/SKILL.md +77 -0
  53. package/.agents/skills/maestro-milestone-release/SKILL.md +98 -0
  54. package/.agents/skills/maestro-overlay/SKILL.md +180 -0
  55. package/.agents/skills/maestro-plan/SKILL.md +172 -0
  56. package/.agents/skills/maestro-player/SKILL.md +177 -0
  57. package/.agents/skills/maestro-quick/SKILL.md +67 -0
  58. package/.agents/skills/maestro-ralph/SKILL.md +685 -0
  59. package/.agents/skills/maestro-ralph-execute/SKILL.md +259 -0
  60. package/.agents/skills/maestro-roadmap/SKILL.md +170 -0
  61. package/.agents/skills/maestro-tools-execute/SKILL.md +119 -0
  62. package/.agents/skills/maestro-tools-register/SKILL.md +159 -0
  63. package/.agents/skills/maestro-ui-codify/SKILL.md +82 -0
  64. package/.agents/skills/maestro-update/SKILL.md +178 -0
  65. package/.agents/skills/maestro-verify/SKILL.md +111 -0
  66. package/.agents/skills/manage-codebase-rebuild/SKILL.md +77 -0
  67. package/.agents/skills/manage-codebase-refresh/SKILL.md +59 -0
  68. package/.agents/skills/manage-harvest/SKILL.md +96 -0
  69. package/.agents/skills/manage-issue/SKILL.md +75 -0
  70. package/.agents/skills/manage-issue-discover/SKILL.md +83 -0
  71. package/.agents/skills/manage-knowhow/SKILL.md +79 -0
  72. package/.agents/skills/manage-knowhow-capture/SKILL.md +81 -0
  73. package/.agents/skills/manage-learn/SKILL.md +67 -0
  74. package/.agents/skills/manage-status/SKILL.md +54 -0
  75. package/.agents/skills/manage-wiki/SKILL.md +64 -0
  76. package/.agents/skills/quality-auto-test/SKILL.md +138 -0
  77. package/.agents/skills/quality-debug/SKILL.md +122 -0
  78. package/.agents/skills/quality-refactor/SKILL.md +69 -0
  79. package/.agents/skills/quality-retrospective/SKILL.md +79 -0
  80. package/.agents/skills/quality-review/SKILL.md +130 -0
  81. package/.agents/skills/quality-sync/SKILL.md +53 -0
  82. package/.agents/skills/quality-test/SKILL.md +119 -0
  83. package/.agents/skills/security-audit/SKILL.md +157 -0
  84. package/.agents/skills/skill-iter-tune/SKILL.md +384 -0
  85. package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -0
  86. package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -0
  87. package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
  88. package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -0
  89. package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -0
  90. package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
  91. package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
  92. package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
  93. package/.agents/skills/spec-add/SKILL.md +70 -0
  94. package/.agents/skills/spec-load/SKILL.md +73 -0
  95. package/.agents/skills/spec-remove/SKILL.md +53 -0
  96. package/.agents/skills/spec-setup/SKILL.md +50 -0
  97. package/.agents/skills/team-coordinate/SKILL.md +268 -0
  98. package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
  99. package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
  100. package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -0
  101. package/.agents/skills/team-coordinate/roles/coordinator/role.md +365 -0
  102. package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
  103. package/.agents/skills/team-coordinate/specs/pipelines.md +97 -0
  104. package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -0
  105. package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -0
  106. package/.agents/skills/team-executor/SKILL.md +191 -0
  107. package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -0
  108. package/.agents/skills/team-executor/roles/executor/role.md +171 -0
  109. package/.agents/skills/team-executor/specs/session-schema.md +264 -0
  110. package/.agents/skills/team-lifecycle-v4/SKILL.md +211 -0
  111. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +96 -0
  112. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
  113. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
  114. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
  115. package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
  116. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
  117. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
  118. package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +69 -0
  119. package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +87 -0
  120. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
  121. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
  122. package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +71 -0
  123. package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +194 -0
  124. package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +89 -0
  125. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +97 -0
  126. package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
  127. package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
  128. package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
  129. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -0
  130. package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -0
  131. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
  132. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -0
  133. package/.agents/skills/team-quality-assurance/SKILL.md +149 -0
  134. package/.agents/skills/team-quality-assurance/roles/analyst/role.md +90 -0
  135. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
  136. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
  137. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -0
  138. package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
  139. package/.agents/skills/team-quality-assurance/roles/executor/role.md +68 -0
  140. package/.agents/skills/team-quality-assurance/roles/generator/role.md +70 -0
  141. package/.agents/skills/team-quality-assurance/roles/scout/role.md +77 -0
  142. package/.agents/skills/team-quality-assurance/roles/strategist/role.md +73 -0
  143. package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -0
  144. package/.agents/skills/team-quality-assurance/specs/team-config.json +131 -0
  145. package/.agents/skills/team-review/SKILL.md +149 -0
  146. package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
  147. package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
  148. package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -0
  149. package/.agents/skills/team-review/roles/coordinator/role.md +132 -0
  150. package/.agents/skills/team-review/roles/fixer/role.md +78 -0
  151. package/.agents/skills/team-review/roles/reviewer/role.md +70 -0
  152. package/.agents/skills/team-review/roles/scanner/role.md +81 -0
  153. package/.agents/skills/team-review/specs/dimensions.md +82 -0
  154. package/.agents/skills/team-review/specs/finding-schema.json +82 -0
  155. package/.agents/skills/team-review/specs/pipelines.md +102 -0
  156. package/.agents/skills/team-review/specs/team-config.json +27 -0
  157. package/.agents/skills/team-tech-debt/SKILL.md +130 -0
  158. package/.agents/skills/team-tech-debt/roles/assessor/role.md +79 -0
  159. package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
  160. package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
  161. package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -0
  162. package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -0
  163. package/.agents/skills/team-tech-debt/roles/executor/role.md +78 -0
  164. package/.agents/skills/team-tech-debt/roles/planner/role.md +71 -0
  165. package/.agents/skills/team-tech-debt/roles/scanner/role.md +92 -0
  166. package/.agents/skills/team-tech-debt/roles/validator/role.md +80 -0
  167. package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -0
  168. package/.agents/skills/team-tech-debt/specs/team-config.json +129 -0
  169. package/.agents/skills/team-testing/SKILL.md +145 -0
  170. package/.agents/skills/team-testing/roles/analyst/role.md +105 -0
  171. package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
  172. package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
  173. package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -0
  174. package/.agents/skills/team-testing/roles/coordinator/role.md +134 -0
  175. package/.agents/skills/team-testing/roles/executor/role.md +101 -0
  176. package/.agents/skills/team-testing/roles/generator/role.md +100 -0
  177. package/.agents/skills/team-testing/roles/strategist/role.md +85 -0
  178. package/.agents/skills/team-testing/specs/pipelines.md +101 -0
  179. package/.agents/skills/team-testing/specs/team-config.json +93 -0
  180. package/.agents/skills/wiki-connect/SKILL.md +64 -0
  181. package/.agents/skills/wiki-digest/SKILL.md +70 -0
  182. package/.agents/skills/workflow-skill-designer/SKILL.md +498 -0
  183. package/.agents/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
  184. package/.agents/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
  185. package/.agents/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
  186. package/.agents/skills/workflow-skill-designer/phases/04-validation.md +471 -0
  187. package/.agy/agents/cli-explore-agent.md +186 -0
  188. package/.agy/agents/conceptual-planning-agent.md +244 -0
  189. package/.agy/agents/impeccable-agent.md +97 -0
  190. package/.agy/agents/team-supervisor.md +142 -0
  191. package/.agy/agents/team-worker.md +236 -0
  192. package/.agy/agents/ui-design-agent.md +286 -0
  193. package/.agy/agents/workflow-analyzer.md +114 -0
  194. package/.agy/agents/workflow-codebase-mapper.md +76 -0
  195. package/.agy/agents/workflow-collab-planner.md +142 -0
  196. package/.agy/agents/workflow-debugger.md +102 -0
  197. package/.agy/agents/workflow-executor.md +131 -0
  198. package/.agy/agents/workflow-external-researcher.md +86 -0
  199. package/.agy/agents/workflow-integration-checker.md +82 -0
  200. package/.agy/agents/workflow-nyquist-auditor.md +84 -0
  201. package/.agy/agents/workflow-phase-researcher.md +84 -0
  202. package/.agy/agents/workflow-plan-checker.md +89 -0
  203. package/.agy/agents/workflow-planner.md +194 -0
  204. package/.agy/agents/workflow-project-researcher.md +73 -0
  205. package/.agy/agents/workflow-research-synthesizer.md +70 -0
  206. package/.agy/agents/workflow-reviewer.md +81 -0
  207. package/.agy/agents/workflow-roadmapper.md +81 -0
  208. package/.agy/agents/workflow-verifier.md +119 -0
  209. package/.agy/skills/codify-to-knowhow/SKILL.md +172 -0
  210. package/.agy/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
  211. package/.agy/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
  212. package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
  213. package/.agy/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
  214. package/.agy/skills/learn-decompose/SKILL.md +118 -0
  215. package/.agy/skills/learn-follow/SKILL.md +129 -0
  216. package/.agy/skills/learn-investigate/SKILL.md +154 -0
  217. package/.agy/skills/learn-retro/SKILL.md +159 -0
  218. package/.agy/skills/learn-second-opinion/SKILL.md +124 -0
  219. package/.agy/skills/maestro/SKILL.md +223 -0
  220. package/.agy/skills/maestro-amend/SKILL.md +162 -0
  221. package/.agy/skills/maestro-analyze/SKILL.md +135 -0
  222. package/.agy/skills/maestro-brainstorm/SKILL.md +118 -0
  223. package/.agy/skills/maestro-collab/SKILL.md +174 -0
  224. package/.agy/skills/maestro-composer/SKILL.md +180 -0
  225. package/.agy/skills/maestro-execute/SKILL.md +133 -0
  226. package/.agy/skills/maestro-fork/SKILL.md +88 -0
  227. package/.agy/skills/maestro-guard/SKILL.md +101 -0
  228. package/.agy/skills/maestro-help/SKILL.md +267 -0
  229. package/.agy/skills/maestro-help/index/catalog.json +184 -0
  230. package/.agy/skills/maestro-help/phases/01-parse-intent.md +122 -0
  231. package/.agy/skills/maestro-help/phases/02-search-present.md +181 -0
  232. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +186 -0
  233. package/.agy/skills/maestro-impeccable/SKILL.md +250 -0
  234. package/.agy/skills/maestro-init/SKILL.md +80 -0
  235. package/.agy/skills/maestro-learn/SKILL.md +142 -0
  236. package/.agy/skills/maestro-merge/SKILL.md +66 -0
  237. package/.agy/skills/maestro-milestone-audit/SKILL.md +70 -0
  238. package/.agy/skills/maestro-milestone-complete/SKILL.md +77 -0
  239. package/.agy/skills/maestro-milestone-release/SKILL.md +98 -0
  240. package/.agy/skills/maestro-overlay/SKILL.md +177 -0
  241. package/.agy/skills/maestro-plan/SKILL.md +172 -0
  242. package/.agy/skills/maestro-player/SKILL.md +176 -0
  243. package/.agy/skills/maestro-quick/SKILL.md +67 -0
  244. package/.agy/skills/maestro-ralph/SKILL.md +681 -0
  245. package/.agy/skills/maestro-ralph-execute/SKILL.md +255 -0
  246. package/.agy/skills/maestro-roadmap/SKILL.md +170 -0
  247. package/.agy/skills/maestro-tools-execute/SKILL.md +119 -0
  248. package/.agy/skills/maestro-tools-register/SKILL.md +159 -0
  249. package/.agy/skills/maestro-ui-codify/SKILL.md +81 -0
  250. package/.agy/skills/maestro-update/SKILL.md +175 -0
  251. package/.agy/skills/maestro-verify/SKILL.md +111 -0
  252. package/.agy/skills/manage-codebase-rebuild/SKILL.md +77 -0
  253. package/.agy/skills/manage-codebase-refresh/SKILL.md +59 -0
  254. package/.agy/skills/manage-harvest/SKILL.md +96 -0
  255. package/.agy/skills/manage-issue/SKILL.md +72 -0
  256. package/.agy/skills/manage-issue-discover/SKILL.md +83 -0
  257. package/.agy/skills/manage-knowhow/SKILL.md +76 -0
  258. package/.agy/skills/manage-knowhow-capture/SKILL.md +78 -0
  259. package/.agy/skills/manage-learn/SKILL.md +64 -0
  260. package/.agy/skills/manage-status/SKILL.md +51 -0
  261. package/.agy/skills/manage-wiki/SKILL.md +61 -0
  262. package/.agy/skills/quality-auto-test/SKILL.md +135 -0
  263. package/.agy/skills/quality-debug/SKILL.md +122 -0
  264. package/.agy/skills/quality-refactor/SKILL.md +69 -0
  265. package/.agy/skills/quality-retrospective/SKILL.md +79 -0
  266. package/.agy/skills/quality-review/SKILL.md +130 -0
  267. package/.agy/skills/quality-sync/SKILL.md +53 -0
  268. package/.agy/skills/quality-test/SKILL.md +119 -0
  269. package/.agy/skills/security-audit/SKILL.md +157 -0
  270. package/.agy/skills/skill-iter-tune/SKILL.md +381 -0
  271. package/.agy/skills/skill-iter-tune/phases/01-setup.md +144 -0
  272. package/.agy/skills/skill-iter-tune/phases/02-execute.md +292 -0
  273. package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
  274. package/.agy/skills/skill-iter-tune/phases/04-improve.md +198 -0
  275. package/.agy/skills/skill-iter-tune/phases/05-report.md +166 -0
  276. package/.agy/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
  277. package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
  278. package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
  279. package/.agy/skills/spec-add/SKILL.md +67 -0
  280. package/.agy/skills/spec-load/SKILL.md +70 -0
  281. package/.agy/skills/spec-remove/SKILL.md +50 -0
  282. package/.agy/skills/spec-setup/SKILL.md +47 -0
  283. package/.agy/skills/team-coordinate/SKILL.md +267 -0
  284. package/.agy/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
  285. package/.agy/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
  286. package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +348 -0
  287. package/.agy/skills/team-coordinate/roles/coordinator/role.md +362 -0
  288. package/.agy/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
  289. package/.agy/skills/team-coordinate/specs/pipelines.md +97 -0
  290. package/.agy/skills/team-coordinate/specs/quality-gates.md +112 -0
  291. package/.agy/skills/team-coordinate/specs/role-spec-template.md +198 -0
  292. package/.agy/skills/team-executor/SKILL.md +180 -0
  293. package/.agy/skills/team-executor/roles/executor/commands/monitor.md +235 -0
  294. package/.agy/skills/team-executor/roles/executor/role.md +171 -0
  295. package/.agy/skills/team-executor/specs/session-schema.md +264 -0
  296. package/.agy/skills/team-lifecycle-v4/SKILL.md +189 -0
  297. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +92 -0
  298. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
  299. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
  300. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
  301. package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
  302. package/.agy/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
  303. package/.agy/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
  304. package/.agy/skills/team-lifecycle-v4/roles/executor/role.md +64 -0
  305. package/.agy/skills/team-lifecycle-v4/roles/planner/role.md +82 -0
  306. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
  307. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
  308. package/.agy/skills/team-lifecycle-v4/roles/reviewer/role.md +65 -0
  309. package/.agy/skills/team-lifecycle-v4/roles/supervisor/role.md +188 -0
  310. package/.agy/skills/team-lifecycle-v4/roles/tester/role.md +84 -0
  311. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +92 -0
  312. package/.agy/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
  313. package/.agy/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
  314. package/.agy/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
  315. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +254 -0
  316. package/.agy/skills/team-lifecycle-v4/templates/epics.md +196 -0
  317. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
  318. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +224 -0
  319. package/.agy/skills/team-quality-assurance/SKILL.md +148 -0
  320. package/.agy/skills/team-quality-assurance/roles/analyst/role.md +85 -0
  321. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
  322. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
  323. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +235 -0
  324. package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
  325. package/.agy/skills/team-quality-assurance/roles/executor/role.md +62 -0
  326. package/.agy/skills/team-quality-assurance/roles/generator/role.md +65 -0
  327. package/.agy/skills/team-quality-assurance/roles/scout/role.md +72 -0
  328. package/.agy/skills/team-quality-assurance/roles/strategist/role.md +69 -0
  329. package/.agy/skills/team-quality-assurance/specs/pipelines.md +115 -0
  330. package/.agy/skills/team-quality-assurance/specs/team-config.json +131 -0
  331. package/.agy/skills/team-review/SKILL.md +149 -0
  332. package/.agy/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
  333. package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
  334. package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +209 -0
  335. package/.agy/skills/team-review/roles/coordinator/role.md +132 -0
  336. package/.agy/skills/team-review/roles/fixer/role.md +74 -0
  337. package/.agy/skills/team-review/roles/reviewer/role.md +66 -0
  338. package/.agy/skills/team-review/roles/scanner/role.md +77 -0
  339. package/.agy/skills/team-review/specs/dimensions.md +82 -0
  340. package/.agy/skills/team-review/specs/finding-schema.json +82 -0
  341. package/.agy/skills/team-review/specs/pipelines.md +102 -0
  342. package/.agy/skills/team-review/specs/team-config.json +27 -0
  343. package/.agy/skills/team-tech-debt/SKILL.md +133 -0
  344. package/.agy/skills/team-tech-debt/roles/assessor/role.md +76 -0
  345. package/.agy/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
  346. package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
  347. package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +198 -0
  348. package/.agy/skills/team-tech-debt/roles/coordinator/role.md +123 -0
  349. package/.agy/skills/team-tech-debt/roles/executor/role.md +76 -0
  350. package/.agy/skills/team-tech-debt/roles/planner/role.md +68 -0
  351. package/.agy/skills/team-tech-debt/roles/scanner/role.md +90 -0
  352. package/.agy/skills/team-tech-debt/roles/validator/role.md +78 -0
  353. package/.agy/skills/team-tech-debt/specs/pipelines.md +47 -0
  354. package/.agy/skills/team-tech-debt/specs/team-config.json +129 -0
  355. package/.agy/skills/team-testing/SKILL.md +144 -0
  356. package/.agy/skills/team-testing/roles/analyst/role.md +101 -0
  357. package/.agy/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
  358. package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
  359. package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +242 -0
  360. package/.agy/skills/team-testing/roles/coordinator/role.md +134 -0
  361. package/.agy/skills/team-testing/roles/executor/role.md +95 -0
  362. package/.agy/skills/team-testing/roles/generator/role.md +95 -0
  363. package/.agy/skills/team-testing/roles/strategist/role.md +81 -0
  364. package/.agy/skills/team-testing/specs/pipelines.md +101 -0
  365. package/.agy/skills/team-testing/specs/team-config.json +93 -0
  366. package/.agy/skills/wiki-connect/SKILL.md +64 -0
  367. package/.agy/skills/wiki-digest/SKILL.md +70 -0
  368. package/.agy/skills/workflow-skill-designer/SKILL.md +506 -0
  369. package/.agy/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
  370. package/.agy/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
  371. package/.agy/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
  372. package/.agy/skills/workflow-skill-designer/phases/04-validation.md +471 -0
  373. package/.claude/commands/maestro-ralph.md +222 -87
  374. package/.claude/commands/maestro.md +13 -11
  375. package/.codex/skills/maestro/SKILL.md +23 -17
  376. package/.codex/skills/maestro-ralph/SKILL.md +177 -67
  377. package/dist/src/commands/install-backend.d.ts +12 -0
  378. package/dist/src/commands/install-backend.d.ts.map +1 -1
  379. package/dist/src/commands/install-backend.js +144 -0
  380. package/dist/src/commands/install-backend.js.map +1 -1
  381. package/dist/src/core/component-defs.d.ts +6 -0
  382. package/dist/src/core/component-defs.d.ts.map +1 -1
  383. package/dist/src/core/component-defs.js +97 -0
  384. package/dist/src/core/component-defs.js.map +1 -1
  385. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts +11 -0
  386. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -0
  387. package/dist/src/tui/install-ui/ExtraMcpConfig.js +61 -0
  388. package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -0
  389. package/dist/src/tui/install-ui/InstallConfirm.d.ts +3 -0
  390. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  391. package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
  392. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  393. package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
  394. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  395. package/dist/src/tui/install-ui/InstallExecution.js +14 -2
  396. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  397. package/dist/src/tui/install-ui/InstallFlow.d.ts +1 -1
  398. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  399. package/dist/src/tui/install-ui/InstallFlow.js +16 -3
  400. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  401. package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
  402. package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
  403. package/dist/src/tui/install-ui/InstallHub.js +8 -0
  404. package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
  405. package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
  406. package/dist/src/tui/install-ui/InstallResult.js +3 -1
  407. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  408. package/dist/src/utils/update-notices.js +19 -0
  409. package/dist/src/utils/update-notices.js.map +1 -1
  410. package/package.json +7 -2
@@ -0,0 +1,114 @@
1
+ # Knowledge Transfer Protocols
2
+
3
+ ## 1. Transfer Channels
4
+
5
+ | Channel | Method | Producer | Consumer |
6
+ |---------|--------|----------|----------|
7
+ | Artifacts | Files in `<session>/artifacts/` | Task executor | Next task in pipeline |
8
+ | State Updates | `team_msg(type="state_update")` | Task executor | Coordinator + downstream |
9
+ | Wisdom | Append to `<session>/wisdom/*.md` | Any role | All roles |
10
+ | Context Accumulator | In-memory aggregation | Inner loop only | Current task |
11
+ | Exploration Cache | `<session>/explorations/` | Analyst / researcher | All roles |
12
+
13
+ ## 2. Context Loading Protocol (Before Task Execution)
14
+
15
+ Every role MUST load context in this order before starting work.
16
+
17
+ | Step | Action | Required |
18
+ |------|--------|----------|
19
+ | 1 | `team_msg(operation="get_state", role=<upstream>)` | Yes |
20
+ | 2 | Read artifact files from upstream state's `ref` paths | Yes |
21
+ | 3 | Read `<session>/wisdom/*.md` if exists | Yes |
22
+ | 4 | Check `<session>/explorations/cache-index.json` before new exploration | If exploring |
23
+
24
+ **Loading rules**:
25
+ - Never skip step 1 -- state contains key decisions and findings
26
+ - If `ref` path in state does not exist, log warning and continue
27
+ - Wisdom files are append-only -- read all entries, newest last
28
+
29
+ ## 3. Context Publishing Protocol (After Task Completion)
30
+
31
+ | Step | Action | Required |
32
+ |------|--------|----------|
33
+ | 1 | Write deliverable to `<session>/artifacts/<task-id>-<name>.md` | Yes |
34
+ | 2 | Send `team_msg(type="state_update")` with payload (see schema below) | Yes |
35
+ | 3 | Append wisdom entries for learnings, decisions, issues found | If applicable |
36
+
37
+ ## 4. State Update Schema
38
+
39
+ Sent via `team_msg(type="state_update")` on task completion.
40
+
41
+ ```json
42
+ {
43
+ "status": "task_complete",
44
+ "task_id": "<TASK-NNN>",
45
+ "ref": "<session>/artifacts/<filename>",
46
+ "key_findings": [
47
+ "Finding 1",
48
+ "Finding 2"
49
+ ],
50
+ "decisions": [
51
+ "Decision with rationale"
52
+ ],
53
+ "files_modified": [
54
+ "path/to/file.ts"
55
+ ],
56
+ "verification": "self-validated | peer-reviewed | tested",
57
+ "tech_profile": "<optional, from Phase 2-4 if codebase signals detected>"
58
+ }
59
+ ```
60
+
61
+ **Field rules**:
62
+ - `ref`: Always an artifact path, never inline content
63
+ - `key_findings`: Max 5 items, each under 100 chars
64
+ - `decisions`: Include rationale, not just the choice
65
+ - `files_modified`: Only for implementation tasks
66
+ - `verification`: One of `self-validated`, `peer-reviewed`, `tested`
67
+ - `tech_profile`: Optional. Codebase signals for context-aware specialist injection. Schema: `{ signals: string[], evidence: { signal: filePaths[] }, confidence: "high|medium|low" }`
68
+
69
+ **Supervisor-specific extensions** (CHECKPOINT tasks only):
70
+
71
+ ```json
72
+ {
73
+ "supervision_verdict": "pass | warn | block",
74
+ "supervision_score": 0.85,
75
+ "risks_logged": 0,
76
+ "blocks_detected": 0
77
+ }
78
+ ```
79
+
80
+ - `supervision_verdict`: Required for CHECKPOINT tasks. Determines pipeline progression.
81
+ - `supervision_score`: Float 0.0-1.0. Aggregate of individual check scores.
82
+ - `risks_logged`: Count of risks written to wisdom/issues.md.
83
+ - `blocks_detected`: Count of blocking issues found. >0 implies verdict=block.
84
+
85
+ ## 5. Exploration Cache Protocol
86
+
87
+ Prevents redundant research across tasks and discussion rounds.
88
+
89
+ | Step | Action |
90
+ |------|--------|
91
+ | 1 | Read `<session>/explorations/cache-index.json` |
92
+ | 2 | If angle already explored, read cached result from `explore-<angle>.json` |
93
+ | 3 | If not cached, perform exploration |
94
+ | 4 | Write result to `<session>/explorations/explore-<angle>.json` |
95
+ | 5 | Update `cache-index.json` with new entry |
96
+
97
+ **cache-index.json format**:
98
+ ```json
99
+ {
100
+ "entries": [
101
+ {
102
+ "angle": "competitor-analysis",
103
+ "file": "explore-competitor-analysis.json",
104
+ "created_by": "RESEARCH-001",
105
+ "timestamp": "2026-01-15T10:30:00Z"
106
+ }
107
+ ]
108
+ }
109
+ ```
110
+
111
+ **Rules**:
112
+ - Cache key is the exploration `angle` (normalized to kebab-case)
113
+ - Cache entries never expire within a session
114
+ - Any role can read cached explorations; only the creator updates them
@@ -0,0 +1,140 @@
1
+ # Pipeline Definitions
2
+
3
+ ## 1. Pipeline Selection Criteria
4
+
5
+ | Keywords | Pipeline |
6
+ |----------|----------|
7
+ | spec, design, document, requirements | `spec-only` |
8
+ | implement, build, fix, code | `impl-only` |
9
+ | full, lifecycle, end-to-end | `full-lifecycle` |
10
+ | frontend, UI, react, vue | `fe-only` or `fullstack` |
11
+ | Ambiguous / unclear | ask_question |
12
+
13
+ ## 2. Spec-Only Pipeline
14
+
15
+ **6 tasks + 2 optional checkpoints, 3 discussion rounds**
16
+
17
+ ```
18
+ RESEARCH-001(+D1) -> DRAFT-001 -> DRAFT-002(+D2) -> [CHECKPOINT-001] -> DRAFT-003 -> DRAFT-004 -> [CHECKPOINT-002] -> QUALITY-001(+D3)
19
+ ```
20
+
21
+ | Task | Role | Description | Discuss |
22
+ |------|------|-------------|---------|
23
+ | RESEARCH-001 | analyst | Research domain, competitors, constraints | D1: scope alignment |
24
+ | DRAFT-001 | writer | Product brief, self-validate | - |
25
+ | DRAFT-002 | writer | Requirements PRD | D2: requirements review |
26
+ | CHECKPOINT-001 | supervisor | Brief↔PRD consistency, terminology alignment | - |
27
+ | DRAFT-003 | writer | Architecture design, self-validate | - |
28
+ | DRAFT-004 | writer | Epics & stories, self-validate | - |
29
+ | CHECKPOINT-002 | supervisor | Full spec consistency (4 docs), quality trend | - |
30
+ | QUALITY-001 | reviewer | Quality gate scoring | D3: readiness decision |
31
+
32
+ **Checkpoint**: After QUALITY-001 -- pause for user approval before any implementation.
33
+
34
+ **Supervision opt-out**: Set `supervision: false` in team-session.json to skip CHECKPOINT tasks.
35
+
36
+ ## 3. Impl-Only Pipeline
37
+
38
+ **4 tasks + 1 optional checkpoint, 0 discussion rounds**
39
+
40
+ ```
41
+ PLAN-001 -> [CHECKPOINT-003] -> IMPL-001 -> TEST-001 + REVIEW-001
42
+ ```
43
+
44
+ | Task | Role | Description |
45
+ |------|------|-------------|
46
+ | PLAN-001 | planner | Break down into implementation steps, assess complexity |
47
+ | CHECKPOINT-003 | supervisor | Plan↔input alignment, complexity sanity check |
48
+ | IMPL-001 | implementer | Execute implementation plan |
49
+ | TEST-001 | tester | Validate against acceptance criteria |
50
+ | REVIEW-001 | reviewer | Code review |
51
+
52
+ TEST-001 and REVIEW-001 run in parallel after IMPL-001 completes.
53
+
54
+ **Supervision opt-out**: Set `supervision: false` in team-session.json to skip CHECKPOINT tasks.
55
+
56
+ ## 4. Full-Lifecycle Pipeline
57
+
58
+ **10 tasks + 3 optional checkpoints = spec-only (6+2) + impl (4+1)**
59
+
60
+ ```
61
+ [Spec pipeline with CHECKPOINT-001/002] -> PLAN-001(blockedBy: QUALITY-001) -> [CHECKPOINT-003] -> IMPL-001 -> TEST-001 + REVIEW-001
62
+ ```
63
+
64
+ PLAN-001 is blocked until QUALITY-001 passes and user approves the checkpoint.
65
+
66
+ **Supervision opt-out**: Set `supervision: false` in team-session.json to skip all CHECKPOINT tasks.
67
+
68
+ ## 5. Frontend Pipelines
69
+
70
+ | Pipeline | Description |
71
+ |----------|-------------|
72
+ | `fe-only` | Frontend implementation only: PLAN-001 -> IMPL-001 (fe-implementer) -> TEST-001 + REVIEW-001 |
73
+ | `fullstack` | Backend + frontend: PLAN-001 -> IMPL-001 (backend) + IMPL-002 (frontend) -> TEST-001 + REVIEW-001 |
74
+ | `full-lifecycle-fe` | Full spec pipeline -> fullstack impl pipeline |
75
+
76
+ ## 6. Conditional Routing
77
+
78
+ PLAN-001 outputs a complexity assessment that determines the impl topology.
79
+
80
+ | Complexity | Modules | Route |
81
+ |------------|---------|-------|
82
+ | Low | 1-2 | PLAN-001 -> IMPL-001 -> TEST + REVIEW |
83
+ | Medium | 3-4 | PLAN-001 -> ORCH-001 -> IMPL-{1..N} (parallel) -> TEST + REVIEW |
84
+ | High | 5+ | PLAN-001 -> ARCH-001 -> ORCH-001 -> IMPL-{1..N} -> TEST + REVIEW |
85
+
86
+ - **ORCH-001** (orchestrator): Coordinates parallel IMPL tasks, manages dependencies
87
+ - **ARCH-001** (architect): Detailed architecture decisions before orchestration
88
+
89
+ ## 7. Task Metadata Registry
90
+
91
+ | Task ID | Role | Phase | Depends On | Discuss | Priority |
92
+ |---------|------|-------|------------|---------|----------|
93
+ | RESEARCH-001 | analyst | research | - | D1 | P0 |
94
+ | DRAFT-001 | writer | product-brief | RESEARCH-001 | - | P0 |
95
+ | DRAFT-002 | writer | requirements | DRAFT-001 | D2 | P0 |
96
+ | DRAFT-003 | writer | architecture | DRAFT-002 | - | P0 |
97
+ | DRAFT-004 | writer | epics | DRAFT-003 | - | P0 |
98
+ | QUALITY-001 | reviewer | readiness | CHECKPOINT-002 (or DRAFT-004) | D3 | P0 |
99
+ | CHECKPOINT-001 | supervisor | checkpoint | DRAFT-002 | - | P1 |
100
+ | CHECKPOINT-002 | supervisor | checkpoint | DRAFT-004 | - | P1 |
101
+ | CHECKPOINT-003 | supervisor | checkpoint | PLAN-001 | - | P1 |
102
+ | PLAN-001 | planner | planning | QUALITY-001 (or user input) | - | P0 |
103
+ | ARCH-001 | architect | arch-detail | PLAN-001 | - | P1 |
104
+ | ORCH-001 | orchestrator | orchestration | PLAN-001 or ARCH-001 | - | P1 |
105
+ | IMPL-001 | implementer | implementation | PLAN-001 or ORCH-001 | - | P0 |
106
+ | IMPL-{N} | implementer | implementation | ORCH-001 | - | P0 |
107
+ | TEST-001 | tester | validation | IMPL-* | - | P0 |
108
+ | REVIEW-001 | reviewer | review | IMPL-* | - | P0 |
109
+
110
+ ## 8. Context-Aware Specialist Injection
111
+
112
+ Specialists are injected based on **codebase signals** detected by explorer/analyst/planner workers, not keyword matching. The coordinator evaluates signals emitted in worker state updates against a trigger matrix to determine when specialist roles are needed.
113
+
114
+ ### Signal Flow
115
+
116
+ ```
117
+ analyst (RESEARCH-001) emits tech_profile in state_update
118
+ → coordinator evaluateSpecialistInjection (in handleCallback)
119
+ → signal combination matches trigger matrix
120
+ → P0: TaskCreate blocking downstream | P1: TaskCreate parallel with REVIEW/TEST
121
+ ```
122
+
123
+ ### Common Trigger Examples
124
+
125
+ | Signal Combination | Specialist | Priority |
126
+ |-------------------|-----------|----------|
127
+ | `sql_detected` + `auth_detected` | security-expert (SECURITY-*) | P0 |
128
+ | `perf_sensitive` + `scaling_concern` | performance-optimizer (PERF-*) | P0 |
129
+ | `ml_detected` | ml-engineer (ML-*) | P0 |
130
+ | `data_migration` | data-engineer (DATA-*) | P0 |
131
+ | `devops_detected` + CI config changes | devops-engineer (DEVOPS-*) | P1 |
132
+
133
+
134
+
135
+ ### Injection Rules
136
+
137
+ - Specialist tasks inherit session context and wisdom
138
+ - They publish state_update on completion like any other task
139
+ - P0 specialists block downstream tasks; P1 run in parallel
140
+ - Same specialist is only injected once per session (dedup)
@@ -0,0 +1,130 @@
1
+ # Quality Gates
2
+
3
+ ## 1. Quality Thresholds
4
+
5
+ | Result | Score | Action |
6
+ |--------|-------|--------|
7
+ | Pass | >= 80% | Proceed to next phase |
8
+ | Review | 60-79% | Revise flagged items, re-evaluate |
9
+ | Fail | < 60% | Return to producer for rework |
10
+
11
+ ## 2. Scoring Dimensions
12
+
13
+ | Dimension | Weight | Criteria |
14
+ |-----------|--------|----------|
15
+ | Completeness | 25% | All required sections present with substantive content |
16
+ | Consistency | 25% | Terminology, formatting, cross-references are uniform |
17
+ | Traceability | 25% | Clear chain: Goals -> Requirements -> Architecture -> Stories |
18
+ | Depth | 25% | ACs are testable, ADRs justified, stories estimable |
19
+
20
+ **Score** = weighted average of all dimensions (0-100 per dimension).
21
+
22
+ ## 3. Per-Phase Quality Gates
23
+
24
+ ### Phase 2: Product Brief
25
+
26
+ | Check | Pass Criteria |
27
+ |-------|---------------|
28
+ | Vision statement | Clear, one-paragraph, measurable outcome |
29
+ | Problem definition | Specific pain points with evidence |
30
+ | Target users | Defined personas or segments |
31
+ | Success goals | Quantifiable metrics (KPIs) |
32
+ | Success metrics | Measurement method specified |
33
+
34
+ ### Phase 3: Requirements PRD
35
+
36
+ | Check | Pass Criteria |
37
+ |-------|---------------|
38
+ | Functional requirements | Each has unique ID (FR-NNN) |
39
+ | Acceptance criteria | Testable given/when/then format |
40
+ | Prioritization | MoSCoW applied to all requirements |
41
+ | User stories | Format: As a [role], I want [goal], so that [benefit] |
42
+ | Non-functional reqs | Performance, security, scalability addressed |
43
+
44
+ ### Phase 4: Architecture
45
+
46
+ | Check | Pass Criteria |
47
+ |-------|---------------|
48
+ | Component diagram | All major components identified with boundaries |
49
+ | Tech stack | Each choice justified against alternatives |
50
+ | ADRs | At least 1 ADR per major decision, with status |
51
+ | Data model | Entities, relationships, key fields defined |
52
+ | Integration points | APIs, protocols, data formats specified |
53
+
54
+ ### Phase 5: Epics & Stories
55
+
56
+ | Check | Pass Criteria |
57
+ |-------|---------------|
58
+ | Epic count | 2-8 epics (too few = too broad, too many = too granular) |
59
+ | MVP subset | Clearly marked MVP epics/stories |
60
+ | Stories per epic | 3-12 stories each |
61
+ | Story format | Title, description, ACs, estimate present |
62
+
63
+ ### Phase 6: Readiness Gate
64
+
65
+ | Check | Pass Criteria |
66
+ |-------|---------------|
67
+ | All docs exist | Brief, PRD, Architecture, Epics all present |
68
+ | Cross-refs valid | All document references resolve correctly |
69
+ | Overall score | >= 60% across all dimensions |
70
+ | No P0 issues | Zero Error-class issues outstanding |
71
+
72
+ ## 4. Cross-Document Validation
73
+
74
+ | Source | Target | Validation |
75
+ |--------|--------|------------|
76
+ | Brief goals | PRD requirements | Every goal has >= 1 requirement |
77
+ | PRD requirements | Architecture components | Every requirement maps to a component |
78
+ | PRD requirements | Epic stories | Every requirement covered by >= 1 story |
79
+ | Architecture components | Epic stories | Every component has implementation stories |
80
+ | Brief success metrics | Epic ACs | Metrics traceable to acceptance criteria |
81
+
82
+ ## 5. Code Review Dimensions
83
+
84
+ For REVIEW-* tasks during implementation phases.
85
+
86
+ ### Quality
87
+
88
+ | Check | Severity |
89
+ |-------|----------|
90
+ | Empty catch blocks | Error |
91
+ | `as any` type casts | Warning |
92
+ | `@ts-ignore` / `@ts-expect-error` | Warning |
93
+ | `console.log` in production code | Warning |
94
+ | Unused imports/variables | Info |
95
+
96
+ ### Security
97
+
98
+ | Check | Severity |
99
+ |-------|----------|
100
+ | Hardcoded secrets/credentials | Error |
101
+ | SQL injection vectors | Error |
102
+ | `eval()` or `Function()` usage | Error |
103
+ | `innerHTML` assignment | Warning |
104
+ | Missing input validation | Warning |
105
+
106
+ ### Architecture
107
+
108
+ | Check | Severity |
109
+ |-------|----------|
110
+ | Circular dependencies | Error |
111
+ | Deep cross-boundary imports (3+ levels) | Warning |
112
+ | Files > 500 lines | Warning |
113
+ | Functions > 50 lines | Info |
114
+
115
+ ### Requirements Coverage
116
+
117
+ | Check | Severity |
118
+ |-------|----------|
119
+ | Core functionality implemented | Error if missing |
120
+ | Acceptance criteria covered | Error if missing |
121
+ | Edge cases handled | Warning |
122
+ | Error states handled | Warning |
123
+
124
+ ## 6. Issue Classification
125
+
126
+ | Class | Label | Action |
127
+ |-------|-------|--------|
128
+ | Error | Must fix | Blocks progression, must resolve before proceeding |
129
+ | Warning | Should fix | Should resolve, can proceed with justification |
130
+ | Info | Nice to have | Optional improvement, log for future |
@@ -0,0 +1,254 @@
1
+ # Architecture Document Template (Directory Structure)
2
+
3
+ Template for generating architecture decision documents as a directory of individual ADR files in Phase 4.
4
+
5
+ ## Usage Context
6
+
7
+ | Phase | Usage |
8
+ |-------|-------|
9
+ | Phase 4 (Architecture) | Generate `architecture/` directory from requirements analysis |
10
+ | Output Location | `{workDir}/architecture/` |
11
+
12
+ ## Output Structure
13
+
14
+ ```
15
+ {workDir}/architecture/
16
+ ├── _index.md # Overview, components, tech stack, data model, security
17
+ ├── ADR-001-{slug}.md # Individual Architecture Decision Record
18
+ ├── ADR-002-{slug}.md
19
+ └── ...
20
+ ```
21
+
22
+ ---
23
+
24
+ ## Template: _index.md
25
+
26
+ ```markdown
27
+ ---
28
+ session_id: {session_id}
29
+ phase: 4
30
+ document_type: architecture-index
31
+ status: draft
32
+ generated_at: {timestamp}
33
+ version: 1
34
+ dependencies:
35
+ - ../spec-config.json
36
+ - ../product-brief.md
37
+ - ../requirements/_index.md
38
+ ---
39
+
40
+ # Architecture: {product_name}
41
+
42
+ {executive_summary - high-level architecture approach and key decisions}
43
+
44
+ ## System Overview
45
+
46
+ ### Architecture Style
47
+ {description of chosen architecture style: microservices, monolith, serverless, etc.}
48
+
49
+ ### System Context Diagram
50
+
51
+ ```mermaid
52
+ C4Context
53
+ title System Context Diagram
54
+ Person(user, "User", "Primary user")
55
+ System(system, "{product_name}", "Core system")
56
+ System_Ext(ext1, "{external_system}", "{description}")
57
+ Rel(user, system, "Uses")
58
+ Rel(system, ext1, "Integrates with")
59
+ ```
60
+
61
+ ## Component Architecture
62
+
63
+ ### Component Diagram
64
+
65
+ ```mermaid
66
+ graph TD
67
+ subgraph "{product_name}"
68
+ A[Component A] --> B[Component B]
69
+ B --> C[Component C]
70
+ A --> D[Component D]
71
+ end
72
+ B --> E[External Service]
73
+ ```
74
+
75
+ ### Component Descriptions
76
+
77
+ | Component | Responsibility | Technology | Dependencies |
78
+ |-----------|---------------|------------|--------------|
79
+ | {component_name} | {what it does} | {tech stack} | {depends on} |
80
+
81
+ ## Technology Stack
82
+
83
+ ### Core Technologies
84
+
85
+ | Layer | Technology | Version | Rationale |
86
+ |-------|-----------|---------|-----------|
87
+ | Frontend | {technology} | {version} | {why chosen} |
88
+ | Backend | {technology} | {version} | {why chosen} |
89
+ | Database | {technology} | {version} | {why chosen} |
90
+ | Infrastructure | {technology} | {version} | {why chosen} |
91
+
92
+ ### Key Libraries & Frameworks
93
+
94
+ | Library | Purpose | License |
95
+ |---------|---------|---------|
96
+ | {library_name} | {purpose} | {license} |
97
+
98
+ ## Architecture Decision Records
99
+
100
+ | ADR | Title | Status | Key Choice |
101
+ |-----|-------|--------|------------|
102
+ | [ADR-001](ADR-001-{slug}.md) | {title} | Accepted | {one-line summary} |
103
+ | [ADR-002](ADR-002-{slug}.md) | {title} | Accepted | {one-line summary} |
104
+ | [ADR-003](ADR-003-{slug}.md) | {title} | Proposed | {one-line summary} |
105
+
106
+ ## Data Architecture
107
+
108
+ ### Data Model
109
+
110
+ ```mermaid
111
+ erDiagram
112
+ ENTITY_A ||--o{ ENTITY_B : "has many"
113
+ ENTITY_A {
114
+ string id PK
115
+ string name
116
+ datetime created_at
117
+ }
118
+ ENTITY_B {
119
+ string id PK
120
+ string entity_a_id FK
121
+ string value
122
+ }
123
+ ```
124
+
125
+ ### Data Storage Strategy
126
+
127
+ | Data Type | Storage | Retention | Backup |
128
+ |-----------|---------|-----------|--------|
129
+ | {type} | {storage solution} | {retention policy} | {backup strategy} |
130
+
131
+ ## API Design
132
+
133
+ ### API Overview
134
+
135
+ | Endpoint | Method | Purpose | Auth |
136
+ |----------|--------|---------|------|
137
+ | {/api/resource} | {GET/POST/etc} | {purpose} | {auth type} |
138
+
139
+ ## Security Architecture
140
+
141
+ ### Security Controls
142
+
143
+ | Control | Implementation | Requirement |
144
+ |---------|---------------|-------------|
145
+ | Authentication | {approach} | [NFR-S-{NNN}](../requirements/NFR-S-{NNN}-{slug}.md) |
146
+ | Authorization | {approach} | [NFR-S-{NNN}](../requirements/NFR-S-{NNN}-{slug}.md) |
147
+ | Data Protection | {approach} | [NFR-S-{NNN}](../requirements/NFR-S-{NNN}-{slug}.md) |
148
+
149
+ ## Infrastructure & Deployment
150
+
151
+ ### Deployment Architecture
152
+
153
+ {description of deployment model: containers, serverless, VMs, etc.}
154
+
155
+ ### Environment Strategy
156
+
157
+ | Environment | Purpose | Configuration |
158
+ |-------------|---------|---------------|
159
+ | Development | Local development | {config} |
160
+ | Staging | Pre-production testing | {config} |
161
+ | Production | Live system | {config} |
162
+
163
+ ## Codebase Integration
164
+
165
+ {if has_codebase is true:}
166
+
167
+ ### Existing Code Mapping
168
+
169
+ | New Component | Existing Module | Integration Type | Notes |
170
+ |--------------|----------------|------------------|-------|
171
+ | {component} | {existing module path} | Extend/Replace/New | {notes} |
172
+
173
+ ### Migration Notes
174
+ {any migration considerations for existing code}
175
+
176
+ ## Quality Attributes
177
+
178
+ | Attribute | Target | Measurement | ADR Reference |
179
+ |-----------|--------|-------------|---------------|
180
+ | Performance | {target} | {how measured} | [ADR-{NNN}](ADR-{NNN}-{slug}.md) |
181
+ | Scalability | {target} | {how measured} | [ADR-{NNN}](ADR-{NNN}-{slug}.md) |
182
+ | Reliability | {target} | {how measured} | [ADR-{NNN}](ADR-{NNN}-{slug}.md) |
183
+
184
+ ## Risks & Mitigations
185
+
186
+ | Risk | Impact | Probability | Mitigation |
187
+ |------|--------|-------------|------------|
188
+ | {risk} | High/Medium/Low | High/Medium/Low | {mitigation approach} |
189
+
190
+ ## Open Questions
191
+
192
+ - [ ] {architectural question 1}
193
+ - [ ] {architectural question 2}
194
+
195
+ ## References
196
+
197
+ - Derived from: [Requirements](../requirements/_index.md), [Product Brief](../product-brief.md)
198
+ - Next: [Epics & Stories](../epics/_index.md)
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Template: ADR-NNN-{slug}.md (Individual Architecture Decision Record)
204
+
205
+ ```markdown
206
+ ---
207
+ id: ADR-{NNN}
208
+ status: Accepted
209
+ traces_to: [{REQ-NNN}, {NFR-X-NNN}]
210
+ date: {timestamp}
211
+ ---
212
+
213
+ # ADR-{NNN}: {decision_title}
214
+
215
+ ## Context
216
+
217
+ {what is the situation that motivates this decision}
218
+
219
+ ## Decision
220
+
221
+ {what is the chosen approach}
222
+
223
+ ## Alternatives Considered
224
+
225
+ | Option | Pros | Cons |
226
+ |--------|------|------|
227
+ | {option_1 - chosen} | {pros} | {cons} |
228
+ | {option_2} | {pros} | {cons} |
229
+ | {option_3} | {pros} | {cons} |
230
+
231
+ ## Consequences
232
+
233
+ - **Positive**: {positive outcomes}
234
+ - **Negative**: {tradeoffs accepted}
235
+ - **Risks**: {risks to monitor}
236
+
237
+ ## Traces
238
+
239
+ - **Requirements**: [REQ-{NNN}](../requirements/REQ-{NNN}-{slug}.md), [NFR-X-{NNN}](../requirements/NFR-X-{NNN}-{slug}.md)
240
+ - **Implemented by**: [EPIC-{NNN}](../epics/EPIC-{NNN}-{slug}.md) (added in Phase 5)
241
+ ```
242
+
243
+ ---
244
+
245
+ ## Variable Descriptions
246
+
247
+ | Variable | Source | Description |
248
+ |----------|--------|-------------|
249
+ | `{session_id}` | spec-config.json | Session identifier |
250
+ | `{timestamp}` | Runtime | ISO8601 generation timestamp |
251
+ | `{product_name}` | product-brief.md | Product/feature name |
252
+ | `{NNN}` | Auto-increment | ADR/requirement number |
253
+ | `{slug}` | Auto-generated | Kebab-case from decision title |
254
+ | `{has_codebase}` | spec-config.json | Whether existing codebase exists |