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,135 @@
1
+ ---
2
+ name: quality-auto-test
3
+ description: Use when test coverage needs automated expansion or existing tests need iterative convergence
4
+ argument-hint: <phase> [-y] [-c N] [--max-iter N] [--layer L0|L1|L2|L3] [--dry-run] [--re-run]
5
+ allowed-tools:
6
+ - ask_question
7
+ - grep_search
8
+ - replace_file_content
9
+ - run_command
10
+ - view_file
11
+ - write_to_file
12
+ ---
13
+ <purpose>
14
+ Run unified automated testing via CSV layer pipeline. Reads project state to auto-select the optimal scenario source — PRD specs (when spec package exists), coverage gaps (when Nyquist audit found gaps), or code exploration (default). All sources converge into a CSV pipeline: discover infrastructure → plan → build scenarios.csv → write tests per layer (spawn_agents_on_csv parallel) → execute → diagnose failures (spawn_agents_on_csv parallel) → iterate → report.
15
+
16
+ Key mechanisms:
17
+ - **Intelligent routing**: Reads `.tests/`, `.workflow/.spec/`, `verification.json` to auto-select source — no mode flag needed
18
+ - **CSV parallel test writing**: Per-layer `spawn_agents_on_csv` — each agent writes one test file independently
19
+ - **CSV parallel failure diagnosis**: Failed scenarios dispatched via `spawn_agents_on_csv` for classification + fix
20
+ - **Unified iteration engine**: Nested inner loop (fix test_defects via diagnosis CSV, max 3/layer) + outer loop (adaptive strategy, max N iterations)
21
+ - **Layers as waves**: L0→L1→L2→L3 sequential (fail-fast on critical), scenarios within layer parallel
22
+ - **Discovery board**: `discoveries.ndjson` shared across all agents/iterations (append-only)
23
+ - **Degenerate modes**: `--max-iter 1` = single-pass generation; default = full iterative cycle
24
+ - **Session persistence**: CSV state + state.json survive context resets, resume from any point
25
+ </purpose>
26
+
27
+ <required_reading>
28
+ @~/.maestro/workflows/auto-test.md
29
+ </required_reading>
30
+
31
+ <context>
32
+ Phase or task: $ARGUMENTS (required — phase number)
33
+
34
+ **Flags:**
35
+ - `--max-iter N` — Maximum outer iterations (default: 5). Set to 1 for single-pass generation only.
36
+ - `--layer L` — Start from or restrict to specific layer (L0|L1|L2|L3)
37
+ - `--dry-run` — Generate test plan only, do not execute
38
+ - `--re-run` — Re-run only previously failed/blocked scenarios
39
+
40
+ **Intelligent routing** (auto-detected from project state):
41
+
42
+ | Priority | Condition | Route | Equivalent to |
43
+ |----------|-----------|-------|---------------|
44
+ | 1 | Active session exists (state.json status=running) | Resume | — |
45
+ | 2 | --re-run flag + previous failures | Re-run | — |
46
+ | 3 | Spec package exists (REQ-*.md) | spec | quality-business-test |
47
+ | 4 | Nyquist gaps exist (verification.json) | gap | quality-test-gen |
48
+ | 5 | Default | code | quality-integration-test |
49
+
50
+ Flags, artifact context resolution, and output formats defined in workflow auto-test.md.
51
+
52
+ ### Pre-load context (before test generation)
53
+
54
+ 1. **Test specs + tools**: Run `maestro spec load --category test` to load test conventions (framework, patterns, naming). Apply to all generated tests.
55
+ 2. **Coding specs**: Run `maestro spec load --category coding` to understand coding patterns for accurate test targeting.
56
+ 3. **Role Knowledge**:
57
+ - Browse: `maestro wiki list --category test`
58
+ - Load task-relevant entries: `maestro wiki load <id1> [id2...]`
59
+ 4. All are optional — proceed without if unavailable.
60
+ </context>
61
+
62
+ <execution>
63
+ Follow '~/.maestro/workflows/auto-test.md' completely.
64
+
65
+ **Command-specific extensions (not in workflow):**
66
+
67
+ **Review findings integration** (from related review artifacts):
68
+ - Extract critical/high findings as additional test scenarios, marked `source: "review_finding"`
69
+ - When review verdict is "BLOCK" and review-finding tests fail, suggest quality-debug
70
+
71
+ **Debug root cause integration** (from related debug artifacts):
72
+ - Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
73
+
74
+ **Register artifact on completion:**
75
+ ```
76
+ Append to state.json.artifacts[]:
77
+ {
78
+ id: nextArtifactId(artifacts, "test"), // TST-001
79
+ type: "test",
80
+ milestone: current_milestone,
81
+ phase: target_phase,
82
+ scope: "phase",
83
+ path: "scratch/{YYYYMMDD}-auto-test-P{N}-{slug}",
84
+ status: issues == 0 ? "completed" : "failed",
85
+ depends_on: exec_art.id,
86
+ harvested: false,
87
+ created_at: start_time,
88
+ completed_at: now()
89
+ }
90
+ ```
91
+
92
+ **Next-step routing on completion:**
93
+ - Converged (>=95%) → `/maestro-verify {phase}`
94
+ - All requirements verified (spec source) → `/maestro-milestone-audit`
95
+ - Bugs discovered → `/quality-debug --from-uat {phase}`
96
+ - Max iter, >80% → `/quality-test {phase}` for manual UAT
97
+ - Max iter, <80% → `/quality-debug {phase}`
98
+ - Coverage still low → `/quality-auto-test {phase} --layer {missing}`
99
+ - Re-run all pass → `/maestro-verify {phase}`
100
+ - Single pass, all pass → `/quality-test {phase}`
101
+ </execution>
102
+
103
+ <error_codes>
104
+ | Code | Severity | Condition | Recovery |
105
+ |------|----------|-----------|----------|
106
+ | E001 | error | Phase argument required (no active sessions) | Prompt user for phase number |
107
+ | E002 | error | Phase not found in artifact registry | Check state.json artifacts |
108
+ | E003 | error | No test framework detected | Install test framework or configure test runner |
109
+ | W001 | warning | One or more test scenarios failed | Auto-iterate or suggest fix options |
110
+ | W002 | warning | Max iterations reached without convergence | Review reflection-log.md, suggest debug |
111
+ | W003 | warning | Degraded spec mode (no full spec package) | Consider running maestro-roadmap --mode full |
112
+ </error_codes>
113
+
114
+ <success_criteria>
115
+ - [ ] Phase resolved from artifact registry
116
+ - [ ] Route auto-selected from project state (spec/gap/code)
117
+ - [ ] Active sessions checked, resume offered if applicable
118
+ - [ ] Scenarios extracted and normalized to unified format
119
+ - [ ] Test infrastructure discovered (framework, patterns, conventions)
120
+ - [ ] test-plan.json generated with layer distribution
121
+ - [ ] User confirmed plan (or --dry-run stopped here)
122
+ - [ ] Tests written following RED-GREEN methodology and existing patterns
123
+ - [ ] Tests executed progressively (L0→L3) with fail-fast on critical
124
+ - [ ] Iteration engine ran (inner: test_defect fix, outer: strategy adjust)
125
+ - [ ] state.json, report.json, reflection-log.md written
126
+ - [ ] Test confidence scored per iteration (Step 7.5) with 5-dimension factor model
127
+ - [ ] Convergence check includes confidence >= 60% alongside pass_rate threshold
128
+ - [ ] Pressure pass completed on highest-pass-rate layer before completion
129
+ - [ ] report.json includes confidence section
130
+ - [ ] index.json updated with auto_test section
131
+ - [ ] If spec source: traceability matrix built, traceability.md written
132
+ - [ ] If failures: issues auto-created in issues.jsonl
133
+ - [ ] If gap source: validation.json gaps updated (MISSING→COVERED)
134
+ - [ ] Next step routed based on convergence status
135
+ </success_criteria>
@@ -0,0 +1,122 @@
1
+ ---
2
+ name: quality-debug
3
+ description: Use when bugs, test failures, or unexpected behavior need systematic root cause investigation
4
+ argument-hint: [issue description] [--from-uat <phase>] [--parallel]
5
+ allowed-tools:
6
+ - ask_question
7
+ - define_subagent
8
+ - grep_search
9
+ - invoke_subagent
10
+ - manage_subagents
11
+ - replace_file_content
12
+ - run_command
13
+ - send_message
14
+ - view_file
15
+ - write_to_file
16
+ ---
17
+ <purpose>
18
+ Debug issues using scientific method with subagent isolation and persistent debug state. Three entry modes (standalone, from-UAT, parallel) and structured root cause collection with UAT feedback loop. Full algorithm defined in workflow debug.md.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/debug.md
23
+ </required_reading>
24
+
25
+ <context>
26
+ User's issue: $ARGUMENTS
27
+
28
+ **Flags:**
29
+ - `--from-uat <phase>` -- Read gaps from phase's uat.md as pre-filled symptoms
30
+ - `--parallel` -- Spawn parallel debug agents (one per gap cluster)
31
+
32
+ **All context via state.json.artifacts[]:**
33
+
34
+ ```
35
+ related = artifacts.filter(a =>
36
+ a.phase === target_phase && a.milestone === current_milestone
37
+ ).sort_by(completed_at asc)
38
+ ```
39
+
40
+ Each artifact's type determines its outputs at `.workflow/{a.path}/`:
41
+ - **execute** → .summaries/, .task/ (source of code changes)
42
+ - **review** → review.json (findings guide hypothesis formation)
43
+ - **debug** → understanding.md, evidence.ndjson (prior investigations, avoid re-investigation)
44
+ - **test** → uat.md (--from-uat gap source), .tests/
45
+
46
+ Extract conclusions from related artifacts that may affect this debug session — review findings guide investigation direction, prior debug avoids redundant work.
47
+
48
+ ### Pre-load (optional, proceed without)
49
+ - Codebase docs: `.workflow/codebase/ARCHITECTURE.md` → module boundaries
50
+ - Wiki: `maestro wiki search "<symptom keywords>" --json` → prior investigations
51
+ - Specs: `maestro spec load --category debug --keyword "<symptom>"` → known issues/workarounds
52
+ - Role knowledge: `maestro wiki list --category debug` → select relevant → `maestro wiki load`
53
+
54
+ **Output**: `DEBUG_DIR = .workflow/scratch/{YYYYMMDD}-debug-P{N}-{slug}/` (P{N} = phase number when phase-scoped; omit for standalone). Output directory rules defined in workflow debug.md Step 4.
55
+ </context>
56
+
57
+ <execution>
58
+ Follow '~/.maestro/workflows/debug.md' completely.
59
+
60
+ **Register artifact on completion (phase-scoped only):**
61
+ ```
62
+ Append to state.json.artifacts[]:
63
+ {
64
+ id: nextArtifactId(artifacts, "debug"), // DBG-001
65
+ type: "debug",
66
+ milestone: current_milestone,
67
+ phase: target_phase,
68
+ scope: "phase",
69
+ path: "scratch/{YYYYMMDD}-debug-P{N}-{slug}",
70
+ status: all_diagnosed ? "completed" : "failed",
71
+ depends_on: triggering_review_id || exec_art.id,
72
+ harvested: false,
73
+ created_at: start_time,
74
+ completed_at: now()
75
+ }
76
+ ```
77
+
78
+ ### Post-debug Knowledge Inquiry
79
+
80
+ | Condition | Ask | Route |
81
+ |-----------|-----|-------|
82
+ | Recurring root cause pattern (seen in prior debug) | "Document in debug-notes.md?" | spec-add debug |
83
+ | Non-obvious fix / workaround | "Record as learning?" | spec-add learning |
84
+ | Root cause = architectural boundary violation | "Update architecture-constraints.md?" | spec-add arch |
85
+
86
+ On confirm → `Skill("spec-add", "<category> <content>")`.
87
+
88
+ **Next-step routing on completion:**
89
+ - Root cause found, fix needed → `/maestro-plan {phase} --gaps`
90
+ - Root cause found (from UAT), auto-fix → `/quality-test {phase} --auto-fix`
91
+ - Inconclusive, need more info → `/quality-debug {issue} -c` (resume session)
92
+ - Standalone fix already applied → `/maestro-verify {phase}`
93
+ </execution>
94
+
95
+ <error_codes>
96
+ | Code | Severity | Condition | Recovery |
97
+ |------|----------|-----------|----------|
98
+ | E001 | error | Issue description required (no arguments, no active sessions) | Check arguments format, re-run with correct input |
99
+ | E002 | error | UAT file not found for --from-uat phase | Verify UAT file exists for specified phase |
100
+ | W001 | warning | Existing debug session found, offer resume | Review existing sessions, choose resume or new |
101
+ | W002 | warning | Checkpoint reached, user input needed | Provide requested input to continue |
102
+ | W003 | warning | Some gaps inconclusive, partial diagnosis | Review partial results, retry inconclusive gaps |
103
+ </error_codes>
104
+
105
+ <success_criteria>
106
+ - [ ] Input parsed: standalone, --from-uat, or --parallel mode determined
107
+ - [ ] Active sessions checked and resume offered if applicable
108
+ - [ ] Symptoms gathered (interactive) or loaded from UAT (pre-filled)
109
+ - [ ] Debug output directory created (phase .debug/ or scratch/)
110
+ - [ ] Debug agent(s) spawned with full symptom context
111
+ - [ ] If --parallel: one agent per gap cluster, all concurrent
112
+ - [ ] evidence.ndjson written with structured NDJSON entries
113
+ - [ ] understanding.md tracks evolving understanding per cluster
114
+ - [ ] Root causes collected with fix_direction and affected_files
115
+ - [ ] Multi-factor confidence scored per gap (Step 7.0) replacing simple high/medium/low
116
+ - [ ] Readiness gate checked before ROOT CAUSE declaration
117
+ - [ ] Pressure pass completed on confirmed hypothesis
118
+ - [ ] Confidence table appended to understanding.md
119
+ - [ ] If --from-uat: uat.md gaps updated with diagnosis artifacts
120
+ - [ ] Results unified into diagnosis summary with confidence section
121
+ - [ ] Next step routed (plan --gaps + execute if fix needed, verify if fix applied, resume if inconclusive)
122
+ </success_criteria>
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: quality-refactor
3
+ description: Use when accumulated tech debt needs systematic identification and safe reduction
4
+ argument-hint: [<scope>]
5
+ allowed-tools:
6
+ - ask_question
7
+ - define_subagent
8
+ - grep_search
9
+ - invoke_subagent
10
+ - manage_subagents
11
+ - replace_file_content
12
+ - run_command
13
+ - send_message
14
+ - view_file
15
+ - write_to_file
16
+ ---
17
+ <purpose>
18
+ Plan and execute targeted refactoring with safety guarantees through analysis, planning, and reflection-driven iteration. Identifies affected files and dependencies, creates a refactoring plan, confirms with the user before execution, then applies changes with test verification after every modification to ensure zero regressions. Each refactoring round records strategy, outcome, and adjustments in reflection-log.md.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/refactor.md
23
+ </required_reading>
24
+
25
+ <context>
26
+ Scope: $ARGUMENTS (required)
27
+ - Module path: "src/auth" - specific directory
28
+ - Feature area: "authentication" - conceptual scope
29
+ - "all" - full codebase scan
30
+
31
+ If not provided, prompt user for scope.
32
+
33
+ ### Pre-load context (before refactoring)
34
+
35
+ 1. **Coding specs**: Run `maestro spec load --category coding` to load coding conventions. Apply conventions to all refactored code.
36
+ 2. **Review specs**: Run `maestro spec load --category review` to load review standards. Use as quality gate for refactored code.
37
+ 3. **Role Knowledge**:
38
+ - Browse: `maestro wiki list --category coding`
39
+ - Identify task-relevant entries, then load: `maestro wiki load <id1> [id2...]`
40
+ 4. All are optional — proceed without if unavailable.
41
+ </context>
42
+
43
+ <execution>
44
+ Follow '~/.maestro/workflows/refactor.md' completely.
45
+
46
+ **Knowledge inquiry on completion:**
47
+ After successful refactoring, ask user once: "Record refactoring pattern as coding convention?" If yes, persist via `Skill("spec-add", "coding \"<title>\" \"<pattern>\" --keywords <kw1>,<kw2>")`.
48
+
49
+ **Next-step routing on completion:**
50
+ - All tests pass → `/quality-sync` (update codebase docs)
51
+ - Test failures after refactor → `/quality-debug {scope}`
52
+ - No test suite available → `/quality-auto-test {phase}`
53
+ </execution>
54
+
55
+ <error_codes>
56
+ | Code | Severity | Condition | Recovery |
57
+ |------|----------|-----------|----------|
58
+ | E001 | error | Refactoring scope/description required | Prompt user for module path, feature area, or "all" |
59
+ | E002 | error | Test suite not available for affected area | Suggest creating tests first, or proceed with manual verification |
60
+ | W001 | warning | Partial test coverage for affected area | Note uncovered areas, proceed with extra caution |
61
+ </error_codes>
62
+
63
+ <success_criteria>
64
+ - [ ] Refactoring plan created and confirmed by user
65
+ - [ ] Changes implemented according to plan
66
+ - [ ] All tests pass after refactoring
67
+ - [ ] No regressions introduced
68
+ - [ ] reflection-log.md written with strategy and outcomes
69
+ </success_criteria>
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: quality-retrospective
3
+ description: Use after completing a phase to extract lessons, patterns, and improvement opportunities
4
+ argument-hint: [phase|N..M] [--lens technical|process|quality|decision] [--all] [--no-route] [--compare N] [-y]
5
+ allowed-tools:
6
+ - ask_question
7
+ - define_subagent
8
+ - grep_search
9
+ - invoke_subagent
10
+ - manage_subagents
11
+ - replace_file_content
12
+ - run_command
13
+ - send_message
14
+ - view_file
15
+ - write_to_file
16
+ ---
17
+ <purpose>
18
+ Post-execution multi-perspective retrospective (复盘) for completed phases. Consumes existing execution artifacts (verification.json, review.json, issues.jsonl, plan.json, .summaries/, uat.md, state.json) and runs four parallel lenses — technical, process, quality, decision — to distill reusable insights. Routes each insight into the appropriate store: spec stub for reusable patterns, memory tip for process notes, issue for recurring gaps. Auto-scans for unreviewed completed phases and reports the backlog. Every insight is also persisted to `.workflow/knowhow/specs/learnings.md` as `<spec-entry>` blocks for cross-phase queryability.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/retrospective.md
23
+ </required_reading>
24
+
25
+ <deferred_reading>
26
+ - @~/.maestro/workflows/issue.md (issues.jsonl schema for auto-creation)
27
+ - @~/.maestro/workflows/learn.md (tip routing via manage-learn tip)
28
+ - @~/.maestro/workflows/verify.md (verification.json schema for quality lens parsing)
29
+ - @~/.maestro/workflows/review.md (review.json schema for quality lens parsing)
30
+ </deferred_reading>
31
+
32
+ <context>
33
+ Arguments: $ARGUMENTS
34
+
35
+ Modes (scan/single/range/all), flags (--lens, --no-route, --compare, -y), and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
36
+ </context>
37
+
38
+ <execution>
39
+ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order. Key invariants:
40
+
41
+ 1. **Read-only until Stage 6** — Stages 1–5 must not write anything except the in-memory retrospective record.
42
+ 2. **Parallel lens dispatch** — Stage 4 spawns one Agent per active lens in a single message (multiple Agent tool calls). All agents use `subagent_type: "general-purpose"` and `run_in_background: false`.
43
+ 3. **Match canonical issues schema** — Stage 6 issue routing must produce rows that pass `jq` parsing and match the schema in `workflows/issue.md` Step 4 exactly (status `"open"`, full `issue_history` entry, all required fields).
44
+ 4. **Reuse `manage-learn tip` for note routing** — do not duplicate the learning pipeline; invoke via `view_file(AbsolutePath="<agy-skills-dir>/manage-learn/SKILL.md") + execute inline (args: "tip ...")`.
45
+ 5. **Backward-compat with phase-transition** — append a one-line summary per insight to `.workflow/specs/learnings.md` if and only if that file already exists. Never create it.
46
+ 6. **Stable insight IDs** — `INS-{8 hex}` from `hash(phase_num + lens + title)` so re-runs do not duplicate.
47
+ 7. **Archive before overwrite** — if existing `retrospective.{md,json}` are being replaced, move them to `{artifact_dir}/.history/` with a timestamp suffix first.
48
+ </execution>
49
+
50
+ <error_codes>
51
+ | Code | Severity | Description | Stage |
52
+ |------|----------|-------------|-------|
53
+ | E001 | error | `.workflow/` not initialized — run `/maestro-init` first | parse_input |
54
+ | E002 | error | Unknown `--lens` name (allowed: technical, process, quality, decision) | parse_input |
55
+ | E003 | error | `--compare` requires a single phase argument | parse_input |
56
+ | E004 | error | Phase has not executed yet — no `.task/` or `.summaries/` artifacts | load_artifacts |
57
+ | E005 | error | Phase argument out of range / phase directory not found | scan_unreviewed |
58
+ | W001 | warning | One or more lens agents failed — proceeding with partial coverage | multi_lens_analysis |
59
+ | W002 | warning | Existing retrospective.json found and not `--all` — prompted user to overwrite | scan_unreviewed |
60
+ | W003 | warning | `manage-learn tip` did not return parseable INS id; fell back to direct write | route_outputs |
61
+ | W004 | warning | `--compare` target phase has no retrospective.json; delta omitted | load_artifacts |
62
+ </error_codes>
63
+
64
+ <success_criteria>
65
+ - [ ] Mode correctly resolved (scan / single / range / all)
66
+ - [ ] At least one phase selected and validated (status == "completed", artifacts exist)
67
+ - [ ] All requested lens agents returned valid JSON, or W001 logged for partial coverage
68
+ - [ ] `retrospective.json` written with metrics, findings_by_lens, distilled_insights, routing_recommendations
69
+ - [ ] `retrospective.md` written and human-readable (tweetable, metrics table, per-lens findings, insights, routing table)
70
+ - [ ] Each insight has a stable `INS-{8hex}` id
71
+ - [ ] If routing enabled (default): every recommendation either created an artifact or was explicitly skipped by user
72
+ - [ ] Spec entries (if any) appended as `<spec-entry>` to matching `.workflow/specs/{category-file}.md`
73
+ - [ ] Issue rows (if any) match canonical issues.jsonl schema (status "open", full issue_history, all required fields)
74
+ - [ ] Note tips (if any) created via `view_file(AbsolutePath="<agy-skills-dir>/manage-learn/SKILL.md") + execute inline (args: "tip ...")`
75
+ - [ ] `specs/learnings.md` appended with one `<spec-entry>` per insight regardless of routing target
76
+ - [ ] No existing phase artifacts modified (verification.json, review.json, plan.json untouched)
77
+ - [ ] Confirmation banner displays routing counts and next-step suggestions
78
+ - [ ] Next step: `/manage-status` to review state, or `/manage-issue list --source retrospective` to triage created issues, or `/manage-learn list` to browse the knowhow library
79
+ </success_criteria>
@@ -0,0 +1,130 @@
1
+ ---
2
+ name: quality-review
3
+ description: Use after execution to evaluate code quality across correctness, security, performance, and architecture
4
+ argument-hint: <phase> [--level quick|standard|deep] [--dimensions security,architecture,...] [--skip-specs]
5
+ allowed-tools:
6
+ - ask_question
7
+ - define_subagent
8
+ - grep_search
9
+ - invoke_subagent
10
+ - manage_subagents
11
+ - replace_file_content
12
+ - run_command
13
+ - send_message
14
+ - view_file
15
+ - write_to_file
16
+ ---
17
+ <purpose>
18
+ Run multi-dimensional code review on a completed phase's changed files. Answers the question "is this code good?" -- complementing maestro-verify ("is the goal met?") and quality-test ("does it work for users?"). Three review levels (quick/standard/deep) scale with task depth, auto-detected from file count. Level definitions, dimension lists, deep-dive rules, and issue creation thresholds defined in workflow review.md.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/review.md
23
+ </required_reading>
24
+
25
+ <deferred_reading>
26
+ - [index.json](~/.maestro/templates/index.json) — read when updating phase index after review
27
+ </deferred_reading>
28
+
29
+ <context>
30
+ Phase: $ARGUMENTS (required — phase number or slug)
31
+
32
+ **Flags:**
33
+ - `--level quick|standard|deep` — Explicit review level (default: auto-detect from file count)
34
+ - `--dimensions <list>` — Comma-separated subset of dimensions to review (overrides level defaults)
35
+ - `--skip-specs` — Skip loading project specs as review context
36
+
37
+ **All context via state.json.artifacts[]:**
38
+
39
+ ```
40
+ related = artifacts.filter(a =>
41
+ a.phase === target_phase && a.milestone === current_milestone
42
+ ).sort_by(completed_at asc)
43
+ ```
44
+
45
+ Each artifact's type determines its outputs at `.workflow/{a.path}/`:
46
+ - **execute** → .summaries/, .task/, verification.json, plan.json (source of files to review)
47
+ - **review** → review.json (prior verdict, findings — for delta comparison)
48
+ - **debug** → understanding.md, evidence.ndjson (confirmed root causes)
49
+ - **test** → uat.md, .tests/ (user-observable gaps)
50
+
51
+ Extract conclusions from related artifacts that may affect this review. Pass as prior quality context to reviewer agents — avoid redundant work, focus on gaps and regressions.
52
+
53
+ ### Pre-load (optional, proceed without)
54
+ - Codebase docs: `.workflow/codebase/ARCHITECTURE.md` → component boundaries, layer rules
55
+ - Wiki constraints: `maestro wiki search "architecture constraint" --json` → documented decisions
56
+ - Specs: `maestro spec load --category review` → review standards, checklists, knowhow tools
57
+ - Role knowledge: `maestro wiki list --category review` → select relevant → `maestro wiki load`
58
+
59
+ **Output**: `REVIEW_DIR = .workflow/scratch/{YYYYMMDD}-review-P{N}-{slug}/` (P{N} = phase number, enables directory-level identification as state.json fallback)
60
+ </context>
61
+
62
+ <execution>
63
+ Follow '~/.maestro/workflows/review.md' completely.
64
+
65
+ **Output writes to REVIEW_DIR** (not EXEC_DIR):
66
+ - `REVIEW_DIR/review.json` — findings, severity distribution, verdict
67
+
68
+ **Register artifact on completion:**
69
+ ```
70
+ Append to state.json.artifacts[]:
71
+ {
72
+ id: nextArtifactId(artifacts, "review"), // REV-001
73
+ type: "review",
74
+ milestone: current_milestone,
75
+ phase: target_phase,
76
+ scope: "phase",
77
+ path: "scratch/{YYYYMMDD}-review-P{N}-{slug}", // relative to .workflow/
78
+ status: "completed",
79
+ depends_on: exec_art.id, // or prior debug/review if re-review
80
+ harvested: false,
81
+ created_at: start_time,
82
+ completed_at: now()
83
+ }
84
+ ```
85
+
86
+ Report format and next-step routing by verdict defined in workflow review.md Report Format and Next Step Routing sections.
87
+
88
+ **Next-step routing summary:**
89
+ - PASS → `/quality-test {phase}`
90
+ - WARN → `/quality-test {phase}` (proceed with caveats)
91
+ - BLOCK → `/maestro-plan {phase} --gaps` (fix critical findings first)
92
+
93
+ **Completion status:**
94
+ ```
95
+ --- COMPLETION STATUS ---
96
+ STATUS: DONE|DONE_WITH_CONCERNS|NEEDS_RETRY
97
+ CONCERNS: {description if applicable}
98
+ NEXT: /quality-refactor
99
+ --- END STATUS ---
100
+ ```
101
+
102
+ Status mapping:
103
+ - **DONE** — PASS verdict, no critical findings → NEXT: /quality-refactor
104
+ - **DONE_WITH_CONCERNS** — WARN verdict, issues found but non-blocking → NEXT: /maestro-verify
105
+ - **NEEDS_RETRY** — BLOCK verdict, critical findings require fix first
106
+ </execution>
107
+
108
+ <error_codes>
109
+ | Code | Severity | Condition | Recovery |
110
+ |------|----------|-----------|----------|
111
+ | E001 | error | Phase argument required | Check arguments format, re-run with correct input |
112
+ | E002 | error | Phase directory not found | Check arguments format, re-run with correct input |
113
+ | E003 | error | No execution results found (no task summaries) | Verify execution completed with task summaries |
114
+ | E004 | error | No changed files detected in phase | Verify execution completed with task summaries |
115
+ | W001 | warning | Some dimension agents failed, partial results | Retry failed dimensions or accept partial results |
116
+ | W002 | warning | Deep-dive iteration limit reached with unresolved criticals | Accept current findings or escalate manually |
117
+ </error_codes>
118
+
119
+ <success_criteria>
120
+ - [ ] Phase resolved and changed files collected from task summaries
121
+ - [ ] Review level determined (explicit flag or auto-detected)
122
+ - [ ] Project specs loaded as review context (unless --skip-specs)
123
+ - [ ] Dimension reviews executed (inline for quick, parallel agents for standard/deep)
124
+ - [ ] All dimension results aggregated with severity classification
125
+ - [ ] Deep-dive completed if triggered (standard: auto, deep: forced)
126
+ - [ ] review.json written with complete findings, severity distribution, verdict
127
+ - [ ] Issues auto-created based on level thresholds
128
+ - [ ] index.json updated with review status
129
+ - [ ] Next step routed by verdict (PASS→test, WARN→test with caveats, BLOCK→plan --gaps)
130
+ </success_criteria>
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: quality-sync
3
+ description: Sync codebase docs by tracing git diff impact
4
+ argument-hint: [--full] [--since <commit|HEAD~N>] [--dry-run]
5
+ allowed-tools:
6
+ - ask_question
7
+ - define_subagent
8
+ - grep_search
9
+ - invoke_subagent
10
+ - manage_subagents
11
+ - replace_file_content
12
+ - run_command
13
+ - send_message
14
+ - view_file
15
+ - write_to_file
16
+ ---
17
+ <purpose>
18
+ Synchronize project state after manual code changes or to refresh codebase documentation. Detects changes via git diff, traces impact through doc-index.json (file -> component -> feature -> requirement), updates state.json and index.json, and refreshes affected `.workflow/codebase/` documentation. Use --full flag for a complete resync of all tracked files regardless of git diff.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/sync.md
23
+ </required_reading>
24
+
25
+ <context>
26
+ $ARGUMENTS -- optional flags:
27
+ - `--full` -- Complete resync of all tracked files (ignores git diff, rebuilds all docs)
28
+ - `--since <commit|HEAD~N>` -- Diff since specific commit (default: last sync timestamp)
29
+ - `--dry-run` -- Show what would be updated without writing changes
30
+ </context>
31
+
32
+ <execution>
33
+ Follow '~/.maestro/workflows/sync.md' completely.
34
+
35
+ **Next-step routing on completion:**
36
+ - Docs refreshed → `/manage-status`
37
+ - Major structural changes detected → `/manage-codebase-rebuild` (full rebuild recommended)
38
+ </execution>
39
+
40
+ <error_codes>
41
+ | Code | Severity | Condition | Recovery |
42
+ |------|----------|-----------|----------|
43
+ | E001 | error | .workflow/ not initialized | Suggest running `/maestro-init` first|
44
+ | W001 | warning | No changes detected since last sync | Report clean state, skip updates |
45
+ </error_codes>
46
+
47
+ <success_criteria>
48
+ - [ ] state.json updated with current sync timestamp
49
+ - [ ] Codebase docs refreshed for all affected components
50
+ - [ ] doc-index.json reflects current file state
51
+ - [ ] Changes tracked and logged
52
+ - [ ] project.md Tech Stack section refreshed if dependency manifests changed
53
+ </success_criteria>