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,78 @@
1
+ ---
2
+ role: fixer
3
+ prefix: FIX
4
+ inner_loop: true
5
+ message_types:
6
+ success: fix_complete
7
+ error: fix_failed
8
+ ---
9
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
10
+
11
+
12
+ # Code Fixer
13
+
14
+ Fix code based on reviewed findings. Load manifest, plan fix groups, apply with rollback-on-failure, verify. Code-generation role -- modifies source files.
15
+
16
+ ## Phase 2: Context & Scope Resolution
17
+
18
+ | Input | Source | Required |
19
+ |-------|--------|----------|
20
+ | Task description | From task subject/description | Yes |
21
+ | Session path | Extracted from task description | Yes |
22
+ | Fix manifest | <session>/fix/fix-manifest.json | Yes |
23
+ | Review report | <session>/review/review-report.json | Yes |
24
+ | .msg/meta.json | <session>/.msg/meta.json | No |
25
+
26
+ 1. Extract session path, input path from task description
27
+ 2. Load manifest (scope, source report path) and review report (findings with enrichment)
28
+ 3. Filter fixable findings: severity in scope AND fix_strategy !== 'skip'
29
+ 4. If 0 fixable -> report complete immediately
30
+ 5. Detect quick path: findings <= 5 AND no cross-file dependencies
31
+ 6. Detect verification tools: tsc (tsconfig.json), eslint (package.json), jest (package.json), pytest (pyproject.toml), semgrep (semgrep available)
32
+ 7. Load wisdom files from `<session>/wisdom/`
33
+
34
+ ## Phase 3: Plan + Execute
35
+
36
+ ### 3A: Plan Fixes (deterministic, no CLI)
37
+ 1. Group findings by primary file
38
+ 2. Merge groups with cross-file dependencies (union-find)
39
+ 3. Topological sort within each group (respect fix_dependencies, append cycles at end)
40
+ 4. Sort groups by max severity (critical first)
41
+ 5. Determine execution path: quick_path (<=5 findings, <=1 group) or standard
42
+ 6. Write `<session>/fix/fix-plan.json`: `{plan_id, quick_path, groups[{id, files[], findings[], max_severity}], execution_order[], total_findings, total_groups}`
43
+
44
+ ### 3B: Execute Fixes
45
+ **Quick path**: Single code-developer agent for all findings.
46
+ **Standard path**: One code-developer agent per group, in execution_order.
47
+
48
+ Agent prompt includes: finding list (dependency-sorted), file contents (truncated 8K), critical rules:
49
+ 1. Apply each fix using Edit tool in order
50
+ 2. After each fix, run related tests
51
+ 3. Tests PASS -> finding is "fixed"
52
+ 4. Tests FAIL -> `git checkout -- {file}` -> mark "failed" -> continue
53
+ 5. No retry on failure. Rollback and move on
54
+ 6. If finding depends on previously failed finding -> mark "skipped"
55
+
56
+ Agent returns JSON: `{results:[{id, status: fixed|failed|skipped, file, error?}]}`
57
+ Fallback: check git diff per file if no structured output.
58
+
59
+ Write `<session>/fix/execution-results.json`: `{fixed[], failed[], skipped[]}`
60
+
61
+ ## Phase 4: Post-Fix Verification
62
+
63
+ 1. Run available verification tools on modified files:
64
+
65
+ | Tool | Command | Pass Criteria |
66
+ |------|---------|---------------|
67
+ | tsc | `npx tsc --noEmit` | 0 errors |
68
+ | eslint | `npx eslint <files>` | 0 errors |
69
+ | jest | `npx jest --passWithNoTests` | Tests pass |
70
+ | pytest | `pytest --tb=short` | Tests pass |
71
+ | semgrep | `semgrep --config auto <files> --json` | 0 results |
72
+
73
+ 2. If verification fails critically -> rollback last batch
74
+ 3. Write `<session>/fix/verify-results.json`
75
+ 4. Generate `<session>/fix/fix-summary.json`: `{fix_id, fix_date, scope, total, fixed, failed, skipped, fix_rate, verification}`
76
+ 5. Generate `<session>/fix/fix-summary.md` (human-readable)
77
+ 6. Update `<session>/.msg/meta.json` with fix results
78
+ 7. Contribute discoveries to `<session>/wisdom/` files
@@ -0,0 +1,70 @@
1
+ ---
2
+ role: reviewer
3
+ prefix: REV
4
+ inner_loop: false
5
+ message_types:
6
+ success: review_complete
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
+ # Finding Reviewer
13
+
14
+ Deep analysis on scan findings: triage, root cause / impact / optimization enrichment via CLI fan-out, cross-correlation, and structured review report generation. Read-only -- never modifies source code.
15
+
16
+ ## Phase 2: Context & Triage
17
+
18
+ | Input | Source | Required |
19
+ |-------|--------|----------|
20
+ | Task description | From task subject/description | Yes |
21
+ | Session path | Extracted from task description | Yes |
22
+ | Scan results | <session>/scan/scan-results.json | Yes |
23
+ | .msg/meta.json | <session>/.msg/meta.json | No |
24
+
25
+ 1. Extract session path, input path, dimensions from task description
26
+ 2. Load review specs: Run `ccw spec load --category review` for review standards, checklists, and approval gates
27
+ 3. Load scan results. If missing or empty -> report clean, complete immediately
28
+ 3. Load wisdom files from `<session>/wisdom/`
29
+ 4. Triage findings into two buckets:
30
+
31
+ | Bucket | Criteria | Action |
32
+ |--------|----------|--------|
33
+ | deep_analysis | severity in [critical, high, medium], max 15, sorted critical-first | Enrich with root cause, impact, optimization |
34
+ | pass_through | remaining (low, info, or overflow) | Include in report without enrichment |
35
+
36
+ If deep_analysis empty -> skip Phase 3, go to Phase 4.
37
+
38
+ ## Phase 3: Deep Analysis (CLI Fan-out)
39
+
40
+ Split deep_analysis into two domain groups, run parallel CLI agents:
41
+
42
+ | Group | Dimensions | Focus |
43
+ |-------|-----------|-------|
44
+ | A | Security + Correctness | Root cause tracing, fix dependencies, blast radius |
45
+ | B | Performance + Maintainability | Optimization approaches, refactor tradeoffs |
46
+
47
+ If either group empty -> skip that agent.
48
+
49
+ Build prompt per group requesting 6 enrichment fields per finding:
50
+ - `root_cause`: `{description, related_findings[], is_symptom}`
51
+ - `impact`: `{scope: low/medium/high, affected_files[], blast_radius}`
52
+ - `optimization`: `{approach, alternative, tradeoff}`
53
+ - `fix_strategy`: minimal / refactor / skip
54
+ - `fix_complexity`: low / medium / high
55
+ - `fix_dependencies`: finding IDs that must be fixed first
56
+
57
+ Execute via `maestro delegate --role review --mode analysis --rule analysis-diagnose-bug-root-cause`. Parse JSON array responses, merge with originals (CLI-enriched replace originals, unenriched get defaults). Write `<session>/review/enriched-findings.json`.
58
+
59
+ ## Phase 4: Report Generation
60
+
61
+ 1. Combine enriched + pass_through findings
62
+ 2. Cross-correlate:
63
+ - **Critical files**: file appears in >=2 dimensions -> list with finding_count, severities
64
+ - **Root cause groups**: cluster findings sharing related_findings -> identify primary
65
+ - **Optimization suggestions**: from root cause groups + standalone enriched findings
66
+ 3. Compute metrics: by_dimension, by_severity, dimension_severity_matrix, fixable_count, auto_fixable_count
67
+ 4. Write `<session>/review/review-report.json`: `{review_id, review_date, findings[], critical_files[], optimization_suggestions[], root_cause_groups[], summary}`
68
+ 5. Write `<session>/review/review-report.md`: Executive summary, metrics matrix (dimension x severity), critical/high findings table, critical files list, optimization suggestions, recommended fix scope
69
+ 6. Update `<session>/.msg/meta.json` with review summary
70
+ 7. Contribute discoveries to `<session>/wisdom/` files
@@ -0,0 +1,81 @@
1
+ ---
2
+ role: scanner
3
+ prefix: SCAN
4
+ inner_loop: false
5
+ message_types:
6
+ success: scan_complete
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
+ # Code Scanner
13
+
14
+ 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).
15
+
16
+ ## Phase 2: Context & Toolchain Detection
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>/.msg/meta.json | No |
23
+
24
+ 1. Extract session path, target, dimensions, quick flag from task description
25
+ 2. Resolve target files (glob pattern or directory -> `**/*.{ts,tsx,js,jsx,py,go,java,rs}`)
26
+ 3. If no source files found -> report empty, complete task cleanly
27
+ 4. Detect toolchain availability:
28
+
29
+ | Tool | Detection | Dimension |
30
+ |------|-----------|-----------|
31
+ | tsc | `tsconfig.json` exists | COR |
32
+ | eslint | `.eslintrc*` or `eslint` in package.json | COR/MNT |
33
+ | semgrep | `.semgrep.yml` exists | SEC |
34
+ | ruff | `pyproject.toml` + ruff available | SEC/COR/MNT |
35
+ | mypy | mypy available + `pyproject.toml` | COR |
36
+ | npmAudit | `package-lock.json` exists | SEC |
37
+
38
+ 5. Load wisdom files from `<session>/wisdom/` if they exist
39
+
40
+ ## Phase 3: Scan Execution
41
+
42
+ **Quick mode**: Single CLI call with analysis mode, max 20 findings, skip toolchain.
43
+
44
+ **Standard mode** (sequential):
45
+
46
+ ### 3A: Toolchain Scan
47
+ 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:
48
+ - tsc: `file(line,col): error TSxxxx: msg` -> dimension=correctness, source=tool:tsc
49
+ - eslint: JSON array -> severity 2=correctness/high, else=maintainability/medium
50
+ - semgrep: `{results[]}` -> dimension=security, severity from extra.severity
51
+ - ruff: `[{code,message,filename}]` -> S*=security, F*/B*=correctness, else=maintainability
52
+ - mypy: `file:line: error: msg [code]` -> dimension=correctness
53
+ - npm audit: `{vulnerabilities:{}}` -> dimension=security, category=dependency
54
+
55
+ Write `<session>/scan/toolchain-findings.json`.
56
+
57
+ ### 3B: Semantic Scan (LLM via CLI)
58
+ Build prompt with target file patterns, toolchain dedup summary, and per-dimension focus areas:
59
+ - SEC: Business logic vulnerabilities, privilege escalation, sensitive data flow, auth bypass
60
+ - COR: Logic errors, unhandled exception paths, state management bugs, race conditions
61
+ - PRF: Algorithm complexity, N+1 queries, unnecessary sync, memory leaks, missing caching
62
+ - MNT: Architectural coupling, abstraction leaks, convention violations, dead code
63
+
64
+ 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`.
65
+
66
+ ### Tech Profile Scan
67
+
68
+ After scan execution, emit context-aware trigger signals (based on detected codebase characteristics):
69
+
70
+ 1. Check security findings → signals (`injection_risk`, `eval_usage`, `sql_detected`, `auth_detected`)
71
+ 2. Check quality findings → risk signals (`legacy_patterns`, `test_gap`, `perf_sensitive`)
72
+ 3. Include `tech_profile` in Phase 5 state_update data
73
+
74
+ ## Phase 4: Aggregate & Output
75
+
76
+ 1. Merge toolchain + semantic findings, deduplicate (same file + line + dimension = duplicate)
77
+ 2. Assign dimension-prefixed IDs: SEC-001, COR-001, PRF-001, MNT-001
78
+ 3. Write `<session>/scan/scan-results.json` with schema: `{scan_date, target, dimensions, quick_mode, total_findings, by_severity, by_dimension, findings[]}`
79
+ 4. Each finding: `{id, dimension, category, severity, title, description, location:{file,line}, source, suggested_fix, effort, confidence}`
80
+ 5. Update `<session>/.msg/meta.json` with scan summary (findings_count, by_severity, by_dimension)
81
+ 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,130 @@
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: delegate_subagent, ask_user, read_file, write_file, edit_file, shell, find_files, search, list_tasks, get_task, update_task, create_task, create_team, delete_team, send_message, mcp__ace-tool__search_context, mcp__ccw-tools__read_file, mcp__ccw-tools__write_file, mcp__ccw-tools__edit_file, mcp__ccw-tools__team_msg
5
+ ---
6
+ <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
7
+
8
+
9
+ # Team Tech Debt
10
+
11
+ 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`.
12
+
13
+ ## Architecture
14
+
15
+ ```
16
+ invoke_skill(skill="team-tech-debt", args="task description")
17
+ |
18
+ SKILL.md (this file) = Router
19
+ |
20
+ +--------------+--------------+
21
+ | |
22
+ no --role flag --role <name>
23
+ | |
24
+ Coordinator Worker
25
+ roles/coordinator/role.md roles/<name>/role.md
26
+ |
27
+ +-- analyze → dispatch → spawn workers → STOP
28
+ |
29
+ +-------+-------+-------+-------+
30
+ v v v v v
31
+ [team-worker agents, each loads roles/<role>/role.md]
32
+ scanner assessor planner executor validator
33
+ ```
34
+
35
+ ## Role Registry
36
+
37
+ | Role | Path | Prefix | Inner Loop |
38
+ |------|------|--------|------------|
39
+ | coordinator | [roles/coordinator/role.md](roles/coordinator/role.md) | — | — |
40
+ | scanner | [roles/scanner/role.md](roles/scanner/role.md) | TDSCAN-* | false |
41
+ | assessor | [roles/assessor/role.md](roles/assessor/role.md) | TDEVAL-* | false |
42
+ | planner | [roles/planner/role.md](roles/planner/role.md) | TDPLAN-* | false |
43
+ | executor | [roles/executor/role.md](roles/executor/role.md) | TDFIX-* | true |
44
+ | validator | [roles/validator/role.md](roles/validator/role.md) | TDVAL-* | false |
45
+
46
+ ## Role Router
47
+
48
+ Parse `$ARGUMENTS`:
49
+ - Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
50
+ - No `--role` → `@roles/coordinator/role.md`, execute entry router
51
+
52
+ ## Shared Constants
53
+
54
+ - **Session prefix**: `TD`
55
+ - **Session path**: `.workflow/.team/TD-<slug>-<date>/`
56
+ - **CLI tools**: `maestro delegate --mode analysis` (read-only), `maestro delegate --mode write` (modifications)
57
+ - **Message bus**: `mcp__ccw-tools__team_msg(session_id=<session-id>, ...)`
58
+ - **Max GC rounds**: 3
59
+
60
+ ## Worker Spawn Template
61
+
62
+ Coordinator spawns workers using this template:
63
+
64
+ ```
65
+ delegate_subagent({
66
+ subagent_type: "team-worker",
67
+ description: "Spawn <role> worker for <task-id>",
68
+ team_name: "tech-debt",
69
+ name: "<role>",
70
+ run_in_background: true,
71
+ prompt: `## Role Assignment
72
+ role: <role>
73
+ role_spec: <skill_root>/roles/<role>/role.md
74
+ session: <session-folder>
75
+ session_id: <session-id>
76
+ team_name: tech-debt
77
+ requirement: <task-description>
78
+ inner_loop: <true|false>
79
+
80
+ ## Progress Milestones
81
+ session_id: <session-id>
82
+ Report progress via team_msg at natural phase boundaries (context loaded -> core work done -> verification).
83
+ Report blockers immediately via team_msg type="blocker".
84
+ Report completion via team_msg type="task_complete" after final send_message.
85
+
86
+ Read role_spec file (@<skill_root>/roles/<role>/role.md) to load Phase 2-4 domain instructions.
87
+ Execute built-in Phase 1 (task discovery) -> role Phase 2-4 -> built-in Phase 5 (report).`
88
+ })
89
+ ```
90
+
91
+ ## User Commands
92
+
93
+ | Command | Action |
94
+ |---------|--------|
95
+ | `check` / `status` | View execution status graph |
96
+ | `resume` / `continue` | Advance to next step |
97
+ | `--mode=scan` | Run scan-only pipeline (TDSCAN + TDEVAL) |
98
+ | `--mode=targeted` | Run targeted pipeline (TDPLAN + TDFIX + TDVAL) |
99
+ | `--mode=remediate` | Run full pipeline (default) |
100
+ | `-y` / `--yes` | Skip confirmations |
101
+
102
+ ## Specs Reference
103
+
104
+ - [specs/pipelines.md](specs/pipelines.md) — Pipeline definitions and task registry
105
+
106
+ ## Session Directory
107
+
108
+ ```
109
+ .workflow/.team/TD-<slug>-<date>/
110
+ ├── .msg/
111
+ │ ├── messages.jsonl # Team message bus
112
+ │ └── meta.json # Pipeline config + role state snapshot
113
+ ├── scan/ # Scanner output
114
+ ├── assessment/ # Assessor output
115
+ ├── plan/ # Planner output
116
+ ├── fixes/ # Executor output
117
+ ├── validation/ # Validator output
118
+ └── wisdom/ # Cross-task knowledge
119
+ ```
120
+
121
+ ## Error Handling
122
+
123
+ | Scenario | Resolution |
124
+ |----------|------------|
125
+ | Unknown command | Error with available command list |
126
+ | Role not found | Error with role registry |
127
+ | Session corruption | Attempt recovery, fallback to manual |
128
+ | Fast-advance conflict | Coordinator reconciles on next callback |
129
+ | Completion action fails | Default to Keep Active |
130
+ | Scanner finds no debt | Report clean codebase, skip to summary |