maestro-flow 0.4.10 → 0.4.12

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 (354) hide show
  1. package/.agents/agents/cli-explore-agent.md +187 -0
  2. package/.agents/agents/cross-role-reviewer.md +173 -0
  3. package/.agents/agents/impeccable-agent.md +101 -0
  4. package/.agents/agents/role-design-author.md +218 -0
  5. package/.agents/agents/team-supervisor.md +145 -0
  6. package/.agents/agents/team-worker.md +239 -0
  7. package/.agents/agents/ui-design-agent.md +272 -0
  8. package/.agents/agents/workflow-analyzer.md +117 -0
  9. package/.agents/agents/workflow-codebase-mapper.md +79 -0
  10. package/.agents/agents/workflow-collab-planner.md +145 -0
  11. package/.agents/agents/workflow-debugger.md +105 -0
  12. package/.agents/agents/workflow-executor.md +134 -0
  13. package/.agents/agents/workflow-external-researcher.md +88 -0
  14. package/.agents/agents/workflow-integration-checker.md +85 -0
  15. package/.agents/agents/workflow-nyquist-auditor.md +87 -0
  16. package/.agents/agents/workflow-phase-researcher.md +87 -0
  17. package/.agents/agents/workflow-plan-checker.md +92 -0
  18. package/.agents/agents/workflow-planner.md +197 -0
  19. package/.agents/agents/workflow-project-researcher.md +76 -0
  20. package/.agents/agents/workflow-research-synthesizer.md +72 -0
  21. package/.agents/agents/workflow-reviewer.md +84 -0
  22. package/.agents/agents/workflow-roadmapper.md +83 -0
  23. package/.agents/agents/workflow-verifier.md +122 -0
  24. package/.agents/skills/codify-to-knowhow/SKILL.md +169 -0
  25. package/.agents/skills/codify-to-knowhow/phases/01-load-manifest.md +101 -0
  26. package/.agents/skills/codify-to-knowhow/phases/02-generate-knowhow.md +97 -0
  27. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +92 -0
  28. package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +119 -0
  29. package/.agents/skills/learn-decompose/SKILL.md +118 -0
  30. package/.agents/skills/learn-follow/SKILL.md +129 -0
  31. package/.agents/skills/learn-investigate/SKILL.md +154 -0
  32. package/.agents/skills/learn-retro/SKILL.md +159 -0
  33. package/.agents/skills/learn-second-opinion/SKILL.md +124 -0
  34. package/.agents/skills/maestro/SKILL.md +258 -0
  35. package/.agents/skills/maestro-amend/SKILL.md +165 -0
  36. package/.agents/skills/maestro-analyze/SKILL.md +161 -0
  37. package/.agents/skills/maestro-blueprint/SKILL.md +132 -0
  38. package/.agents/skills/maestro-brainstorm/SKILL.md +134 -0
  39. package/.agents/skills/maestro-collab/SKILL.md +174 -0
  40. package/.agents/skills/maestro-composer/SKILL.md +181 -0
  41. package/.agents/skills/maestro-execute/SKILL.md +133 -0
  42. package/.agents/skills/maestro-fork/SKILL.md +88 -0
  43. package/.agents/skills/maestro-guard/SKILL.md +103 -0
  44. package/.agents/skills/maestro-help/SKILL.md +300 -0
  45. package/.agents/skills/maestro-help/index/catalog.json +202 -0
  46. package/.agents/skills/maestro-help/phases/01-parse-intent.md +122 -0
  47. package/.agents/skills/maestro-help/phases/02-search-present.md +183 -0
  48. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +213 -0
  49. package/.agents/skills/maestro-impeccable/SKILL.md +251 -0
  50. package/.agents/skills/maestro-init/SKILL.md +80 -0
  51. package/.agents/skills/maestro-learn/SKILL.md +142 -0
  52. package/.agents/skills/maestro-merge/SKILL.md +66 -0
  53. package/.agents/skills/maestro-milestone-audit/SKILL.md +72 -0
  54. package/.agents/skills/maestro-milestone-complete/SKILL.md +79 -0
  55. package/.agents/skills/maestro-milestone-release/SKILL.md +98 -0
  56. package/.agents/skills/maestro-overlay/SKILL.md +180 -0
  57. package/.agents/skills/maestro-plan/SKILL.md +182 -0
  58. package/.agents/skills/maestro-player/SKILL.md +177 -0
  59. package/.agents/skills/maestro-quick/SKILL.md +67 -0
  60. package/.agents/skills/maestro-ralph/SKILL.md +756 -0
  61. package/.agents/skills/maestro-ralph-execute/SKILL.md +273 -0
  62. package/.agents/skills/maestro-roadmap/SKILL.md +131 -0
  63. package/.agents/skills/maestro-tools-execute/SKILL.md +119 -0
  64. package/.agents/skills/maestro-tools-register/SKILL.md +159 -0
  65. package/.agents/skills/maestro-ui-codify/SKILL.md +82 -0
  66. package/.agents/skills/maestro-update/SKILL.md +178 -0
  67. package/.agents/skills/maestro-verify/SKILL.md +111 -0
  68. package/.agents/skills/manage-codebase-rebuild/SKILL.md +77 -0
  69. package/.agents/skills/manage-codebase-refresh/SKILL.md +59 -0
  70. package/.agents/skills/manage-harvest/SKILL.md +96 -0
  71. package/.agents/skills/manage-issue/SKILL.md +75 -0
  72. package/.agents/skills/manage-issue-discover/SKILL.md +83 -0
  73. package/.agents/skills/manage-knowhow/SKILL.md +79 -0
  74. package/.agents/skills/manage-knowhow-capture/SKILL.md +81 -0
  75. package/.agents/skills/manage-learn/SKILL.md +67 -0
  76. package/.agents/skills/manage-status/SKILL.md +54 -0
  77. package/.agents/skills/manage-wiki/SKILL.md +64 -0
  78. package/.agents/skills/quality-auto-test/SKILL.md +138 -0
  79. package/.agents/skills/quality-debug/SKILL.md +122 -0
  80. package/.agents/skills/quality-refactor/SKILL.md +69 -0
  81. package/.agents/skills/quality-retrospective/SKILL.md +79 -0
  82. package/.agents/skills/quality-review/SKILL.md +130 -0
  83. package/.agents/skills/quality-sync/SKILL.md +53 -0
  84. package/.agents/skills/quality-test/SKILL.md +119 -0
  85. package/.agents/skills/security-audit/SKILL.md +157 -0
  86. package/.agents/skills/skill-iter-tune/SKILL.md +384 -0
  87. package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -0
  88. package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -0
  89. package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -0
  90. package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -0
  91. package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -0
  92. package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -0
  93. package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -0
  94. package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -0
  95. package/.agents/skills/spec-add/SKILL.md +70 -0
  96. package/.agents/skills/spec-load/SKILL.md +73 -0
  97. package/.agents/skills/spec-remove/SKILL.md +53 -0
  98. package/.agents/skills/spec-setup/SKILL.md +50 -0
  99. package/.agents/skills/team-coordinate/SKILL.md +268 -0
  100. package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -0
  101. package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -0
  102. package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -0
  103. package/.agents/skills/team-coordinate/roles/coordinator/role.md +365 -0
  104. package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -0
  105. package/.agents/skills/team-coordinate/specs/pipelines.md +97 -0
  106. package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -0
  107. package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -0
  108. package/.agents/skills/team-executor/SKILL.md +191 -0
  109. package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -0
  110. package/.agents/skills/team-executor/roles/executor/role.md +171 -0
  111. package/.agents/skills/team-executor/specs/session-schema.md +264 -0
  112. package/.agents/skills/team-lifecycle-v4/SKILL.md +211 -0
  113. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +96 -0
  114. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -0
  115. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -0
  116. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -0
  117. package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -0
  118. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -0
  119. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/implement.md +62 -0
  120. package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +69 -0
  121. package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +87 -0
  122. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -0
  123. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -0
  124. package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +71 -0
  125. package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +194 -0
  126. package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +89 -0
  127. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +97 -0
  128. package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -0
  129. package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -0
  130. package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -0
  131. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -0
  132. package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -0
  133. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -0
  134. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -0
  135. package/.agents/skills/team-quality-assurance/SKILL.md +149 -0
  136. package/.agents/skills/team-quality-assurance/roles/analyst/role.md +90 -0
  137. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -0
  138. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -0
  139. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -0
  140. package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -0
  141. package/.agents/skills/team-quality-assurance/roles/executor/role.md +68 -0
  142. package/.agents/skills/team-quality-assurance/roles/generator/role.md +70 -0
  143. package/.agents/skills/team-quality-assurance/roles/scout/role.md +77 -0
  144. package/.agents/skills/team-quality-assurance/roles/strategist/role.md +73 -0
  145. package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -0
  146. package/.agents/skills/team-quality-assurance/specs/team-config.json +131 -0
  147. package/.agents/skills/team-review/SKILL.md +149 -0
  148. package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -0
  149. package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -0
  150. package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -0
  151. package/.agents/skills/team-review/roles/coordinator/role.md +132 -0
  152. package/.agents/skills/team-review/roles/fixer/role.md +78 -0
  153. package/.agents/skills/team-review/roles/reviewer/role.md +70 -0
  154. package/.agents/skills/team-review/roles/scanner/role.md +81 -0
  155. package/.agents/skills/team-review/specs/dimensions.md +82 -0
  156. package/.agents/skills/team-review/specs/finding-schema.json +82 -0
  157. package/.agents/skills/team-review/specs/pipelines.md +102 -0
  158. package/.agents/skills/team-review/specs/team-config.json +27 -0
  159. package/.agents/skills/team-tech-debt/SKILL.md +130 -0
  160. package/.agents/skills/team-tech-debt/roles/assessor/role.md +79 -0
  161. package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -0
  162. package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -0
  163. package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -0
  164. package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -0
  165. package/.agents/skills/team-tech-debt/roles/executor/role.md +78 -0
  166. package/.agents/skills/team-tech-debt/roles/planner/role.md +71 -0
  167. package/.agents/skills/team-tech-debt/roles/scanner/role.md +92 -0
  168. package/.agents/skills/team-tech-debt/roles/validator/role.md +80 -0
  169. package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -0
  170. package/.agents/skills/team-tech-debt/specs/team-config.json +129 -0
  171. package/.agents/skills/team-testing/SKILL.md +145 -0
  172. package/.agents/skills/team-testing/roles/analyst/role.md +105 -0
  173. package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -0
  174. package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -0
  175. package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -0
  176. package/.agents/skills/team-testing/roles/coordinator/role.md +134 -0
  177. package/.agents/skills/team-testing/roles/executor/role.md +101 -0
  178. package/.agents/skills/team-testing/roles/generator/role.md +100 -0
  179. package/.agents/skills/team-testing/roles/strategist/role.md +85 -0
  180. package/.agents/skills/team-testing/specs/pipelines.md +101 -0
  181. package/.agents/skills/team-testing/specs/team-config.json +93 -0
  182. package/.agents/skills/wiki-connect/SKILL.md +64 -0
  183. package/.agents/skills/wiki-digest/SKILL.md +70 -0
  184. package/.agents/skills/workflow-skill-designer/SKILL.md +498 -0
  185. package/.agents/skills/workflow-skill-designer/phases/01-requirements-analysis.md +356 -0
  186. package/.agents/skills/workflow-skill-designer/phases/02-orchestrator-design.md +444 -0
  187. package/.agents/skills/workflow-skill-designer/phases/03-phase-design.md +458 -0
  188. package/.agents/skills/workflow-skill-designer/phases/04-validation.md +471 -0
  189. package/.agy/agents/cli-explore-agent.md +1 -3
  190. package/.agy/agents/cross-role-reviewer.md +170 -0
  191. package/.agy/agents/role-design-author.md +215 -0
  192. package/.agy/agents/ui-design-agent.md +1 -18
  193. package/.agy/agents/workflow-analyzer.md +1 -1
  194. package/.agy/agents/workflow-external-researcher.md +1 -1
  195. package/.agy/skills/maestro/SKILL.md +63 -27
  196. package/.agy/skills/maestro-analyze/SKILL.md +30 -4
  197. package/.agy/skills/maestro-blueprint/SKILL.md +132 -0
  198. package/.agy/skills/maestro-brainstorm/SKILL.md +119 -103
  199. package/.agy/skills/maestro-help/SKILL.md +48 -14
  200. package/.agy/skills/maestro-help/index/catalog.json +29 -11
  201. package/.agy/skills/maestro-help/phases/01-parse-intent.md +1 -1
  202. package/.agy/skills/maestro-help/phases/02-search-present.md +6 -4
  203. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  204. package/.agy/skills/maestro-init/SKILL.md +3 -3
  205. package/.agy/skills/maestro-milestone-audit/SKILL.md +5 -3
  206. package/.agy/skills/maestro-milestone-complete/SKILL.md +7 -5
  207. package/.agy/skills/maestro-plan/SKILL.md +14 -4
  208. package/.agy/skills/maestro-ralph/SKILL.md +368 -162
  209. package/.agy/skills/maestro-ralph-execute/SKILL.md +81 -67
  210. package/.agy/skills/maestro-roadmap/SKILL.md +42 -81
  211. package/.agy/skills/quality-auto-test/SKILL.md +1 -1
  212. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  213. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  214. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  215. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  216. package/.agy/skills/team-lifecycle-v4/templates/epics.md +2 -2
  217. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  218. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  219. package/.claude/agents/cli-explore-agent.md +1 -3
  220. package/.claude/agents/cross-role-reviewer.md +171 -0
  221. package/.claude/agents/role-design-author.md +216 -0
  222. package/.claude/agents/ui-design-agent.md +1 -18
  223. package/.claude/agents/workflow-analyzer.md +1 -1
  224. package/.claude/agents/workflow-external-researcher.md +1 -1
  225. package/.claude/commands/maestro-analyze.md +30 -4
  226. package/.claude/commands/maestro-blueprint.md +130 -0
  227. package/.claude/commands/maestro-brainstorm.md +132 -116
  228. package/.claude/commands/maestro-init.md +3 -3
  229. package/.claude/commands/maestro-milestone-audit.md +5 -3
  230. package/.claude/commands/maestro-milestone-complete.md +7 -5
  231. package/.claude/commands/maestro-plan.md +14 -4
  232. package/.claude/commands/maestro-ralph-execute.md +81 -67
  233. package/.claude/commands/maestro-ralph.md +368 -162
  234. package/.claude/commands/maestro-roadmap.md +42 -81
  235. package/.claude/commands/maestro.md +63 -27
  236. package/.claude/commands/quality-auto-test.md +1 -1
  237. package/.claude/skills/maestro-help/SKILL.md +48 -14
  238. package/.claude/skills/maestro-help/index/catalog.json +29 -11
  239. package/.claude/skills/maestro-help/phases/01-parse-intent.md +1 -1
  240. package/.claude/skills/maestro-help/phases/02-search-present.md +6 -4
  241. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +60 -33
  242. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +1 -1
  243. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  244. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  245. package/.claude/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  246. package/.claude/skills/team-lifecycle-v4/templates/epics.md +2 -2
  247. package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  248. package/.claude/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  249. package/.codex/skills/maestro/SKILL.md +84 -41
  250. package/.codex/skills/maestro-amend/SKILL.md +157 -0
  251. package/.codex/skills/maestro-analyze/SKILL.md +71 -23
  252. package/.codex/skills/maestro-blueprint/SKILL.md +122 -0
  253. package/.codex/skills/maestro-brainstorm/SKILL.md +135 -45
  254. package/.codex/skills/maestro-composer/SKILL.md +1 -1
  255. package/.codex/skills/maestro-execute/SKILL.md +13 -4
  256. package/.codex/skills/maestro-help/SKILL.md +28 -18
  257. package/.codex/skills/maestro-help/catalog.json +29 -11
  258. package/.codex/skills/maestro-init/SKILL.md +7 -7
  259. package/.codex/skills/maestro-plan/SKILL.md +27 -9
  260. package/.codex/skills/maestro-ralph/SKILL.md +740 -491
  261. package/.codex/skills/maestro-roadmap/SKILL.md +55 -72
  262. package/.codex/skills/maestro-update/SKILL.md +169 -0
  263. package/.codex/skills/maestro-verify/SKILL.md +11 -2
  264. package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
  265. package/.codex/skills/manage-harvest/SKILL.md +10 -2
  266. package/.codex/skills/quality-retrospective/SKILL.md +9 -2
  267. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  268. package/.codex/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +2 -2
  269. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  270. package/.codex/skills/team-lifecycle-v4/templates/architecture.md +3 -3
  271. package/.codex/skills/team-lifecycle-v4/templates/epics.md +2 -2
  272. package/.codex/skills/team-lifecycle-v4/templates/product-brief.md +3 -3
  273. package/.codex/skills/team-lifecycle-v4/templates/requirements.md +2 -2
  274. package/README.md +8 -8
  275. package/README.zh-CN.md +8 -8
  276. package/dashboard/dist-server/dashboard/src/server/routes/settings.js +3 -3
  277. package/dashboard/dist-server/dashboard/src/server/routes/settings.js.map +1 -1
  278. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  279. package/dist/src/agents/cli-agent-runner.js +13 -7
  280. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  281. package/dist/src/commands/install-backend.d.ts +12 -0
  282. package/dist/src/commands/install-backend.d.ts.map +1 -1
  283. package/dist/src/commands/install-backend.js +144 -0
  284. package/dist/src/commands/install-backend.js.map +1 -1
  285. package/dist/src/commands/spec.d.ts.map +1 -1
  286. package/dist/src/commands/spec.js +8 -1
  287. package/dist/src/commands/spec.js.map +1 -1
  288. package/dist/src/core/component-defs.d.ts +6 -0
  289. package/dist/src/core/component-defs.d.ts.map +1 -1
  290. package/dist/src/core/component-defs.js +97 -0
  291. package/dist/src/core/component-defs.js.map +1 -1
  292. package/dist/src/tools/spec-init.d.ts +16 -2
  293. package/dist/src/tools/spec-init.d.ts.map +1 -1
  294. package/dist/src/tools/spec-init.js +58 -187
  295. package/dist/src/tools/spec-init.js.map +1 -1
  296. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  297. package/dist/src/tools/spec-loader.js +16 -16
  298. package/dist/src/tools/spec-loader.js.map +1 -1
  299. package/dist/src/tools/spec-seeds.d.ts +33 -0
  300. package/dist/src/tools/spec-seeds.d.ts.map +1 -0
  301. package/dist/src/tools/spec-seeds.js +200 -0
  302. package/dist/src/tools/spec-seeds.js.map +1 -0
  303. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  304. package/dist/src/tools/spec-writer.js +7 -9
  305. package/dist/src/tools/spec-writer.js.map +1 -1
  306. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts +11 -0
  307. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -0
  308. package/dist/src/tui/install-ui/ExtraMcpConfig.js +61 -0
  309. package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -0
  310. package/dist/src/tui/install-ui/InstallConfirm.d.ts +3 -0
  311. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  312. package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
  313. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  314. package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
  315. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  316. package/dist/src/tui/install-ui/InstallExecution.js +14 -2
  317. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  318. package/dist/src/tui/install-ui/InstallFlow.d.ts +1 -1
  319. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  320. package/dist/src/tui/install-ui/InstallFlow.js +16 -3
  321. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  322. package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
  323. package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
  324. package/dist/src/tui/install-ui/InstallHub.js +8 -0
  325. package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
  326. package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
  327. package/dist/src/tui/install-ui/InstallResult.js +3 -1
  328. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  329. package/dist/src/utils/update-notices.js +31 -0
  330. package/dist/src/utils/update-notices.js.map +1 -1
  331. package/package.json +5 -2
  332. package/templates/business-test-report.json +1 -1
  333. package/templates/index.json +1 -1
  334. package/templates/roadmap.md +15 -9
  335. package/templates/state.json +18 -17
  336. package/workflows/analyze.md +79 -11
  337. package/workflows/auto-test.md +6 -6
  338. package/workflows/blueprint.md +431 -0
  339. package/workflows/brainstorm.md +603 -496
  340. package/workflows/business-test.md +7 -7
  341. package/workflows/codebase-rebuild.md +4 -4
  342. package/workflows/harvest.md +184 -10
  343. package/workflows/init.md +9 -8
  344. package/workflows/maestro.md +1 -1
  345. package/workflows/milestone-audit.md +12 -4
  346. package/workflows/milestone-complete.md +11 -6
  347. package/workflows/plan.md +88 -22
  348. package/workflows/roadmap-common.md +1 -1
  349. package/workflows/roadmap.md +13 -3
  350. package/workflows/spec-generate.md +24 -13
  351. package/workflows/ui-design.md +2 -2
  352. package/workflows/ui-style.md +1 -1
  353. package/.agy/agents/conceptual-planning-agent.md +0 -244
  354. package/.claude/agents/conceptual-planning-agent.md +0 -245
