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,77 @@
1
+ ---
2
+ role: scanner
3
+ prefix: SCAN
4
+ inner_loop: false
5
+ message_types:
6
+ ---
7
+
8
+ # Code Scanner
9
+
10
+ Toolchain + LLM semantic scan producing structured findings. Static analysis tools in parallel, then LLM for issues tools miss. Read-only -- never modifies source code. 4-dimension system: security (SEC), correctness (COR), performance (PRF), maintainability (MNT).
11
+
12
+ ## Phase 2: Context & Toolchain Detection
13
+
14
+ | Input | Source | Required |
15
+ |-------|--------|----------|
16
+ | Task description | From task subject/description | Yes |
17
+ | Session path | Extracted from task description | Yes |
18
+ | .msg/meta.json | <session>/.msg/meta.json | No |
19
+
20
+ 1. Extract session path, target, dimensions, quick flag from task description
21
+ 2. Resolve target files (glob pattern or directory -> `**/*.{ts,tsx,js,jsx,py,go,java,rs}`)
22
+ 3. If no source files found -> report empty, complete task cleanly
23
+ 4. Detect toolchain availability:
24
+
25
+ | Tool | Detection | Dimension |
26
+ |------|-----------|-----------|
27
+ | tsc | `tsconfig.json` exists | COR |
28
+ | eslint | `.eslintrc*` or `eslint` in package.json | COR/MNT |
29
+ | semgrep | `.semgrep.yml` exists | SEC |
30
+ | ruff | `pyproject.toml` + ruff available | SEC/COR/MNT |
31
+ | mypy | mypy available + `pyproject.toml` | COR |
32
+ | npmAudit | `package-lock.json` exists | SEC |
33
+
34
+ 5. Load wisdom files from `<session>/wisdom/` if they exist
35
+
36
+ ## Phase 3: Scan Execution
37
+
38
+ **Quick mode**: Single CLI call with analysis mode, max 20 findings, skip toolchain.
39
+
40
+ **Standard mode** (sequential):
41
+
42
+ ### 3A: Toolchain Scan
43
+ Run detected tools in parallel via Bash backgrounding. Each tool writes to `<session>/scan/tmp/<tool>.{json|txt}`. After `wait`, parse each output into normalized findings:
44
+ - tsc: `file(line,col): error TSxxxx: msg` -> dimension=correctness, source=tool:tsc
45
+ - eslint: JSON array -> severity 2=correctness/high, else=maintainability/medium
46
+ - semgrep: `{results[]}` -> dimension=security, severity from extra.severity
47
+ - ruff: `[{code,message,filename}]` -> S*=security, F*/B*=correctness, else=maintainability
48
+ - mypy: `file:line: error: msg [code]` -> dimension=correctness
49
+ - npm audit: `{vulnerabilities:{}}` -> dimension=security, category=dependency
50
+
51
+ Write `<session>/scan/toolchain-findings.json`.
52
+
53
+ ### 3B: Semantic Scan (LLM via CLI)
54
+ Build prompt with target file patterns, toolchain dedup summary, and per-dimension focus areas:
55
+ - SEC: Business logic vulnerabilities, privilege escalation, sensitive data flow, auth bypass
56
+ - COR: Logic errors, unhandled exception paths, state management bugs, race conditions
57
+ - PRF: Algorithm complexity, N+1 queries, unnecessary sync, memory leaks, missing caching
58
+ - MNT: Architectural coupling, abstraction leaks, convention violations, dead code
59
+
60
+ Execute via `maestro delegate --role review --mode analysis --rule analysis-review-code-quality`. Parse JSON array response, validate required fields (dimension, title, location.file), enforce per-dimension limit (max 5 each), filter minimum severity (medium+). Write `<session>/scan/semantic-findings.json`.
61
+
62
+ ### Tech Profile Scan
63
+
64
+ After scan execution, emit context-aware trigger signals (based on detected codebase characteristics):
65
+
66
+ 1. Check security findings → signals (`injection_risk`, `eval_usage`, `sql_detected`, `auth_detected`)
67
+ 2. Check quality findings → risk signals (`legacy_patterns`, `test_gap`, `perf_sensitive`)
68
+ 3. Include `tech_profile` in Phase 5 state_update data
69
+
70
+ ## Phase 4: Aggregate & Output
71
+
72
+ 1. Merge toolchain + semantic findings, deduplicate (same file + line + dimension = duplicate)
73
+ 2. Assign dimension-prefixed IDs: SEC-001, COR-001, PRF-001, MNT-001
74
+ 3. Write `<session>/scan/scan-results.json` with schema: `{scan_date, target, dimensions, quick_mode, total_findings, by_severity, by_dimension, findings[]}`
75
+ 4. Each finding: `{id, dimension, category, severity, title, description, location:{file,line}, source, suggested_fix, effort, confidence}`
76
+ 5. Update `<session>/.msg/meta.json` with scan summary (findings_count, by_severity, by_dimension)
77
+ 6. Contribute discoveries to `<session>/wisdom/` files
@@ -0,0 +1,82 @@
1
+ # Review Dimensions (4-Dimension System)
2
+
3
+ ## Security (SEC)
4
+
5
+ Vulnerabilities, attack surfaces, and data protection issues.
6
+
7
+ **Categories**: injection, authentication, authorization, data-exposure, encryption, input-validation, access-control
8
+
9
+ **Tool Support**: Semgrep (`--config auto`), npm audit, tsc strict mode
10
+ **LLM Focus**: Business logic vulnerabilities, privilege escalation paths, sensitive data flows
11
+
12
+ **Severity Mapping**:
13
+ - Critical: RCE, SQL injection, auth bypass, data breach
14
+ - High: XSS, CSRF, insecure deserialization, weak crypto
15
+ - Medium: Missing input validation, overly permissive CORS
16
+ - Low: Informational headers, minor config issues
17
+
18
+ ---
19
+
20
+ ## Correctness (COR)
21
+
22
+ Bugs, logic errors, and type safety issues.
23
+
24
+ **Categories**: bug, error-handling, edge-case, type-safety, race-condition, null-reference
25
+
26
+ **Tool Support**: tsc `--noEmit`, ESLint error-level rules
27
+ **LLM Focus**: Logic errors, unhandled exception paths, state management bugs, race conditions
28
+
29
+ **Severity Mapping**:
30
+ - Critical: Data corruption, crash in production path
31
+ - High: Incorrect business logic, unhandled error in common path
32
+ - Medium: Edge case not handled, missing null check
33
+ - Low: Minor type inconsistency, unused variable
34
+
35
+ ---
36
+
37
+ ## Performance (PRF)
38
+
39
+ Inefficiencies, resource waste, and scalability issues.
40
+
41
+ **Categories**: n-plus-one, memory-leak, blocking-operation, complexity, resource-usage, caching
42
+
43
+ **Tool Support**: None (LLM-only dimension)
44
+ **LLM Focus**: Algorithm complexity, N+1 queries, unnecessary sync operations, memory leaks, missing caching
45
+
46
+ **Severity Mapping**:
47
+ - Critical: Memory leak in long-running process, O(n³) on user data
48
+ - High: N+1 query in hot path, blocking I/O in async context
49
+ - Medium: Suboptimal algorithm, missing obvious cache
50
+ - Low: Minor inefficiency, premature optimization opportunity
51
+
52
+ ---
53
+
54
+ ## Maintainability (MNT)
55
+
56
+ Code quality, readability, and structural health.
57
+
58
+ **Categories**: code-smell, naming, complexity, duplication, dead-code, pattern-violation, coupling
59
+
60
+ **Tool Support**: ESLint warning-level rules, complexity metrics
61
+ **LLM Focus**: Architectural coupling, abstraction leaks, project convention violations
62
+
63
+ **Severity Mapping**:
64
+ - High: God class, circular dependency, copy-paste across modules
65
+ - Medium: Long method, magic numbers, unclear naming
66
+ - Low: Minor style inconsistency, commented-out code
67
+ - Info: Pattern observation, refactoring suggestion
68
+
69
+ ---
70
+
71
+ ## Why 4 Dimensions (Not 7)
72
+
73
+ The original review-cycle used 7 dimensions with significant overlap:
74
+
75
+ | Original | Problem | Merged Into |
76
+ |----------|---------|-------------|
77
+ | Quality | Overlaps Maintainability + Best-Practices | **Maintainability** |
78
+ | Best-Practices | Overlaps Quality + Maintainability | **Maintainability** |
79
+ | Architecture | Overlaps Maintainability (coupling/layering) | **Maintainability** (structure) + **Security** (security architecture) |
80
+ | Action-Items | Not a dimension — it's a report format | Standard field on every finding |
81
+
82
+ 4 dimensions = clear ownership, no overlap, each maps to distinct tooling.
@@ -0,0 +1,82 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Finding",
4
+ "description": "Standardized finding format for team-review pipeline",
5
+ "type": "object",
6
+ "required": ["id", "dimension", "category", "severity", "title", "description", "location", "source", "effort", "confidence"],
7
+ "properties": {
8
+ "id": {
9
+ "type": "string",
10
+ "pattern": "^(SEC|COR|PRF|MNT)-\\d{3}$",
11
+ "description": "{DIM_PREFIX}-{SEQ}"
12
+ },
13
+ "dimension": {
14
+ "type": "string",
15
+ "enum": ["security", "correctness", "performance", "maintainability"]
16
+ },
17
+ "category": {
18
+ "type": "string",
19
+ "description": "Sub-category within the dimension"
20
+ },
21
+ "severity": {
22
+ "type": "string",
23
+ "enum": ["critical", "high", "medium", "low", "info"]
24
+ },
25
+ "title": { "type": "string" },
26
+ "description": { "type": "string" },
27
+ "location": {
28
+ "type": "object",
29
+ "required": ["file", "line"],
30
+ "properties": {
31
+ "file": { "type": "string" },
32
+ "line": { "type": "integer" },
33
+ "end_line": { "type": "integer" },
34
+ "code_snippet": { "type": "string" }
35
+ }
36
+ },
37
+ "source": {
38
+ "type": "string",
39
+ "description": "tool:eslint | tool:tsc | tool:semgrep | llm | tool+llm"
40
+ },
41
+ "tool_rule": { "type": ["string", "null"] },
42
+ "suggested_fix": { "type": "string" },
43
+ "references": {
44
+ "type": "array",
45
+ "items": { "type": "string" }
46
+ },
47
+ "effort": { "type": "string", "enum": ["low", "medium", "high"] },
48
+ "confidence": { "type": "string", "enum": ["high", "medium", "low"] },
49
+ "root_cause": {
50
+ "type": ["object", "null"],
51
+ "description": "Populated by reviewer role",
52
+ "properties": {
53
+ "description": { "type": "string" },
54
+ "related_findings": { "type": "array", "items": { "type": "string" } },
55
+ "is_symptom": { "type": "boolean" }
56
+ }
57
+ },
58
+ "impact": {
59
+ "type": ["object", "null"],
60
+ "properties": {
61
+ "scope": { "type": "string", "enum": ["low", "medium", "high"] },
62
+ "affected_files": { "type": "array", "items": { "type": "string" } },
63
+ "blast_radius": { "type": "string" }
64
+ }
65
+ },
66
+ "optimization": {
67
+ "type": ["object", "null"],
68
+ "properties": {
69
+ "approach": { "type": "string" },
70
+ "alternative": { "type": "string" },
71
+ "tradeoff": { "type": "string" }
72
+ }
73
+ },
74
+ "fix_strategy": { "type": ["string", "null"], "enum": ["minimal", "refactor", "skip", null] },
75
+ "fix_complexity": { "type": ["string", "null"], "enum": ["low", "medium", "high", null] },
76
+ "fix_dependencies": {
77
+ "type": "array",
78
+ "items": { "type": "string" },
79
+ "default": []
80
+ }
81
+ }
82
+ }
@@ -0,0 +1,102 @@
1
+ # Review Pipelines
2
+
3
+ Pipeline definitions and task registry for team-review.
4
+
5
+ ## Pipeline Modes
6
+
7
+ | Mode | Description | Tasks |
8
+ |------|-------------|-------|
9
+ | default | Scan + review | SCAN -> REV |
10
+ | full | Scan + review + fix | SCAN -> REV -> [confirm] -> FIX |
11
+ | fix-only | Fix from existing manifest | FIX |
12
+ | quick | Quick scan only | SCAN (quick=true) |
13
+
14
+ ## Pipeline Definitions
15
+
16
+ ### default Mode (2 tasks, linear)
17
+
18
+ ```
19
+ SCAN-001 -> REV-001
20
+ ```
21
+
22
+ | Task ID | Role | Dependencies | Description |
23
+ |---------|------|-------------|-------------|
24
+ | SCAN-001 | scanner | (none) | Multi-dimension code scan (toolchain + LLM) |
25
+ | REV-001 | reviewer | SCAN-001 | Deep finding analysis and review report |
26
+
27
+ ### full Mode (3 tasks, linear with user checkpoint)
28
+
29
+ ```
30
+ SCAN-001 -> REV-001 -> [user confirm] -> FIX-001
31
+ ```
32
+
33
+ | Task ID | Role | Dependencies | Description |
34
+ |---------|------|-------------|-------------|
35
+ | SCAN-001 | scanner | (none) | Multi-dimension code scan (toolchain + LLM) |
36
+ | REV-001 | reviewer | SCAN-001 | Deep finding analysis and review report |
37
+ | FIX-001 | fixer | REV-001 + user confirm | Plan + execute + verify fixes |
38
+
39
+ ### fix-only Mode (1 task)
40
+
41
+ ```
42
+ FIX-001
43
+ ```
44
+
45
+ | Task ID | Role | Dependencies | Description |
46
+ |---------|------|-------------|-------------|
47
+ | FIX-001 | fixer | (none) | Execute fixes from existing manifest |
48
+
49
+ ### quick Mode (1 task)
50
+
51
+ ```
52
+ SCAN-001 (quick=true)
53
+ ```
54
+
55
+ | Task ID | Role | Dependencies | Description |
56
+ |---------|------|-------------|-------------|
57
+ | SCAN-001 | scanner | (none) | Quick scan, max 20 findings, skip toolchain |
58
+
59
+ ## Review Dimensions (4-Dimension System)
60
+
61
+ | Dimension | Code | Focus |
62
+ |-----------|------|-------|
63
+ | Security | SEC | Vulnerabilities, auth, data exposure |
64
+ | Correctness | COR | Bugs, logic errors, type safety |
65
+ | Performance | PRF | N+1, memory leaks, blocking ops |
66
+ | Maintainability | MNT | Coupling, complexity, dead code |
67
+
68
+ ## Fix Scope Options
69
+
70
+ | Scope | Description |
71
+ |-------|-------------|
72
+ | all | Fix all findings |
73
+ | critical,high | Fix critical and high severity only |
74
+ | skip | Skip fix phase |
75
+
76
+ ## Session Directory
77
+
78
+ ```
79
+ .workflow/.team/RV-<slug>-<YYYY-MM-DD>/
80
+ ├── .msg/messages.jsonl # Message bus log
81
+ ├── .msg/meta.json # Session state + cross-role state
82
+ ├── wisdom/ # Cross-task knowledge
83
+ │ ├── learnings.md
84
+ │ ├── decisions.md
85
+ │ ├── conventions.md
86
+ │ └── issues.md
87
+ ├── scan/ # Scanner output
88
+ │ ├── toolchain-findings.json
89
+ │ ├── semantic-findings.json
90
+ │ └── scan-results.json
91
+ ├── review/ # Reviewer output
92
+ │ ├── enriched-findings.json
93
+ │ ├── review-report.json
94
+ │ └── review-report.md
95
+ └── fix/ # Fixer output
96
+ ├── fix-manifest.json
97
+ ├── fix-plan.json
98
+ ├── execution-results.json
99
+ ├── verify-results.json
100
+ ├── fix-summary.json
101
+ └── fix-summary.md
102
+ ```
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "team-review",
3
+ "description": "Code scanning, vulnerability review, optimization suggestions, and automated fix",
4
+ "sessionDir": ".workflow/.team-review/",
5
+ "msgDir": ".workflow/.team-msg/team-review/",
6
+ "roles": {
7
+ "coordinator": { "prefix": "RC", "type": "orchestration", "file": "roles/coordinator/role.md" },
8
+ "scanner": { "prefix": "SCAN", "type": "read-only-analysis", "file": "roles/scanner/role.md" },
9
+ "reviewer": { "prefix": "REV", "type": "read-only-analysis", "file": "roles/reviewer/role.md" },
10
+ "fixer": { "prefix": "FIX", "type": "code-generation", "file": "roles/fixer/role.md" }
11
+ },
12
+ "collaboration_pattern": "CP-1",
13
+ "pipeline": ["scanner", "reviewer", "fixer"],
14
+ "dimensions": {
15
+ "security": { "prefix": "SEC", "tools": ["semgrep", "npm-audit"] },
16
+ "correctness": { "prefix": "COR", "tools": ["tsc", "eslint-error"] },
17
+ "performance": { "prefix": "PRF", "tools": [] },
18
+ "maintainability": { "prefix": "MNT", "tools": ["eslint-warning"] }
19
+ },
20
+ "severity_levels": ["critical", "high", "medium", "low", "info"],
21
+ "defaults": {
22
+ "max_deep_analysis": 15,
23
+ "max_quick_findings": 20,
24
+ "max_parallel_fixers": 3,
25
+ "quick_fix_threshold": 5
26
+ }
27
+ }
@@ -0,0 +1,133 @@
1
+ ---
2
+ name: team-tech-debt
3
+ description: Unified team skill for tech debt identification and remediation. Scans codebase for tech debt, assesses severity, plans and executes fixes with validation. Uses team-worker agent architecture with roles/ for domain logic. Coordinator orchestrates pipeline, workers are team-worker agents. Triggers on "team tech debt".
4
+ allowed-tools:
5
+ - ask_question
6
+ - define_subagent
7
+ - grep_search
8
+ - invoke_subagent
9
+ - manage_subagents
10
+ - mcp__ace-tool__search_context
11
+ - mcp__ccw-tools__edit_file
12
+ - mcp__ccw-tools__read_file
13
+ - mcp__ccw-tools__write_file
14
+ - replace_file_content
15
+ - run_command
16
+ - send_message
17
+ - view_file
18
+ - write_to_file
19
+ agy-subagents:
20
+ - team-worker
21
+ ---
22
+
23
+ ## Sub-Agent Registration (Antigravity)
24
+
25
+ Before any `invoke_subagent` call below, register each sub-agent type once per session by reading the system_prompt from `<agy-agents-dir>/<name>.md` and passing it to `define_subagent`. The `<agy-agents-dir>` is:
26
+ - global install: `~/.gemini/antigravity-cli/agents/`
27
+ - workspace install: `<project>/.agents/agents/`
28
+
29
+ - `define_subagent(name="team-worker", description="<from agents/team-worker.md frontmatter>", system_prompt=<contents of agents/team-worker.md body>, enable_write_tools=true, enable_mcp_tools=true, enable_subagent_tools=false)`
30
+
31
+ **ConversationId tracking**: `invoke_subagent` returns a ConversationId per spawned instance. Subsequent `send_message(Recipient=<ConversationId>, Message=...)` calls require that ConversationId — never use the role name as the recipient.
32
+
33
+ ---
34
+
35
+ # Team Tech Debt
36
+
37
+ Systematic tech debt governance: scan -> assess -> plan -> fix -> validate. Built on **team-worker agent architecture** — all worker roles share a single agent definition with role-specific Phase 2-4 loaded from `roles/<role>/role.md`.
38
+
39
+ ## Architecture
40
+
41
+ ```
42
+ view_file(AbsolutePath="<agy-skills-dir>/team-tech-debt/SKILL.md") + execute inline (args: "task description")
43
+ |
44
+ SKILL.md (this file) = Router
45
+ |
46
+ +--------------+--------------+
47
+ | |
48
+ no --role flag --role <name>
49
+ | |
50
+ Coordinator Worker
51
+ roles/coordinator/role.md roles/<name>/role.md
52
+ |
53
+ +-- analyze → dispatch → spawn workers → STOP
54
+ |
55
+ +-------+-------+-------+-------+
56
+ v v v v v
57
+ [team-worker agents, each loads roles/<role>/role.md]
58
+ scanner assessor planner executor validator
59
+ ```
60
+
61
+ ## Role Registry
62
+
63
+ | Role | Path | Prefix | Inner Loop |
64
+ |------|------|--------|------------|
65
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
66
+ | scanner | [roles/scanner/role.md](roles/scanner/role.md) | TDSCAN-* | false |
67
+ | assessor | [roles/assessor/role.md](roles/assessor/role.md) | TDEVAL-* | false |
68
+ | planner | [roles/planner/role.md](roles/planner/role.md) | TDPLAN-* | false |
69
+ | executor | [roles/executor/role.md](roles/executor/role.md) | TDFIX-* | true |
70
+ | validator | [roles/validator/role.md](roles/validator/role.md) | TDVAL-* | false |
71
+
72
+ ## Role Router
73
+
74
+ Parse `$ARGUMENTS`:
75
+ - Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
76
+ - No `--role` → `@roles/coordinator/role.md`, execute entry router
77
+
78
+ ## Shared Constants
79
+
80
+ - **Session prefix**: `TD`
81
+ - **Session path**: `.workflow/.team/TD-<slug>-<date>/`
82
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
83
+ - **Message bus**: `mcp__ccw-tools__team_msg(session_id=<session-id>, ...)`
84
+ - **Max GC rounds**: 3
85
+
86
+ ## Worker Spawn Template
87
+
88
+ Coordinator spawns workers using this template:
89
+
90
+ ```
91
+ invoke_subagent([{ TypeName: "team-worker", Role: "<role>", Prompt: "<Prompt>", Workspace: "inherit" }])
92
+ ```
93
+
94
+ ## User Commands
95
+
96
+ | Command | Action |
97
+ |---------|--------|
98
+ | `check` / `status` | View execution status graph |
99
+ | `resume` / `continue` | Advance to next step |
100
+ | `--mode=scan` | Run scan-only pipeline (TDSCAN + TDEVAL) |
101
+ | `--mode=targeted` | Run targeted pipeline (TDPLAN + TDFIX + TDVAL) |
102
+ | `--mode=remediate` | Run full pipeline (default) |
103
+ | `-y` / `--yes` | Skip confirmations |
104
+
105
+ ## Specs Reference
106
+
107
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
108
+
109
+ ## Session Directory
110
+
111
+ ```
112
+ .workflow/.team/TD-<slug>-<date>/
113
+ ├── .msg/
114
+ │ ├── messages.jsonl # Team message bus
115
+ │ └── meta.json # Pipeline config + role state snapshot
116
+ ├── scan/ # Scanner output
117
+ ├── assessment/ # Assessor output
118
+ ├── plan/ # Planner output
119
+ ├── fixes/ # Executor output
120
+ ├── validation/ # Validator output
121
+ └── wisdom/ # Cross-task knowledge
122
+ ```
123
+
124
+ ## Error Handling
125
+
126
+ | Scenario | Resolution |
127
+ |----------|------------|
128
+ | Unknown command | Error with available command list |
129
+ | Role not found | Error with role registry |
130
+ | Session corruption | Attempt recovery, fallback to manual |
131
+ | Fast-advance conflict | Coordinator reconciles on next callback |
132
+ | Completion action fails | Default to Keep Active |
133
+ | Scanner finds no debt | Report clean codebase, skip to summary |
@@ -0,0 +1,76 @@
1
+ ---
2
+ role: assessor
3
+ prefix: TDEVAL
4
+ inner_loop: false
5
+ ---
6
+
7
+ # Tech Debt Assessor
8
+
9
+ Quantitative evaluator for tech debt items. Score each debt item on business impact (1-5) and fix cost (1-5), classify into priority quadrants, produce priority-matrix.json.
10
+
11
+ ## Phase 2: Load Debt Inventory
12
+
13
+ | Input | Source | Required |
14
+ |-------|--------|----------|
15
+ | Session path | task description (regex: `session:\s*(.+)`) | Yes |
16
+ | .msg/meta.json | <session>/.msg/meta.json | Yes |
17
+ | Debt inventory | meta.json:debt_inventory OR <session>/scan/debt-inventory.json | Yes |
18
+
19
+ 1. Extract session path from task description
20
+ 2. Read .msg/meta.json for team context
21
+ 3. Load debt_inventory from shared memory or fallback to debt-inventory.json file
22
+ 4. If debt_inventory is empty -> report empty assessment and exit
23
+
24
+ ## Phase 3: Evaluate Each Item
25
+
26
+ **Strategy selection**:
27
+
28
+ | Item Count | Strategy |
29
+ |------------|----------|
30
+ | <= 10 | Heuristic: severity-based impact + effort-based cost |
31
+ | 11-50 | CLI batch: single gemini analysis call |
32
+ | > 50 | CLI chunked: batches of 25 items |
33
+
34
+ **Impact Score Mapping** (heuristic):
35
+
36
+ | Severity | Impact Score |
37
+ |----------|-------------|
38
+ | critical | 5 |
39
+ | high | 4 |
40
+ | medium | 3 |
41
+ | low | 1 |
42
+
43
+ **Cost Score Mapping** (heuristic):
44
+
45
+ | Estimated Effort | Cost Score |
46
+ |------------------|------------|
47
+ | small | 1 |
48
+ | medium | 3 |
49
+ | large | 5 |
50
+ | unknown | 3 |
51
+
52
+ **Priority Quadrant Classification**:
53
+
54
+ | Impact | Cost | Quadrant |
55
+ |--------|------|----------|
56
+ | >= 4 | <= 2 | quick-win |
57
+ | >= 4 | >= 3 | strategic |
58
+ | <= 3 | <= 2 | backlog |
59
+ | <= 3 | >= 3 | defer |
60
+
61
+ For CLI mode, prompt gemini with full debt summary requesting JSON array of `{id, impact_score, cost_score, risk_if_unfixed, priority_quadrant}`. Unevaluated items fall back to heuristic scoring.
62
+
63
+ ### Tech Profile Scan
64
+
65
+ After assessment, emit context-aware trigger signals (based on detected codebase characteristics):
66
+
67
+ 1. Check debt items → signals (`legacy_patterns`, `perf_sensitive`, `test_gap`)
68
+ 2. Check code patterns → risk signals (`sql_detected`, `auth_detected`, `scaling_concern`)
69
+ 3. Include `tech_profile` in Phase 5 state_update data
70
+
71
+ ## Phase 4: Generate Priority Matrix
72
+
73
+ 1. Build matrix structure: evaluation_date, total_items, by_quadrant (grouped), summary (counts per quadrant)
74
+ 2. Sort within each quadrant by impact_score descending
75
+ 3. Write `<session>/assessment/priority-matrix.json`
76
+ 4. Update .msg/meta.json with `priority_matrix` summary and evaluated `debt_inventory`
@@ -0,0 +1,47 @@
1
+ # Analyze Task
2
+
3
+ Parse user task -> detect tech debt signals -> assess complexity -> determine pipeline mode and roles.
4
+
5
+ **CONSTRAINT**: Text-level analysis only. NO source code reading, NO codebase exploration.
6
+
7
+ ## Signal Detection
8
+
9
+ | Keywords | Signal | Mode Hint |
10
+ |----------|--------|-----------|
11
+ | 扫描, scan, 审计, audit | debt-scan | scan |
12
+ | 评估, assess, quantify | debt-assess | scan |
13
+ | 规划, plan, roadmap | debt-plan | targeted |
14
+ | 修复, fix, remediate, clean | debt-fix | remediate |
15
+ | 验证, validate, verify | debt-validate | remediate |
16
+ | 定向, targeted, specific | debt-targeted | targeted |
17
+
18
+ ## Complexity Scoring
19
+
20
+ | Factor | Points |
21
+ |--------|--------|
22
+ | Full codebase scope | +2 |
23
+ | Multiple debt dimensions | +1 per dimension (max 3) |
24
+ | Large codebase (implied) | +1 |
25
+ | Targeted specific items | -1 |
26
+
27
+ Results: 1-3 Low (scan mode), 4-6 Medium (remediate), 7+ High (remediate + full pipeline)
28
+
29
+ ## Pipeline Mode Determination
30
+
31
+ | Score + Signals | Mode |
32
+ |----------------|------|
33
+ | scan/audit keywords | scan |
34
+ | targeted/specific keywords | targeted |
35
+ | Default | remediate |
36
+
37
+ ## Output
38
+
39
+ Write scope context to coordinator memory:
40
+ ```json
41
+ {
42
+ "pipeline_mode": "<scan|remediate|targeted>",
43
+ "scope": "<detected-scope>",
44
+ "focus_dimensions": ["code", "architecture", "testing", "dependency", "documentation"],
45
+ "complexity": { "score": 0, "level": "Low|Medium|High" }
46
+ }
47
+ ```