maestro-flow 0.5.35 → 0.5.37

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 (1791) hide show
  1. package/.agents/agents/cli-explore-agent.md +72 -69
  2. package/.agents/agents/role-design-author.md +1 -1
  3. package/.agents/agents/team-supervisor.md +131 -131
  4. package/.agents/agents/ui-design-agent.md +1 -1
  5. package/.agents/agents/workflow-analyzer.md +1 -0
  6. package/.agents/agents/workflow-codebase-mapper.md +67 -67
  7. package/.agents/agents/workflow-collab-planner.md +1 -1
  8. package/.agents/agents/workflow-debugger.md +2 -1
  9. package/.agents/agents/workflow-executor.md +3 -2
  10. package/.agents/agents/workflow-external-researcher.md +78 -78
  11. package/.agents/agents/workflow-nyquist-auditor.md +1 -1
  12. package/.agents/agents/workflow-plan-checker.md +1 -1
  13. package/.agents/agents/workflow-planner.md +1 -1
  14. package/.agents/agents/workflow-project-researcher.md +63 -63
  15. package/.agents/agents/workflow-research-synthesizer.md +63 -63
  16. package/.agents/agents/workflow-reviewer.md +73 -73
  17. package/.agents/agents/workflow-verifier.md +1 -1
  18. package/.agents/skills/codify-to-knowhow/SKILL.md +1 -1
  19. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +1 -1
  20. package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +2 -2
  21. package/.agents/skills/delegation-check/SKILL.md +292 -292
  22. package/.agents/skills/delegation-check/specs/separation-rules.md +269 -269
  23. package/.agents/skills/domain-add/SKILL.md +71 -0
  24. package/.agents/skills/learn-follow/SKILL.md +114 -114
  25. package/.agents/skills/learn-investigate/SKILL.md +138 -138
  26. package/.agents/skills/learn-second-opinion/SKILL.md +105 -105
  27. package/.agents/skills/maestro/SKILL.md +227 -226
  28. package/.agents/skills/maestro-amend/SKILL.md +150 -152
  29. package/.agents/skills/maestro-analyze/SKILL.md +210 -201
  30. package/.agents/skills/maestro-blueprint/SKILL.md +175 -175
  31. package/.agents/skills/maestro-brainstorm/SKILL.md +205 -196
  32. package/.agents/skills/maestro-collab/SKILL.md +173 -160
  33. package/.agents/skills/maestro-companion/SKILL.md +517 -517
  34. package/.agents/skills/maestro-composer/SKILL.md +173 -173
  35. package/.agents/skills/maestro-execute/SKILL.md +169 -169
  36. package/.agents/skills/maestro-fork/SKILL.md +97 -97
  37. package/.agents/skills/maestro-grill/SKILL.md +161 -161
  38. package/.agents/skills/maestro-guard/SKILL.md +93 -93
  39. package/.agents/skills/maestro-help/index/catalog.json +1 -1
  40. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +1 -1
  41. package/.agents/skills/maestro-impeccable/SKILL.md +296 -296
  42. package/.agents/skills/maestro-init/SKILL.md +117 -117
  43. package/.agents/skills/maestro-merge/SKILL.md +73 -73
  44. package/.agents/skills/maestro-milestone-audit/SKILL.md +126 -126
  45. package/.agents/skills/maestro-milestone-complete/SKILL.md +123 -123
  46. package/.agents/skills/maestro-milestone-release/SKILL.md +122 -122
  47. package/.agents/skills/maestro-next/SKILL.md +252 -241
  48. package/.agents/skills/maestro-overlay/SKILL.md +177 -176
  49. package/.agents/skills/maestro-plan/SKILL.md +222 -213
  50. package/.agents/skills/maestro-player/SKILL.md +167 -167
  51. package/.agents/skills/maestro-quick/SKILL.md +69 -69
  52. package/.agents/skills/maestro-ralph/SKILL.md +831 -756
  53. package/.agents/skills/maestro-ralph-execute/SKILL.md +276 -276
  54. package/.agents/skills/maestro-roadmap/SKILL.md +159 -159
  55. package/.agents/skills/maestro-swarm-workflow/SKILL.md +229 -229
  56. package/.agents/skills/maestro-tools-execute/SKILL.md +108 -108
  57. package/.agents/skills/maestro-tools-register/SKILL.md +142 -148
  58. package/.agents/skills/maestro-ui-codify/SKILL.md +101 -103
  59. package/.agents/skills/maestro-universal-workflow/SKILL.md +534 -534
  60. package/.agents/skills/maestro-update/SKILL.md +109 -109
  61. package/.agents/skills/manage-codebase-rebuild/SKILL.md +73 -73
  62. package/.agents/skills/manage-harvest/SKILL.md +86 -86
  63. package/.agents/skills/manage-issue/SKILL.md +59 -59
  64. package/.agents/skills/manage-issue-discover/SKILL.md +70 -70
  65. package/.agents/skills/manage-kg-extractors/SKILL.md +2 -4
  66. package/.agents/skills/manage-knowhow/SKILL.md +70 -70
  67. package/.agents/skills/manage-knowhow-capture/SKILL.md +79 -79
  68. package/.agents/skills/manage-knowledge-audit/SKILL.md +120 -120
  69. package/.agents/skills/manage-status/SKILL.md +52 -52
  70. package/.agents/skills/manage-wiki/SKILL.md +69 -69
  71. package/.agents/skills/odyssey-debug/SKILL.md +465 -465
  72. package/.agents/skills/odyssey-improve/SKILL.md +496 -496
  73. package/.agents/skills/odyssey-planex/SKILL.md +594 -594
  74. package/.agents/skills/odyssey-review-test-fix/SKILL.md +422 -422
  75. package/.agents/skills/odyssey-ui/SKILL.md +450 -450
  76. package/.agents/skills/prompt-generator/SKILL.md +465 -465
  77. package/.agents/skills/prompt-generator/specs/agent-design-spec.md +299 -299
  78. package/.agents/skills/prompt-generator/specs/command-design-spec.md +367 -367
  79. package/.agents/skills/prompt-generator/specs/conversion-spec.md +207 -207
  80. package/.agents/skills/prompt-generator/templates/agent-md.md +145 -145
  81. package/.agents/skills/prompt-generator/templates/command-md.md +118 -118
  82. package/.agents/skills/quality-auto-test/SKILL.md +140 -140
  83. package/.agents/skills/quality-debug/SKILL.md +145 -145
  84. package/.agents/skills/quality-refactor/SKILL.md +91 -91
  85. package/.agents/skills/quality-retrospective/SKILL.md +109 -109
  86. package/.agents/skills/quality-review/SKILL.md +144 -144
  87. package/.agents/skills/quality-sync/SKILL.md +74 -74
  88. package/.agents/skills/quality-test/SKILL.md +157 -159
  89. package/.agents/skills/scholar-anti-ai-writing/SKILL.md +168 -168
  90. package/.agents/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -126
  91. package/.agents/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -177
  92. package/.agents/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -134
  93. package/.agents/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -242
  94. package/.agents/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -242
  95. package/.agents/skills/scholar-citation-verify/SKILL.md +161 -161
  96. package/.agents/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -141
  97. package/.agents/skills/scholar-citation-verify/phases/02-verify.md +310 -310
  98. package/.agents/skills/scholar-citation-verify/phases/03-report-fix.md +190 -190
  99. package/.agents/skills/scholar-citation-verify/references/api-usage.md +372 -372
  100. package/.agents/skills/scholar-citation-verify/references/common-errors.md +384 -384
  101. package/.agents/skills/scholar-citation-verify/references/verification-rules.md +399 -399
  102. package/.agents/skills/scholar-experiment/SKILL.md +316 -316
  103. package/.agents/skills/scholar-experiment/phases/01-data-loading.md +209 -209
  104. package/.agents/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -269
  105. package/.agents/skills/scholar-experiment/phases/03-visualization.md +319 -319
  106. package/.agents/skills/scholar-experiment/phases/04-results-writing.md +229 -229
  107. package/.agents/skills/scholar-experiment/phases/05-quality-check.md +261 -261
  108. package/.agents/skills/scholar-ideation/SKILL.md +283 -283
  109. package/.agents/skills/scholar-ideation/phases/01-literature-search.md +317 -317
  110. package/.agents/skills/scholar-ideation/phases/02-gap-analysis.md +249 -249
  111. package/.agents/skills/scholar-ideation/phases/03-research-question.md +200 -200
  112. package/.agents/skills/scholar-ideation/phases/04-method-selection.md +185 -185
  113. package/.agents/skills/scholar-ideation/phases/05-research-planning.md +385 -385
  114. package/.agents/skills/scholar-latex-organizer/SKILL.md +181 -181
  115. package/.agents/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -228
  116. package/.agents/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -500
  117. package/.agents/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -349
  118. package/.agents/skills/scholar-publish/SKILL.md +215 -215
  119. package/.agents/skills/scholar-publish/phases/01-presentation.md +243 -243
  120. package/.agents/skills/scholar-publish/phases/02-poster.md +239 -239
  121. package/.agents/skills/scholar-publish/phases/03-promotion.md +255 -255
  122. package/.agents/skills/scholar-rebuttal-pro/README.md +313 -313
  123. package/.agents/skills/scholar-rebuttal-pro/SKILL.md +507 -507
  124. package/.agents/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -227
  125. package/.agents/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -395
  126. package/.agents/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -459
  127. package/.agents/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -384
  128. package/.agents/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -691
  129. package/.agents/skills/scholar-review/SKILL.md +222 -222
  130. package/.agents/skills/scholar-review/phases/01-self-review.md +186 -186
  131. package/.agents/skills/scholar-review/phases/02-review-analysis.md +203 -203
  132. package/.agents/skills/scholar-review/phases/03-response-strategy.md +193 -193
  133. package/.agents/skills/scholar-review/phases/04-rebuttal-writing.md +181 -181
  134. package/.agents/skills/scholar-review/phases/05-revision.md +183 -183
  135. package/.agents/skills/scholar-review/specs/tone-guidelines.md +76 -76
  136. package/.agents/skills/scholar-thesis-docx/README.md +111 -111
  137. package/.agents/skills/scholar-thesis-docx/README_EN.md +108 -108
  138. package/.agents/skills/scholar-thesis-docx/SKILL.md +208 -208
  139. package/.agents/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -46
  140. package/.agents/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -178
  141. package/.agents/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -33
  142. package/.agents/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -68
  143. package/.agents/skills/scholar-thesis-docx/references/script-usage.md +157 -157
  144. package/.agents/skills/scholar-writing/SKILL.md +291 -291
  145. package/.agents/skills/scholar-writing/phases/01-repo-understanding.md +178 -178
  146. package/.agents/skills/scholar-writing/phases/02-structure-planning.md +197 -197
  147. package/.agents/skills/scholar-writing/phases/03-section-drafting.md +215 -215
  148. package/.agents/skills/scholar-writing/phases/04-citation-management.md +310 -310
  149. package/.agents/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -202
  150. package/.agents/skills/scholar-writing/phases/06-conference-formatting.md +260 -260
  151. package/.agents/skills/security-audit/SKILL.md +217 -217
  152. package/.agents/skills/skill-generator/SKILL.md +465 -465
  153. package/.agents/skills/skill-generator/phases/01-requirements-discovery.md +238 -238
  154. package/.agents/skills/skill-generator/phases/02-structure-generation.md +261 -261
  155. package/.agents/skills/skill-generator/phases/03-phase-generation.md +976 -976
  156. package/.agents/skills/skill-generator/phases/04-specs-templates.md +398 -398
  157. package/.agents/skills/skill-generator/phases/05-validation.md +417 -417
  158. package/.agents/skills/skill-generator/specs/cli-integration.md +442 -442
  159. package/.agents/skills/skill-generator/specs/execution-modes.md +399 -399
  160. package/.agents/skills/skill-generator/specs/reference-docs-spec.md +271 -271
  161. package/.agents/skills/skill-generator/specs/scripting-integration.md +265 -265
  162. package/.agents/skills/skill-generator/specs/skill-requirements.md +466 -466
  163. package/.agents/skills/skill-generator/templates/autonomous-action.md +330 -330
  164. package/.agents/skills/skill-generator/templates/autonomous-orchestrator.md +300 -300
  165. package/.agents/skills/skill-generator/templates/code-analysis-action.md +514 -514
  166. package/.agents/skills/skill-generator/templates/llm-action.md +367 -367
  167. package/.agents/skills/skill-generator/templates/script-template.md +368 -368
  168. package/.agents/skills/skill-generator/templates/sequential-phase.md +474 -474
  169. package/.agents/skills/skill-generator/templates/skill-md.md +312 -312
  170. package/.agents/skills/skill-iter-tune/SKILL.md +378 -378
  171. package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -144
  172. package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -292
  173. package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -312
  174. package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -186
  175. package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -166
  176. package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -63
  177. package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -134
  178. package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -97
  179. package/.agents/skills/skill-simplify/SKILL.md +58 -58
  180. package/.agents/skills/skill-simplify/phases/01-analysis.md +224 -224
  181. package/.agents/skills/skill-simplify/phases/02-optimize.md +111 -111
  182. package/.agents/skills/skill-simplify/phases/03-check.md +224 -224
  183. package/.agents/skills/skill-tuning/SKILL.md +170 -170
  184. package/.agents/skills/skill-tuning/phases/actions/action-abort.md +164 -164
  185. package/.agents/skills/skill-tuning/phases/actions/{action-gemini-analysis.md → action-agy-analysis.md} +322 -322
  186. package/.agents/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -406
  187. package/.agents/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -206
  188. package/.agents/skills/skill-tuning/phases/actions/action-complete.md +195 -195
  189. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -317
  190. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -243
  191. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -318
  192. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -299
  193. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -269
  194. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -200
  195. package/.agents/skills/skill-tuning/phases/actions/action-generate-report.md +228 -228
  196. package/.agents/skills/skill-tuning/phases/actions/action-init.md +149 -149
  197. package/.agents/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -317
  198. package/.agents/skills/skill-tuning/phases/actions/action-verify.md +222 -222
  199. package/.agents/skills/skill-tuning/phases/orchestrator.md +190 -190
  200. package/.agents/skills/skill-tuning/phases/state-schema.md +378 -378
  201. package/.agents/skills/skill-tuning/specs/category-mappings.json +5 -5
  202. package/.agents/skills/skill-tuning/specs/dimension-mapping.md +212 -212
  203. package/.agents/skills/skill-tuning/specs/problem-taxonomy.md +210 -210
  204. package/.agents/skills/skill-tuning/specs/quality-gates.md +263 -263
  205. package/.agents/skills/skill-tuning/specs/skill-authoring-principles.md +192 -192
  206. package/.agents/skills/skill-tuning/specs/tuning-strategies.md +392 -392
  207. package/.agents/skills/skill-tuning/templates/diagnosis-report.md +153 -153
  208. package/.agents/skills/skill-tuning/templates/fix-proposal.md +204 -204
  209. package/.agents/skills/spec-add/SKILL.md +66 -66
  210. package/.agents/skills/spec-load/SKILL.md +67 -68
  211. package/.agents/skills/spec-remove/SKILL.md +42 -42
  212. package/.agents/skills/spec-setup/SKILL.md +37 -38
  213. package/.agents/skills/team-arch-opt/SKILL.md +153 -153
  214. package/.agents/skills/team-arch-opt/roles/analyzer/role.md +80 -80
  215. package/.agents/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  216. package/.agents/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -371
  217. package/.agents/skills/team-arch-opt/roles/coordinator/commands/monitor.md +216 -216
  218. package/.agents/skills/team-arch-opt/roles/coordinator/role.md +146 -146
  219. package/.agents/skills/team-arch-opt/roles/designer/role.md +109 -109
  220. package/.agents/skills/team-arch-opt/roles/refactorer/role.md +98 -98
  221. package/.agents/skills/team-arch-opt/roles/reviewer/role.md +105 -105
  222. package/.agents/skills/team-arch-opt/roles/validator/role.md +109 -109
  223. package/.agents/skills/team-arch-opt/specs/pipelines.md +102 -102
  224. package/.agents/skills/team-brainstorm/SKILL.md +166 -166
  225. package/.agents/skills/team-brainstorm/roles/challenger/role.md +55 -55
  226. package/.agents/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  227. package/.agents/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -206
  228. package/.agents/skills/team-brainstorm/roles/coordinator/commands/monitor.md +199 -199
  229. package/.agents/skills/team-brainstorm/roles/coordinator/role.md +140 -140
  230. package/.agents/skills/team-brainstorm/roles/evaluator/role.md +50 -50
  231. package/.agents/skills/team-brainstorm/roles/ideator/role.md +63 -63
  232. package/.agents/skills/team-brainstorm/roles/synthesizer/role.md +51 -51
  233. package/.agents/skills/team-brainstorm/specs/pipelines.md +72 -72
  234. package/.agents/skills/team-coordinate/SKILL.md +261 -261
  235. package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -247
  236. package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -131
  237. package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -358
  238. package/.agents/skills/team-coordinate/roles/coordinator/role.md +360 -360
  239. package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  240. package/.agents/skills/team-coordinate/specs/pipelines.md +97 -97
  241. package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -112
  242. package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -198
  243. package/.agents/skills/team-designer/SKILL.md +155 -155
  244. package/.agents/skills/team-designer/phases/01-requirements-analysis.md +265 -265
  245. package/.agents/skills/team-designer/phases/02-scaffold-generation.md +236 -236
  246. package/.agents/skills/team-designer/phases/03-content-generation.md +330 -330
  247. package/.agents/skills/team-designer/phases/04-validation.md +329 -329
  248. package/.agents/skills/team-executor/SKILL.md +184 -184
  249. package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -239
  250. package/.agents/skills/team-executor/roles/executor/role.md +171 -171
  251. package/.agents/skills/team-executor/specs/session-schema.md +264 -264
  252. package/.agents/skills/team-frontend/SKILL.md +131 -131
  253. package/.agents/skills/team-frontend/roles/analyst/role.md +92 -92
  254. package/.agents/skills/team-frontend/roles/architect/role.md +78 -78
  255. package/.agents/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  256. package/.agents/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -197
  257. package/.agents/skills/team-frontend/roles/coordinator/commands/monitor.md +233 -233
  258. package/.agents/skills/team-frontend/roles/coordinator/role.md +158 -158
  259. package/.agents/skills/team-frontend/roles/developer/role.md +85 -85
  260. package/.agents/skills/team-frontend/roles/qa/role.md +71 -71
  261. package/.agents/skills/team-frontend/specs/pipelines.md +76 -76
  262. package/.agents/skills/team-frontend-debug/SKILL.md +193 -193
  263. package/.agents/skills/team-frontend-debug/roles/analyzer/role.md +199 -199
  264. package/.agents/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  265. package/.agents/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -256
  266. package/.agents/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -148
  267. package/.agents/skills/team-frontend-debug/roles/coordinator/role.md +131 -131
  268. package/.agents/skills/team-frontend-debug/roles/fixer/role.md +138 -138
  269. package/.agents/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
  270. package/.agents/skills/team-frontend-debug/roles/tester/role.md +222 -222
  271. package/.agents/skills/team-frontend-debug/roles/verifier/role.md +164 -164
  272. package/.agents/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  273. package/.agents/skills/team-frontend-debug/specs/pipelines.md +94 -94
  274. package/.agents/skills/team-interactive-craft/SKILL.md +136 -136
  275. package/.agents/skills/team-interactive-craft/roles/a11y-tester/role.md +153 -153
  276. package/.agents/skills/team-interactive-craft/roles/builder/role.md +210 -210
  277. package/.agents/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -71
  278. package/.agents/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -192
  279. package/.agents/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +215 -215
  280. package/.agents/skills/team-interactive-craft/roles/coordinator/role.md +166 -166
  281. package/.agents/skills/team-interactive-craft/roles/interaction-designer/role.md +138 -138
  282. package/.agents/skills/team-interactive-craft/roles/researcher/role.md +125 -125
  283. package/.agents/skills/team-interactive-craft/specs/interaction-patterns.md +362 -362
  284. package/.agents/skills/team-interactive-craft/specs/pipelines.md +85 -85
  285. package/.agents/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -83
  286. package/.agents/skills/team-issue/SKILL.md +166 -166
  287. package/.agents/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  288. package/.agents/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -349
  289. package/.agents/skills/team-issue/roles/coordinator/commands/monitor.md +229 -229
  290. package/.agents/skills/team-issue/roles/coordinator/role.md +172 -172
  291. package/.agents/skills/team-issue/roles/explorer/role.md +96 -96
  292. package/.agents/skills/team-issue/roles/implementer/role.md +81 -81
  293. package/.agents/skills/team-issue/roles/integrator/role.md +78 -78
  294. package/.agents/skills/team-issue/roles/planner/role.md +74 -74
  295. package/.agents/skills/team-issue/roles/reviewer/role.md +80 -80
  296. package/.agents/skills/team-issue/specs/pipelines.md +124 -124
  297. package/.agents/skills/team-lifecycle-v4/SKILL.md +204 -204
  298. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +14 -8
  299. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -56
  300. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -56
  301. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -206
  302. package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -130
  303. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -35
  304. package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +58 -58
  305. package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
  306. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -34
  307. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -44
  308. package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +57 -57
  309. package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +181 -181
  310. package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +78 -78
  311. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  312. package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -114
  313. package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -140
  314. package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -130
  315. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  316. package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -196
  317. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  318. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  319. package/.agents/skills/team-motion-design/SKILL.md +137 -137
  320. package/.agents/skills/team-motion-design/roles/animator/role.md +188 -188
  321. package/.agents/skills/team-motion-design/roles/choreographer/role.md +158 -158
  322. package/.agents/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -64
  323. package/.agents/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -203
  324. package/.agents/skills/team-motion-design/roles/coordinator/commands/monitor.md +216 -216
  325. package/.agents/skills/team-motion-design/roles/coordinator/role.md +167 -167
  326. package/.agents/skills/team-motion-design/roles/motion-researcher/role.md +109 -109
  327. package/.agents/skills/team-motion-design/roles/motion-tester/role.md +169 -169
  328. package/.agents/skills/team-motion-design/specs/gpu-constraints.md +114 -114
  329. package/.agents/skills/team-motion-design/specs/motion-tokens.md +128 -128
  330. package/.agents/skills/team-motion-design/specs/pipelines.md +74 -74
  331. package/.agents/skills/team-motion-design/specs/reduced-motion.md +129 -129
  332. package/.agents/skills/team-perf-opt/SKILL.md +170 -170
  333. package/.agents/skills/team-perf-opt/roles/benchmarker/role.md +80 -80
  334. package/.agents/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  335. package/.agents/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -376
  336. package/.agents/skills/team-perf-opt/roles/coordinator/commands/monitor.md +362 -362
  337. package/.agents/skills/team-perf-opt/roles/coordinator/role.md +147 -147
  338. package/.agents/skills/team-perf-opt/roles/optimizer/role.md +89 -89
  339. package/.agents/skills/team-perf-opt/roles/profiler/role.md +73 -73
  340. package/.agents/skills/team-perf-opt/roles/reviewer/role.md +64 -64
  341. package/.agents/skills/team-perf-opt/roles/strategist/role.md +85 -85
  342. package/.agents/skills/team-perf-opt/specs/pipelines.md +65 -65
  343. package/.agents/skills/team-planex/SKILL.md +132 -132
  344. package/.agents/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  345. package/.agents/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -87
  346. package/.agents/skills/team-planex/roles/coordinator/commands/monitor.md +195 -195
  347. package/.agents/skills/team-planex/roles/coordinator/role.md +140 -140
  348. package/.agents/skills/team-planex/roles/executor/role.md +83 -83
  349. package/.agents/skills/team-planex/roles/planner/role.md +111 -111
  350. package/.agents/skills/team-planex/specs/pipelines.md +93 -93
  351. package/.agents/skills/team-quality-assurance/SKILL.md +142 -142
  352. package/.agents/skills/team-quality-assurance/roles/analyst/role.md +79 -79
  353. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  354. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -111
  355. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -250
  356. package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -143
  357. package/.agents/skills/team-quality-assurance/roles/executor/role.md +55 -55
  358. package/.agents/skills/team-quality-assurance/roles/generator/role.md +58 -58
  359. package/.agents/skills/team-quality-assurance/roles/scout/role.md +70 -66
  360. package/.agents/skills/team-quality-assurance/roles/strategist/role.md +63 -63
  361. package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -115
  362. package/.agents/skills/team-quality-assurance/specs/team-config.json +8 -8
  363. package/.agents/skills/team-review/SKILL.md +142 -142
  364. package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  365. package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -91
  366. package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -224
  367. package/.agents/skills/team-review/roles/coordinator/role.md +132 -132
  368. package/.agents/skills/team-review/roles/fixer/role.md +68 -68
  369. package/.agents/skills/team-review/specs/dimensions.md +82 -82
  370. package/.agents/skills/team-review/specs/pipelines.md +102 -102
  371. package/.agents/skills/team-roadmap-dev/SKILL.md +164 -164
  372. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  373. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -212
  374. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +477 -477
  375. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -90
  376. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -137
  377. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -287
  378. package/.agents/skills/team-roadmap-dev/roles/coordinator/role.md +302 -302
  379. package/.agents/skills/team-roadmap-dev/roles/executor/role.md +62 -62
  380. package/.agents/skills/team-roadmap-dev/roles/planner/role.md +76 -76
  381. package/.agents/skills/team-roadmap-dev/roles/verifier/role.md +64 -64
  382. package/.agents/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  383. package/.agents/skills/team-roadmap-dev/specs/team-config.json +3 -3
  384. package/.agents/skills/team-swarm/SKILL.md +173 -173
  385. package/.agents/skills/team-tech-debt/SKILL.md +123 -123
  386. package/.agents/skills/team-tech-debt/roles/assessor/role.md +71 -71
  387. package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  388. package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -156
  389. package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -209
  390. package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -123
  391. package/.agents/skills/team-tech-debt/roles/executor/role.md +1 -1
  392. package/.agents/skills/team-tech-debt/roles/planner/role.md +63 -63
  393. package/.agents/skills/team-tech-debt/roles/scanner/role.md +84 -84
  394. package/.agents/skills/team-tech-debt/roles/validator/role.md +2 -2
  395. package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -47
  396. package/.agents/skills/team-tech-debt/specs/team-config.json +5 -5
  397. package/.agents/skills/team-testing/SKILL.md +138 -138
  398. package/.agents/skills/team-testing/roles/analyst/role.md +95 -95
  399. package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  400. package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -108
  401. package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -257
  402. package/.agents/skills/team-testing/roles/coordinator/role.md +134 -134
  403. package/.agents/skills/team-testing/roles/executor/role.md +2 -2
  404. package/.agents/skills/team-testing/roles/generator/role.md +1 -1
  405. package/.agents/skills/team-testing/roles/strategist/role.md +75 -75
  406. package/.agents/skills/team-testing/specs/pipelines.md +101 -101
  407. package/.agents/skills/team-ui-polish/SKILL.md +136 -136
  408. package/.agents/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -77
  409. package/.agents/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -194
  410. package/.agents/skills/team-ui-polish/roles/coordinator/commands/monitor.md +212 -212
  411. package/.agents/skills/team-ui-polish/roles/coordinator/role.md +170 -170
  412. package/.agents/skills/team-ui-polish/roles/diagnostician/role.md +154 -154
  413. package/.agents/skills/team-ui-polish/roles/optimizer/role.md +219 -219
  414. package/.agents/skills/team-ui-polish/roles/scanner/role.md +350 -350
  415. package/.agents/skills/team-ui-polish/roles/verifier/role.md +136 -136
  416. package/.agents/skills/team-ui-polish/specs/anti-patterns.md +141 -141
  417. package/.agents/skills/team-ui-polish/specs/design-standards.md +356 -356
  418. package/.agents/skills/team-ui-polish/specs/fix-strategies.md +235 -235
  419. package/.agents/skills/team-ui-polish/specs/pipelines.md +81 -81
  420. package/.agents/skills/team-ui-polish/specs/scoring-guide.md +162 -162
  421. package/.agents/skills/team-uidesign/SKILL.md +139 -139
  422. package/.agents/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  423. package/.agents/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -185
  424. package/.agents/skills/team-uidesign/roles/coordinator/commands/monitor.md +216 -216
  425. package/.agents/skills/team-uidesign/roles/coordinator/role.md +168 -168
  426. package/.agents/skills/team-uidesign/roles/designer/role.md +87 -87
  427. package/.agents/skills/team-uidesign/roles/implementer/role.md +88 -88
  428. package/.agents/skills/team-uidesign/roles/researcher/role.md +95 -95
  429. package/.agents/skills/team-uidesign/roles/reviewer/role.md +63 -63
  430. package/.agents/skills/team-uidesign/specs/anti-patterns.md +211 -211
  431. package/.agents/skills/team-uidesign/specs/design-standards.md +329 -329
  432. package/.agents/skills/team-uidesign/specs/pipelines.md +76 -76
  433. package/.agents/skills/team-uidesign/specs/scoring-guide.md +114 -114
  434. package/.agents/skills/team-uidesign/specs/ux-writing.md +86 -86
  435. package/.agents/skills/team-ultra-analyze/SKILL.md +168 -168
  436. package/.agents/skills/team-ultra-analyze/roles/analyst/role.md +89 -89
  437. package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  438. package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -285
  439. package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +372 -372
  440. package/.agents/skills/team-ultra-analyze/roles/coordinator/role.md +247 -247
  441. package/.agents/skills/team-ultra-analyze/roles/discussant/role.md +99 -99
  442. package/.agents/skills/team-ultra-analyze/roles/explorer/role.md +74 -67
  443. package/.agents/skills/team-ultra-analyze/roles/synthesizer/role.md +70 -70
  444. package/.agents/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  445. package/.agents/skills/team-ultra-analyze/specs/team-config.json +6 -6
  446. package/.agents/skills/team-ux-improve/SKILL.md +146 -146
  447. package/.agents/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  448. package/.agents/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -200
  449. package/.agents/skills/team-ux-improve/roles/coordinator/commands/monitor.md +186 -186
  450. package/.agents/skills/team-ux-improve/roles/coordinator/role.md +142 -142
  451. package/.agents/skills/team-ux-improve/roles/designer/role.md +146 -146
  452. package/.agents/skills/team-ux-improve/roles/diagnoser/role.md +102 -102
  453. package/.agents/skills/team-ux-improve/roles/explorer/role.md +71 -71
  454. package/.agents/skills/team-ux-improve/roles/implementer/role.md +96 -96
  455. package/.agents/skills/team-ux-improve/roles/scanner/role.md +129 -129
  456. package/.agents/skills/team-ux-improve/roles/tester/role.md +78 -78
  457. package/.agents/skills/team-ux-improve/specs/anti-patterns.md +103 -103
  458. package/.agents/skills/team-ux-improve/specs/design-standards.md +54 -54
  459. package/.agents/skills/team-ux-improve/specs/heuristics.md +88 -88
  460. package/.agents/skills/team-ux-improve/specs/pipelines.md +54 -54
  461. package/.agents/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -49
  462. package/.agents/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -34
  463. package/.agents/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -40
  464. package/.agents/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -43
  465. package/.agents/skills/team-visual-a11y/SKILL.md +151 -151
  466. package/.agents/skills/team-visual-a11y/roles/color-auditor/role.md +172 -172
  467. package/.agents/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -72
  468. package/.agents/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -250
  469. package/.agents/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +236 -236
  470. package/.agents/skills/team-visual-a11y/roles/coordinator/role.md +169 -169
  471. package/.agents/skills/team-visual-a11y/roles/fix-implementer/role.md +240 -240
  472. package/.agents/skills/team-visual-a11y/roles/focus-auditor/role.md +216 -216
  473. package/.agents/skills/team-visual-a11y/roles/remediation-planner/role.md +200 -200
  474. package/.agents/skills/team-visual-a11y/roles/typo-auditor/role.md +179 -179
  475. package/.agents/skills/team-visual-a11y/specs/focus-patterns.md +325 -325
  476. package/.agents/skills/team-visual-a11y/specs/oklch-standards.md +130 -130
  477. package/.agents/skills/team-visual-a11y/specs/pipelines.md +98 -98
  478. package/.agents/skills/team-visual-a11y/specs/typography-scale.md +165 -165
  479. package/.agents/skills/team-visual-a11y/specs/wcag-matrix.md +133 -133
  480. package/.agy/agents/cli-explore-agent.md +72 -69
  481. package/.agy/agents/role-design-author.md +1 -1
  482. package/.agy/agents/team-supervisor.md +131 -131
  483. package/.agy/agents/ui-design-agent.md +1 -1
  484. package/.agy/agents/workflow-analyzer.md +1 -0
  485. package/.agy/agents/workflow-codebase-mapper.md +67 -67
  486. package/.agy/agents/workflow-collab-planner.md +1 -1
  487. package/.agy/agents/workflow-debugger.md +2 -1
  488. package/.agy/agents/workflow-executor.md +3 -2
  489. package/.agy/agents/workflow-external-researcher.md +78 -78
  490. package/.agy/agents/workflow-nyquist-auditor.md +1 -1
  491. package/.agy/agents/workflow-plan-checker.md +1 -1
  492. package/.agy/agents/workflow-planner.md +1 -1
  493. package/.agy/agents/workflow-project-researcher.md +63 -63
  494. package/.agy/agents/workflow-research-synthesizer.md +63 -63
  495. package/.agy/agents/workflow-reviewer.md +73 -73
  496. package/.agy/agents/workflow-verifier.md +1 -1
  497. package/.agy/skills/codify-to-knowhow/SKILL.md +1 -1
  498. package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +1 -1
  499. package/.agy/skills/codify-to-knowhow/phases/04-index-verify.md +2 -2
  500. package/.agy/skills/delegation-check/SKILL.md +297 -292
  501. package/.agy/skills/delegation-check/specs/separation-rules.md +248 -248
  502. package/.agy/skills/domain-add/SKILL.md +68 -0
  503. package/.agy/skills/learn-follow/SKILL.md +114 -114
  504. package/.agy/skills/learn-investigate/SKILL.md +138 -138
  505. package/.agy/skills/learn-second-opinion/SKILL.md +105 -105
  506. package/.agy/skills/maestro/SKILL.md +227 -226
  507. package/.agy/skills/maestro-amend/SKILL.md +150 -152
  508. package/.agy/skills/maestro-analyze/SKILL.md +210 -201
  509. package/.agy/skills/maestro-blueprint/SKILL.md +175 -175
  510. package/.agy/skills/maestro-brainstorm/SKILL.md +205 -196
  511. package/.agy/skills/maestro-collab/SKILL.md +173 -160
  512. package/.agy/skills/maestro-companion/SKILL.md +517 -517
  513. package/.agy/skills/maestro-composer/SKILL.md +173 -173
  514. package/.agy/skills/maestro-execute/SKILL.md +169 -169
  515. package/.agy/skills/maestro-fork/SKILL.md +97 -97
  516. package/.agy/skills/maestro-grill/SKILL.md +161 -161
  517. package/.agy/skills/maestro-guard/SKILL.md +93 -93
  518. package/.agy/skills/maestro-help/index/catalog.json +1 -1
  519. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +1 -1
  520. package/.agy/skills/maestro-impeccable/SKILL.md +296 -296
  521. package/.agy/skills/maestro-init/SKILL.md +117 -117
  522. package/.agy/skills/maestro-merge/SKILL.md +73 -73
  523. package/.agy/skills/maestro-milestone-audit/SKILL.md +126 -126
  524. package/.agy/skills/maestro-milestone-complete/SKILL.md +123 -123
  525. package/.agy/skills/maestro-milestone-release/SKILL.md +122 -122
  526. package/.agy/skills/maestro-next/SKILL.md +252 -241
  527. package/.agy/skills/maestro-overlay/SKILL.md +177 -176
  528. package/.agy/skills/maestro-plan/SKILL.md +222 -213
  529. package/.agy/skills/maestro-player/SKILL.md +167 -167
  530. package/.agy/skills/maestro-quick/SKILL.md +69 -69
  531. package/.agy/skills/maestro-ralph/SKILL.md +831 -756
  532. package/.agy/skills/maestro-ralph-execute/SKILL.md +276 -276
  533. package/.agy/skills/maestro-roadmap/SKILL.md +159 -159
  534. package/.agy/skills/maestro-swarm-workflow/SKILL.md +229 -229
  535. package/.agy/skills/maestro-tools-execute/SKILL.md +108 -108
  536. package/.agy/skills/maestro-tools-register/SKILL.md +142 -148
  537. package/.agy/skills/maestro-ui-codify/SKILL.md +101 -103
  538. package/.agy/skills/maestro-universal-workflow/SKILL.md +534 -534
  539. package/.agy/skills/maestro-update/SKILL.md +109 -109
  540. package/.agy/skills/manage-codebase-rebuild/SKILL.md +73 -73
  541. package/.agy/skills/manage-harvest/SKILL.md +86 -86
  542. package/.agy/skills/manage-issue/SKILL.md +59 -59
  543. package/.agy/skills/manage-issue-discover/SKILL.md +70 -70
  544. package/.agy/skills/manage-kg-extractors/SKILL.md +2 -4
  545. package/.agy/skills/manage-knowhow/SKILL.md +70 -70
  546. package/.agy/skills/manage-knowhow-capture/SKILL.md +79 -79
  547. package/.agy/skills/manage-knowledge-audit/SKILL.md +120 -120
  548. package/.agy/skills/manage-status/SKILL.md +52 -52
  549. package/.agy/skills/manage-wiki/SKILL.md +69 -69
  550. package/.agy/skills/odyssey-debug/SKILL.md +465 -465
  551. package/.agy/skills/odyssey-improve/SKILL.md +496 -496
  552. package/.agy/skills/odyssey-planex/SKILL.md +594 -594
  553. package/.agy/skills/odyssey-review-test-fix/SKILL.md +422 -422
  554. package/.agy/skills/odyssey-ui/SKILL.md +450 -450
  555. package/.agy/skills/prompt-generator/SKILL.md +472 -465
  556. package/.agy/skills/prompt-generator/specs/agent-design-spec.md +299 -299
  557. package/.agy/skills/prompt-generator/specs/command-design-spec.md +367 -367
  558. package/.agy/skills/prompt-generator/specs/conversion-spec.md +207 -207
  559. package/.agy/skills/prompt-generator/templates/agent-md.md +145 -145
  560. package/.agy/skills/prompt-generator/templates/command-md.md +118 -118
  561. package/.agy/skills/quality-auto-test/SKILL.md +140 -140
  562. package/.agy/skills/quality-debug/SKILL.md +145 -145
  563. package/.agy/skills/quality-refactor/SKILL.md +91 -91
  564. package/.agy/skills/quality-retrospective/SKILL.md +109 -109
  565. package/.agy/skills/quality-review/SKILL.md +144 -144
  566. package/.agy/skills/quality-sync/SKILL.md +74 -74
  567. package/.agy/skills/quality-test/SKILL.md +157 -159
  568. package/.agy/skills/scholar-anti-ai-writing/SKILL.md +175 -168
  569. package/.agy/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -126
  570. package/.agy/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -177
  571. package/.agy/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -134
  572. package/.agy/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -242
  573. package/.agy/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -242
  574. package/.agy/skills/scholar-citation-verify/SKILL.md +170 -161
  575. package/.agy/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -141
  576. package/.agy/skills/scholar-citation-verify/phases/02-verify.md +310 -310
  577. package/.agy/skills/scholar-citation-verify/phases/03-report-fix.md +190 -190
  578. package/.agy/skills/scholar-citation-verify/references/api-usage.md +372 -372
  579. package/.agy/skills/scholar-citation-verify/references/common-errors.md +384 -384
  580. package/.agy/skills/scholar-citation-verify/references/verification-rules.md +399 -399
  581. package/.agy/skills/scholar-experiment/SKILL.md +323 -316
  582. package/.agy/skills/scholar-experiment/phases/01-data-loading.md +209 -209
  583. package/.agy/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -269
  584. package/.agy/skills/scholar-experiment/phases/03-visualization.md +319 -319
  585. package/.agy/skills/scholar-experiment/phases/04-results-writing.md +229 -229
  586. package/.agy/skills/scholar-experiment/phases/05-quality-check.md +261 -261
  587. package/.agy/skills/scholar-ideation/SKILL.md +292 -283
  588. package/.agy/skills/scholar-ideation/phases/01-literature-search.md +317 -317
  589. package/.agy/skills/scholar-ideation/phases/02-gap-analysis.md +249 -249
  590. package/.agy/skills/scholar-ideation/phases/03-research-question.md +200 -200
  591. package/.agy/skills/scholar-ideation/phases/04-method-selection.md +185 -185
  592. package/.agy/skills/scholar-ideation/phases/05-research-planning.md +385 -385
  593. package/.agy/skills/scholar-latex-organizer/SKILL.md +190 -181
  594. package/.agy/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -228
  595. package/.agy/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -500
  596. package/.agy/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -349
  597. package/.agy/skills/scholar-publish/SKILL.md +222 -215
  598. package/.agy/skills/scholar-publish/phases/01-presentation.md +243 -243
  599. package/.agy/skills/scholar-publish/phases/02-poster.md +239 -239
  600. package/.agy/skills/scholar-publish/phases/03-promotion.md +255 -255
  601. package/.agy/skills/scholar-rebuttal-pro/README.md +313 -313
  602. package/.agy/skills/scholar-rebuttal-pro/SKILL.md +518 -507
  603. package/.agy/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -227
  604. package/.agy/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -395
  605. package/.agy/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -459
  606. package/.agy/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -384
  607. package/.agy/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -691
  608. package/.agy/skills/scholar-review/SKILL.md +231 -222
  609. package/.agy/skills/scholar-review/phases/01-self-review.md +186 -186
  610. package/.agy/skills/scholar-review/phases/02-review-analysis.md +203 -203
  611. package/.agy/skills/scholar-review/phases/03-response-strategy.md +193 -193
  612. package/.agy/skills/scholar-review/phases/04-rebuttal-writing.md +181 -181
  613. package/.agy/skills/scholar-review/phases/05-revision.md +183 -183
  614. package/.agy/skills/scholar-review/specs/tone-guidelines.md +76 -76
  615. package/.agy/skills/scholar-thesis-docx/README.md +111 -111
  616. package/.agy/skills/scholar-thesis-docx/README_EN.md +108 -108
  617. package/.agy/skills/scholar-thesis-docx/SKILL.md +209 -208
  618. package/.agy/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -46
  619. package/.agy/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -178
  620. package/.agy/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -33
  621. package/.agy/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -68
  622. package/.agy/skills/scholar-thesis-docx/references/script-usage.md +157 -157
  623. package/.agy/skills/scholar-writing/SKILL.md +301 -291
  624. package/.agy/skills/scholar-writing/phases/01-repo-understanding.md +178 -178
  625. package/.agy/skills/scholar-writing/phases/02-structure-planning.md +197 -197
  626. package/.agy/skills/scholar-writing/phases/03-section-drafting.md +215 -215
  627. package/.agy/skills/scholar-writing/phases/04-citation-management.md +310 -310
  628. package/.agy/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -202
  629. package/.agy/skills/scholar-writing/phases/06-conference-formatting.md +260 -260
  630. package/.agy/skills/security-audit/SKILL.md +217 -217
  631. package/.agy/skills/skill-generator/SKILL.md +475 -465
  632. package/.agy/skills/skill-generator/phases/01-requirements-discovery.md +238 -238
  633. package/.agy/skills/skill-generator/phases/02-structure-generation.md +261 -261
  634. package/.agy/skills/skill-generator/phases/03-phase-generation.md +976 -976
  635. package/.agy/skills/skill-generator/phases/04-specs-templates.md +398 -398
  636. package/.agy/skills/skill-generator/phases/05-validation.md +417 -417
  637. package/.agy/skills/skill-generator/specs/cli-integration.md +418 -418
  638. package/.agy/skills/skill-generator/specs/execution-modes.md +399 -399
  639. package/.agy/skills/skill-generator/specs/reference-docs-spec.md +271 -271
  640. package/.agy/skills/skill-generator/specs/scripting-integration.md +265 -265
  641. package/.agy/skills/skill-generator/specs/skill-requirements.md +466 -466
  642. package/.agy/skills/skill-generator/templates/autonomous-action.md +330 -330
  643. package/.agy/skills/skill-generator/templates/autonomous-orchestrator.md +300 -300
  644. package/.agy/skills/skill-generator/templates/code-analysis-action.md +514 -514
  645. package/.agy/skills/skill-generator/templates/llm-action.md +367 -367
  646. package/.agy/skills/skill-generator/templates/script-template.md +368 -368
  647. package/.agy/skills/skill-generator/templates/sequential-phase.md +470 -470
  648. package/.agy/skills/skill-generator/templates/skill-md.md +312 -312
  649. package/.agy/skills/skill-iter-tune/SKILL.md +389 -378
  650. package/.agy/skills/skill-iter-tune/phases/01-setup.md +144 -144
  651. package/.agy/skills/skill-iter-tune/phases/02-execute.md +292 -292
  652. package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +312 -312
  653. package/.agy/skills/skill-iter-tune/phases/04-improve.md +186 -186
  654. package/.agy/skills/skill-iter-tune/phases/05-report.md +166 -166
  655. package/.agy/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -63
  656. package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +134 -134
  657. package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +97 -97
  658. package/.agy/skills/skill-simplify/SKILL.md +65 -58
  659. package/.agy/skills/skill-simplify/phases/01-analysis.md +224 -224
  660. package/.agy/skills/skill-simplify/phases/02-optimize.md +111 -111
  661. package/.agy/skills/skill-simplify/phases/03-check.md +224 -224
  662. package/.agy/skills/skill-tuning/SKILL.md +180 -170
  663. package/.agy/skills/skill-tuning/phases/actions/action-abort.md +164 -164
  664. package/.agy/skills/skill-tuning/phases/actions/{action-gemini-analysis.md → action-agy-analysis.md} +322 -322
  665. package/.agy/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -406
  666. package/.agy/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -206
  667. package/.agy/skills/skill-tuning/phases/actions/action-complete.md +195 -195
  668. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -317
  669. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -243
  670. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -318
  671. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -299
  672. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -269
  673. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -200
  674. package/.agy/skills/skill-tuning/phases/actions/action-generate-report.md +228 -228
  675. package/.agy/skills/skill-tuning/phases/actions/action-init.md +149 -149
  676. package/.agy/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -317
  677. package/.agy/skills/skill-tuning/phases/actions/action-verify.md +222 -222
  678. package/.agy/skills/skill-tuning/phases/orchestrator.md +190 -190
  679. package/.agy/skills/skill-tuning/phases/state-schema.md +378 -378
  680. package/.agy/skills/skill-tuning/specs/category-mappings.json +5 -5
  681. package/.agy/skills/skill-tuning/specs/dimension-mapping.md +212 -212
  682. package/.agy/skills/skill-tuning/specs/problem-taxonomy.md +210 -210
  683. package/.agy/skills/skill-tuning/specs/quality-gates.md +263 -263
  684. package/.agy/skills/skill-tuning/specs/skill-authoring-principles.md +192 -192
  685. package/.agy/skills/skill-tuning/specs/tuning-strategies.md +392 -392
  686. package/.agy/skills/skill-tuning/templates/diagnosis-report.md +153 -153
  687. package/.agy/skills/skill-tuning/templates/fix-proposal.md +204 -204
  688. package/.agy/skills/spec-add/SKILL.md +66 -66
  689. package/.agy/skills/spec-load/SKILL.md +67 -68
  690. package/.agy/skills/spec-remove/SKILL.md +42 -42
  691. package/.agy/skills/spec-setup/SKILL.md +37 -38
  692. package/.agy/skills/team-arch-opt/SKILL.md +142 -130
  693. package/.agy/skills/team-arch-opt/roles/analyzer/role.md +81 -80
  694. package/.agy/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  695. package/.agy/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -371
  696. package/.agy/skills/team-arch-opt/roles/coordinator/commands/monitor.md +193 -193
  697. package/.agy/skills/team-arch-opt/roles/coordinator/role.md +146 -146
  698. package/.agy/skills/team-arch-opt/roles/designer/role.md +110 -109
  699. package/.agy/skills/team-arch-opt/roles/refactorer/role.md +99 -98
  700. package/.agy/skills/team-arch-opt/roles/reviewer/role.md +106 -105
  701. package/.agy/skills/team-arch-opt/roles/validator/role.md +110 -109
  702. package/.agy/skills/team-arch-opt/specs/pipelines.md +102 -102
  703. package/.agy/skills/team-brainstorm/SKILL.md +132 -120
  704. package/.agy/skills/team-brainstorm/roles/challenger/role.md +56 -55
  705. package/.agy/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  706. package/.agy/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -206
  707. package/.agy/skills/team-brainstorm/roles/coordinator/commands/monitor.md +171 -171
  708. package/.agy/skills/team-brainstorm/roles/coordinator/role.md +140 -140
  709. package/.agy/skills/team-brainstorm/roles/evaluator/role.md +51 -50
  710. package/.agy/skills/team-brainstorm/roles/ideator/role.md +64 -63
  711. package/.agy/skills/team-brainstorm/roles/synthesizer/role.md +52 -51
  712. package/.agy/skills/team-brainstorm/specs/pipelines.md +72 -72
  713. package/.agy/skills/team-coordinate/SKILL.md +250 -238
  714. package/.agy/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -247
  715. package/.agy/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -131
  716. package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +336 -336
  717. package/.agy/skills/team-coordinate/roles/coordinator/role.md +361 -360
  718. package/.agy/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  719. package/.agy/skills/team-coordinate/specs/pipelines.md +97 -97
  720. package/.agy/skills/team-coordinate/specs/quality-gates.md +112 -112
  721. package/.agy/skills/team-coordinate/specs/role-spec-template.md +198 -198
  722. package/.agy/skills/team-designer/SKILL.md +167 -155
  723. package/.agy/skills/team-designer/phases/01-requirements-analysis.md +265 -265
  724. package/.agy/skills/team-designer/phases/02-scaffold-generation.md +236 -236
  725. package/.agy/skills/team-designer/phases/03-content-generation.md +330 -330
  726. package/.agy/skills/team-designer/phases/04-validation.md +329 -329
  727. package/.agy/skills/team-executor/SKILL.md +174 -162
  728. package/.agy/skills/team-executor/roles/executor/commands/monitor.md +223 -223
  729. package/.agy/skills/team-executor/roles/executor/role.md +171 -171
  730. package/.agy/skills/team-executor/specs/session-schema.md +264 -264
  731. package/.agy/skills/team-frontend/SKILL.md +122 -108
  732. package/.agy/skills/team-frontend/roles/analyst/role.md +92 -92
  733. package/.agy/skills/team-frontend/roles/architect/role.md +78 -78
  734. package/.agy/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  735. package/.agy/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -197
  736. package/.agy/skills/team-frontend/roles/coordinator/commands/monitor.md +210 -210
  737. package/.agy/skills/team-frontend/roles/coordinator/role.md +158 -158
  738. package/.agy/skills/team-frontend/roles/developer/role.md +85 -85
  739. package/.agy/skills/team-frontend/roles/qa/role.md +71 -71
  740. package/.agy/skills/team-frontend/specs/pipelines.md +76 -76
  741. package/.agy/skills/team-frontend-debug/SKILL.md +183 -170
  742. package/.agy/skills/team-frontend-debug/roles/analyzer/role.md +199 -199
  743. package/.agy/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  744. package/.agy/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -256
  745. package/.agy/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -148
  746. package/.agy/skills/team-frontend-debug/roles/coordinator/role.md +131 -131
  747. package/.agy/skills/team-frontend-debug/roles/fixer/role.md +138 -138
  748. package/.agy/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
  749. package/.agy/skills/team-frontend-debug/roles/tester/role.md +222 -222
  750. package/.agy/skills/team-frontend-debug/roles/verifier/role.md +164 -164
  751. package/.agy/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  752. package/.agy/skills/team-frontend-debug/specs/pipelines.md +94 -94
  753. package/.agy/skills/team-interactive-craft/SKILL.md +128 -113
  754. package/.agy/skills/team-interactive-craft/roles/a11y-tester/role.md +154 -153
  755. package/.agy/skills/team-interactive-craft/roles/builder/role.md +211 -210
  756. package/.agy/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -71
  757. package/.agy/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -192
  758. package/.agy/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +192 -192
  759. package/.agy/skills/team-interactive-craft/roles/coordinator/role.md +166 -166
  760. package/.agy/skills/team-interactive-craft/roles/interaction-designer/role.md +139 -138
  761. package/.agy/skills/team-interactive-craft/roles/researcher/role.md +126 -125
  762. package/.agy/skills/team-interactive-craft/specs/interaction-patterns.md +362 -362
  763. package/.agy/skills/team-interactive-craft/specs/pipelines.md +85 -85
  764. package/.agy/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -83
  765. package/.agy/skills/team-issue/SKILL.md +132 -120
  766. package/.agy/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  767. package/.agy/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -349
  768. package/.agy/skills/team-issue/roles/coordinator/commands/monitor.md +183 -183
  769. package/.agy/skills/team-issue/roles/coordinator/role.md +173 -172
  770. package/.agy/skills/team-issue/roles/explorer/role.md +97 -96
  771. package/.agy/skills/team-issue/roles/implementer/role.md +82 -81
  772. package/.agy/skills/team-issue/roles/integrator/role.md +79 -78
  773. package/.agy/skills/team-issue/roles/planner/role.md +75 -74
  774. package/.agy/skills/team-issue/roles/reviewer/role.md +81 -80
  775. package/.agy/skills/team-issue/specs/pipelines.md +124 -124
  776. package/.agy/skills/team-lifecycle-v4/SKILL.md +170 -158
  777. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +14 -8
  778. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -56
  779. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -56
  780. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -206
  781. package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -130
  782. package/.agy/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -35
  783. package/.agy/skills/team-lifecycle-v4/roles/executor/role.md +58 -58
  784. package/.agy/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
  785. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -34
  786. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -44
  787. package/.agy/skills/team-lifecycle-v4/roles/reviewer/role.md +57 -57
  788. package/.agy/skills/team-lifecycle-v4/roles/supervisor/role.md +181 -181
  789. package/.agy/skills/team-lifecycle-v4/roles/tester/role.md +78 -78
  790. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  791. package/.agy/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -114
  792. package/.agy/skills/team-lifecycle-v4/specs/pipelines.md +140 -140
  793. package/.agy/skills/team-lifecycle-v4/specs/quality-gates.md +130 -130
  794. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  795. package/.agy/skills/team-lifecycle-v4/templates/epics.md +196 -196
  796. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  797. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  798. package/.agy/skills/team-motion-design/SKILL.md +134 -114
  799. package/.agy/skills/team-motion-design/roles/animator/role.md +189 -188
  800. package/.agy/skills/team-motion-design/roles/choreographer/role.md +159 -158
  801. package/.agy/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -64
  802. package/.agy/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -203
  803. package/.agy/skills/team-motion-design/roles/coordinator/commands/monitor.md +193 -193
  804. package/.agy/skills/team-motion-design/roles/coordinator/role.md +167 -167
  805. package/.agy/skills/team-motion-design/roles/motion-researcher/role.md +110 -109
  806. package/.agy/skills/team-motion-design/roles/motion-tester/role.md +170 -169
  807. package/.agy/skills/team-motion-design/specs/gpu-constraints.md +114 -114
  808. package/.agy/skills/team-motion-design/specs/motion-tokens.md +128 -128
  809. package/.agy/skills/team-motion-design/specs/pipelines.md +74 -74
  810. package/.agy/skills/team-motion-design/specs/reduced-motion.md +129 -129
  811. package/.agy/skills/team-perf-opt/SKILL.md +159 -147
  812. package/.agy/skills/team-perf-opt/roles/benchmarker/role.md +80 -80
  813. package/.agy/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  814. package/.agy/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -376
  815. package/.agy/skills/team-perf-opt/roles/coordinator/commands/monitor.md +339 -339
  816. package/.agy/skills/team-perf-opt/roles/coordinator/role.md +147 -147
  817. package/.agy/skills/team-perf-opt/roles/optimizer/role.md +89 -89
  818. package/.agy/skills/team-perf-opt/roles/profiler/role.md +73 -73
  819. package/.agy/skills/team-perf-opt/roles/reviewer/role.md +64 -64
  820. package/.agy/skills/team-perf-opt/roles/strategist/role.md +85 -85
  821. package/.agy/skills/team-perf-opt/specs/pipelines.md +65 -65
  822. package/.agy/skills/team-planex/SKILL.md +120 -108
  823. package/.agy/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  824. package/.agy/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -87
  825. package/.agy/skills/team-planex/roles/coordinator/commands/monitor.md +174 -174
  826. package/.agy/skills/team-planex/roles/coordinator/role.md +140 -140
  827. package/.agy/skills/team-planex/roles/executor/role.md +83 -83
  828. package/.agy/skills/team-planex/roles/planner/role.md +111 -111
  829. package/.agy/skills/team-planex/specs/pipelines.md +93 -93
  830. package/.agy/skills/team-quality-assurance/SKILL.md +131 -119
  831. package/.agy/skills/team-quality-assurance/roles/analyst/role.md +79 -79
  832. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  833. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -111
  834. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +223 -223
  835. package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +143 -143
  836. package/.agy/skills/team-quality-assurance/roles/executor/role.md +55 -55
  837. package/.agy/skills/team-quality-assurance/roles/generator/role.md +58 -58
  838. package/.agy/skills/team-quality-assurance/roles/scout/role.md +70 -66
  839. package/.agy/skills/team-quality-assurance/roles/strategist/role.md +63 -63
  840. package/.agy/skills/team-quality-assurance/specs/pipelines.md +115 -115
  841. package/.agy/skills/team-quality-assurance/specs/team-config.json +8 -8
  842. package/.agy/skills/team-review/SKILL.md +131 -119
  843. package/.agy/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  844. package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +91 -91
  845. package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +197 -197
  846. package/.agy/skills/team-review/roles/coordinator/role.md +132 -132
  847. package/.agy/skills/team-review/roles/fixer/role.md +68 -68
  848. package/.agy/skills/team-review/specs/dimensions.md +82 -82
  849. package/.agy/skills/team-review/specs/pipelines.md +102 -102
  850. package/.agy/skills/team-roadmap-dev/SKILL.md +153 -141
  851. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  852. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -212
  853. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +448 -448
  854. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -90
  855. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -137
  856. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -287
  857. package/.agy/skills/team-roadmap-dev/roles/coordinator/role.md +302 -302
  858. package/.agy/skills/team-roadmap-dev/roles/executor/role.md +62 -62
  859. package/.agy/skills/team-roadmap-dev/roles/planner/role.md +76 -76
  860. package/.agy/skills/team-roadmap-dev/roles/verifier/role.md +64 -64
  861. package/.agy/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  862. package/.agy/skills/team-roadmap-dev/specs/team-config.json +3 -3
  863. package/.agy/skills/team-swarm/SKILL.md +159 -147
  864. package/.agy/skills/team-tech-debt/SKILL.md +115 -100
  865. package/.agy/skills/team-tech-debt/roles/assessor/role.md +72 -71
  866. package/.agy/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  867. package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -156
  868. package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +186 -186
  869. package/.agy/skills/team-tech-debt/roles/coordinator/role.md +123 -123
  870. package/.agy/skills/team-tech-debt/roles/executor/role.md +1 -1
  871. package/.agy/skills/team-tech-debt/roles/planner/role.md +64 -63
  872. package/.agy/skills/team-tech-debt/roles/scanner/role.md +85 -84
  873. package/.agy/skills/team-tech-debt/roles/validator/role.md +2 -2
  874. package/.agy/skills/team-tech-debt/specs/pipelines.md +47 -47
  875. package/.agy/skills/team-tech-debt/specs/team-config.json +5 -5
  876. package/.agy/skills/team-testing/SKILL.md +127 -115
  877. package/.agy/skills/team-testing/roles/analyst/role.md +95 -95
  878. package/.agy/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  879. package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -108
  880. package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +230 -230
  881. package/.agy/skills/team-testing/roles/coordinator/role.md +134 -134
  882. package/.agy/skills/team-testing/roles/executor/role.md +2 -2
  883. package/.agy/skills/team-testing/roles/generator/role.md +1 -1
  884. package/.agy/skills/team-testing/roles/strategist/role.md +75 -75
  885. package/.agy/skills/team-testing/specs/pipelines.md +101 -101
  886. package/.agy/skills/team-ui-polish/SKILL.md +132 -113
  887. package/.agy/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -77
  888. package/.agy/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -194
  889. package/.agy/skills/team-ui-polish/roles/coordinator/commands/monitor.md +189 -189
  890. package/.agy/skills/team-ui-polish/roles/coordinator/role.md +170 -170
  891. package/.agy/skills/team-ui-polish/roles/diagnostician/role.md +155 -154
  892. package/.agy/skills/team-ui-polish/roles/optimizer/role.md +220 -219
  893. package/.agy/skills/team-ui-polish/roles/scanner/role.md +351 -350
  894. package/.agy/skills/team-ui-polish/roles/verifier/role.md +137 -136
  895. package/.agy/skills/team-ui-polish/specs/anti-patterns.md +141 -141
  896. package/.agy/skills/team-ui-polish/specs/design-standards.md +356 -356
  897. package/.agy/skills/team-ui-polish/specs/fix-strategies.md +235 -235
  898. package/.agy/skills/team-ui-polish/specs/pipelines.md +81 -81
  899. package/.agy/skills/team-ui-polish/specs/scoring-guide.md +162 -162
  900. package/.agy/skills/team-uidesign/SKILL.md +131 -116
  901. package/.agy/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  902. package/.agy/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -185
  903. package/.agy/skills/team-uidesign/roles/coordinator/commands/monitor.md +193 -193
  904. package/.agy/skills/team-uidesign/roles/coordinator/role.md +168 -168
  905. package/.agy/skills/team-uidesign/roles/designer/role.md +88 -87
  906. package/.agy/skills/team-uidesign/roles/implementer/role.md +89 -88
  907. package/.agy/skills/team-uidesign/roles/researcher/role.md +96 -95
  908. package/.agy/skills/team-uidesign/roles/reviewer/role.md +64 -63
  909. package/.agy/skills/team-uidesign/specs/anti-patterns.md +211 -211
  910. package/.agy/skills/team-uidesign/specs/design-standards.md +329 -329
  911. package/.agy/skills/team-uidesign/specs/pipelines.md +76 -76
  912. package/.agy/skills/team-uidesign/specs/scoring-guide.md +114 -114
  913. package/.agy/skills/team-uidesign/specs/ux-writing.md +86 -86
  914. package/.agy/skills/team-ultra-analyze/SKILL.md +156 -144
  915. package/.agy/skills/team-ultra-analyze/roles/analyst/role.md +89 -89
  916. package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  917. package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -285
  918. package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +344 -344
  919. package/.agy/skills/team-ultra-analyze/roles/coordinator/role.md +247 -247
  920. package/.agy/skills/team-ultra-analyze/roles/discussant/role.md +99 -99
  921. package/.agy/skills/team-ultra-analyze/roles/explorer/role.md +74 -67
  922. package/.agy/skills/team-ultra-analyze/roles/synthesizer/role.md +70 -70
  923. package/.agy/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  924. package/.agy/skills/team-ultra-analyze/specs/team-config.json +6 -6
  925. package/.agy/skills/team-ux-improve/SKILL.md +138 -123
  926. package/.agy/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  927. package/.agy/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -200
  928. package/.agy/skills/team-ux-improve/roles/coordinator/commands/monitor.md +163 -163
  929. package/.agy/skills/team-ux-improve/roles/coordinator/role.md +142 -142
  930. package/.agy/skills/team-ux-improve/roles/designer/role.md +147 -146
  931. package/.agy/skills/team-ux-improve/roles/diagnoser/role.md +103 -102
  932. package/.agy/skills/team-ux-improve/roles/explorer/role.md +72 -71
  933. package/.agy/skills/team-ux-improve/roles/implementer/role.md +97 -96
  934. package/.agy/skills/team-ux-improve/roles/scanner/role.md +130 -129
  935. package/.agy/skills/team-ux-improve/roles/tester/role.md +79 -78
  936. package/.agy/skills/team-ux-improve/specs/anti-patterns.md +103 -103
  937. package/.agy/skills/team-ux-improve/specs/design-standards.md +54 -54
  938. package/.agy/skills/team-ux-improve/specs/heuristics.md +88 -88
  939. package/.agy/skills/team-ux-improve/specs/pipelines.md +54 -54
  940. package/.agy/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -49
  941. package/.agy/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -34
  942. package/.agy/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -40
  943. package/.agy/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -43
  944. package/.agy/skills/team-visual-a11y/SKILL.md +149 -128
  945. package/.agy/skills/team-visual-a11y/roles/color-auditor/role.md +173 -172
  946. package/.agy/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -72
  947. package/.agy/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -250
  948. package/.agy/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +213 -213
  949. package/.agy/skills/team-visual-a11y/roles/coordinator/role.md +169 -169
  950. package/.agy/skills/team-visual-a11y/roles/fix-implementer/role.md +241 -240
  951. package/.agy/skills/team-visual-a11y/roles/focus-auditor/role.md +217 -216
  952. package/.agy/skills/team-visual-a11y/roles/remediation-planner/role.md +201 -200
  953. package/.agy/skills/team-visual-a11y/roles/typo-auditor/role.md +180 -179
  954. package/.agy/skills/team-visual-a11y/specs/focus-patterns.md +325 -325
  955. package/.agy/skills/team-visual-a11y/specs/oklch-standards.md +130 -130
  956. package/.agy/skills/team-visual-a11y/specs/pipelines.md +98 -98
  957. package/.agy/skills/team-visual-a11y/specs/typography-scale.md +165 -165
  958. package/.agy/skills/team-visual-a11y/specs/wcag-matrix.md +133 -133
  959. package/.claude/agents/cli-explore-agent.md +72 -69
  960. package/.claude/agents/role-design-author.md +1 -1
  961. package/.claude/agents/team-supervisor.md +143 -143
  962. package/.claude/agents/ui-design-agent.md +1 -1
  963. package/.claude/agents/workflow-analyzer.md +1 -0
  964. package/.claude/agents/workflow-codebase-mapper.md +77 -77
  965. package/.claude/agents/workflow-collab-planner.md +1 -1
  966. package/.claude/agents/workflow-debugger.md +2 -1
  967. package/.claude/agents/workflow-executor.md +3 -2
  968. package/.claude/agents/workflow-external-researcher.md +86 -86
  969. package/.claude/agents/workflow-nyquist-auditor.md +1 -1
  970. package/.claude/agents/workflow-plan-checker.md +1 -1
  971. package/.claude/agents/workflow-planner.md +1 -1
  972. package/.claude/agents/workflow-project-researcher.md +74 -74
  973. package/.claude/agents/workflow-research-synthesizer.md +70 -70
  974. package/.claude/agents/workflow-reviewer.md +82 -82
  975. package/.claude/agents/workflow-verifier.md +1 -1
  976. package/.claude/commands/domain-add.md +69 -0
  977. package/.claude/commands/learn-follow.md +127 -127
  978. package/.claude/commands/learn-investigate.md +151 -151
  979. package/.claude/commands/learn-second-opinion.md +118 -118
  980. package/.claude/commands/maestro-amend.md +162 -164
  981. package/.claude/commands/maestro-analyze.md +224 -215
  982. package/.claude/commands/maestro-blueprint.md +189 -189
  983. package/.claude/commands/maestro-brainstorm.md +218 -209
  984. package/.claude/commands/maestro-collab.md +185 -172
  985. package/.claude/commands/maestro-companion.md +531 -531
  986. package/.claude/commands/maestro-composer.md +188 -188
  987. package/.claude/commands/maestro-execute.md +183 -183
  988. package/.claude/commands/maestro-fork.md +111 -111
  989. package/.claude/commands/maestro-grill.md +175 -175
  990. package/.claude/commands/maestro-guard.md +103 -103
  991. package/.claude/commands/maestro-impeccable.md +311 -311
  992. package/.claude/commands/maestro-init.md +130 -130
  993. package/.claude/commands/maestro-merge.md +87 -87
  994. package/.claude/commands/maestro-milestone-audit.md +139 -139
  995. package/.claude/commands/maestro-milestone-complete.md +136 -136
  996. package/.claude/commands/maestro-milestone-release.md +136 -136
  997. package/.claude/commands/maestro-next.md +264 -253
  998. package/.claude/commands/maestro-overlay.md +189 -188
  999. package/.claude/commands/maestro-plan.md +236 -227
  1000. package/.claude/commands/maestro-player.md +182 -182
  1001. package/.claude/commands/maestro-quick.md +83 -83
  1002. package/.claude/commands/maestro-ralph-execute.md +289 -289
  1003. package/.claude/commands/maestro-ralph.md +845 -770
  1004. package/.claude/commands/maestro-roadmap.md +173 -173
  1005. package/.claude/commands/maestro-swarm-workflow.md +243 -243
  1006. package/.claude/commands/maestro-tools-execute.md +122 -122
  1007. package/.claude/commands/maestro-tools-register.md +156 -162
  1008. package/.claude/commands/maestro-ui-codify.md +115 -117
  1009. package/.claude/commands/maestro-universal-workflow.md +548 -548
  1010. package/.claude/commands/maestro-update.md +122 -122
  1011. package/.claude/commands/maestro.md +242 -241
  1012. package/.claude/commands/manage-codebase-rebuild.md +87 -87
  1013. package/.claude/commands/manage-harvest.md +100 -100
  1014. package/.claude/commands/manage-issue-discover.md +83 -83
  1015. package/.claude/commands/manage-issue.md +72 -72
  1016. package/.claude/commands/manage-kg-extractors.md +2 -4
  1017. package/.claude/commands/manage-knowhow-capture.md +92 -92
  1018. package/.claude/commands/manage-knowhow.md +83 -83
  1019. package/.claude/commands/manage-knowledge-audit.md +134 -134
  1020. package/.claude/commands/manage-status.md +62 -62
  1021. package/.claude/commands/manage-wiki.md +82 -82
  1022. package/.claude/commands/odyssey-debug.md +479 -479
  1023. package/.claude/commands/odyssey-improve.md +510 -510
  1024. package/.claude/commands/odyssey-planex.md +608 -608
  1025. package/.claude/commands/odyssey-review-test-fix.md +436 -436
  1026. package/.claude/commands/odyssey-ui.md +464 -464
  1027. package/.claude/commands/quality-auto-test.md +153 -153
  1028. package/.claude/commands/quality-debug.md +159 -159
  1029. package/.claude/commands/quality-refactor.md +105 -105
  1030. package/.claude/commands/quality-retrospective.md +123 -123
  1031. package/.claude/commands/quality-review.md +158 -158
  1032. package/.claude/commands/quality-sync.md +88 -88
  1033. package/.claude/commands/quality-test.md +171 -173
  1034. package/.claude/commands/security-audit.md +230 -230
  1035. package/.claude/commands/spec-add.md +77 -77
  1036. package/.claude/commands/spec-load.md +77 -78
  1037. package/.claude/commands/spec-remove.md +55 -55
  1038. package/.claude/commands/spec-setup.md +48 -49
  1039. package/.claude/skills/codify-to-knowhow/SKILL.md +1 -1
  1040. package/.claude/skills/codify-to-knowhow/phases/03-generate-specs.md +1 -1
  1041. package/.claude/skills/codify-to-knowhow/phases/04-index-verify.md +2 -2
  1042. package/.claude/skills/delegation-check/SKILL.md +297 -297
  1043. package/.claude/skills/delegation-check/specs/separation-rules.md +269 -269
  1044. package/.claude/skills/maestro-help/index/catalog.json +1 -1
  1045. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +1 -1
  1046. package/.claude/skills/prompt-generator/SKILL.md +470 -470
  1047. package/.claude/skills/prompt-generator/specs/agent-design-spec.md +299 -299
  1048. package/.claude/skills/prompt-generator/specs/command-design-spec.md +367 -367
  1049. package/.claude/skills/prompt-generator/specs/conversion-spec.md +207 -207
  1050. package/.claude/skills/prompt-generator/templates/agent-md.md +145 -145
  1051. package/.claude/skills/prompt-generator/templates/command-md.md +118 -118
  1052. package/.claude/skills/scholar-anti-ai-writing/SKILL.md +173 -173
  1053. package/.claude/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -126
  1054. package/.claude/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -177
  1055. package/.claude/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -134
  1056. package/.claude/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -242
  1057. package/.claude/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -242
  1058. package/.claude/skills/scholar-citation-verify/SKILL.md +166 -166
  1059. package/.claude/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -141
  1060. package/.claude/skills/scholar-citation-verify/phases/02-verify.md +310 -310
  1061. package/.claude/skills/scholar-citation-verify/phases/03-report-fix.md +190 -190
  1062. package/.claude/skills/scholar-citation-verify/references/api-usage.md +372 -372
  1063. package/.claude/skills/scholar-citation-verify/references/common-errors.md +384 -384
  1064. package/.claude/skills/scholar-citation-verify/references/verification-rules.md +399 -399
  1065. package/.claude/skills/scholar-experiment/SKILL.md +321 -321
  1066. package/.claude/skills/scholar-experiment/phases/01-data-loading.md +209 -209
  1067. package/.claude/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -269
  1068. package/.claude/skills/scholar-experiment/phases/03-visualization.md +319 -319
  1069. package/.claude/skills/scholar-experiment/phases/04-results-writing.md +229 -229
  1070. package/.claude/skills/scholar-experiment/phases/05-quality-check.md +261 -261
  1071. package/.claude/skills/scholar-ideation/SKILL.md +288 -288
  1072. package/.claude/skills/scholar-ideation/phases/01-literature-search.md +317 -317
  1073. package/.claude/skills/scholar-ideation/phases/02-gap-analysis.md +249 -249
  1074. package/.claude/skills/scholar-ideation/phases/03-research-question.md +200 -200
  1075. package/.claude/skills/scholar-ideation/phases/04-method-selection.md +185 -185
  1076. package/.claude/skills/scholar-ideation/phases/05-research-planning.md +385 -385
  1077. package/.claude/skills/scholar-latex-organizer/SKILL.md +186 -186
  1078. package/.claude/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -228
  1079. package/.claude/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -500
  1080. package/.claude/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -349
  1081. package/.claude/skills/scholar-publish/SKILL.md +220 -220
  1082. package/.claude/skills/scholar-publish/phases/01-presentation.md +243 -243
  1083. package/.claude/skills/scholar-publish/phases/02-poster.md +239 -239
  1084. package/.claude/skills/scholar-publish/phases/03-promotion.md +255 -255
  1085. package/.claude/skills/scholar-rebuttal-pro/README.md +313 -313
  1086. package/.claude/skills/scholar-rebuttal-pro/SKILL.md +511 -511
  1087. package/.claude/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -227
  1088. package/.claude/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -395
  1089. package/.claude/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -459
  1090. package/.claude/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -384
  1091. package/.claude/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -691
  1092. package/.claude/skills/scholar-review/SKILL.md +227 -227
  1093. package/.claude/skills/scholar-review/phases/01-self-review.md +186 -186
  1094. package/.claude/skills/scholar-review/phases/02-review-analysis.md +203 -203
  1095. package/.claude/skills/scholar-review/phases/03-response-strategy.md +193 -193
  1096. package/.claude/skills/scholar-review/phases/04-rebuttal-writing.md +181 -181
  1097. package/.claude/skills/scholar-review/phases/05-revision.md +183 -183
  1098. package/.claude/skills/scholar-review/specs/tone-guidelines.md +76 -76
  1099. package/.claude/skills/scholar-thesis-docx/README.md +111 -111
  1100. package/.claude/skills/scholar-thesis-docx/README_EN.md +108 -108
  1101. package/.claude/skills/scholar-thesis-docx/SKILL.md +212 -212
  1102. package/.claude/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -46
  1103. package/.claude/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -178
  1104. package/.claude/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -33
  1105. package/.claude/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -68
  1106. package/.claude/skills/scholar-thesis-docx/references/script-usage.md +157 -157
  1107. package/.claude/skills/scholar-writing/SKILL.md +296 -296
  1108. package/.claude/skills/scholar-writing/phases/01-repo-understanding.md +178 -178
  1109. package/.claude/skills/scholar-writing/phases/02-structure-planning.md +197 -197
  1110. package/.claude/skills/scholar-writing/phases/03-section-drafting.md +215 -215
  1111. package/.claude/skills/scholar-writing/phases/04-citation-management.md +310 -310
  1112. package/.claude/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -202
  1113. package/.claude/skills/scholar-writing/phases/06-conference-formatting.md +260 -260
  1114. package/.claude/skills/skill-generator/SKILL.md +471 -471
  1115. package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +238 -238
  1116. package/.claude/skills/skill-generator/phases/02-structure-generation.md +261 -261
  1117. package/.claude/skills/skill-generator/phases/03-phase-generation.md +976 -976
  1118. package/.claude/skills/skill-generator/phases/04-specs-templates.md +398 -398
  1119. package/.claude/skills/skill-generator/phases/05-validation.md +417 -417
  1120. package/.claude/skills/skill-generator/specs/cli-integration.md +442 -442
  1121. package/.claude/skills/skill-generator/specs/execution-modes.md +399 -399
  1122. package/.claude/skills/skill-generator/specs/reference-docs-spec.md +271 -271
  1123. package/.claude/skills/skill-generator/specs/scripting-integration.md +265 -265
  1124. package/.claude/skills/skill-generator/specs/skill-requirements.md +466 -466
  1125. package/.claude/skills/skill-generator/templates/autonomous-action.md +330 -330
  1126. package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +300 -300
  1127. package/.claude/skills/skill-generator/templates/code-analysis-action.md +514 -514
  1128. package/.claude/skills/skill-generator/templates/llm-action.md +367 -367
  1129. package/.claude/skills/skill-generator/templates/script-template.md +368 -368
  1130. package/.claude/skills/skill-generator/templates/sequential-phase.md +474 -474
  1131. package/.claude/skills/skill-generator/templates/skill-md.md +312 -312
  1132. package/.claude/skills/skill-iter-tune/SKILL.md +382 -382
  1133. package/.claude/skills/skill-iter-tune/phases/01-setup.md +144 -144
  1134. package/.claude/skills/skill-iter-tune/phases/02-execute.md +292 -292
  1135. package/.claude/skills/skill-iter-tune/phases/03-evaluate.md +312 -312
  1136. package/.claude/skills/skill-iter-tune/phases/04-improve.md +186 -186
  1137. package/.claude/skills/skill-iter-tune/phases/05-report.md +166 -166
  1138. package/.claude/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -63
  1139. package/.claude/skills/skill-iter-tune/templates/eval-prompt.md +134 -134
  1140. package/.claude/skills/skill-iter-tune/templates/execute-prompt.md +97 -97
  1141. package/.claude/skills/skill-simplify/SKILL.md +63 -63
  1142. package/.claude/skills/skill-simplify/phases/01-analysis.md +224 -224
  1143. package/.claude/skills/skill-simplify/phases/02-optimize.md +111 -111
  1144. package/.claude/skills/skill-simplify/phases/03-check.md +224 -224
  1145. package/.claude/skills/skill-tuning/SKILL.md +174 -174
  1146. package/.claude/skills/skill-tuning/phases/actions/action-abort.md +164 -164
  1147. package/.claude/skills/skill-tuning/phases/actions/{action-gemini-analysis.md → action-agy-analysis.md} +322 -322
  1148. package/.claude/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -406
  1149. package/.claude/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -206
  1150. package/.claude/skills/skill-tuning/phases/actions/action-complete.md +195 -195
  1151. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -317
  1152. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -243
  1153. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -318
  1154. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -299
  1155. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -269
  1156. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -200
  1157. package/.claude/skills/skill-tuning/phases/actions/action-generate-report.md +228 -228
  1158. package/.claude/skills/skill-tuning/phases/actions/action-init.md +149 -149
  1159. package/.claude/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -317
  1160. package/.claude/skills/skill-tuning/phases/actions/action-verify.md +222 -222
  1161. package/.claude/skills/skill-tuning/phases/orchestrator.md +190 -190
  1162. package/.claude/skills/skill-tuning/phases/state-schema.md +378 -378
  1163. package/.claude/skills/skill-tuning/specs/category-mappings.json +5 -5
  1164. package/.claude/skills/skill-tuning/specs/dimension-mapping.md +212 -212
  1165. package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +210 -210
  1166. package/.claude/skills/skill-tuning/specs/quality-gates.md +263 -263
  1167. package/.claude/skills/skill-tuning/specs/skill-authoring-principles.md +192 -192
  1168. package/.claude/skills/skill-tuning/specs/tuning-strategies.md +392 -392
  1169. package/.claude/skills/skill-tuning/templates/diagnosis-report.md +153 -153
  1170. package/.claude/skills/skill-tuning/templates/fix-proposal.md +204 -204
  1171. package/.claude/skills/team-arch-opt/SKILL.md +158 -158
  1172. package/.claude/skills/team-arch-opt/roles/analyzer/role.md +86 -86
  1173. package/.claude/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  1174. package/.claude/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -371
  1175. package/.claude/skills/team-arch-opt/roles/coordinator/commands/monitor.md +216 -216
  1176. package/.claude/skills/team-arch-opt/roles/coordinator/role.md +146 -146
  1177. package/.claude/skills/team-arch-opt/roles/designer/role.md +115 -115
  1178. package/.claude/skills/team-arch-opt/roles/refactorer/role.md +104 -104
  1179. package/.claude/skills/team-arch-opt/roles/reviewer/role.md +111 -111
  1180. package/.claude/skills/team-arch-opt/roles/validator/role.md +115 -115
  1181. package/.claude/skills/team-arch-opt/specs/pipelines.md +102 -102
  1182. package/.claude/skills/team-brainstorm/SKILL.md +171 -171
  1183. package/.claude/skills/team-brainstorm/roles/challenger/role.md +61 -61
  1184. package/.claude/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  1185. package/.claude/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -206
  1186. package/.claude/skills/team-brainstorm/roles/coordinator/commands/monitor.md +199 -199
  1187. package/.claude/skills/team-brainstorm/roles/coordinator/role.md +140 -140
  1188. package/.claude/skills/team-brainstorm/roles/evaluator/role.md +56 -56
  1189. package/.claude/skills/team-brainstorm/roles/ideator/role.md +69 -69
  1190. package/.claude/skills/team-brainstorm/roles/synthesizer/role.md +57 -57
  1191. package/.claude/skills/team-brainstorm/specs/pipelines.md +72 -72
  1192. package/.claude/skills/team-coordinate/SKILL.md +266 -266
  1193. package/.claude/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -247
  1194. package/.claude/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -131
  1195. package/.claude/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -358
  1196. package/.claude/skills/team-coordinate/roles/coordinator/role.md +363 -363
  1197. package/.claude/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  1198. package/.claude/skills/team-coordinate/specs/pipelines.md +97 -97
  1199. package/.claude/skills/team-coordinate/specs/quality-gates.md +112 -112
  1200. package/.claude/skills/team-coordinate/specs/role-spec-template.md +198 -198
  1201. package/.claude/skills/team-designer/SKILL.md +160 -160
  1202. package/.claude/skills/team-designer/phases/01-requirements-analysis.md +265 -265
  1203. package/.claude/skills/team-designer/phases/02-scaffold-generation.md +236 -236
  1204. package/.claude/skills/team-designer/phases/03-content-generation.md +330 -330
  1205. package/.claude/skills/team-designer/phases/04-validation.md +329 -329
  1206. package/.claude/skills/team-executor/SKILL.md +189 -189
  1207. package/.claude/skills/team-executor/roles/executor/commands/monitor.md +239 -239
  1208. package/.claude/skills/team-executor/roles/executor/role.md +171 -171
  1209. package/.claude/skills/team-executor/specs/session-schema.md +264 -264
  1210. package/.claude/skills/team-frontend/SKILL.md +136 -136
  1211. package/.claude/skills/team-frontend/roles/analyst/role.md +100 -100
  1212. package/.claude/skills/team-frontend/roles/architect/role.md +86 -86
  1213. package/.claude/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  1214. package/.claude/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -197
  1215. package/.claude/skills/team-frontend/roles/coordinator/commands/monitor.md +233 -233
  1216. package/.claude/skills/team-frontend/roles/coordinator/role.md +158 -158
  1217. package/.claude/skills/team-frontend/roles/developer/role.md +93 -93
  1218. package/.claude/skills/team-frontend/roles/qa/role.md +79 -79
  1219. package/.claude/skills/team-frontend/specs/pipelines.md +76 -76
  1220. package/.claude/skills/team-frontend-debug/SKILL.md +198 -198
  1221. package/.claude/skills/team-frontend-debug/roles/analyzer/role.md +208 -208
  1222. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  1223. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -256
  1224. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -148
  1225. package/.claude/skills/team-frontend-debug/roles/coordinator/role.md +131 -131
  1226. package/.claude/skills/team-frontend-debug/roles/fixer/role.md +147 -147
  1227. package/.claude/skills/team-frontend-debug/roles/reproducer/role.md +155 -155
  1228. package/.claude/skills/team-frontend-debug/roles/tester/role.md +231 -231
  1229. package/.claude/skills/team-frontend-debug/roles/verifier/role.md +172 -172
  1230. package/.claude/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  1231. package/.claude/skills/team-frontend-debug/specs/pipelines.md +94 -94
  1232. package/.claude/skills/team-interactive-craft/SKILL.md +141 -141
  1233. package/.claude/skills/team-interactive-craft/roles/a11y-tester/role.md +159 -159
  1234. package/.claude/skills/team-interactive-craft/roles/builder/role.md +216 -216
  1235. package/.claude/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -71
  1236. package/.claude/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -192
  1237. package/.claude/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +215 -215
  1238. package/.claude/skills/team-interactive-craft/roles/coordinator/role.md +166 -166
  1239. package/.claude/skills/team-interactive-craft/roles/interaction-designer/role.md +144 -144
  1240. package/.claude/skills/team-interactive-craft/roles/researcher/role.md +131 -131
  1241. package/.claude/skills/team-interactive-craft/specs/interaction-patterns.md +362 -362
  1242. package/.claude/skills/team-interactive-craft/specs/pipelines.md +85 -85
  1243. package/.claude/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -83
  1244. package/.claude/skills/team-issue/SKILL.md +171 -171
  1245. package/.claude/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  1246. package/.claude/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -349
  1247. package/.claude/skills/team-issue/roles/coordinator/commands/monitor.md +229 -229
  1248. package/.claude/skills/team-issue/roles/coordinator/role.md +175 -175
  1249. package/.claude/skills/team-issue/roles/explorer/role.md +102 -102
  1250. package/.claude/skills/team-issue/roles/implementer/role.md +87 -87
  1251. package/.claude/skills/team-issue/roles/integrator/role.md +84 -84
  1252. package/.claude/skills/team-issue/roles/planner/role.md +81 -81
  1253. package/.claude/skills/team-issue/roles/reviewer/role.md +86 -86
  1254. package/.claude/skills/team-issue/specs/pipelines.md +124 -124
  1255. package/.claude/skills/team-lifecycle-v4/SKILL.md +209 -209
  1256. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +14 -8
  1257. package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -56
  1258. package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -56
  1259. package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -206
  1260. package/.claude/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -130
  1261. package/.claude/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -35
  1262. package/.claude/skills/team-lifecycle-v4/roles/executor/role.md +67 -67
  1263. package/.claude/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
  1264. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -34
  1265. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -44
  1266. package/.claude/skills/team-lifecycle-v4/roles/reviewer/role.md +69 -69
  1267. package/.claude/skills/team-lifecycle-v4/roles/supervisor/role.md +192 -192
  1268. package/.claude/skills/team-lifecycle-v4/roles/tester/role.md +87 -87
  1269. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  1270. package/.claude/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -114
  1271. package/.claude/skills/team-lifecycle-v4/specs/pipelines.md +140 -140
  1272. package/.claude/skills/team-lifecycle-v4/specs/quality-gates.md +130 -130
  1273. package/.claude/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  1274. package/.claude/skills/team-lifecycle-v4/templates/epics.md +196 -196
  1275. package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  1276. package/.claude/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  1277. package/.claude/skills/team-motion-design/SKILL.md +142 -142
  1278. package/.claude/skills/team-motion-design/roles/animator/role.md +194 -194
  1279. package/.claude/skills/team-motion-design/roles/choreographer/role.md +164 -164
  1280. package/.claude/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -64
  1281. package/.claude/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -203
  1282. package/.claude/skills/team-motion-design/roles/coordinator/commands/monitor.md +216 -216
  1283. package/.claude/skills/team-motion-design/roles/coordinator/role.md +167 -167
  1284. package/.claude/skills/team-motion-design/roles/motion-researcher/role.md +115 -115
  1285. package/.claude/skills/team-motion-design/roles/motion-tester/role.md +175 -175
  1286. package/.claude/skills/team-motion-design/specs/gpu-constraints.md +114 -114
  1287. package/.claude/skills/team-motion-design/specs/motion-tokens.md +128 -128
  1288. package/.claude/skills/team-motion-design/specs/pipelines.md +74 -74
  1289. package/.claude/skills/team-motion-design/specs/reduced-motion.md +129 -129
  1290. package/.claude/skills/team-perf-opt/SKILL.md +175 -175
  1291. package/.claude/skills/team-perf-opt/roles/benchmarker/role.md +89 -89
  1292. package/.claude/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  1293. package/.claude/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -376
  1294. package/.claude/skills/team-perf-opt/roles/coordinator/commands/monitor.md +362 -362
  1295. package/.claude/skills/team-perf-opt/roles/coordinator/role.md +147 -147
  1296. package/.claude/skills/team-perf-opt/roles/optimizer/role.md +99 -99
  1297. package/.claude/skills/team-perf-opt/roles/profiler/role.md +81 -81
  1298. package/.claude/skills/team-perf-opt/roles/reviewer/role.md +75 -75
  1299. package/.claude/skills/team-perf-opt/roles/strategist/role.md +94 -94
  1300. package/.claude/skills/team-perf-opt/specs/pipelines.md +65 -65
  1301. package/.claude/skills/team-planex/SKILL.md +137 -137
  1302. package/.claude/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  1303. package/.claude/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -87
  1304. package/.claude/skills/team-planex/roles/coordinator/commands/monitor.md +195 -195
  1305. package/.claude/skills/team-planex/roles/coordinator/role.md +140 -140
  1306. package/.claude/skills/team-planex/roles/executor/role.md +91 -91
  1307. package/.claude/skills/team-planex/roles/planner/role.md +119 -119
  1308. package/.claude/skills/team-planex/specs/pipelines.md +93 -93
  1309. package/.claude/skills/team-quality-assurance/SKILL.md +147 -147
  1310. package/.claude/skills/team-quality-assurance/roles/analyst/role.md +88 -88
  1311. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  1312. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -111
  1313. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -250
  1314. package/.claude/skills/team-quality-assurance/roles/coordinator/role.md +143 -143
  1315. package/.claude/skills/team-quality-assurance/roles/executor/role.md +66 -66
  1316. package/.claude/skills/team-quality-assurance/roles/generator/role.md +68 -68
  1317. package/.claude/skills/team-quality-assurance/roles/scout/role.md +79 -75
  1318. package/.claude/skills/team-quality-assurance/roles/strategist/role.md +71 -71
  1319. package/.claude/skills/team-quality-assurance/specs/pipelines.md +115 -115
  1320. package/.claude/skills/team-quality-assurance/specs/team-config.json +8 -8
  1321. package/.claude/skills/team-review/SKILL.md +147 -147
  1322. package/.claude/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  1323. package/.claude/skills/team-review/roles/coordinator/commands/dispatch.md +91 -91
  1324. package/.claude/skills/team-review/roles/coordinator/commands/monitor.md +224 -224
  1325. package/.claude/skills/team-review/roles/coordinator/role.md +132 -132
  1326. package/.claude/skills/team-review/roles/fixer/role.md +76 -76
  1327. package/.claude/skills/team-review/specs/dimensions.md +82 -82
  1328. package/.claude/skills/team-review/specs/pipelines.md +102 -102
  1329. package/.claude/skills/team-roadmap-dev/SKILL.md +169 -169
  1330. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  1331. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -212
  1332. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +477 -477
  1333. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -90
  1334. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -137
  1335. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -287
  1336. package/.claude/skills/team-roadmap-dev/roles/coordinator/role.md +302 -302
  1337. package/.claude/skills/team-roadmap-dev/roles/executor/role.md +72 -72
  1338. package/.claude/skills/team-roadmap-dev/roles/planner/role.md +86 -86
  1339. package/.claude/skills/team-roadmap-dev/roles/verifier/role.md +74 -74
  1340. package/.claude/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  1341. package/.claude/skills/team-roadmap-dev/specs/team-config.json +3 -3
  1342. package/.claude/skills/team-swarm/SKILL.md +178 -178
  1343. package/.claude/skills/team-tech-debt/SKILL.md +128 -128
  1344. package/.claude/skills/team-tech-debt/roles/assessor/role.md +77 -77
  1345. package/.claude/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  1346. package/.claude/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -156
  1347. package/.claude/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -209
  1348. package/.claude/skills/team-tech-debt/roles/coordinator/role.md +123 -123
  1349. package/.claude/skills/team-tech-debt/roles/executor/role.md +1 -1
  1350. package/.claude/skills/team-tech-debt/roles/planner/role.md +69 -69
  1351. package/.claude/skills/team-tech-debt/roles/scanner/role.md +90 -90
  1352. package/.claude/skills/team-tech-debt/roles/validator/role.md +2 -2
  1353. package/.claude/skills/team-tech-debt/specs/pipelines.md +47 -47
  1354. package/.claude/skills/team-tech-debt/specs/team-config.json +5 -5
  1355. package/.claude/skills/team-testing/SKILL.md +143 -143
  1356. package/.claude/skills/team-testing/roles/analyst/role.md +103 -103
  1357. package/.claude/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  1358. package/.claude/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -108
  1359. package/.claude/skills/team-testing/roles/coordinator/commands/monitor.md +257 -257
  1360. package/.claude/skills/team-testing/roles/coordinator/role.md +134 -134
  1361. package/.claude/skills/team-testing/roles/executor/role.md +2 -2
  1362. package/.claude/skills/team-testing/roles/generator/role.md +1 -1
  1363. package/.claude/skills/team-testing/roles/strategist/role.md +83 -83
  1364. package/.claude/skills/team-testing/specs/pipelines.md +101 -101
  1365. package/.claude/skills/team-ui-polish/SKILL.md +141 -141
  1366. package/.claude/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -77
  1367. package/.claude/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -194
  1368. package/.claude/skills/team-ui-polish/roles/coordinator/commands/monitor.md +212 -212
  1369. package/.claude/skills/team-ui-polish/roles/coordinator/role.md +170 -170
  1370. package/.claude/skills/team-ui-polish/roles/diagnostician/role.md +160 -160
  1371. package/.claude/skills/team-ui-polish/roles/optimizer/role.md +225 -225
  1372. package/.claude/skills/team-ui-polish/roles/scanner/role.md +356 -356
  1373. package/.claude/skills/team-ui-polish/roles/verifier/role.md +142 -142
  1374. package/.claude/skills/team-ui-polish/specs/anti-patterns.md +141 -141
  1375. package/.claude/skills/team-ui-polish/specs/design-standards.md +356 -356
  1376. package/.claude/skills/team-ui-polish/specs/fix-strategies.md +235 -235
  1377. package/.claude/skills/team-ui-polish/specs/pipelines.md +81 -81
  1378. package/.claude/skills/team-ui-polish/specs/scoring-guide.md +162 -162
  1379. package/.claude/skills/team-uidesign/SKILL.md +144 -144
  1380. package/.claude/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  1381. package/.claude/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -185
  1382. package/.claude/skills/team-uidesign/roles/coordinator/commands/monitor.md +216 -216
  1383. package/.claude/skills/team-uidesign/roles/coordinator/role.md +168 -168
  1384. package/.claude/skills/team-uidesign/roles/designer/role.md +93 -93
  1385. package/.claude/skills/team-uidesign/roles/implementer/role.md +94 -94
  1386. package/.claude/skills/team-uidesign/roles/researcher/role.md +101 -101
  1387. package/.claude/skills/team-uidesign/roles/reviewer/role.md +69 -69
  1388. package/.claude/skills/team-uidesign/specs/anti-patterns.md +211 -211
  1389. package/.claude/skills/team-uidesign/specs/design-standards.md +329 -329
  1390. package/.claude/skills/team-uidesign/specs/pipelines.md +76 -76
  1391. package/.claude/skills/team-uidesign/specs/scoring-guide.md +114 -114
  1392. package/.claude/skills/team-uidesign/specs/ux-writing.md +86 -86
  1393. package/.claude/skills/team-ultra-analyze/SKILL.md +173 -173
  1394. package/.claude/skills/team-ultra-analyze/roles/analyst/role.md +98 -98
  1395. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  1396. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -285
  1397. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +372 -372
  1398. package/.claude/skills/team-ultra-analyze/roles/coordinator/role.md +247 -247
  1399. package/.claude/skills/team-ultra-analyze/roles/discussant/role.md +107 -107
  1400. package/.claude/skills/team-ultra-analyze/roles/explorer/role.md +82 -75
  1401. package/.claude/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -78
  1402. package/.claude/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  1403. package/.claude/skills/team-ultra-analyze/specs/team-config.json +6 -6
  1404. package/.claude/skills/team-ux-improve/SKILL.md +151 -151
  1405. package/.claude/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  1406. package/.claude/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -200
  1407. package/.claude/skills/team-ux-improve/roles/coordinator/commands/monitor.md +186 -186
  1408. package/.claude/skills/team-ux-improve/roles/coordinator/role.md +142 -142
  1409. package/.claude/skills/team-ux-improve/roles/designer/role.md +152 -152
  1410. package/.claude/skills/team-ux-improve/roles/diagnoser/role.md +108 -108
  1411. package/.claude/skills/team-ux-improve/roles/explorer/role.md +77 -77
  1412. package/.claude/skills/team-ux-improve/roles/implementer/role.md +102 -102
  1413. package/.claude/skills/team-ux-improve/roles/scanner/role.md +135 -135
  1414. package/.claude/skills/team-ux-improve/roles/tester/role.md +84 -84
  1415. package/.claude/skills/team-ux-improve/specs/anti-patterns.md +103 -103
  1416. package/.claude/skills/team-ux-improve/specs/design-standards.md +54 -54
  1417. package/.claude/skills/team-ux-improve/specs/heuristics.md +88 -88
  1418. package/.claude/skills/team-ux-improve/specs/pipelines.md +54 -54
  1419. package/.claude/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -49
  1420. package/.claude/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -34
  1421. package/.claude/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -40
  1422. package/.claude/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -43
  1423. package/.claude/skills/team-visual-a11y/SKILL.md +156 -156
  1424. package/.claude/skills/team-visual-a11y/roles/color-auditor/role.md +178 -178
  1425. package/.claude/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -72
  1426. package/.claude/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -250
  1427. package/.claude/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +236 -236
  1428. package/.claude/skills/team-visual-a11y/roles/coordinator/role.md +169 -169
  1429. package/.claude/skills/team-visual-a11y/roles/fix-implementer/role.md +246 -246
  1430. package/.claude/skills/team-visual-a11y/roles/focus-auditor/role.md +222 -222
  1431. package/.claude/skills/team-visual-a11y/roles/remediation-planner/role.md +206 -206
  1432. package/.claude/skills/team-visual-a11y/roles/typo-auditor/role.md +185 -185
  1433. package/.claude/skills/team-visual-a11y/specs/focus-patterns.md +325 -325
  1434. package/.claude/skills/team-visual-a11y/specs/oklch-standards.md +130 -130
  1435. package/.claude/skills/team-visual-a11y/specs/pipelines.md +98 -98
  1436. package/.claude/skills/team-visual-a11y/specs/typography-scale.md +165 -165
  1437. package/.claude/skills/team-visual-a11y/specs/wcag-matrix.md +133 -133
  1438. package/.codex/skills/codify-to-knowhow/SKILL.md +3 -3
  1439. package/.codex/skills/domain-add/SKILL.md +79 -0
  1440. package/.codex/skills/domain-discover/SKILL.md +43 -0
  1441. package/.codex/skills/domain-list/SKILL.md +38 -0
  1442. package/.codex/skills/learn-decompose/SKILL.md +1 -1
  1443. package/.codex/skills/learn-follow/SKILL.md +0 -3
  1444. package/.codex/skills/learn-investigate/SKILL.md +1 -4
  1445. package/.codex/skills/learn-retro/SKILL.md +0 -2
  1446. package/.codex/skills/maestro/SKILL.md +565 -559
  1447. package/.codex/skills/maestro-amend/SKILL.md +0 -2
  1448. package/.codex/skills/maestro-analyze/SKILL.md +19 -6
  1449. package/.codex/skills/maestro-blueprint/SKILL.md +2 -6
  1450. package/.codex/skills/maestro-brainstorm/SKILL.md +19 -5
  1451. package/.codex/skills/maestro-collab/SKILL.md +16 -3
  1452. package/.codex/skills/maestro-companion/SKILL.md +5 -7
  1453. package/.codex/skills/maestro-composer/SKILL.md +2 -2
  1454. package/.codex/skills/maestro-execute/SKILL.md +2 -2
  1455. package/.codex/skills/maestro-fork/SKILL.md +156 -158
  1456. package/.codex/skills/maestro-grill/SKILL.md +2 -3
  1457. package/.codex/skills/maestro-impeccable/SKILL.md +1 -1
  1458. package/.codex/skills/maestro-init/SKILL.md +161 -161
  1459. package/.codex/skills/maestro-milestone-audit/SKILL.md +202 -202
  1460. package/.codex/skills/maestro-milestone-complete/SKILL.md +1 -1
  1461. package/.codex/skills/maestro-next/SKILL.md +12 -5
  1462. package/.codex/skills/maestro-overlay/SKILL.md +119 -119
  1463. package/.codex/skills/maestro-plan/SKILL.md +18 -3
  1464. package/.codex/skills/maestro-quick/SKILL.md +2 -2
  1465. package/.codex/skills/maestro-ralph/SKILL.md +4 -3
  1466. package/.codex/skills/maestro-roadmap/SKILL.md +2 -4
  1467. package/.codex/skills/maestro-tools-execute/SKILL.md +3 -3
  1468. package/.codex/skills/maestro-tools-register/SKILL.md +2 -2
  1469. package/.codex/skills/maestro-ui-codify/SKILL.md +2 -2
  1470. package/.codex/skills/manage-codebase-refresh/SKILL.md +72 -72
  1471. package/.codex/skills/manage-issue/SKILL.md +88 -88
  1472. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  1473. package/.codex/skills/manage-learn/SKILL.md +137 -137
  1474. package/.codex/skills/manage-status/SKILL.md +75 -75
  1475. package/.codex/skills/manage-wiki/SKILL.md +0 -2
  1476. package/.codex/skills/odyssey-debug/SKILL.md +2 -4
  1477. package/.codex/skills/odyssey-improve/SKILL.md +3 -9
  1478. package/.codex/skills/odyssey-planex/SKILL.md +3 -3
  1479. package/.codex/skills/odyssey-review-test-fix/SKILL.md +2 -5
  1480. package/.codex/skills/odyssey-ui/SKILL.md +3 -6
  1481. package/.codex/skills/quality-debug/SKILL.md +1 -1
  1482. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  1483. package/.codex/skills/quality-review/SKILL.md +1 -1
  1484. package/.codex/skills/quality-test/SKILL.md +1 -1
  1485. package/.codex/skills/spec-load/SKILL.md +1 -1
  1486. package/.codex/skills/spec-setup/SKILL.md +73 -75
  1487. package/.codex/skills/team-coordinate/SKILL.md +1 -4
  1488. package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +0 -2
  1489. package/.codex/skills/team-lifecycle-v4/roles/executor/role.md +3 -3
  1490. package/.codex/skills/team-quality-assurance/roles/analyst/role.md +1 -1
  1491. package/.codex/skills/team-quality-assurance/roles/executor/role.md +1 -1
  1492. package/.codex/skills/team-quality-assurance/specs/team-config.json +8 -8
  1493. package/.codex/skills/team-review/roles/reviewer/role.md +1 -1
  1494. package/.codex/skills/team-tech-debt/roles/assessor/role.md +2 -2
  1495. package/.codex/skills/team-tech-debt/roles/planner/role.md +2 -2
  1496. package/.codex/skills/team-tech-debt/roles/scanner/role.md +2 -2
  1497. package/.codex/skills/team-tech-debt/roles/validator/role.md +1 -1
  1498. package/.codex/skills/team-tech-debt/specs/team-config.json +5 -5
  1499. package/.codex/skills/team-testing/roles/executor/role.md +2 -2
  1500. package/.codex/skills/team-testing/roles/generator/role.md +1 -1
  1501. package/chains/_intent-map.json +307 -277
  1502. package/chains/_router.json +149 -168
  1503. package/chains/blueprint-driven.json +49 -0
  1504. package/chains/grill-driven.json +51 -0
  1505. package/dashboard/dist-server/dashboard/src/server/agents/adapter-factory.js +4 -0
  1506. package/dashboard/dist-server/dashboard/src/server/agents/adapter-factory.js.map +1 -1
  1507. package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.d.ts +6 -0
  1508. package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.js +39 -0
  1509. package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.js.map +1 -0
  1510. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.d.ts +1 -1
  1511. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js.map +1 -1
  1512. package/dashboard/dist-server/dashboard/src/server/execution/execution-scheduler.d.ts +0 -10
  1513. package/dashboard/dist-server/dashboard/src/server/execution/execution-scheduler.js +0 -73
  1514. package/dashboard/dist-server/dashboard/src/server/execution/execution-scheduler.js.map +1 -1
  1515. package/dashboard/dist-server/dashboard/src/server/wiki/search.d.ts +1 -1
  1516. package/dashboard/dist-server/dashboard/src/server/wiki/search.js +16 -23
  1517. package/dashboard/dist-server/dashboard/src/server/wiki/search.js.map +1 -1
  1518. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.d.ts +11 -0
  1519. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +551 -1
  1520. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  1521. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.d.ts +6 -1
  1522. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +114 -33
  1523. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  1524. package/dashboard/dist-server/dashboard/src/shared/constants.js +2 -0
  1525. package/dashboard/dist-server/dashboard/src/shared/constants.js.map +1 -1
  1526. package/dashboard/dist-server/dashboard/src/shared/maestro-session-types.d.ts +4 -0
  1527. package/dashboard/dist-server/shared/agent-types.d.ts +3 -1
  1528. package/dashboard/dist-server/src/commands/hooks.js +55 -3
  1529. package/dashboard/dist-server/src/commands/hooks.js.map +1 -1
  1530. package/dashboard/dist-server/src/commands/install-backend.d.ts +1 -1
  1531. package/dashboard/dist-server/src/commands/install-backend.js +1 -1
  1532. package/dashboard/dist-server/src/commands/install-backend.js.map +1 -1
  1533. package/dashboard/dist-server/src/coordinator/graph-types.d.ts +6 -0
  1534. package/dashboard/dist-server/src/coordinator/graph-walker.js +7 -2
  1535. package/dashboard/dist-server/src/coordinator/graph-walker.js.map +1 -1
  1536. package/dashboard/dist-server/src/core/component-defs.d.ts +6 -0
  1537. package/dashboard/dist-server/src/core/component-defs.js +15 -0
  1538. package/dashboard/dist-server/src/core/component-defs.js.map +1 -1
  1539. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js +4 -2
  1540. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -1
  1541. package/dashboard/dist-server/src/graph/kg/extraction/knowledge-extractor-registry.js +6 -1
  1542. package/dashboard/dist-server/src/graph/kg/extraction/knowledge-extractor-registry.js.map +1 -1
  1543. package/dashboard/dist-server/src/hooks/session-context.js +37 -1
  1544. package/dashboard/dist-server/src/hooks/session-context.js.map +1 -1
  1545. package/dashboard/dist-server/src/hooks/spec-injector.js +7 -8
  1546. package/dashboard/dist-server/src/hooks/spec-injector.js.map +1 -1
  1547. package/dashboard/dist-server/src/search/daemon-client.d.ts +33 -0
  1548. package/dashboard/dist-server/src/search/daemon-client.js +115 -0
  1549. package/dashboard/dist-server/src/search/daemon-client.js.map +1 -0
  1550. package/dashboard/dist-server/src/search/daemon.d.ts +42 -0
  1551. package/dashboard/dist-server/src/search/daemon.js +180 -0
  1552. package/dashboard/dist-server/src/search/daemon.js.map +1 -0
  1553. package/dashboard/dist-server/src/tools/domain-loader.d.ts +4 -1
  1554. package/dashboard/dist-server/src/tools/domain-loader.js +56 -25
  1555. package/dashboard/dist-server/src/tools/domain-loader.js.map +1 -1
  1556. package/dashboard/dist-server/src/tools/domain-schema.d.ts +1 -1
  1557. package/dashboard/dist-server/src/tools/domain-schema.js +1 -1
  1558. package/dashboard/dist-server/src/tools/spec-entry-parser.js +1 -1
  1559. package/dashboard/dist-server/src/tools/spec-entry-parser.js.map +1 -1
  1560. package/dashboard/dist-server/src/tools/spec-loader.js +2 -2
  1561. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
  1562. package/dist/shared/agent-types.d.ts +3 -1
  1563. package/dist/shared/agent-types.d.ts.map +1 -1
  1564. package/dist/src/agents/api-explore/agent-loop.d.ts +14 -0
  1565. package/dist/src/agents/api-explore/agent-loop.d.ts.map +1 -0
  1566. package/dist/src/agents/api-explore/agent-loop.js +86 -0
  1567. package/dist/src/agents/api-explore/agent-loop.js.map +1 -0
  1568. package/dist/src/agents/api-explore/config.d.ts +46 -0
  1569. package/dist/src/agents/api-explore/config.d.ts.map +1 -0
  1570. package/dist/src/agents/api-explore/config.js +102 -0
  1571. package/dist/src/agents/api-explore/config.js.map +1 -0
  1572. package/dist/src/agents/api-explore/index.d.ts +2 -0
  1573. package/dist/src/agents/api-explore/index.d.ts.map +1 -0
  1574. package/dist/src/agents/api-explore/index.js +107 -0
  1575. package/dist/src/agents/api-explore/index.js.map +1 -0
  1576. package/dist/src/agents/api-explore/llm.d.ts +30 -0
  1577. package/dist/src/agents/api-explore/llm.d.ts.map +1 -0
  1578. package/dist/src/agents/api-explore/llm.js +184 -0
  1579. package/dist/src/agents/api-explore/llm.js.map +1 -0
  1580. package/dist/src/agents/api-explore/prompt-parser.d.ts +23 -0
  1581. package/dist/src/agents/api-explore/prompt-parser.d.ts.map +1 -0
  1582. package/dist/src/agents/api-explore/prompt-parser.js +73 -0
  1583. package/dist/src/agents/api-explore/prompt-parser.js.map +1 -0
  1584. package/dist/src/agents/api-explore/runner.d.ts +65 -0
  1585. package/dist/src/agents/api-explore/runner.d.ts.map +1 -0
  1586. package/dist/src/agents/api-explore/runner.js +196 -0
  1587. package/dist/src/agents/api-explore/runner.js.map +1 -0
  1588. package/dist/src/agents/api-explore/session.d.ts +23 -0
  1589. package/dist/src/agents/api-explore/session.d.ts.map +1 -0
  1590. package/dist/src/agents/api-explore/session.js +57 -0
  1591. package/dist/src/agents/api-explore/session.js.map +1 -0
  1592. package/dist/src/agents/api-explore/stream-json-emitter.d.ts +10 -0
  1593. package/dist/src/agents/api-explore/stream-json-emitter.d.ts.map +1 -0
  1594. package/dist/src/agents/api-explore/stream-json-emitter.js +19 -0
  1595. package/dist/src/agents/api-explore/stream-json-emitter.js.map +1 -0
  1596. package/dist/src/agents/api-explore/system-prompt.d.ts +2 -0
  1597. package/dist/src/agents/api-explore/system-prompt.d.ts.map +1 -0
  1598. package/dist/src/agents/api-explore/system-prompt.js +31 -0
  1599. package/dist/src/agents/api-explore/system-prompt.js.map +1 -0
  1600. package/dist/src/agents/api-explore/tools.d.ts +11 -0
  1601. package/dist/src/agents/api-explore/tools.d.ts.map +1 -0
  1602. package/dist/src/agents/api-explore/tools.js +168 -0
  1603. package/dist/src/agents/api-explore/tools.js.map +1 -0
  1604. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  1605. package/dist/src/agents/cli-agent-runner.js +3 -0
  1606. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  1607. package/dist/src/cli.js +6 -2
  1608. package/dist/src/cli.js.map +1 -1
  1609. package/dist/src/commands/coordinate.d.ts.map +1 -1
  1610. package/dist/src/commands/coordinate.js +2 -0
  1611. package/dist/src/commands/coordinate.js.map +1 -1
  1612. package/dist/src/commands/domain.d.ts.map +1 -1
  1613. package/dist/src/commands/domain.js +5 -4
  1614. package/dist/src/commands/domain.js.map +1 -1
  1615. package/dist/src/commands/explore.d.ts +7 -0
  1616. package/dist/src/commands/explore.d.ts.map +1 -0
  1617. package/dist/src/commands/explore.js +201 -0
  1618. package/dist/src/commands/explore.js.map +1 -0
  1619. package/dist/src/commands/hooks.d.ts.map +1 -1
  1620. package/dist/src/commands/hooks.js +55 -3
  1621. package/dist/src/commands/hooks.js.map +1 -1
  1622. package/dist/src/commands/install-backend.d.ts +1 -1
  1623. package/dist/src/commands/install-backend.d.ts.map +1 -1
  1624. package/dist/src/commands/install-backend.js +1 -1
  1625. package/dist/src/commands/install-backend.js.map +1 -1
  1626. package/dist/src/commands/install.d.ts.map +1 -1
  1627. package/dist/src/commands/install.js +7 -2
  1628. package/dist/src/commands/install.js.map +1 -1
  1629. package/dist/src/commands/load.d.ts +12 -0
  1630. package/dist/src/commands/load.d.ts.map +1 -0
  1631. package/dist/src/commands/load.js +185 -0
  1632. package/dist/src/commands/load.js.map +1 -0
  1633. package/dist/src/commands/search.d.ts +35 -4
  1634. package/dist/src/commands/search.d.ts.map +1 -1
  1635. package/dist/src/commands/search.js +425 -97
  1636. package/dist/src/commands/search.js.map +1 -1
  1637. package/dist/src/commands/update.d.ts.map +1 -1
  1638. package/dist/src/commands/update.js +50 -47
  1639. package/dist/src/commands/update.js.map +1 -1
  1640. package/dist/src/commands/wiki.d.ts.map +1 -1
  1641. package/dist/src/commands/wiki.js +29 -28
  1642. package/dist/src/commands/wiki.js.map +1 -1
  1643. package/dist/src/commands/workspace.d.ts.map +1 -1
  1644. package/dist/src/commands/workspace.js +9 -3
  1645. package/dist/src/commands/workspace.js.map +1 -1
  1646. package/dist/src/config/cli-tools-defaults.json +2 -1
  1647. package/dist/src/coordinator/graph-types.d.ts +6 -0
  1648. package/dist/src/coordinator/graph-types.d.ts.map +1 -1
  1649. package/dist/src/coordinator/graph-walker.d.ts.map +1 -1
  1650. package/dist/src/coordinator/graph-walker.js +7 -2
  1651. package/dist/src/coordinator/graph-walker.js.map +1 -1
  1652. package/dist/src/core/component-defs.d.ts +6 -0
  1653. package/dist/src/core/component-defs.d.ts.map +1 -1
  1654. package/dist/src/core/component-defs.js +15 -0
  1655. package/dist/src/core/component-defs.js.map +1 -1
  1656. package/dist/src/core/install-profile.d.ts +7 -0
  1657. package/dist/src/core/install-profile.d.ts.map +1 -1
  1658. package/dist/src/core/install-profile.js +64 -0
  1659. package/dist/src/core/install-profile.js.map +1 -1
  1660. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.d.ts.map +1 -1
  1661. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.js +4 -2
  1662. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -1
  1663. package/dist/src/graph/kg/extraction/knowledge-extractor-registry.d.ts.map +1 -1
  1664. package/dist/src/graph/kg/extraction/knowledge-extractor-registry.js +6 -1
  1665. package/dist/src/graph/kg/extraction/knowledge-extractor-registry.js.map +1 -1
  1666. package/dist/src/graph/kg/surface/cli.d.ts.map +1 -1
  1667. package/dist/src/graph/kg/surface/cli.js +7 -3
  1668. package/dist/src/graph/kg/surface/cli.js.map +1 -1
  1669. package/dist/src/hooks/plugins/explore-plugin.d.ts +16 -0
  1670. package/dist/src/hooks/plugins/explore-plugin.d.ts.map +1 -0
  1671. package/dist/src/hooks/plugins/explore-plugin.js +63 -0
  1672. package/dist/src/hooks/plugins/explore-plugin.js.map +1 -0
  1673. package/dist/src/hooks/plugins/index.d.ts +2 -0
  1674. package/dist/src/hooks/plugins/index.d.ts.map +1 -1
  1675. package/dist/src/hooks/plugins/index.js +1 -0
  1676. package/dist/src/hooks/plugins/index.js.map +1 -1
  1677. package/dist/src/hooks/session-context.d.ts.map +1 -1
  1678. package/dist/src/hooks/session-context.js +37 -1
  1679. package/dist/src/hooks/session-context.js.map +1 -1
  1680. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  1681. package/dist/src/hooks/spec-injector.js +7 -8
  1682. package/dist/src/hooks/spec-injector.js.map +1 -1
  1683. package/dist/src/i18n/detect.d.ts +2 -1
  1684. package/dist/src/i18n/detect.d.ts.map +1 -1
  1685. package/dist/src/i18n/detect.js +32 -8
  1686. package/dist/src/i18n/detect.js.map +1 -1
  1687. package/dist/src/ralph/cmd-next.d.ts.map +1 -1
  1688. package/dist/src/ralph/cmd-next.js +74 -2
  1689. package/dist/src/ralph/cmd-next.js.map +1 -1
  1690. package/dist/src/ralph/status-schema.d.ts +1 -0
  1691. package/dist/src/ralph/status-schema.d.ts.map +1 -1
  1692. package/dist/src/search/daemon-client.d.ts +34 -0
  1693. package/dist/src/search/daemon-client.d.ts.map +1 -0
  1694. package/dist/src/search/daemon-client.js +115 -0
  1695. package/dist/src/search/daemon-client.js.map +1 -0
  1696. package/dist/src/search/daemon.d.ts +43 -0
  1697. package/dist/src/search/daemon.d.ts.map +1 -0
  1698. package/dist/src/search/daemon.js +182 -0
  1699. package/dist/src/search/daemon.js.map +1 -0
  1700. package/dist/src/tools/__tests__/domain-search-debug.js +3 -1
  1701. package/dist/src/tools/__tests__/domain-search-debug.js.map +1 -1
  1702. package/dist/src/tools/domain-loader.d.ts +4 -1
  1703. package/dist/src/tools/domain-loader.d.ts.map +1 -1
  1704. package/dist/src/tools/domain-loader.js +56 -25
  1705. package/dist/src/tools/domain-loader.js.map +1 -1
  1706. package/dist/src/tools/domain-schema.d.ts +1 -1
  1707. package/dist/src/tools/domain-schema.js +1 -1
  1708. package/dist/src/tools/spec-entry-parser.js +1 -1
  1709. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  1710. package/dist/src/tools/spec-loader.js +2 -2
  1711. package/dist/src/tools/spec-loader.js.map +1 -1
  1712. package/dist/src/tools/store-knowhow.d.ts.map +1 -1
  1713. package/dist/src/tools/store-knowhow.js +4 -4
  1714. package/dist/src/tools/store-knowhow.js.map +1 -1
  1715. package/dist/src/tui/install-ui/BackupConfig.js +1 -1
  1716. package/dist/src/tui/install-ui/BackupConfig.js.map +1 -1
  1717. package/dist/src/tui/install-ui/CyberItem.d.ts.map +1 -1
  1718. package/dist/src/tui/install-ui/CyberItem.js +7 -10
  1719. package/dist/src/tui/install-ui/CyberItem.js.map +1 -1
  1720. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -1
  1721. package/dist/src/tui/install-ui/ExtraMcpConfig.js +2 -4
  1722. package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -1
  1723. package/dist/src/tui/install-ui/GroupedHub.d.ts.map +1 -1
  1724. package/dist/src/tui/install-ui/GroupedHub.js +6 -6
  1725. package/dist/src/tui/install-ui/GroupedHub.js.map +1 -1
  1726. package/dist/src/tui/install-ui/HooksConfig.d.ts.map +1 -1
  1727. package/dist/src/tui/install-ui/HooksConfig.js +1 -1
  1728. package/dist/src/tui/install-ui/HooksConfig.js.map +1 -1
  1729. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  1730. package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
  1731. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  1732. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  1733. package/dist/src/tui/install-ui/InstallExecution.js +3 -3
  1734. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  1735. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  1736. package/dist/src/tui/install-ui/InstallFlow.js +1 -1
  1737. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  1738. package/dist/src/tui/install-ui/InstallResult.js +3 -3
  1739. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  1740. package/dist/src/tui/install-ui/McpConfig.js +1 -1
  1741. package/dist/src/tui/install-ui/McpConfig.js.map +1 -1
  1742. package/dist/src/tui/install-ui/StatuslineConfig.js +2 -2
  1743. package/dist/src/tui/install-ui/StatuslineConfig.js.map +1 -1
  1744. package/dist/src/tui/install-ui/StepSelector.js +1 -1
  1745. package/dist/src/tui/install-ui/StepSelector.js.map +1 -1
  1746. package/dist/src/utils/cli-format.d.ts +3 -3
  1747. package/dist/src/utils/cli-format.d.ts.map +1 -1
  1748. package/dist/src/utils/cli-format.js +32 -21
  1749. package/dist/src/utils/cli-format.js.map +1 -1
  1750. package/dist/src/utils/update-notices.js +12 -0
  1751. package/dist/src/utils/update-notices.js.map +1 -1
  1752. package/package.json +5 -3
  1753. package/shared/agent-types.ts +3 -1
  1754. package/templates/search-tools.md +22 -6
  1755. package/workflows/agy-instructions.md +0 -4
  1756. package/workflows/analyze.md +2 -2
  1757. package/workflows/boundary-grill.md +50 -0
  1758. package/workflows/brainstorm.md +6 -5
  1759. package/workflows/claude-instructions.md +51 -21
  1760. package/workflows/codebase-rebuild.md +0 -1
  1761. package/workflows/codex-instructions.md +51 -21
  1762. package/workflows/debug.md +0 -4
  1763. package/workflows/domain-add.md +115 -0
  1764. package/workflows/execute.md +7 -0
  1765. package/workflows/explore-usage.md +133 -0
  1766. package/workflows/finish-work.md +2 -6
  1767. package/workflows/fork.md +0 -4
  1768. package/workflows/grill.md +14 -1
  1769. package/workflows/harvest.md +0 -3
  1770. package/workflows/impeccable/audit.md +0 -2
  1771. package/workflows/impeccable/codex.md +0 -4
  1772. package/workflows/init.md +9 -0
  1773. package/workflows/interview-mechanics.md +3 -2
  1774. package/workflows/issue-analyze.md +0 -5
  1775. package/workflows/issue-discover.md +4 -4
  1776. package/workflows/issue-gaps-analyze.codex.md +1 -7
  1777. package/workflows/issue-gaps-analyze.md +3 -4
  1778. package/workflows/knowledge-audit.md +0 -4
  1779. package/workflows/learn.md +0 -6
  1780. package/workflows/maestro.codex.md +0 -4
  1781. package/workflows/maestro.md +31 -18
  1782. package/workflows/merge.md +0 -4
  1783. package/workflows/milestone-complete.md +0 -4
  1784. package/workflows/overlays.md +0 -10
  1785. package/workflows/plan.md +0 -2
  1786. package/workflows/roadmap-common.md +0 -4
  1787. package/workflows/tdd.md +0 -2
  1788. package/workflows/tools-spec.md +1 -7
  1789. package/workflows/ui-codify-extract.md +0 -2
  1790. package/workflows/ui-codify-package.md +0 -2
  1791. package/chains/singles/spec-generate.json +0 -31