@@ -0,0 +1,68 @@
1
+ ---
2
+ role: executor
3
+ prefix: QARUN
4
+ inner_loop: true
5
+ additional_prefixes: [QARUN-gc]
6
+ message_types:
7
+ success: tests_passed
8
+ failure: tests_failed
9
+ coverage: coverage_report
10
+ error: error
11
+ ---
12
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
13
+
14
+
15
+ # Test Executor
16
+
17
+ Run test suites, collect coverage data, and perform automatic fix cycles when tests fail. Implements the execution side of the Generator-Executor (GC) loop.
18
+
19
+ ## Phase 2: Environment Detection
20
+
21
+ | Input | Source | Required |
22
+ |-------|--------|----------|
23
+ | Task description | From task subject/description | Yes |
24
+ | Session path | Extracted from task description | Yes |
25
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | Yes |
26
+ | Test strategy | meta.json -> test_strategy | Yes |
27
+ | Generated tests | meta.json -> generated_tests | Yes |
28
+ | Target layer | task description `layer: L1/L2/L3` | Yes |
29
+
30
+ 1. Extract session path and target layer from task description
31
+ 2. Load validation specs: Run `ccw spec load --category quality` for verification rules and acceptance criteria
32
+ 3. Read .msg/meta.json for strategy and generated test file list
33
+ 3. Detect test command by framework:
34
+
35
+ | Framework | Command |
36
+ |-----------|---------|
37
+ | vitest | `npx vitest run --coverage --reporter=json --outputFile=test-results.json` |
38
+ | jest | `npx jest --coverage --json --outputFile=test-results.json` |
39
+ | pytest | `python -m pytest --cov --cov-report=json -v` |
40
+ | mocha | `npx mocha --reporter json > test-results.json` |
41
+ | unknown | `npm test -- --coverage` |
42
+
43
+ 4. Get test files from `generated_tests[targetLayer].files`
44
+
45
+ ## Phase 3: Iterative Test-Fix Cycle
46
+
47
+ **Max iterations**: 5. **Pass threshold**: 95% or all tests pass.
48
+
49
+ Per iteration:
50
+ 1. Run test command, capture output
51
+ 2. Parse results: extract passed/failed counts, parse coverage from output or `coverage/coverage-summary.json`
52
+ 3. If all pass (0 failures) -> exit loop (success)
53
+ 4. If pass rate >= 95% and iteration >= 2 -> exit loop (good enough)
54
+ 5. If iteration >= MAX -> exit loop (report current state)
55
+ 6. Extract failure details (error lines, assertion failures)
56
+ 7. Delegate fix via CLI tool with constraints:
57
+ - ONLY modify test files, NEVER modify source code
58
+ - Fix: incorrect assertions, missing imports, wrong mocks, setup issues
59
+ - Do NOT: skip tests, add `@ts-ignore`, use `as any`
60
+ 8. Increment iteration, repeat
61
+
62
+ ## Phase 4: Result Analysis & Output
63
+
64
+ 1. Build result data: layer, framework, iterations, pass_rate, coverage, tests_passed, tests_failed, all_passed
65
+ 2. Save results to `<session>/results/run-<layer>.json`
66
+ 3. Save last test output to `<session>/results/output-<layer>.txt`
67
+ 4. Update `<session>/wisdom/.msg/meta.json` under `execution_results[layer]` and top-level `execution_results.pass_rate`, `execution_results.coverage`
68
+ 5. Message type: `tests_passed` if all_passed, else `tests_failed`
@@ -0,0 +1,70 @@
1
+ ---
2
+ role: generator
3
+ prefix: QAGEN
4
+ inner_loop: false
5
+ additional_prefixes: [QAGEN-fix]
6
+ message_types:
7
+ success: tests_generated
8
+ revised: tests_revised
9
+ error: error
10
+ ---
11
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
12
+
13
+
14
+ # Test Generator
15
+
16
+ Generate test code according to strategist's strategy and layers. Support L1 unit tests, L2 integration tests, L3 E2E tests. Follow project's existing test patterns and framework conventions.
17
+
18
+ ## Phase 2: Strategy & Pattern Loading
19
+
20
+ | Input | Source | Required |
21
+ |-------|--------|----------|
22
+ | Task description | From task subject/description | Yes |
23
+ | Session path | Extracted from task description | Yes |
24
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | Yes |
25
+ | Test strategy | meta.json -> test_strategy | Yes |
26
+ | Target layer | task description `layer: L1/L2/L3` | Yes |
27
+
28
+ 1. Extract session path and target layer from task description
29
+ 2. Read .msg/meta.json for test strategy (layers, coverage targets)
30
+ 3. Determine if this is a GC fix task (subject contains "fix")
31
+ 4. Load layer config from strategy: level, name, target_coverage, focus_files
32
+ 5. Learn existing test patterns -- find 3 similar test files via find_files(`**/*.{test,spec}.{ts,tsx,js,jsx}`)
33
+ 6. Detect test conventions: file location (colocated vs __tests__), import style, describe/it nesting, framework (vitest/jest/pytest)
34
+
35
+ ## Phase 3: Test Code Generation
36
+
37
+ **Mode selection**:
38
+
39
+ | Condition | Mode |
40
+ |-----------|------|
41
+ | GC fix task | Read failure info from `<session>/results/run-<layer>.json`, fix failing tests only |
42
+ | <= 3 focus files | Direct: inline Read source -> Write test file |
43
+ | > 3 focus files | Batch by module, delegate via CLI tool |
44
+
45
+ **Direct generation flow** (per source file):
46
+ 1. Read source file content, extract exports
47
+ 2. Determine test file path following project conventions
48
+ 3. If test exists -> analyze missing cases -> append new tests via Edit
49
+ 4. If no test -> generate full test file via Write
50
+ 5. Include: happy path, edge cases, error cases per export
51
+
52
+ **GC fix flow**:
53
+ 1. Read execution results and failure output from results directory
54
+ 2. Read each failing test file
55
+ 3. Fix assertions, imports, mocks, or test setup
56
+ 4. Do NOT modify source code, do NOT skip/ignore tests
57
+
58
+ **General rules**:
59
+ - Follow existing test patterns exactly (imports, naming, structure)
60
+ - Target coverage per layer config
61
+ - Do NOT use `any` type assertions or `@ts-ignore`
62
+
63
+ ## Phase 4: Self-Validation & Output
64
+
65
+ 1. Collect generated/modified test files
66
+ 2. Run syntax check (TypeScript: `tsc --noEmit`, or framework-specific)
67
+ 3. Auto-fix syntax errors (max 3 attempts)
68
+ 4. Write test metadata to `<session>/wisdom/.msg/meta.json` under `generated_tests[layer]`:
69
+ - layer, files list, count, syntax_clean, mode, gc_fix flag
70
+ 5. Message type: `tests_generated` for new, `tests_revised` for GC fix iterations
@@ -0,0 +1,77 @@
1
+ ---
2
+ role: scout
3
+ prefix: SCOUT
4
+ inner_loop: false
5
+ message_types:
6
+ success: scan_ready
7
+ error: error
8
+ issues: issues_found
9
+ ---
10
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
11
+
12
+
13
+ # Multi-Perspective Scout
14
+
15
+ Scan codebase from multiple perspectives (bug, security, test-coverage, code-quality, UX) to discover potential issues. Produce structured scan results with severity-ranked findings.
16
+
17
+ ## Phase 2: Context & Scope Assessment
18
+
19
+ | Input | Source | Required |
20
+ |-------|--------|----------|
21
+ | Task description | From task subject/description | Yes |
22
+ | Session path | Extracted from task description | Yes |
23
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | No |
24
+
25
+ 1. Extract session path and target scope from task description
26
+ 2. Determine scan scope: explicit scope from task or `**/*` default
27
+ 3. Get recent changed files: `git diff --name-only HEAD~5 2>/dev/null || echo ""`
28
+ 4. Read .msg/meta.json for historical defect patterns (`defect_patterns`)
29
+ 5. Select scan perspectives based on task description:
30
+ - Default: `["bug", "security", "test-coverage", "code-quality"]`
31
+ - Add `"ux"` if task mentions UX/UI
32
+ 6. Assess complexity to determine scan strategy:
33
+
34
+ | Complexity | Condition | Strategy |
35
+ |------------|-----------|----------|
36
+ | Low | < 5 changed files, no specific keywords | ACE search + Grep inline |
37
+ | Medium | 5-15 files or specific perspective requested | CLI fan-out (3 core perspectives) |
38
+ | High | > 15 files or full-project scan | CLI fan-out (all perspectives) |
39
+
40
+ ## Phase 3: Multi-Perspective Scan
41
+
42
+ **Low complexity**: Use `mcp__ace-tool__search_context` for quick pattern-based scan.
43
+
44
+ **Medium/High complexity**: CLI fan-out -- one `maestro delegate --mode analysis` per perspective:
45
+
46
+ For each active perspective, build prompt:
47
+ ```
48
+ PURPOSE: Scan code from <perspective> perspective to discover potential issues
49
+ TASK: Analyze code patterns for <perspective> problems, identify anti-patterns, check for common issues
50
+ MODE: analysis
51
+ CONTEXT: @<scan-scope>
52
+ EXPECTED: List of findings with severity (critical/high/medium/low), file:line references, description
53
+ CONSTRAINTS: Focus on actionable findings only
54
+ ```
55
+ Execute via: `maestro delegate "<prompt>" --role analyze --mode analysis`
56
+
57
+ After all perspectives complete:
58
+ - Parse CLI outputs into structured findings
59
+ - Deduplicate by file:line (merge perspectives for same location)
60
+ - Compare against known defect patterns from .msg/meta.json
61
+ - Rank by severity: critical > high > medium > low
62
+
63
+ ### Tech Profile Scan
64
+
65
+ After scanning, emit context-aware trigger signals (based on detected codebase characteristics):
66
+
67
+ 1. Check scan findings → signals (`sql_detected`, `auth_detected`, `injection_risk`, `eval_usage`)
68
+ 2. Check quality issues → risk signals (`test_gap`, `legacy_patterns`, `perf_sensitive`)
69
+ 3. Include `tech_profile` in Phase 5 state_update data
70
+
71
+ ## Phase 4: Result Aggregation
72
+
73
+ 1. Build `discoveredIssues` array from critical + high findings (with id, severity, perspective, file, line, description)
74
+ 2. Write scan results to `<session>/scan/scan-results.json`:
75
+ - scan_date, perspectives scanned, total findings, by_severity counts, findings detail, issues_created count
76
+ 3. Update `<session>/wisdom/.msg/meta.json`: merge `discovered_issues` field
77
+ 4. Contribute to wisdom/issues.md if new patterns found
@@ -0,0 +1,73 @@
1
+ ---
2
+ role: strategist
3
+ prefix: QASTRAT
4
+ inner_loop: false
5
+ message_types:
6
+ success: strategy_ready
7
+ error: error
8
+ ---
9
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
10
+
11
+
12
+ # Test Strategist
13
+
14
+ Analyze change scope, determine test layers (L1-L3), define coverage targets, and generate test strategy document. Create targeted test plans based on scout discoveries and code changes.
15
+
16
+ ## Phase 2: Context & Change Analysis
17
+
18
+ | Input | Source | Required |
19
+ |-------|--------|----------|
20
+ | Task description | From task subject/description | Yes |
21
+ | Session path | Extracted from task description | Yes |
22
+ | .msg/meta.json | <session>/wisdom/.msg/meta.json | Yes |
23
+ | Discovered issues | meta.json -> discovered_issues | No |
24
+ | Defect patterns | meta.json -> defect_patterns | No |
25
+
26
+ 1. Extract session path from task description
27
+ 2. Read .msg/meta.json for scout discoveries and historical patterns
28
+ 3. Analyze change scope: `git diff --name-only HEAD~5`
29
+ 4. Categorize changed files:
30
+
31
+ | Category | Pattern |
32
+ |----------|---------|
33
+ | Source | `\.(ts|tsx|js|jsx|py|java|go|rs)$` |
34
+ | Test | `\.(test|spec)\.(ts|tsx|js|jsx)$` or `test_` |
35
+ | Config | `\.(json|yaml|yml|toml|env)$` |
36
+
37
+ 5. Detect test framework from package.json / project files
38
+ 6. Check existing coverage baseline from `coverage/coverage-summary.json`
39
+ 7. Select analysis mode:
40
+
41
+ | Total Scope | Mode |
42
+ |-------------|------|
43
+ | <= 5 files + issues | Direct inline analysis |
44
+ | 6-15 | Single CLI analysis |
45
+ | > 15 | Multi-dimension CLI analysis |
46
+
47
+ ## Phase 3: Strategy Generation
48
+
49
+ **Layer Selection Logic**:
50
+
51
+ | Condition | Layer | Target |
52
+ |-----------|-------|--------|
53
+ | Has source file changes | L1: Unit Tests | 80% |
54
+ | >= 3 source files OR critical issues | L2: Integration Tests | 60% |
55
+ | >= 3 critical/high severity issues | L3: E2E Tests | 40% |
56
+ | No changes but has scout issues | L1 focused on issue files | 80% |
57
+
58
+ For CLI-assisted analysis, use:
59
+ ```
60
+ PURPOSE: Analyze code changes and scout findings to determine optimal test strategy
61
+ TASK: Classify changed files by risk, map issues to test requirements, identify integration points, recommend test layers with coverage targets
62
+ MODE: analysis
63
+ ```
64
+
65
+ Build strategy document with: scope analysis, layer configs (level, name, target_coverage, focus_files, rationale), priority issues list.
66
+
67
+ **Validation**: Verify strategy has layers, targets > 0, covers discovered issues, and framework detected.
68
+
69
+ ## Phase 4: Output & Persistence
70
+
71
+ 1. Write strategy to `<session>/strategy/test-strategy.md`
72
+ 2. Update `<session>/wisdom/.msg/meta.json`: merge `test_strategy` field with scope, layers, coverage_targets, test_framework
73
+ 3. Contribute to wisdom/decisions.md with layer selection rationale
@@ -0,0 +1,115 @@
1
+ # QA Pipelines
2
+
3
+ Pipeline definitions and task registry for team-quality-assurance.
4
+
5
+ ## Pipeline Modes
6
+
7
+ | Mode | Description | Entry Role |
8
+ |------|-------------|------------|
9
+ | discovery | Scout-first: issue discovery then testing | scout |
10
+ | testing | Skip scout, direct test pipeline | strategist |
11
+ | full | Complete QA closed loop + regression scan | scout |
12
+
13
+ ## Pipeline Definitions
14
+
15
+ ### Discovery Mode (5 tasks, serial)
16
+
17
+ ```
18
+ SCOUT-001 -> QASTRAT-001 -> QAGEN-001 -> QARUN-001 -> QAANA-001
19
+ ```
20
+
21
+ | Task ID | Role | Dependencies | Description |
22
+ |---------|------|-------------|-------------|
23
+ | SCOUT-001 | scout | (none) | Multi-perspective issue scanning |
24
+ | QASTRAT-001 | strategist | SCOUT-001 | Change scope analysis + test strategy |
25
+ | QAGEN-001 | generator | QASTRAT-001 | L1 unit test generation |
26
+ | QARUN-001 | executor | QAGEN-001 | L1 test execution + fix cycles |
27
+ | QAANA-001 | analyst | QARUN-001 | Defect pattern analysis + quality report |
28
+
29
+ ### Testing Mode (6 tasks, progressive layers)
30
+
31
+ ```
32
+ QASTRAT-001 -> QAGEN-L1-001 -> QARUN-L1-001 -> QAGEN-L2-001 -> QARUN-L2-001 -> QAANA-001
33
+ ```
34
+
35
+ | Task ID | Role | Dependencies | Layer | Description |
36
+ |---------|------|-------------|-------|-------------|
37
+ | QASTRAT-001 | strategist | (none) | — | Test strategy formulation |
38
+ | QAGEN-L1-001 | generator | QASTRAT-001 | L1 | L1 unit test generation |
39
+ | QARUN-L1-001 | executor | QAGEN-L1-001 | L1 | L1 test execution + fix cycles |
40
+ | QAGEN-L2-001 | generator | QARUN-L1-001 | L2 | L2 integration test generation |
41
+ | QARUN-L2-001 | executor | QAGEN-L2-001 | L2 | L2 test execution + fix cycles |
42
+ | QAANA-001 | analyst | QARUN-L2-001 | — | Quality analysis report |
43
+
44
+ ### Full Mode (8 tasks, parallel windows + regression)
45
+
46
+ ```
47
+ SCOUT-001 -> QASTRAT-001 -> [QAGEN-L1-001 || QAGEN-L2-001] -> [QARUN-L1-001 || QARUN-L2-001] -> QAANA-001 -> SCOUT-002
48
+ ```
49
+
50
+ | Task ID | Role | Dependencies | Layer | Description |
51
+ |---------|------|-------------|-------|-------------|
52
+ | SCOUT-001 | scout | (none) | — | Multi-perspective issue scanning |
53
+ | QASTRAT-001 | strategist | SCOUT-001 | — | Test strategy formulation |
54
+ | QAGEN-L1-001 | generator-1 | QASTRAT-001 | L1 | L1 unit test generation (parallel) |
55
+ | QAGEN-L2-001 | generator-2 | QASTRAT-001 | L2 | L2 integration test generation (parallel) |
56
+ | QARUN-L1-001 | executor-1 | QAGEN-L1-001 | L1 | L1 test execution + fix cycles (parallel) |
57
+ | QARUN-L2-001 | executor-2 | QAGEN-L2-001 | L2 | L2 test execution + fix cycles (parallel) |
58
+ | QAANA-001 | analyst | QARUN-L1-001, QARUN-L2-001 | — | Quality analysis report |
59
+ | SCOUT-002 | scout | QAANA-001 | — | Regression scan after fixes |
60
+
61
+ ## GC Loop
62
+
63
+ Generator-Executor iterate per test layer until coverage targets are met:
64
+
65
+ ```
66
+ QAGEN -> QARUN -> (if coverage < target) -> QAGEN-fix -> QARUN-gc
67
+ (if coverage >= target) -> next layer or QAANA
68
+ ```
69
+
70
+ - Max iterations: 3 per layer
71
+ - After 3 iterations: accept current coverage with warning
72
+
73
+ ## Coverage Targets
74
+
75
+ | Layer | Name | Default Target |
76
+ |-------|------|----------------|
77
+ | L1 | Unit Tests | 80% |
78
+ | L2 | Integration Tests | 60% |
79
+ | L3 | E2E Tests | 40% |
80
+
81
+ ## Scan Perspectives
82
+
83
+ | Perspective | Focus |
84
+ |-------------|-------|
85
+ | bug | Logic errors, crash paths, null references |
86
+ | security | Vulnerabilities, auth bypass, data exposure |
87
+ | test-coverage | Untested code paths, missing assertions |
88
+ | code-quality | Anti-patterns, complexity, maintainability |
89
+ | ux | User-facing issues, accessibility (optional) |
90
+
91
+ ## Session Directory
92
+
93
+ ```
94
+ .workflow/.team/QA-<slug>-<YYYY-MM-DD>/
95
+ ├── .msg/messages.jsonl # Message bus log
96
+ ├── .msg/meta.json # Session state + cross-role state
97
+ ├── wisdom/ # Cross-task knowledge
98
+ │ ├── learnings.md
99
+ │ ├── decisions.md
100
+ │ ├── conventions.md
101
+ │ └── issues.md
102
+ ├── scan/ # Scout output
103
+ │ └── scan-results.json
104
+ ├── strategy/ # Strategist output
105
+ │ └── test-strategy.md
106
+ ├── tests/ # Generator output
107
+ │ ├── L1-unit/
108
+ │ ├── L2-integration/
109
+ │ └── L3-e2e/
110
+ ├── results/ # Executor output
111
+ │ ├── run-001.json
112
+ │ └── coverage-001.json
113
+ └── analysis/ # Analyst output
114
+ └── quality-report.md
115
+ ```
@@ -0,0 +1,131 @@
1
+ {
2
+ "team_name": "quality-assurance",
3
+ "version": "1.0.0",
4
+ "description": "质量保障团队 - 融合\"软件测试\"和\"问题发现\"两大能力域,形成发现→验证→修复→回归的闭环",
5
+ "skill_entry": "team-quality-assurance",
6
+ "invocation": "Skill(skill=\"team-quality-assurance\", args=\"--role=coordinator ...\")",
7
+
8
+ "roles": {
9
+ "coordinator": {
10
+ "name": "coordinator",
11
+ "responsibility": "Orchestration",
12
+ "task_prefix": null,
13
+ "description": "QA 团队协调者。编排 pipeline:需求澄清 → 模式选择 → 团队创建 → 任务分发 → 监控协调 → 质量门控 → 结果汇报",
14
+ "message_types_sent": ["mode_selected", "gc_loop_trigger", "quality_gate", "task_unblocked", "error", "shutdown"],
15
+ "message_types_received": ["scan_ready", "issues_found", "strategy_ready", "tests_generated", "tests_revised", "tests_passed", "tests_failed", "analysis_ready", "quality_report", "error"],
16
+ "commands": ["dispatch", "monitor"]
17
+ },
18
+ "scout": {
19
+ "name": "scout",
20
+ "responsibility": "Orchestration (多视角扫描编排)",
21
+ "task_prefix": "SCOUT-*",
22
+ "description": "多视角问题侦察员。主动扫描代码库,从 bug、安全、UX、测试覆盖、代码质量等多个视角发现潜在问题",
23
+ "message_types_sent": ["scan_ready", "issues_found", "error"],
24
+ "message_types_received": [],
25
+ "commands": ["scan"],
26
+ "cli_tools": ["gemini"],
27
+ "cli_tools": ["gemini"]
28
+ },
29
+ "strategist": {
30
+ "name": "strategist",
31
+ "responsibility": "Orchestration (策略制定)",
32
+ "task_prefix": "QASTRAT-*",
33
+ "description": "测试策略师。分析变更范围,确定测试层级(L1-L3),定义覆盖率目标",
34
+ "message_types_sent": ["strategy_ready", "error"],
35
+ "message_types_received": [],
36
+ "commands": ["analyze-scope"],
37
+ "cli_tools": ["gemini"],
38
+ "cli_tools": ["gemini"]
39
+ },
40
+ "generator": {
41
+ "name": "generator",
42
+ "responsibility": "Code generation (测试代码生成)",
43
+ "task_prefix": "QAGEN-*",
44
+ "description": "测试用例生成器。按策略和层级生成测试代码,支持 L1/L2/L3",
45
+ "message_types_sent": ["tests_generated", "tests_revised", "error"],
46
+ "message_types_received": [],
47
+ "commands": ["generate-tests"],
48
+ "cli_tools": ["gemini"],
49
+ "cli_tools": ["gemini"]
50
+ },
51
+ "executor": {
52
+ "name": "executor",
53
+ "responsibility": "Validation (测试执行与修复)",
54
+ "task_prefix": "QARUN-*",
55
+ "description": "测试执行者。运行测试套件,收集覆盖率数据,失败时自动修复循环",
56
+ "message_types_sent": ["tests_passed", "tests_failed", "coverage_report", "error"],
57
+ "message_types_received": [],
58
+ "commands": ["run-fix-cycle"],
59
+ "cli_tools": ["gemini"]
60
+ },
61
+ "analyst": {
62
+ "name": "analyst",
63
+ "responsibility": "Read-only analysis (质量分析)",
64
+ "task_prefix": "QAANA-*",
65
+ "description": "质量分析师。分析缺陷模式、覆盖率差距、测试有效性,生成综合质量报告",
66
+ "message_types_sent": ["analysis_ready", "quality_report", "error"],
67
+ "message_types_received": [],
68
+ "commands": ["quality-report"],
69
+ "cli_tools": ["gemini"]
70
+ }
71
+ },
72
+
73
+ "pipeline_modes": {
74
+ "discovery": {
75
+ "description": "Scout先行扫描 → 全流程",
76
+ "stages": ["SCOUT", "QASTRAT", "QAGEN", "QARUN", "QAANA"],
77
+ "entry_role": "scout"
78
+ },
79
+ "testing": {
80
+ "description": "跳过 Scout → 直接测试",
81
+ "stages": ["QASTRAT", "QAGEN-L1", "QARUN-L1", "QAGEN-L2", "QARUN-L2", "QAANA"],
82
+ "entry_role": "strategist"
83
+ },
84
+ "full": {
85
+ "description": "完整 QA 闭环 + 回归扫描",
86
+ "stages": ["SCOUT", "QASTRAT", "QAGEN-L1", "QAGEN-L2", "QARUN-L1", "QARUN-L2", "QAANA", "SCOUT-REG"],
87
+ "entry_role": "scout",
88
+ "parallel_stages": [["QAGEN-L1", "QAGEN-L2"], ["QARUN-L1", "QARUN-L2"]]
89
+ }
90
+ },
91
+
92
+ "gc_loop": {
93
+ "max_iterations": 3,
94
+ "trigger": "coverage < target",
95
+ "participants": ["generator", "executor"],
96
+ "flow": "QAGEN-fix → QARUN-gc → evaluate"
97
+ },
98
+
99
+ "shared_memory": {
100
+ "file": "shared-memory.json",
101
+ "fields": {
102
+ "discovered_issues": { "owner": "scout", "type": "array" },
103
+ "test_strategy": { "owner": "strategist", "type": "object" },
104
+ "generated_tests": { "owner": "generator", "type": "object" },
105
+ "execution_results": { "owner": "executor", "type": "object" },
106
+ "defect_patterns": { "owner": "analyst", "type": "array" },
107
+ "coverage_history": { "owner": "analyst", "type": "array" },
108
+ "quality_score": { "owner": "analyst", "type": "number" }
109
+ }
110
+ },
111
+
112
+ "collaboration_patterns": [
113
+ "CP-1: Linear Pipeline (Discovery/Testing mode)",
114
+ "CP-2: Review-Fix Cycle (GC loop: Generator ↔ Executor)",
115
+ "CP-3: Fan-out (Scout multi-perspective scan)",
116
+ "CP-5: Escalation (Worker → Coordinator → User)",
117
+ "CP-9: Dual-Track (Full mode: L1 + L2 parallel)",
118
+ "CP-10: Post-Mortem (Analyst quality report)"
119
+ ],
120
+
121
+ "session_directory": {
122
+ "pattern": ".workflow/.team/QA-{slug}-{date}",
123
+ "subdirectories": ["scan", "strategy", "results", "analysis"]
124
+ },
125
+
126
+ "test_layers": {
127
+ "L1": { "name": "Unit Tests", "default_target": 80 },
128
+ "L2": { "name": "Integration Tests", "default_target": 60 },
129
+ "L3": { "name": "E2E Tests", "default_target": 40 }
130
+ }
131
+ }