@@ -1,548 +1,548 @@
1
- ---
2
- name: maestro-universal-workflow
3
- description: Dynamic adversarial workflow generator — scan library, match or generate, execute, persist
4
- argument-hint: "<intent> [--name <slug>] [--depth shallow|standard|deep] [--dry-run] [--from <script>] [--resume <runId>]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Workflow
13
- - AskUserQuestion
14
- ---
15
- <purpose>
16
- Dynamic workflow generator: scan library for matches or generate task-specific Workflow scripts
17
- on-the-fly with adversarial patterns. Scripts persist at `~/.maestro/workflows/dynamic/uwf-*.js`.
18
- </purpose>
19
-
20
- <context>
21
- $ARGUMENTS — intent text with optional flags.
22
-
23
- **Parse:**
24
- ```
25
- --name <slug> → 指定生成脚本名(默认从 intent 自动生成)
26
- --depth <level> → shallow | standard | deep(默认 standard)
27
- --dry-run → 只生成脚本,不执行
28
- --from <script> → 基于已有脚本进行修改(uwf-xxx 或 wf-xxx)
29
- --resume <runId> → 恢复之前的运行(透传给 Workflow)
30
- Remaining → intent
31
- ```
32
-
33
- **Library locations:**
34
- - Fixed scripts: `~/.maestro/workflows/swarm/wf-*.js`
35
- - Dynamic scripts: `~/.maestro/workflows/dynamic/uwf-*.js`
36
- </context>
37
-
38
- <state_machine>
39
-
40
- <states>
41
- S_PARSE — 解析参数和意图 PERSIST: —
42
- S_SCAN — 扫描现有 workflow 库匹配 PERSIST: —
43
- S_DECIDE — 用户选择:复用现有 / 生成新脚本 PERSIST: —
44
- S_DESIGN — 分析任务、设计工作流结构 PERSIST: —
45
- S_GENERATE — 生成脚本 → 写入文件 → node --check 验证 PERSIST: uwf-{slug}.js
46
- S_EXECUTE — 调用 Workflow 工具执行 PERSIST: —
47
- S_PERSIST — 保存脚本到 dynamic/ 目录 PERSIST: —
48
- </states>
49
-
50
- <transitions>
51
-
52
- S_PARSE:
53
- → S_SCAN WHEN: intent parsed DO: A_PARSE_ARGS
54
- → END WHEN: no intent
55
-
56
- S_SCAN:
57
- → S_DECIDE WHEN: matches found DO: A_SCAN_LIBRARY
58
- → S_DESIGN WHEN: no matches DO: A_SCAN_LIBRARY
59
-
60
- S_DECIDE:
61
- → S_EXECUTE WHEN: user picks existing script DO: —
62
- → S_DESIGN WHEN: user wants new script DO: —
63
- → S_DESIGN WHEN: --from specified DO: —
64
-
65
- S_DESIGN:
66
- → S_GENERATE DO: A_DESIGN_WORKFLOW
67
-
68
- S_GENERATE:
69
- → S_EXECUTE WHEN: Write + node --check pass AND NOT --dry-run DO: A_GENERATE_SCRIPT
70
- → S_PERSIST WHEN: --dry-run (file already written) DO: A_GENERATE_SCRIPT
71
- → S_GENERATE WHEN: node --check fails (retry ≤2) DO: A_GENERATE_SCRIPT (fix & retry)
72
- → END WHEN: node --check fails after 2 retries DO: report E003
73
-
74
- S_EXECUTE:
75
- → S_PERSIST WHEN: workflow completed DO: A_EXECUTE_WORKFLOW
76
- → END WHEN: workflow failed
77
-
78
- S_PERSIST:
79
- → END DO: A_PERSIST_SCRIPT
80
-
81
- </transitions>
82
-
83
- <actions>
84
-
85
- ### A_PARSE_ARGS
86
-
87
- 1. 提取 flags: `--name`, `--depth`, `--dry-run`, `--from`, `--resume`
88
- 2. 剩余文本作为 intent
89
- 3. depth 默认 `standard`
90
- 4. 若有 `--resume`,跳到 S_EXECUTE(直接恢复)
91
- 5. 若有 `--from`,定位源脚本路径
92
-
93
- ### A_SCAN_LIBRARY
94
-
95
- 扫描两个目录,读取每个 `.js` 文件的 `meta` 块提取 `name`、`description`、`whenToUse`:
96
-
97
- 1. **Fixed scripts**: 展开 `~/.maestro/workflows/swarm/wf-*.js` 为绝对路径
98
- - Glob 查找所有匹配文件
99
- - 读取每个文件前 10 行,提取 `meta.name`、`meta.description`、`meta.whenToUse`
100
- 2. **Dynamic scripts**: 展开 `~/.maestro/workflows/dynamic/uwf-*.js`
101
- - 同上
102
- 3. **匹配评分**:对每个脚本,评估其 description/whenToUse 与 intent 的语义相关度
103
- 4. **输出**:
104
- - 匹配度 > 70% 的脚本列表(最多 3 个)
105
- - 每个列出:name、description、scriptPath、匹配理由
106
- - 无匹配则直接跳 S_DESIGN
107
-
108
- 若有匹配,用 AskUserQuestion 让用户选择:
109
- - 选项 1-3: 使用现有脚本(附 preview 显示脚本 meta)
110
- - 最后选项: "生成全新脚本"
111
-
112
- ### A_DESIGN_WORKFLOW
113
-
114
- 分析任务,确定工作流结构。这是核心设计步骤。
115
-
116
- **Step 1 — 任务分解**
117
-
118
- 将 intent 分解为:
119
- ```
120
- work_items: 需要完成的具体工作单元
121
- - { id, description, type: 'explore'|'analyze'|'create'|'verify'|'decide' }
122
- decision_points: 需要做出判断的节点
123
- - { id, question, type: 'go-nogo'|'pass-fail'|'select-best'|'resolve-conflict'|'assess-quality' }
124
- data_flow: 数据在工作单元间如何流动
125
- - { from, to, data_shape }
126
- ```
127
-
128
- **Step 2 — 阶段编排**
129
-
130
- 将 work_items 组织为执行阶段:
131
- ```
132
- phases: [
133
- { title, work_items[], parallel: true|false },
134
- ...
135
- ]
136
- ```
137
-
138
- 规则:
139
- - 无依赖的 work_items 放同一阶段(parallel)
140
- - 有依赖的放后续阶段
141
- - 每个 decision_point 后紧跟一个对抗决策阶段
142
-
143
- **Step 3 — 对抗模式选择**
144
-
145
- 根据 decision_point.type 和 --depth 选择对抗模式(参考 ADVERSARIAL_PATTERNS):
146
-
147
- | decision_type | shallow | standard | deep |
148
- |--------------|---------|----------|------|
149
- | go-nogo | 1 skeptic | 3-way advocacy + referee | cross-verify + 3-way advocacy + meta-skeptic |
150
- | pass-fail | 1 challenger | prosecutor/defender/judge | cross-verify + prosecutor/defender + 3-vote |
151
- | select-best | 1 critic | N proposals + judge panel | N proposals + judge + 3-critic challenge |
152
- | resolve-conflict | 1 mediator | 3 philosophy proposals + arbitrator | 3 proposals + arbitrator + meta-skeptic |
153
- | assess-quality | 1 skeptic | 3-vote (strict/lenient/objective) | cross-verify + 3-vote + meta-skeptic |
154
-
155
- **Step 4 — Schema 设计**
156
-
157
- 为每个 agent 调用设计 JSON Schema:
158
- - 工作 agent: 任务特定 schema
159
- - 对抗 agent: 使用标准对抗 schema(见 ADVERSARIAL_PATTERNS)
160
-
161
- **Step 5 — 产出蓝图**
162
-
163
- ```
164
- blueprint: {
165
- name: 'uwf-{slug}',
166
- description: string,
167
- phases: [{ title, detail }],
168
- agents: [{ id, prompt_outline, schema_name, agentType?, phase }],
169
- adversarial_gates: [{ decision_id, pattern, agents[] }],
170
- estimated_agent_count: number,
171
- }
172
- ```
173
-
174
- 向用户展示蓝图摘要,包含预估 agent 数量。
175
- 若 `--dry-run` 则在 S_GENERATE 后停止。
176
-
177
- ### A_GENERATE_SCRIPT
178
-
179
- 根据蓝图生成完整的 JavaScript 脚本。**先写文件,再通过 scriptPath 执行**(避免内联 script 字符串的编码/转义问题)。
180
-
181
- 若 `--from` 指定了基础脚本,先 Read 源脚本,然后在其基础上修改。
182
-
183
- **脚本结构模板:**
184
-
185
- ```javascript
186
- export const meta = {
187
- name: '{blueprint.name}',
188
- description: '{English description}',
189
- whenToUse: '{English usage scenario}',
190
- phases: [
191
- { title: '{EnglishTitle}', detail: '{English detail}' },
192
- ],
193
- }
194
-
195
- // --- Schemas (top-level constants, never inline) ---
196
- const WORK_SCHEMA = { type: 'object', properties: { ... }, required: [...] }
197
- const CHALLENGE_SCHEMA = { ... }
198
-
199
- // --- Args ---
200
- const target = args?.target || 'default'
201
-
202
- // --- Phase 1: {title} ---
203
- phase('{title}')
204
- const results = await parallel([
205
- () => agent('prompt text', { label: 'work:1', phase: '{title}', schema: WORK_SCHEMA }),
206
- ])
207
-
208
- // --- Phase 2: Adversarial Gate ---
209
- phase('{adversarial_phase_title}')
210
- // 对抗模式代码 — 从 ADVERSARIAL_PATTERNS 模板生成
211
-
212
- return { ... }
213
- ```
214
-
215
- **生成规则(必须全部遵守):**
216
-
217
- | # | 规则 | 原因 |
218
- |---|------|------|
219
- | 1 | **纯 JavaScript** — 无 TypeScript 类型注解(`: string`、`interface`、泛型) | 解析器不支持 TS |
220
- | 2 | **meta 块全英文** — `name`、`description`、`whenToUse`、`phases[].title/detail` 只用 ASCII 字符 | 中文在 script 字符串序列化时触发 `\uXXXX` 解析错误 |
221
- | 3 | **禁用 API** — 不用 `Date.now()`、`Math.random()`、无参 `new Date()` | 破坏 resume 缓存匹配 |
222
- | 4 | **Schema 独立声明** — 所有 JSON Schema 在文件顶部声明为 `const XXX_SCHEMA = {...}`,agent 调用中用 `schema: XXX_SCHEMA` 引用 | 内联大 Schema 易出括号匹配错误 |
223
- | 5 | **字符串用 `+` 拼接** — agent prompt 中嵌入变量用 `'text ' + variable + ' more text'`,**不用模板字符串** | 反引号嵌套和 `${}` 转义是最常见的解析错误源 |
224
- | 6 | **回调用 `function`** — `array.filter(function(x) { return x })` 而非箭头函数 | 箭头函数隐式返回对象 `() => ({})` 易遗漏外层括号 |
225
- | 7 | **`phase` 不做变量名** — 不遮蔽全局 `phase()` 函数 | 遮蔽后 `phase('X')` 调用会崩溃 |
226
- | 8 | **路径用正斜杠** — 字符串中路径用 `src/auth/` 不用 `src\\auth\\` | `\a`、`\u` 等被解析为转义序列 |
227
- | 9 | **`agentType`** — 仅在有明确匹配时设置(如 `Explore`、`workflow-analyzer`) | 无效 agentType 导致运行时错误 |
228
- | 10 | **null 安全** — 链式访问用 `?.`,数组操作前加 `.filter(Boolean)` | agent 返回 null(用户跳过)时链式调用崩溃 |
229
-
230
- **常见错误对照:**
231
-
232
- ```javascript
233
- // BAD — meta 中文导致 \uXXXX 解析错误
234
- export const meta = { name: 'uwf-x', description: '参数审计' }
235
- // GOOD
236
- export const meta = { name: 'uwf-x', description: 'Parameter audit for unused/ambiguous/dead params' }
237
-
238
- // BAD — 模板字符串嵌套
239
- agent(`Analyze ${item.name} for ${reason}`)
240
- // GOOD — 字符串拼接
241
- agent('Analyze ' + item.name + ' for ' + reason)
242
-
243
- // BAD — Schema 内联在 agent 调用中
244
- agent('prompt', { schema: { type: 'object', properties: { a: { type: 'string' }, b: { type: 'array', items: { type: 'object', properties: { ... } } } } } })
245
- // GOOD — Schema 顶部声明
246
- const MY_SCHEMA = { type: 'object', properties: { a: { type: 'string' } }, required: ['a'] }
247
- agent('prompt', { schema: MY_SCHEMA })
248
-
249
- // BAD — 箭头函数隐式返回对象
250
- results.map(r => ({ ...r, verified: true }))
251
- // GOOD — function + 显式 return
252
- results.map(function(r) { return Object.assign({}, r, { verified: true }) })
253
-
254
- // BAD — 反斜杠路径
255
- const path = 'C:\Users\project\src'
256
- // GOOD
257
- const path = 'C:/Users/project/src' // 或直接不在脚本中硬编码路径
258
- ```
259
-
260
- **Step 1 — 生成脚本内容**
261
-
262
- 按蓝图结构 + 上述规则生成完整 JavaScript 字符串。agent prompt 内部可以使用中文(prompt 是运行时字符串,不影响解析)。
263
-
264
- **Step 2 — 写入文件**
265
-
266
- ```
267
- Write({
268
- file_path: expandPath('~/.maestro/workflows/dynamic/uwf-{slug}.js'),
269
- content: generatedScript
270
- })
271
- ```
272
-
273
- **Step 3 — 语法验证**
274
-
275
- ```
276
- Bash({ command: 'node --check "path/to/uwf-{slug}.js"' })
277
- ```
278
-
279
- 若验证失败:
280
- 1. 读取错误信息中的行号和错误类型
281
- 2. 针对性修复(常见:遗漏逗号、括号不匹配、保留字冲突)
282
- 3. 重新 Write + 验证(最多重试 2 次)
283
- 4. 仍失败则报 E003,展示脚本内容和错误信息
284
-
285
- 验证通过后进入 S_EXECUTE(若非 `--dry-run`)。
286
-
287
- ### A_EXECUTE_WORKFLOW
288
-
289
- **必须用 scriptPath 调用**(不用 script 内联字符串):
290
-
291
- ```
292
- Workflow({
293
- scriptPath: expandPath('~/.maestro/workflows/dynamic/uwf-{slug}.js'),
294
- args: taskSpecificArgs, // 从 intent 推断
295
- resumeFromRunId: resumeId // 若有
296
- })
297
- ```
298
-
299
- 记录返回的 `runId`。脚本已在 A_GENERATE_SCRIPT 中写入文件,无需再次持久化。
300
-
301
- ### A_PERSIST_SCRIPT
302
-
303
- 脚本已在 A_GENERATE_SCRIPT Step 2 写入 `~/.maestro/workflows/dynamic/uwf-{slug}.js`。
304
-
305
- 1. 确认文件存在(Glob 检查)
306
- 2. 展示保存路径和使用方式:
307
- ```
308
- Saved: ~/.maestro/workflows/dynamic/uwf-{slug}.js
309
- Reuse: /maestro-universal-workflow --from uwf-{slug} "{new intent}"
310
- Resume: /maestro-universal-workflow --resume {runId}
311
- Via swarm: /maestro-swarm-workflow --script uwf-{slug}
312
- ```
313
-
314
- </actions>
315
-
316
- </state_machine>
317
-
318
- <adversarial_patterns>
319
-
320
- 以下是对抗决策模式的代码模板库。A_GENERATE_SCRIPT 时按 decision_type 和 depth 选用。
321
-
322
- ### PATTERN: Skeptic CrossVerify (shallow+)
323
-
324
- 用于:对并行分析结果逐项挑战。
325
-
326
- ```javascript
327
- // 每个结果被 skeptic 挑战
328
- const challenges = await pipeline(
329
- results,
330
- (result) => agent(
331
- `You are an adversarial SKEPTIC. Challenge this assessment.
332
- Original: ${JSON.stringify(result)}
333
- Your job: find counter-evidence, check for biases, verify claims against actual code.
334
- Default to challenge_result="weakened" if uncertain.`,
335
- { label: `challenge:${result.id}`, phase: '{phase}', schema: CHALLENGE_SCHEMA }
336
- )
337
- )
338
- ```
339
-
340
- CHALLENGE_SCHEMA:
341
- ```javascript
342
- const CHALLENGE_SCHEMA = {
343
- type: 'object',
344
- properties: {
345
- target: { type: 'string' },
346
- challenge_result: { type: 'string', enum: ['confirmed', 'weakened', 'overturned'] },
347
- adjusted_assessment: { type: 'string' },
348
- counter_evidence: { type: 'array', items: { type: 'string' } },
349
- confidence: { type: 'number', minimum: 0, maximum: 100 },
350
- reasoning: { type: 'string' },
351
- },
352
- required: ['target', 'challenge_result', 'confidence', 'reasoning'],
353
- }
354
- ```
355
-
356
- ### PATTERN: 3-Way Advocacy + Referee (standard+ go-nogo)
357
-
358
- 用于:go/no-go 类决策。
359
-
360
- ```javascript
361
- const advocacies = await parallel([
362
- () => agent('You are the GO ADVOCATE. Argue FOR proceeding...', { label: 'advocate:go', schema: ADVOCACY_SCHEMA }),
363
- () => agent('You are the NO-GO ADVOCATE. Argue AGAINST proceeding...', { label: 'advocate:nogo', schema: ADVOCACY_SCHEMA }),
364
- () => agent('You are the CONDITIONAL ADVOCATE. Argue for proceeding ONLY under conditions...', { label: 'advocate:conditional', schema: ADVOCACY_SCHEMA }),
365
- ])
366
- const decision = await agent('You are the REFEREE. Resolve the debate...', { label: 'referee', schema: DECISION_SCHEMA })
367
- ```
368
-
369
- ADVOCACY_SCHEMA:
370
- ```javascript
371
- const ADVOCACY_SCHEMA = {
372
- type: 'object',
373
- properties: {
374
- stance: { type: 'string' },
375
- argument: { type: 'string' },
376
- key_evidence: { type: 'array', items: { type: 'object', properties: { point: { type: 'string' }, strength: { type: 'string', enum: ['strong', 'moderate', 'weak'] } }, required: ['point'] } },
377
- weaknesses_acknowledged: { type: 'array', items: { type: 'string' } },
378
- conditions: { type: 'array', items: { type: 'string' } },
379
- confidence: { type: 'number', minimum: 0, maximum: 100 },
380
- },
381
- required: ['stance', 'argument', 'confidence'],
382
- }
383
- ```
384
-
385
- ### PATTERN: Prosecutor/Defender/Judge (standard+ pass-fail)
386
-
387
- 用于:通过/失败类判定。
388
-
389
- ```javascript
390
- const debate = await parallel([
391
- () => agent('You are the PROSECUTOR. Argue this should FAIL...', { label: 'prosecutor', schema: ARGUMENT_SCHEMA }),
392
- () => agent('You are the DEFENDER. Argue this should PASS...', { label: 'defender', schema: ARGUMENT_SCHEMA }),
393
- ])
394
- const verdict = await agent('You are the JUDGE. Resolve the debate...', { label: 'judge', schema: VERDICT_SCHEMA })
395
- ```
396
-
397
- ARGUMENT_SCHEMA:
398
- ```javascript
399
- const ARGUMENT_SCHEMA = {
400
- type: 'object',
401
- properties: {
402
- role: { type: 'string' },
403
- stance: { type: 'string', enum: ['pass', 'fail'] },
404
- argument: { type: 'string' },
405
- key_points: { type: 'array', items: { type: 'object', properties: { point: { type: 'string' }, evidence: { type: 'string' }, strength: { type: 'string', enum: ['strong', 'moderate', 'weak'] } }, required: ['point', 'evidence'] } },
406
- concessions: { type: 'array', items: { type: 'string' } },
407
- confidence: { type: 'number', minimum: 0, maximum: 100 },
408
- },
409
- required: ['role', 'stance', 'argument', 'key_points', 'confidence'],
410
- }
411
- ```
412
-
413
- ### PATTERN: 3-Vote Majority (standard+ assess-quality)
414
-
415
- 用于:质量评估、状态判定。
416
-
417
- ```javascript
418
- const votes = await parallel([
419
- () => agent('You are the STRICT voter...', { label: 'vote:strict', schema: VOTE_SCHEMA }),
420
- () => agent('You are the LENIENT voter...', { label: 'vote:lenient', schema: VOTE_SCHEMA }),
421
- () => agent('You are the OBJECTIVE voter...', { label: 'vote:objective', schema: VOTE_SCHEMA }),
422
- ])
423
- const majority = resolveVotes(votes) // majority wins, tie → objective
424
- const report = await agent('Arbitrate final report from votes...', { label: 'arbitrate', schema: REPORT_SCHEMA })
425
- ```
426
-
427
- VOTE_SCHEMA:
428
- ```javascript
429
- const VOTE_SCHEMA = {
430
- type: 'object',
431
- properties: {
432
- perspective: { type: 'string' },
433
- verdict: { type: 'string' },
434
- rationale: { type: 'string' },
435
- confidence: { type: 'number', minimum: 0, maximum: 100 },
436
- },
437
- required: ['perspective', 'verdict', 'rationale', 'confidence'],
438
- }
439
- ```
440
-
441
- ### PATTERN: Competing Proposals + Judge (standard+ select-best)
442
-
443
- 用于:方案选择。
444
-
445
- ```javascript
446
- const proposals = await parallel([
447
- () => agent('Strategy A: ...', { label: 'proposal:A', schema: PROPOSAL_SCHEMA }),
448
- () => agent('Strategy B: ...', { label: 'proposal:B', schema: PROPOSAL_SCHEMA }),
449
- () => agent('Strategy C: ...', { label: 'proposal:C', schema: PROPOSAL_SCHEMA }),
450
- ])
451
- const scores = await parallel(proposals.filter(Boolean).map(p => () =>
452
- agent(`Score this proposal: ${p.strategy}...`, { label: `judge:${p.strategy}`, schema: SCORE_SCHEMA })
453
- ))
454
- // select highest score
455
- ```
456
-
457
- ### PATTERN: Meta-Skeptic (deep only)
458
-
459
- 用于:挑战挑战者本身的发现。
460
-
461
- ```javascript
462
- const metaChallenge = await agent(
463
- `You are the META-SKEPTIC. Challenge the challengers themselves.
464
- Findings: ${digest}
465
- 1. Which findings are OVERBLOWN? (theatrical, unlikely, missing context)
466
- 2. What did they MISS? (blind spots, interactions, real risks obscured)
467
- 3. Rate overall challenge quality (1-5).`,
468
- { label: 'meta-skeptic', schema: META_CHALLENGE_SCHEMA }
469
- )
470
- ```
471
-
472
- </adversarial_patterns>
473
-
474
- <invariants>
475
- 1. **先查后建** — 必须先扫描现有库,避免重复生成相同功能的脚本
476
- 2. **对抗必选** — 每个 decision_point 必须有对应的对抗模式,不允许单 agent 决策
477
- 3. **depth 递进** — shallow ⊂ standard ⊂ deep,高 depth 包含低 depth 的所有模式
478
- 4. **纯 JS** — 生成的脚本必须是纯 JavaScript,不含 TypeScript 类型注解
479
- 5. **meta 全英文** — meta 块中 name/description/whenToUse/phases 只用 ASCII 字符(agent prompt 内可用中文)
480
- 6. **Schema 完整** — 每个 agent 调用必须有 schema,且 Schema 在文件顶部声明为独立常量
481
- 7. **先写后跑** — 脚本必须先 Write 到文件 → `node --check` 验证 → 再通过 `scriptPath` 执行(禁止内联 script 字符串)
482
- 8. **幂等命名** — 同名脚本覆盖(uwf-{slug}.js),用户可通过 --name 控制
483
- 9. **禁用 API** — 脚本内不使用 Date.now()、Math.random()、无参 new Date()
484
- 10. **变量安全** — 不使用 `phase` 作为变量名(避免遮蔽 phase() 函数)
485
- 11. **无模板字符串** — agent prompt 用 `+` 拼接,不用反引号模板(避免嵌套转义错误)
486
- 12. **无反斜杠路径** — 字符串中路径用正斜杠(`\u`、`\a` 等会被解析为转义序列)
487
- </invariants>
488
-
489
- <appendix>
490
-
491
- ### 使用示例
492
-
493
- ```bash
494
- # 自动匹配或生成
495
- /maestro-universal-workflow "评估数据库迁移方案的可行性和风险"
496
-
497
- # 指定深度
498
- /maestro-universal-workflow "审查 auth 模块的安全性" --depth deep
499
-
500
- # 只生成不执行
501
- /maestro-universal-workflow "对比 3 种缓存策略" --dry-run --name cache-eval
502
-
503
- # 基于已有脚本修改
504
- /maestro-universal-workflow "类似 analyze 但加入成本维度" --from wf-analyze
505
-
506
- # 恢复之前的运行
507
- /maestro-universal-workflow --resume wf_abc123
508
- ```
509
-
510
- ### 生成脚本示例
511
-
512
- 用户 intent: "评估 3 种 API 认证方案(JWT/OAuth2/API Key),选出最优"
513
-
514
- 生成的脚本结构:
515
- ```
516
- Phase 1: Explore — 探索代码库现有认证实现
517
- Phase 2: Evaluate — 3 个 agent 分别深入评估每种方案
518
- Phase 3: CrossVerify — skeptic 挑战每个评估结果
519
- Phase 4: Compete — 3 个 advocate 各持一种方案立场辩论
520
- Phase 5: Arbitrate — referee 根据辩论结果选出最优方案
521
- ```
522
-
523
- 预估 agent 数: 1(explore) + 3(evaluate) + 3(cross-verify) + 3(advocates) + 1(referee) = 11
524
-
525
- ### 与 swarm-workflow 的关系
526
-
527
- | 维度 | swarm-workflow | universal-workflow |
528
- |------|---------------|-------------------|
529
- | 脚本来源 | 固定 8 个预写脚本 | 动态生成 + 积累库 |
530
- | 适用范围 | 对应 8 个 maestro 命令 | 任意任务 |
531
- | 决策模式 | 脚本内硬编码 | 按 depth 动态选择 |
532
- | 持久化 | 不生成新脚本 | 保存到 dynamic/ 复用 |
533
- | 推荐场景 | 已有匹配的标准命令 | 非标准任务、新领域 |
534
-
535
- universal-workflow 扫描时会同时检查 swarm/ 和 dynamic/ 目录,
536
- 若 swarm 脚本匹配度高则推荐使用 swarm-workflow 代替。
537
-
538
- ### Error Codes
539
-
540
- | Code | Description | Recovery |
541
- |------|-------------|----------|
542
- | E001 | 无 intent | 提示用户输入 |
543
- | E002 | 设计阶段无法分解任务 | 要求更具体的 intent |
544
- | E003 | 生成的脚本语法错误 | `node --check` 失败时:读取行号+错误类型 → 针对性修复 → 重试(最多 2 次)→ 仍失败则展示脚本+错误让用户手动修改 |
545
- | E004 | Workflow 执行失败 | 展示错误,提供 --resume |
546
- | E005 | 持久化失败 | 展示脚本内容,让用户手动保存 |
547
-
548
- </appendix>
1
+ ---
2
+ name: maestro-universal-workflow
3
+ description: Dynamic adversarial workflow generator — scan library, match or generate, execute, persist
4
+ argument-hint: "<intent> [--name <slug>] [--depth shallow|standard|deep] [--dry-run] [--from <script>] [--resume <runId>]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Workflow
13
+ - AskUserQuestion
14
+ ---
15
+ <purpose>
16
+ Dynamic workflow generator: scan library for matches or generate task-specific Workflow scripts
17
+ on-the-fly with adversarial patterns. Scripts persist at `~/.maestro/workflows/dynamic/uwf-*.js`.
18
+ </purpose>
19
+
20
+ <context>
21
+ $ARGUMENTS — intent text with optional flags.
22
+
23
+ **Parse:**
24
+ ```
25
+ --name <slug> → 指定生成脚本名(默认从 intent 自动生成)
26
+ --depth <level> → shallow | standard | deep(默认 standard)
27
+ --dry-run → 只生成脚本,不执行
28
+ --from <script> → 基于已有脚本进行修改(uwf-xxx 或 wf-xxx)
29
+ --resume <runId> → 恢复之前的运行(透传给 Workflow)
30
+ Remaining → intent
31
+ ```
32
+
33
+ **Library locations:**
34
+ - Fixed scripts: `~/.maestro/workflows/swarm/wf-*.js`
35
+ - Dynamic scripts: `~/.maestro/workflows/dynamic/uwf-*.js`
36
+ </context>
37
+
38
+ <state_machine>
39
+
40
+ <states>
41
+ S_PARSE — 解析参数和意图 PERSIST: —
42
+ S_SCAN — 扫描现有 workflow 库匹配 PERSIST: —
43
+ S_DECIDE — 用户选择:复用现有 / 生成新脚本 PERSIST: —
44
+ S_DESIGN — 分析任务、设计工作流结构 PERSIST: —
45
+ S_GENERATE — 生成脚本 → 写入文件 → node --check 验证 PERSIST: uwf-{slug}.js
46
+ S_EXECUTE — 调用 Workflow 工具执行 PERSIST: —
47
+ S_PERSIST — 保存脚本到 dynamic/ 目录 PERSIST: —
48
+ </states>
49
+
50
+ <transitions>
51
+
52
+ S_PARSE:
53
+ → S_SCAN WHEN: intent parsed DO: A_PARSE_ARGS
54
+ → END WHEN: no intent
55
+
56
+ S_SCAN:
57
+ → S_DECIDE WHEN: matches found DO: A_SCAN_LIBRARY
58
+ → S_DESIGN WHEN: no matches DO: A_SCAN_LIBRARY
59
+
60
+ S_DECIDE:
61
+ → S_EXECUTE WHEN: user picks existing script DO: —
62
+ → S_DESIGN WHEN: user wants new script DO: —
63
+ → S_DESIGN WHEN: --from specified DO: —
64
+
65
+ S_DESIGN:
66
+ → S_GENERATE DO: A_DESIGN_WORKFLOW
67
+
68
+ S_GENERATE:
69
+ → S_EXECUTE WHEN: Write + node --check pass AND NOT --dry-run DO: A_GENERATE_SCRIPT
70
+ → S_PERSIST WHEN: --dry-run (file already written) DO: A_GENERATE_SCRIPT
71
+ → S_GENERATE WHEN: node --check fails (retry ≤2) DO: A_GENERATE_SCRIPT (fix & retry)
72
+ → END WHEN: node --check fails after 2 retries DO: report E003
73
+
74
+ S_EXECUTE:
75
+ → S_PERSIST WHEN: workflow completed DO: A_EXECUTE_WORKFLOW
76
+ → END WHEN: workflow failed
77
+
78
+ S_PERSIST:
79
+ → END DO: A_PERSIST_SCRIPT
80
+
81
+ </transitions>
82
+
83
+ <actions>
84
+
85
+ ### A_PARSE_ARGS
86
+
87
+ 1. 提取 flags: `--name`, `--depth`, `--dry-run`, `--from`, `--resume`
88
+ 2. 剩余文本作为 intent
89
+ 3. depth 默认 `standard`
90
+ 4. 若有 `--resume`,跳到 S_EXECUTE(直接恢复)
91
+ 5. 若有 `--from`,定位源脚本路径
92
+
93
+ ### A_SCAN_LIBRARY
94
+
95
+ 扫描两个目录,读取每个 `.js` 文件的 `meta` 块提取 `name`、`description`、`whenToUse`:
96
+
97
+ 1. **Fixed scripts**: 展开 `~/.maestro/workflows/swarm/wf-*.js` 为绝对路径
98
+ - Glob 查找所有匹配文件
99
+ - 读取每个文件前 10 行,提取 `meta.name`、`meta.description`、`meta.whenToUse`
100
+ 2. **Dynamic scripts**: 展开 `~/.maestro/workflows/dynamic/uwf-*.js`
101
+ - 同上
102
+ 3. **匹配评分**:对每个脚本,评估其 description/whenToUse 与 intent 的语义相关度
103
+ 4. **输出**:
104
+ - 匹配度 > 70% 的脚本列表(最多 3 个)
105
+ - 每个列出:name、description、scriptPath、匹配理由
106
+ - 无匹配则直接跳 S_DESIGN
107
+
108
+ 若有匹配,用 AskUserQuestion 让用户选择:
109
+ - 选项 1-3: 使用现有脚本(附 preview 显示脚本 meta)
110
+ - 最后选项: "生成全新脚本"
111
+
112
+ ### A_DESIGN_WORKFLOW
113
+
114
+ 分析任务,确定工作流结构。这是核心设计步骤。
115
+
116
+ **Step 1 — 任务分解**
117
+
118
+ 将 intent 分解为:
119
+ ```
120
+ work_items: 需要完成的具体工作单元
121
+ - { id, description, type: 'explore'|'analyze'|'create'|'verify'|'decide' }
122
+ decision_points: 需要做出判断的节点
123
+ - { id, question, type: 'go-nogo'|'pass-fail'|'select-best'|'resolve-conflict'|'assess-quality' }
124
+ data_flow: 数据在工作单元间如何流动
125
+ - { from, to, data_shape }
126
+ ```
127
+
128
+ **Step 2 — 阶段编排**
129
+
130
+ 将 work_items 组织为执行阶段:
131
+ ```
132
+ phases: [
133
+ { title, work_items[], parallel: true|false },
134
+ ...
135
+ ]
136
+ ```
137
+
138
+ 规则:
139
+ - 无依赖的 work_items 放同一阶段(parallel)
140
+ - 有依赖的放后续阶段
141
+ - 每个 decision_point 后紧跟一个对抗决策阶段
142
+
143
+ **Step 3 — 对抗模式选择**
144
+
145
+ 根据 decision_point.type 和 --depth 选择对抗模式(参考 ADVERSARIAL_PATTERNS):
146
+
147
+ | decision_type | shallow | standard | deep |
148
+ |--------------|---------|----------|------|
149
+ | go-nogo | 1 skeptic | 3-way advocacy + referee | cross-verify + 3-way advocacy + meta-skeptic |
150
+ | pass-fail | 1 challenger | prosecutor/defender/judge | cross-verify + prosecutor/defender + 3-vote |
151
+ | select-best | 1 critic | N proposals + judge panel | N proposals + judge + 3-critic challenge |
152
+ | resolve-conflict | 1 mediator | 3 philosophy proposals + arbitrator | 3 proposals + arbitrator + meta-skeptic |
153
+ | assess-quality | 1 skeptic | 3-vote (strict/lenient/objective) | cross-verify + 3-vote + meta-skeptic |
154
+
155
+ **Step 4 — Schema 设计**
156
+
157
+ 为每个 agent 调用设计 JSON Schema:
158
+ - 工作 agent: 任务特定 schema
159
+ - 对抗 agent: 使用标准对抗 schema(见 ADVERSARIAL_PATTERNS)
160
+
161
+ **Step 5 — 产出蓝图**
162
+
163
+ ```
164
+ blueprint: {
165
+ name: 'uwf-{slug}',
166
+ description: string,
167
+ phases: [{ title, detail }],
168
+ agents: [{ id, prompt_outline, schema_name, agentType?, phase }],
169
+ adversarial_gates: [{ decision_id, pattern, agents[] }],
170
+ estimated_agent_count: number,
171
+ }
172
+ ```
173
+
174
+ 向用户展示蓝图摘要,包含预估 agent 数量。
175
+ 若 `--dry-run` 则在 S_GENERATE 后停止。
176
+
177
+ ### A_GENERATE_SCRIPT
178
+
179
+ 根据蓝图生成完整的 JavaScript 脚本。**先写文件,再通过 scriptPath 执行**(避免内联 script 字符串的编码/转义问题)。
180
+
181
+ 若 `--from` 指定了基础脚本,先 Read 源脚本,然后在其基础上修改。
182
+
183
+ **脚本结构模板:**
184
+
185
+ ```javascript
186
+ export const meta = {
187
+ name: '{blueprint.name}',
188
+ description: '{English description}',
189
+ whenToUse: '{English usage scenario}',
190
+ phases: [
191
+ { title: '{EnglishTitle}', detail: '{English detail}' },
192
+ ],
193
+ }
194
+
195
+ // --- Schemas (top-level constants, never inline) ---
196
+ const WORK_SCHEMA = { type: 'object', properties: { ... }, required: [...] }
197
+ const CHALLENGE_SCHEMA = { ... }
198
+
199
+ // --- Args ---
200
+ const target = args?.target || 'default'
201
+
202
+ // --- Phase 1: {title} ---
203
+ phase('{title}')
204
+ const results = await parallel([
205
+ () => agent('prompt text', { label: 'work:1', phase: '{title}', schema: WORK_SCHEMA }),
206
+ ])
207
+
208
+ // --- Phase 2: Adversarial Gate ---
209
+ phase('{adversarial_phase_title}')
210
+ // 对抗模式代码 — 从 ADVERSARIAL_PATTERNS 模板生成
211
+
212
+ return { ... }
213
+ ```
214
+
215
+ **生成规则(必须全部遵守):**
216
+
217
+ | # | 规则 | 原因 |
218
+ |---|------|------|
219
+ | 1 | **纯 JavaScript** — 无 TypeScript 类型注解(`: string`、`interface`、泛型) | 解析器不支持 TS |
220
+ | 2 | **meta 块全英文** — `name`、`description`、`whenToUse`、`phases[].title/detail` 只用 ASCII 字符 | 中文在 script 字符串序列化时触发 `\uXXXX` 解析错误 |
221
+ | 3 | **禁用 API** — 不用 `Date.now()`、`Math.random()`、无参 `new Date()` | 破坏 resume 缓存匹配 |
222
+ | 4 | **Schema 独立声明** — 所有 JSON Schema 在文件顶部声明为 `const XXX_SCHEMA = {...}`,agent 调用中用 `schema: XXX_SCHEMA` 引用 | 内联大 Schema 易出括号匹配错误 |
223
+ | 5 | **字符串用 `+` 拼接** — agent prompt 中嵌入变量用 `'text ' + variable + ' more text'`,**不用模板字符串** | 反引号嵌套和 `${}` 转义是最常见的解析错误源 |
224
+ | 6 | **回调用 `function`** — `array.filter(function(x) { return x })` 而非箭头函数 | 箭头函数隐式返回对象 `() => ({})` 易遗漏外层括号 |
225
+ | 7 | **`phase` 不做变量名** — 不遮蔽全局 `phase()` 函数 | 遮蔽后 `phase('X')` 调用会崩溃 |
226
+ | 8 | **路径用正斜杠** — 字符串中路径用 `src/auth/` 不用 `src\\auth\\` | `\a`、`\u` 等被解析为转义序列 |
227
+ | 9 | **`agentType`** — 仅在有明确匹配时设置(如 `Explore`、`workflow-analyzer`) | 无效 agentType 导致运行时错误 |
228
+ | 10 | **null 安全** — 链式访问用 `?.`,数组操作前加 `.filter(Boolean)` | agent 返回 null(用户跳过)时链式调用崩溃 |
229
+
230
+ **常见错误对照:**
231
+
232
+ ```javascript
233
+ // BAD — meta 中文导致 \uXXXX 解析错误
234
+ export const meta = { name: 'uwf-x', description: '参数审计' }
235
+ // GOOD
236
+ export const meta = { name: 'uwf-x', description: 'Parameter audit for unused/ambiguous/dead params' }
237
+
238
+ // BAD — 模板字符串嵌套
239
+ agent(`Analyze ${item.name} for ${reason}`)
240
+ // GOOD — 字符串拼接
241
+ agent('Analyze ' + item.name + ' for ' + reason)
242
+
243
+ // BAD — Schema 内联在 agent 调用中
244
+ agent('prompt', { schema: { type: 'object', properties: { a: { type: 'string' }, b: { type: 'array', items: { type: 'object', properties: { ... } } } } } })
245
+ // GOOD — Schema 顶部声明
246
+ const MY_SCHEMA = { type: 'object', properties: { a: { type: 'string' } }, required: ['a'] }
247
+ agent('prompt', { schema: MY_SCHEMA })
248
+
249
+ // BAD — 箭头函数隐式返回对象
250
+ results.map(r => ({ ...r, verified: true }))
251
+ // GOOD — function + 显式 return
252
+ results.map(function(r) { return Object.assign({}, r, { verified: true }) })
253
+
254
+ // BAD — 反斜杠路径
255
+ const path = 'C:\Users\project\src'
256
+ // GOOD
257
+ const path = 'C:/Users/project/src' // 或直接不在脚本中硬编码路径
258
+ ```
259
+
260
+ **Step 1 — 生成脚本内容**
261
+
262
+ 按蓝图结构 + 上述规则生成完整 JavaScript 字符串。agent prompt 内部可以使用中文(prompt 是运行时字符串,不影响解析)。
263
+
264
+ **Step 2 — 写入文件**
265
+
266
+ ```
267
+ Write({
268
+ file_path: expandPath('~/.maestro/workflows/dynamic/uwf-{slug}.js'),
269
+ content: generatedScript
270
+ })
271
+ ```
272
+
273
+ **Step 3 — 语法验证**
274
+
275
+ ```
276
+ Bash({ command: 'node --check "path/to/uwf-{slug}.js"' })
277
+ ```
278
+
279
+ 若验证失败:
280
+ 1. 读取错误信息中的行号和错误类型
281
+ 2. 针对性修复(常见:遗漏逗号、括号不匹配、保留字冲突)
282
+ 3. 重新 Write + 验证(最多重试 2 次)
283
+ 4. 仍失败则报 E003,展示脚本内容和错误信息
284
+
285
+ 验证通过后进入 S_EXECUTE(若非 `--dry-run`)。
286
+
287
+ ### A_EXECUTE_WORKFLOW
288
+
289
+ **必须用 scriptPath 调用**(不用 script 内联字符串):
290
+
291
+ ```
292
+ Workflow({
293
+ scriptPath: expandPath('~/.maestro/workflows/dynamic/uwf-{slug}.js'),
294
+ args: taskSpecificArgs, // 从 intent 推断
295
+ resumeFromRunId: resumeId // 若有
296
+ })
297
+ ```
298
+
299
+ 记录返回的 `runId`。脚本已在 A_GENERATE_SCRIPT 中写入文件,无需再次持久化。
300
+
301
+ ### A_PERSIST_SCRIPT
302
+
303
+ 脚本已在 A_GENERATE_SCRIPT Step 2 写入 `~/.maestro/workflows/dynamic/uwf-{slug}.js`。
304
+
305
+ 1. 确认文件存在(Glob 检查)
306
+ 2. 展示保存路径和使用方式:
307
+ ```
308
+ Saved: ~/.maestro/workflows/dynamic/uwf-{slug}.js
309
+ Reuse: /maestro-universal-workflow --from uwf-{slug} "{new intent}"
310
+ Resume: /maestro-universal-workflow --resume {runId}
311
+ Via swarm: /maestro-swarm-workflow --script uwf-{slug}
312
+ ```
313
+
314
+ </actions>
315
+
316
+ </state_machine>
317
+
318
+ <adversarial_patterns>
319
+
320
+ 以下是对抗决策模式的代码模板库。A_GENERATE_SCRIPT 时按 decision_type 和 depth 选用。
321
+
322
+ ### PATTERN: Skeptic CrossVerify (shallow+)
323
+
324
+ 用于:对并行分析结果逐项挑战。
325
+
326
+ ```javascript
327
+ // 每个结果被 skeptic 挑战
328
+ const challenges = await pipeline(
329
+ results,
330
+ (result) => agent(
331
+ `You are an adversarial SKEPTIC. Challenge this assessment.
332
+ Original: ${JSON.stringify(result)}
333
+ Your job: find counter-evidence, check for biases, verify claims against actual code.
334
+ Default to challenge_result="weakened" if uncertain.`,
335
+ { label: `challenge:${result.id}`, phase: '{phase}', schema: CHALLENGE_SCHEMA }
336
+ )
337
+ )
338
+ ```
339
+
340
+ CHALLENGE_SCHEMA:
341
+ ```javascript
342
+ const CHALLENGE_SCHEMA = {
343
+ type: 'object',
344
+ properties: {
345
+ target: { type: 'string' },
346
+ challenge_result: { type: 'string', enum: ['confirmed', 'weakened', 'overturned'] },
347
+ adjusted_assessment: { type: 'string' },
348
+ counter_evidence: { type: 'array', items: { type: 'string' } },
349
+ confidence: { type: 'number', minimum: 0, maximum: 100 },
350
+ reasoning: { type: 'string' },
351
+ },
352
+ required: ['target', 'challenge_result', 'confidence', 'reasoning'],
353
+ }
354
+ ```
355
+
356
+ ### PATTERN: 3-Way Advocacy + Referee (standard+ go-nogo)
357
+
358
+ 用于:go/no-go 类决策。
359
+
360
+ ```javascript
361
+ const advocacies = await parallel([
362
+ () => agent('You are the GO ADVOCATE. Argue FOR proceeding...', { label: 'advocate:go', schema: ADVOCACY_SCHEMA }),
363
+ () => agent('You are the NO-GO ADVOCATE. Argue AGAINST proceeding...', { label: 'advocate:nogo', schema: ADVOCACY_SCHEMA }),
364
+ () => agent('You are the CONDITIONAL ADVOCATE. Argue for proceeding ONLY under conditions...', { label: 'advocate:conditional', schema: ADVOCACY_SCHEMA }),
365
+ ])
366
+ const decision = await agent('You are the REFEREE. Resolve the debate...', { label: 'referee', schema: DECISION_SCHEMA })
367
+ ```
368
+
369
+ ADVOCACY_SCHEMA:
370
+ ```javascript
371
+ const ADVOCACY_SCHEMA = {
372
+ type: 'object',
373
+ properties: {
374
+ stance: { type: 'string' },
375
+ argument: { type: 'string' },
376
+ key_evidence: { type: 'array', items: { type: 'object', properties: { point: { type: 'string' }, strength: { type: 'string', enum: ['strong', 'moderate', 'weak'] } }, required: ['point'] } },
377
+ weaknesses_acknowledged: { type: 'array', items: { type: 'string' } },
378
+ conditions: { type: 'array', items: { type: 'string' } },
379
+ confidence: { type: 'number', minimum: 0, maximum: 100 },
380
+ },
381
+ required: ['stance', 'argument', 'confidence'],
382
+ }
383
+ ```
384
+
385
+ ### PATTERN: Prosecutor/Defender/Judge (standard+ pass-fail)
386
+
387
+ 用于:通过/失败类判定。
388
+
389
+ ```javascript
390
+ const debate = await parallel([
391
+ () => agent('You are the PROSECUTOR. Argue this should FAIL...', { label: 'prosecutor', schema: ARGUMENT_SCHEMA }),
392
+ () => agent('You are the DEFENDER. Argue this should PASS...', { label: 'defender', schema: ARGUMENT_SCHEMA }),
393
+ ])
394
+ const verdict = await agent('You are the JUDGE. Resolve the debate...', { label: 'judge', schema: VERDICT_SCHEMA })
395
+ ```
396
+
397
+ ARGUMENT_SCHEMA:
398
+ ```javascript
399
+ const ARGUMENT_SCHEMA = {
400
+ type: 'object',
401
+ properties: {
402
+ role: { type: 'string' },
403
+ stance: { type: 'string', enum: ['pass', 'fail'] },
404
+ argument: { type: 'string' },
405
+ key_points: { type: 'array', items: { type: 'object', properties: { point: { type: 'string' }, evidence: { type: 'string' }, strength: { type: 'string', enum: ['strong', 'moderate', 'weak'] } }, required: ['point', 'evidence'] } },
406
+ concessions: { type: 'array', items: { type: 'string' } },
407
+ confidence: { type: 'number', minimum: 0, maximum: 100 },
408
+ },
409
+ required: ['role', 'stance', 'argument', 'key_points', 'confidence'],
410
+ }
411
+ ```
412
+
413
+ ### PATTERN: 3-Vote Majority (standard+ assess-quality)
414
+
415
+ 用于:质量评估、状态判定。
416
+
417
+ ```javascript
418
+ const votes = await parallel([
419
+ () => agent('You are the STRICT voter...', { label: 'vote:strict', schema: VOTE_SCHEMA }),
420
+ () => agent('You are the LENIENT voter...', { label: 'vote:lenient', schema: VOTE_SCHEMA }),
421
+ () => agent('You are the OBJECTIVE voter...', { label: 'vote:objective', schema: VOTE_SCHEMA }),
422
+ ])
423
+ const majority = resolveVotes(votes) // majority wins, tie → objective
424
+ const report = await agent('Arbitrate final report from votes...', { label: 'arbitrate', schema: REPORT_SCHEMA })
425
+ ```
426
+
427
+ VOTE_SCHEMA:
428
+ ```javascript
429
+ const VOTE_SCHEMA = {
430
+ type: 'object',
431
+ properties: {
432
+ perspective: { type: 'string' },
433
+ verdict: { type: 'string' },
434
+ rationale: { type: 'string' },
435
+ confidence: { type: 'number', minimum: 0, maximum: 100 },
436
+ },
437
+ required: ['perspective', 'verdict', 'rationale', 'confidence'],
438
+ }
439
+ ```
440
+
441
+ ### PATTERN: Competing Proposals + Judge (standard+ select-best)
442
+
443
+ 用于:方案选择。
444
+
445
+ ```javascript
446
+ const proposals = await parallel([
447
+ () => agent('Strategy A: ...', { label: 'proposal:A', schema: PROPOSAL_SCHEMA }),
448
+ () => agent('Strategy B: ...', { label: 'proposal:B', schema: PROPOSAL_SCHEMA }),
449
+ () => agent('Strategy C: ...', { label: 'proposal:C', schema: PROPOSAL_SCHEMA }),
450
+ ])
451
+ const scores = await parallel(proposals.filter(Boolean).map(p => () =>
452
+ agent(`Score this proposal: ${p.strategy}...`, { label: `judge:${p.strategy}`, schema: SCORE_SCHEMA })
453
+ ))
454
+ // select highest score
455
+ ```
456
+
457
+ ### PATTERN: Meta-Skeptic (deep only)
458
+
459
+ 用于:挑战挑战者本身的发现。
460
+
461
+ ```javascript
462
+ const metaChallenge = await agent(
463
+ `You are the META-SKEPTIC. Challenge the challengers themselves.
464
+ Findings: ${digest}
465
+ 1. Which findings are OVERBLOWN? (theatrical, unlikely, missing context)
466
+ 2. What did they MISS? (blind spots, interactions, real risks obscured)
467
+ 3. Rate overall challenge quality (1-5).`,
468
+ { label: 'meta-skeptic', schema: META_CHALLENGE_SCHEMA }
469
+ )
470
+ ```
471
+
472
+ </adversarial_patterns>
473
+
474
+ <invariants>
475
+ 1. **先查后建** — 必须先扫描现有库,避免重复生成相同功能的脚本
476
+ 2. **对抗必选** — 每个 decision_point 必须有对应的对抗模式,不允许单 agent 决策
477
+ 3. **depth 递进** — shallow ⊂ standard ⊂ deep,高 depth 包含低 depth 的所有模式
478
+ 4. **纯 JS** — 生成的脚本必须是纯 JavaScript,不含 TypeScript 类型注解
479
+ 5. **meta 全英文** — meta 块中 name/description/whenToUse/phases 只用 ASCII 字符(agent prompt 内可用中文)
480
+ 6. **Schema 完整** — 每个 agent 调用必须有 schema,且 Schema 在文件顶部声明为独立常量
481
+ 7. **先写后跑** — 脚本必须先 Write 到文件 → `node --check` 验证 → 再通过 `scriptPath` 执行(禁止内联 script 字符串)
482
+ 8. **幂等命名** — 同名脚本覆盖(uwf-{slug}.js),用户可通过 --name 控制
483
+ 9. **禁用 API** — 脚本内不使用 Date.now()、Math.random()、无参 new Date()
484
+ 10. **变量安全** — 不使用 `phase` 作为变量名(避免遮蔽 phase() 函数)
485
+ 11. **无模板字符串** — agent prompt 用 `+` 拼接,不用反引号模板(避免嵌套转义错误)
486
+ 12. **无反斜杠路径** — 字符串中路径用正斜杠(`\u`、`\a` 等会被解析为转义序列)
487
+ </invariants>
488
+
489
+ <appendix>
490
+
491
+ ### 使用示例
492
+
493
+ ```bash
494
+ # 自动匹配或生成
495
+ /maestro-universal-workflow "评估数据库迁移方案的可行性和风险"
496
+
497
+ # 指定深度
498
+ /maestro-universal-workflow "审查 auth 模块的安全性" --depth deep
499
+
500
+ # 只生成不执行
501
+ /maestro-universal-workflow "对比 3 种缓存策略" --dry-run --name cache-eval
502
+
503
+ # 基于已有脚本修改
504
+ /maestro-universal-workflow "类似 analyze 但加入成本维度" --from wf-analyze
505
+
506
+ # 恢复之前的运行
507
+ /maestro-universal-workflow --resume wf_abc123
508
+ ```
509
+
510
+ ### 生成脚本示例
511
+
512
+ 用户 intent: "评估 3 种 API 认证方案(JWT/OAuth2/API Key),选出最优"
513
+
514
+ 生成的脚本结构:
515
+ ```
516
+ Phase 1: Explore — 探索代码库现有认证实现
517
+ Phase 2: Evaluate — 3 个 agent 分别深入评估每种方案
518
+ Phase 3: CrossVerify — skeptic 挑战每个评估结果
519
+ Phase 4: Compete — 3 个 advocate 各持一种方案立场辩论
520
+ Phase 5: Arbitrate — referee 根据辩论结果选出最优方案
521
+ ```
522
+
523
+ 预估 agent 数: 1(explore) + 3(evaluate) + 3(cross-verify) + 3(advocates) + 1(referee) = 11
524
+
525
+ ### 与 swarm-workflow 的关系
526
+
527
+ | 维度 | swarm-workflow | universal-workflow |
528
+ |------|---------------|-------------------|
529
+ | 脚本来源 | 固定 8 个预写脚本 | 动态生成 + 积累库 |
530
+ | 适用范围 | 对应 8 个 maestro 命令 | 任意任务 |
531
+ | 决策模式 | 脚本内硬编码 | 按 depth 动态选择 |
532
+ | 持久化 | 不生成新脚本 | 保存到 dynamic/ 复用 |
533
+ | 推荐场景 | 已有匹配的标准命令 | 非标准任务、新领域 |
534
+
535
+ universal-workflow 扫描时会同时检查 swarm/ 和 dynamic/ 目录,
536
+ 若 swarm 脚本匹配度高则推荐使用 swarm-workflow 代替。
537
+
538
+ ### Error Codes
539
+
540
+ | Code | Description | Recovery |
541
+ |------|-------------|----------|
542
+ | E001 | 无 intent | 提示用户输入 |
543
+ | E002 | 设计阶段无法分解任务 | 要求更具体的 intent |
544
+ | E003 | 生成的脚本语法错误 | `node --check` 失败时:读取行号+错误类型 → 针对性修复 → 重试(最多 2 次)→ 仍失败则展示脚本+错误让用户手动修改 |
545
+ | E004 | Workflow 执行失败 | 展示错误,提供 --resume |
546
+ | E005 | 持久化失败 | 展示脚本内容,让用户手动保存 |
547
+
548
+ </appendix>