maestro-flow 0.5.36 → 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 (1652) hide show
  1. package/.agents/agents/cli-explore-agent.md +1 -1
  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-codebase-mapper.md +67 -67
  6. package/.agents/agents/workflow-collab-planner.md +1 -1
  7. package/.agents/agents/workflow-debugger.md +1 -1
  8. package/.agents/agents/workflow-executor.md +2 -2
  9. package/.agents/agents/workflow-external-researcher.md +78 -78
  10. package/.agents/agents/workflow-nyquist-auditor.md +1 -1
  11. package/.agents/agents/workflow-plan-checker.md +1 -1
  12. package/.agents/agents/workflow-planner.md +1 -1
  13. package/.agents/agents/workflow-project-researcher.md +63 -63
  14. package/.agents/agents/workflow-research-synthesizer.md +63 -63
  15. package/.agents/agents/workflow-reviewer.md +73 -73
  16. package/.agents/agents/workflow-verifier.md +1 -1
  17. package/.agents/skills/codify-to-knowhow/SKILL.md +1 -1
  18. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +1 -1
  19. package/.agents/skills/codify-to-knowhow/phases/04-index-verify.md +2 -2
  20. package/.agents/skills/delegation-check/SKILL.md +292 -292
  21. package/.agents/skills/delegation-check/specs/separation-rules.md +269 -269
  22. package/.agents/skills/learn-follow/SKILL.md +114 -114
  23. package/.agents/skills/learn-investigate/SKILL.md +138 -138
  24. package/.agents/skills/learn-second-opinion/SKILL.md +105 -105
  25. package/.agents/skills/maestro/SKILL.md +227 -227
  26. package/.agents/skills/maestro-amend/SKILL.md +150 -150
  27. package/.agents/skills/maestro-analyze/SKILL.md +210 -210
  28. package/.agents/skills/maestro-blueprint/SKILL.md +175 -175
  29. package/.agents/skills/maestro-brainstorm/SKILL.md +205 -205
  30. package/.agents/skills/maestro-collab/SKILL.md +173 -173
  31. package/.agents/skills/maestro-companion/SKILL.md +517 -517
  32. package/.agents/skills/maestro-composer/SKILL.md +173 -173
  33. package/.agents/skills/maestro-execute/SKILL.md +169 -169
  34. package/.agents/skills/maestro-fork/SKILL.md +97 -97
  35. package/.agents/skills/maestro-grill/SKILL.md +161 -161
  36. package/.agents/skills/maestro-guard/SKILL.md +93 -93
  37. package/.agents/skills/maestro-help/index/catalog.json +1 -1
  38. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +1 -1
  39. package/.agents/skills/maestro-impeccable/SKILL.md +296 -296
  40. package/.agents/skills/maestro-init/SKILL.md +117 -117
  41. package/.agents/skills/maestro-merge/SKILL.md +73 -73
  42. package/.agents/skills/maestro-milestone-audit/SKILL.md +126 -126
  43. package/.agents/skills/maestro-milestone-complete/SKILL.md +123 -123
  44. package/.agents/skills/maestro-milestone-release/SKILL.md +122 -122
  45. package/.agents/skills/maestro-next/SKILL.md +252 -252
  46. package/.agents/skills/maestro-overlay/SKILL.md +177 -177
  47. package/.agents/skills/maestro-plan/SKILL.md +222 -222
  48. package/.agents/skills/maestro-player/SKILL.md +167 -167
  49. package/.agents/skills/maestro-quick/SKILL.md +69 -69
  50. package/.agents/skills/maestro-ralph/SKILL.md +831 -831
  51. package/.agents/skills/maestro-ralph-execute/SKILL.md +276 -276
  52. package/.agents/skills/maestro-roadmap/SKILL.md +159 -159
  53. package/.agents/skills/maestro-swarm-workflow/SKILL.md +229 -229
  54. package/.agents/skills/maestro-tools-execute/SKILL.md +108 -108
  55. package/.agents/skills/maestro-tools-register/SKILL.md +142 -142
  56. package/.agents/skills/maestro-ui-codify/SKILL.md +101 -101
  57. package/.agents/skills/maestro-universal-workflow/SKILL.md +534 -534
  58. package/.agents/skills/maestro-update/SKILL.md +109 -109
  59. package/.agents/skills/manage-codebase-rebuild/SKILL.md +73 -73
  60. package/.agents/skills/manage-harvest/SKILL.md +86 -86
  61. package/.agents/skills/manage-issue/SKILL.md +59 -59
  62. package/.agents/skills/manage-issue-discover/SKILL.md +70 -70
  63. package/.agents/skills/manage-kg-extractors/SKILL.md +2 -2
  64. package/.agents/skills/manage-knowhow/SKILL.md +70 -70
  65. package/.agents/skills/manage-knowhow-capture/SKILL.md +79 -79
  66. package/.agents/skills/manage-knowledge-audit/SKILL.md +120 -120
  67. package/.agents/skills/manage-status/SKILL.md +52 -52
  68. package/.agents/skills/manage-wiki/SKILL.md +69 -69
  69. package/.agents/skills/odyssey-debug/SKILL.md +465 -465
  70. package/.agents/skills/odyssey-improve/SKILL.md +496 -496
  71. package/.agents/skills/odyssey-planex/SKILL.md +594 -594
  72. package/.agents/skills/odyssey-review-test-fix/SKILL.md +422 -422
  73. package/.agents/skills/odyssey-ui/SKILL.md +450 -450
  74. package/.agents/skills/prompt-generator/SKILL.md +465 -465
  75. package/.agents/skills/prompt-generator/specs/agent-design-spec.md +299 -299
  76. package/.agents/skills/prompt-generator/specs/command-design-spec.md +367 -367
  77. package/.agents/skills/prompt-generator/specs/conversion-spec.md +207 -207
  78. package/.agents/skills/prompt-generator/templates/agent-md.md +145 -145
  79. package/.agents/skills/prompt-generator/templates/command-md.md +118 -118
  80. package/.agents/skills/quality-auto-test/SKILL.md +140 -140
  81. package/.agents/skills/quality-debug/SKILL.md +145 -145
  82. package/.agents/skills/quality-refactor/SKILL.md +91 -91
  83. package/.agents/skills/quality-retrospective/SKILL.md +109 -109
  84. package/.agents/skills/quality-review/SKILL.md +144 -144
  85. package/.agents/skills/quality-sync/SKILL.md +74 -74
  86. package/.agents/skills/quality-test/SKILL.md +157 -157
  87. package/.agents/skills/scholar-anti-ai-writing/SKILL.md +168 -168
  88. package/.agents/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -126
  89. package/.agents/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -177
  90. package/.agents/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -134
  91. package/.agents/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -242
  92. package/.agents/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -242
  93. package/.agents/skills/scholar-citation-verify/SKILL.md +161 -161
  94. package/.agents/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -141
  95. package/.agents/skills/scholar-citation-verify/phases/02-verify.md +310 -310
  96. package/.agents/skills/scholar-citation-verify/phases/03-report-fix.md +190 -190
  97. package/.agents/skills/scholar-citation-verify/references/api-usage.md +372 -372
  98. package/.agents/skills/scholar-citation-verify/references/common-errors.md +384 -384
  99. package/.agents/skills/scholar-citation-verify/references/verification-rules.md +399 -399
  100. package/.agents/skills/scholar-experiment/SKILL.md +316 -316
  101. package/.agents/skills/scholar-experiment/phases/01-data-loading.md +209 -209
  102. package/.agents/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -269
  103. package/.agents/skills/scholar-experiment/phases/03-visualization.md +319 -319
  104. package/.agents/skills/scholar-experiment/phases/04-results-writing.md +229 -229
  105. package/.agents/skills/scholar-experiment/phases/05-quality-check.md +261 -261
  106. package/.agents/skills/scholar-ideation/SKILL.md +283 -283
  107. package/.agents/skills/scholar-ideation/phases/01-literature-search.md +317 -317
  108. package/.agents/skills/scholar-ideation/phases/02-gap-analysis.md +249 -249
  109. package/.agents/skills/scholar-ideation/phases/03-research-question.md +200 -200
  110. package/.agents/skills/scholar-ideation/phases/04-method-selection.md +185 -185
  111. package/.agents/skills/scholar-ideation/phases/05-research-planning.md +385 -385
  112. package/.agents/skills/scholar-latex-organizer/SKILL.md +181 -181
  113. package/.agents/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -228
  114. package/.agents/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -500
  115. package/.agents/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -349
  116. package/.agents/skills/scholar-publish/SKILL.md +215 -215
  117. package/.agents/skills/scholar-publish/phases/01-presentation.md +243 -243
  118. package/.agents/skills/scholar-publish/phases/02-poster.md +239 -239
  119. package/.agents/skills/scholar-publish/phases/03-promotion.md +255 -255
  120. package/.agents/skills/scholar-rebuttal-pro/README.md +313 -313
  121. package/.agents/skills/scholar-rebuttal-pro/SKILL.md +507 -507
  122. package/.agents/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -227
  123. package/.agents/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -395
  124. package/.agents/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -459
  125. package/.agents/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -384
  126. package/.agents/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -691
  127. package/.agents/skills/scholar-review/SKILL.md +222 -222
  128. package/.agents/skills/scholar-review/phases/01-self-review.md +186 -186
  129. package/.agents/skills/scholar-review/phases/02-review-analysis.md +203 -203
  130. package/.agents/skills/scholar-review/phases/03-response-strategy.md +193 -193
  131. package/.agents/skills/scholar-review/phases/04-rebuttal-writing.md +181 -181
  132. package/.agents/skills/scholar-review/phases/05-revision.md +183 -183
  133. package/.agents/skills/scholar-review/specs/tone-guidelines.md +76 -76
  134. package/.agents/skills/scholar-thesis-docx/README.md +111 -111
  135. package/.agents/skills/scholar-thesis-docx/README_EN.md +108 -108
  136. package/.agents/skills/scholar-thesis-docx/SKILL.md +208 -208
  137. package/.agents/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -46
  138. package/.agents/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -178
  139. package/.agents/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -33
  140. package/.agents/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -68
  141. package/.agents/skills/scholar-thesis-docx/references/script-usage.md +157 -157
  142. package/.agents/skills/scholar-writing/SKILL.md +291 -291
  143. package/.agents/skills/scholar-writing/phases/01-repo-understanding.md +178 -178
  144. package/.agents/skills/scholar-writing/phases/02-structure-planning.md +197 -197
  145. package/.agents/skills/scholar-writing/phases/03-section-drafting.md +215 -215
  146. package/.agents/skills/scholar-writing/phases/04-citation-management.md +310 -310
  147. package/.agents/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -202
  148. package/.agents/skills/scholar-writing/phases/06-conference-formatting.md +260 -260
  149. package/.agents/skills/security-audit/SKILL.md +217 -217
  150. package/.agents/skills/skill-generator/SKILL.md +465 -465
  151. package/.agents/skills/skill-generator/phases/01-requirements-discovery.md +238 -238
  152. package/.agents/skills/skill-generator/phases/02-structure-generation.md +261 -261
  153. package/.agents/skills/skill-generator/phases/03-phase-generation.md +976 -976
  154. package/.agents/skills/skill-generator/phases/04-specs-templates.md +398 -398
  155. package/.agents/skills/skill-generator/phases/05-validation.md +417 -417
  156. package/.agents/skills/skill-generator/specs/cli-integration.md +442 -442
  157. package/.agents/skills/skill-generator/specs/execution-modes.md +399 -399
  158. package/.agents/skills/skill-generator/specs/reference-docs-spec.md +271 -271
  159. package/.agents/skills/skill-generator/specs/scripting-integration.md +265 -265
  160. package/.agents/skills/skill-generator/specs/skill-requirements.md +466 -466
  161. package/.agents/skills/skill-generator/templates/autonomous-action.md +330 -330
  162. package/.agents/skills/skill-generator/templates/autonomous-orchestrator.md +300 -300
  163. package/.agents/skills/skill-generator/templates/code-analysis-action.md +514 -514
  164. package/.agents/skills/skill-generator/templates/llm-action.md +367 -367
  165. package/.agents/skills/skill-generator/templates/script-template.md +368 -368
  166. package/.agents/skills/skill-generator/templates/sequential-phase.md +474 -474
  167. package/.agents/skills/skill-generator/templates/skill-md.md +312 -312
  168. package/.agents/skills/skill-iter-tune/SKILL.md +378 -378
  169. package/.agents/skills/skill-iter-tune/phases/01-setup.md +144 -144
  170. package/.agents/skills/skill-iter-tune/phases/02-execute.md +292 -292
  171. package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +312 -312
  172. package/.agents/skills/skill-iter-tune/phases/04-improve.md +186 -186
  173. package/.agents/skills/skill-iter-tune/phases/05-report.md +166 -166
  174. package/.agents/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -63
  175. package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +134 -134
  176. package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +97 -97
  177. package/.agents/skills/skill-simplify/SKILL.md +58 -58
  178. package/.agents/skills/skill-simplify/phases/01-analysis.md +224 -224
  179. package/.agents/skills/skill-simplify/phases/02-optimize.md +111 -111
  180. package/.agents/skills/skill-simplify/phases/03-check.md +224 -224
  181. package/.agents/skills/skill-tuning/SKILL.md +170 -170
  182. package/.agents/skills/skill-tuning/phases/actions/action-abort.md +164 -164
  183. package/.agents/skills/skill-tuning/phases/actions/{action-gemini-analysis.md → action-agy-analysis.md} +322 -322
  184. package/.agents/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -406
  185. package/.agents/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -206
  186. package/.agents/skills/skill-tuning/phases/actions/action-complete.md +195 -195
  187. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -317
  188. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -243
  189. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -318
  190. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -299
  191. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -269
  192. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -200
  193. package/.agents/skills/skill-tuning/phases/actions/action-generate-report.md +228 -228
  194. package/.agents/skills/skill-tuning/phases/actions/action-init.md +149 -149
  195. package/.agents/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -317
  196. package/.agents/skills/skill-tuning/phases/actions/action-verify.md +222 -222
  197. package/.agents/skills/skill-tuning/phases/orchestrator.md +190 -190
  198. package/.agents/skills/skill-tuning/phases/state-schema.md +378 -378
  199. package/.agents/skills/skill-tuning/specs/category-mappings.json +5 -5
  200. package/.agents/skills/skill-tuning/specs/dimension-mapping.md +212 -212
  201. package/.agents/skills/skill-tuning/specs/problem-taxonomy.md +210 -210
  202. package/.agents/skills/skill-tuning/specs/quality-gates.md +263 -263
  203. package/.agents/skills/skill-tuning/specs/skill-authoring-principles.md +192 -192
  204. package/.agents/skills/skill-tuning/specs/tuning-strategies.md +392 -392
  205. package/.agents/skills/skill-tuning/templates/diagnosis-report.md +153 -153
  206. package/.agents/skills/skill-tuning/templates/fix-proposal.md +204 -204
  207. package/.agents/skills/spec-add/SKILL.md +66 -66
  208. package/.agents/skills/spec-load/SKILL.md +67 -67
  209. package/.agents/skills/spec-remove/SKILL.md +42 -42
  210. package/.agents/skills/spec-setup/SKILL.md +37 -37
  211. package/.agents/skills/team-arch-opt/SKILL.md +153 -153
  212. package/.agents/skills/team-arch-opt/roles/analyzer/role.md +80 -80
  213. package/.agents/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  214. package/.agents/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -371
  215. package/.agents/skills/team-arch-opt/roles/coordinator/commands/monitor.md +216 -216
  216. package/.agents/skills/team-arch-opt/roles/coordinator/role.md +146 -146
  217. package/.agents/skills/team-arch-opt/roles/designer/role.md +109 -109
  218. package/.agents/skills/team-arch-opt/roles/refactorer/role.md +98 -98
  219. package/.agents/skills/team-arch-opt/roles/reviewer/role.md +105 -105
  220. package/.agents/skills/team-arch-opt/roles/validator/role.md +109 -109
  221. package/.agents/skills/team-arch-opt/specs/pipelines.md +102 -102
  222. package/.agents/skills/team-brainstorm/SKILL.md +166 -166
  223. package/.agents/skills/team-brainstorm/roles/challenger/role.md +55 -55
  224. package/.agents/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  225. package/.agents/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -206
  226. package/.agents/skills/team-brainstorm/roles/coordinator/commands/monitor.md +199 -199
  227. package/.agents/skills/team-brainstorm/roles/coordinator/role.md +140 -140
  228. package/.agents/skills/team-brainstorm/roles/evaluator/role.md +50 -50
  229. package/.agents/skills/team-brainstorm/roles/ideator/role.md +63 -63
  230. package/.agents/skills/team-brainstorm/roles/synthesizer/role.md +51 -51
  231. package/.agents/skills/team-brainstorm/specs/pipelines.md +72 -72
  232. package/.agents/skills/team-coordinate/SKILL.md +261 -261
  233. package/.agents/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -247
  234. package/.agents/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -131
  235. package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -358
  236. package/.agents/skills/team-coordinate/roles/coordinator/role.md +360 -360
  237. package/.agents/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  238. package/.agents/skills/team-coordinate/specs/pipelines.md +97 -97
  239. package/.agents/skills/team-coordinate/specs/quality-gates.md +112 -112
  240. package/.agents/skills/team-coordinate/specs/role-spec-template.md +198 -198
  241. package/.agents/skills/team-designer/SKILL.md +155 -155
  242. package/.agents/skills/team-designer/phases/01-requirements-analysis.md +265 -265
  243. package/.agents/skills/team-designer/phases/02-scaffold-generation.md +236 -236
  244. package/.agents/skills/team-designer/phases/03-content-generation.md +330 -330
  245. package/.agents/skills/team-designer/phases/04-validation.md +329 -329
  246. package/.agents/skills/team-executor/SKILL.md +184 -184
  247. package/.agents/skills/team-executor/roles/executor/commands/monitor.md +239 -239
  248. package/.agents/skills/team-executor/roles/executor/role.md +171 -171
  249. package/.agents/skills/team-executor/specs/session-schema.md +264 -264
  250. package/.agents/skills/team-frontend/SKILL.md +131 -131
  251. package/.agents/skills/team-frontend/roles/analyst/role.md +92 -92
  252. package/.agents/skills/team-frontend/roles/architect/role.md +78 -78
  253. package/.agents/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  254. package/.agents/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -197
  255. package/.agents/skills/team-frontend/roles/coordinator/commands/monitor.md +233 -233
  256. package/.agents/skills/team-frontend/roles/coordinator/role.md +158 -158
  257. package/.agents/skills/team-frontend/roles/developer/role.md +85 -85
  258. package/.agents/skills/team-frontend/roles/qa/role.md +71 -71
  259. package/.agents/skills/team-frontend/specs/pipelines.md +76 -76
  260. package/.agents/skills/team-frontend-debug/SKILL.md +193 -193
  261. package/.agents/skills/team-frontend-debug/roles/analyzer/role.md +199 -199
  262. package/.agents/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  263. package/.agents/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -256
  264. package/.agents/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -148
  265. package/.agents/skills/team-frontend-debug/roles/coordinator/role.md +131 -131
  266. package/.agents/skills/team-frontend-debug/roles/fixer/role.md +138 -138
  267. package/.agents/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
  268. package/.agents/skills/team-frontend-debug/roles/tester/role.md +222 -222
  269. package/.agents/skills/team-frontend-debug/roles/verifier/role.md +164 -164
  270. package/.agents/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  271. package/.agents/skills/team-frontend-debug/specs/pipelines.md +94 -94
  272. package/.agents/skills/team-interactive-craft/SKILL.md +136 -136
  273. package/.agents/skills/team-interactive-craft/roles/a11y-tester/role.md +153 -153
  274. package/.agents/skills/team-interactive-craft/roles/builder/role.md +210 -210
  275. package/.agents/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -71
  276. package/.agents/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -192
  277. package/.agents/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +215 -215
  278. package/.agents/skills/team-interactive-craft/roles/coordinator/role.md +166 -166
  279. package/.agents/skills/team-interactive-craft/roles/interaction-designer/role.md +138 -138
  280. package/.agents/skills/team-interactive-craft/roles/researcher/role.md +125 -125
  281. package/.agents/skills/team-interactive-craft/specs/interaction-patterns.md +362 -362
  282. package/.agents/skills/team-interactive-craft/specs/pipelines.md +85 -85
  283. package/.agents/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -83
  284. package/.agents/skills/team-issue/SKILL.md +166 -166
  285. package/.agents/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  286. package/.agents/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -349
  287. package/.agents/skills/team-issue/roles/coordinator/commands/monitor.md +229 -229
  288. package/.agents/skills/team-issue/roles/coordinator/role.md +172 -172
  289. package/.agents/skills/team-issue/roles/explorer/role.md +96 -96
  290. package/.agents/skills/team-issue/roles/implementer/role.md +81 -81
  291. package/.agents/skills/team-issue/roles/integrator/role.md +78 -78
  292. package/.agents/skills/team-issue/roles/planner/role.md +74 -74
  293. package/.agents/skills/team-issue/roles/reviewer/role.md +80 -80
  294. package/.agents/skills/team-issue/specs/pipelines.md +124 -124
  295. package/.agents/skills/team-lifecycle-v4/SKILL.md +204 -204
  296. package/.agents/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  297. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -56
  298. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -56
  299. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -206
  300. package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -130
  301. package/.agents/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -35
  302. package/.agents/skills/team-lifecycle-v4/roles/executor/role.md +58 -58
  303. package/.agents/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
  304. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -34
  305. package/.agents/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -44
  306. package/.agents/skills/team-lifecycle-v4/roles/reviewer/role.md +57 -57
  307. package/.agents/skills/team-lifecycle-v4/roles/supervisor/role.md +181 -181
  308. package/.agents/skills/team-lifecycle-v4/roles/tester/role.md +78 -78
  309. package/.agents/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  310. package/.agents/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -114
  311. package/.agents/skills/team-lifecycle-v4/specs/pipelines.md +140 -140
  312. package/.agents/skills/team-lifecycle-v4/specs/quality-gates.md +130 -130
  313. package/.agents/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  314. package/.agents/skills/team-lifecycle-v4/templates/epics.md +196 -196
  315. package/.agents/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  316. package/.agents/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  317. package/.agents/skills/team-motion-design/SKILL.md +137 -137
  318. package/.agents/skills/team-motion-design/roles/animator/role.md +188 -188
  319. package/.agents/skills/team-motion-design/roles/choreographer/role.md +158 -158
  320. package/.agents/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -64
  321. package/.agents/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -203
  322. package/.agents/skills/team-motion-design/roles/coordinator/commands/monitor.md +216 -216
  323. package/.agents/skills/team-motion-design/roles/coordinator/role.md +167 -167
  324. package/.agents/skills/team-motion-design/roles/motion-researcher/role.md +109 -109
  325. package/.agents/skills/team-motion-design/roles/motion-tester/role.md +169 -169
  326. package/.agents/skills/team-motion-design/specs/gpu-constraints.md +114 -114
  327. package/.agents/skills/team-motion-design/specs/motion-tokens.md +128 -128
  328. package/.agents/skills/team-motion-design/specs/pipelines.md +74 -74
  329. package/.agents/skills/team-motion-design/specs/reduced-motion.md +129 -129
  330. package/.agents/skills/team-perf-opt/SKILL.md +170 -170
  331. package/.agents/skills/team-perf-opt/roles/benchmarker/role.md +80 -80
  332. package/.agents/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  333. package/.agents/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -376
  334. package/.agents/skills/team-perf-opt/roles/coordinator/commands/monitor.md +362 -362
  335. package/.agents/skills/team-perf-opt/roles/coordinator/role.md +147 -147
  336. package/.agents/skills/team-perf-opt/roles/optimizer/role.md +89 -89
  337. package/.agents/skills/team-perf-opt/roles/profiler/role.md +73 -73
  338. package/.agents/skills/team-perf-opt/roles/reviewer/role.md +64 -64
  339. package/.agents/skills/team-perf-opt/roles/strategist/role.md +85 -85
  340. package/.agents/skills/team-perf-opt/specs/pipelines.md +65 -65
  341. package/.agents/skills/team-planex/SKILL.md +132 -132
  342. package/.agents/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  343. package/.agents/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -87
  344. package/.agents/skills/team-planex/roles/coordinator/commands/monitor.md +195 -195
  345. package/.agents/skills/team-planex/roles/coordinator/role.md +140 -140
  346. package/.agents/skills/team-planex/roles/executor/role.md +83 -83
  347. package/.agents/skills/team-planex/roles/planner/role.md +111 -111
  348. package/.agents/skills/team-planex/specs/pipelines.md +93 -93
  349. package/.agents/skills/team-quality-assurance/SKILL.md +142 -142
  350. package/.agents/skills/team-quality-assurance/roles/analyst/role.md +79 -79
  351. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  352. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -111
  353. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -250
  354. package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +143 -143
  355. package/.agents/skills/team-quality-assurance/roles/executor/role.md +55 -55
  356. package/.agents/skills/team-quality-assurance/roles/generator/role.md +58 -58
  357. package/.agents/skills/team-quality-assurance/roles/scout/role.md +70 -70
  358. package/.agents/skills/team-quality-assurance/roles/strategist/role.md +63 -63
  359. package/.agents/skills/team-quality-assurance/specs/pipelines.md +115 -115
  360. package/.agents/skills/team-quality-assurance/specs/team-config.json +8 -8
  361. package/.agents/skills/team-review/SKILL.md +142 -142
  362. package/.agents/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  363. package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +91 -91
  364. package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +224 -224
  365. package/.agents/skills/team-review/roles/coordinator/role.md +132 -132
  366. package/.agents/skills/team-review/roles/fixer/role.md +68 -68
  367. package/.agents/skills/team-review/specs/dimensions.md +82 -82
  368. package/.agents/skills/team-review/specs/pipelines.md +102 -102
  369. package/.agents/skills/team-roadmap-dev/SKILL.md +164 -164
  370. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  371. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -212
  372. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +477 -477
  373. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -90
  374. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -137
  375. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -287
  376. package/.agents/skills/team-roadmap-dev/roles/coordinator/role.md +302 -302
  377. package/.agents/skills/team-roadmap-dev/roles/executor/role.md +62 -62
  378. package/.agents/skills/team-roadmap-dev/roles/planner/role.md +76 -76
  379. package/.agents/skills/team-roadmap-dev/roles/verifier/role.md +64 -64
  380. package/.agents/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  381. package/.agents/skills/team-roadmap-dev/specs/team-config.json +3 -3
  382. package/.agents/skills/team-swarm/SKILL.md +173 -173
  383. package/.agents/skills/team-tech-debt/SKILL.md +123 -123
  384. package/.agents/skills/team-tech-debt/roles/assessor/role.md +71 -71
  385. package/.agents/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  386. package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -156
  387. package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -209
  388. package/.agents/skills/team-tech-debt/roles/coordinator/role.md +123 -123
  389. package/.agents/skills/team-tech-debt/roles/executor/role.md +1 -1
  390. package/.agents/skills/team-tech-debt/roles/planner/role.md +63 -63
  391. package/.agents/skills/team-tech-debt/roles/scanner/role.md +84 -84
  392. package/.agents/skills/team-tech-debt/roles/validator/role.md +2 -2
  393. package/.agents/skills/team-tech-debt/specs/pipelines.md +47 -47
  394. package/.agents/skills/team-tech-debt/specs/team-config.json +5 -5
  395. package/.agents/skills/team-testing/SKILL.md +138 -138
  396. package/.agents/skills/team-testing/roles/analyst/role.md +95 -95
  397. package/.agents/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  398. package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -108
  399. package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +257 -257
  400. package/.agents/skills/team-testing/roles/coordinator/role.md +134 -134
  401. package/.agents/skills/team-testing/roles/executor/role.md +2 -2
  402. package/.agents/skills/team-testing/roles/generator/role.md +1 -1
  403. package/.agents/skills/team-testing/roles/strategist/role.md +75 -75
  404. package/.agents/skills/team-testing/specs/pipelines.md +101 -101
  405. package/.agents/skills/team-ui-polish/SKILL.md +136 -136
  406. package/.agents/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -77
  407. package/.agents/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -194
  408. package/.agents/skills/team-ui-polish/roles/coordinator/commands/monitor.md +212 -212
  409. package/.agents/skills/team-ui-polish/roles/coordinator/role.md +170 -170
  410. package/.agents/skills/team-ui-polish/roles/diagnostician/role.md +154 -154
  411. package/.agents/skills/team-ui-polish/roles/optimizer/role.md +219 -219
  412. package/.agents/skills/team-ui-polish/roles/scanner/role.md +350 -350
  413. package/.agents/skills/team-ui-polish/roles/verifier/role.md +136 -136
  414. package/.agents/skills/team-ui-polish/specs/anti-patterns.md +141 -141
  415. package/.agents/skills/team-ui-polish/specs/design-standards.md +356 -356
  416. package/.agents/skills/team-ui-polish/specs/fix-strategies.md +235 -235
  417. package/.agents/skills/team-ui-polish/specs/pipelines.md +81 -81
  418. package/.agents/skills/team-ui-polish/specs/scoring-guide.md +162 -162
  419. package/.agents/skills/team-uidesign/SKILL.md +139 -139
  420. package/.agents/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  421. package/.agents/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -185
  422. package/.agents/skills/team-uidesign/roles/coordinator/commands/monitor.md +216 -216
  423. package/.agents/skills/team-uidesign/roles/coordinator/role.md +168 -168
  424. package/.agents/skills/team-uidesign/roles/designer/role.md +87 -87
  425. package/.agents/skills/team-uidesign/roles/implementer/role.md +88 -88
  426. package/.agents/skills/team-uidesign/roles/researcher/role.md +95 -95
  427. package/.agents/skills/team-uidesign/roles/reviewer/role.md +63 -63
  428. package/.agents/skills/team-uidesign/specs/anti-patterns.md +211 -211
  429. package/.agents/skills/team-uidesign/specs/design-standards.md +329 -329
  430. package/.agents/skills/team-uidesign/specs/pipelines.md +76 -76
  431. package/.agents/skills/team-uidesign/specs/scoring-guide.md +114 -114
  432. package/.agents/skills/team-uidesign/specs/ux-writing.md +86 -86
  433. package/.agents/skills/team-ultra-analyze/SKILL.md +168 -168
  434. package/.agents/skills/team-ultra-analyze/roles/analyst/role.md +89 -89
  435. package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  436. package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -285
  437. package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +372 -372
  438. package/.agents/skills/team-ultra-analyze/roles/coordinator/role.md +247 -247
  439. package/.agents/skills/team-ultra-analyze/roles/discussant/role.md +99 -99
  440. package/.agents/skills/team-ultra-analyze/roles/explorer/role.md +74 -74
  441. package/.agents/skills/team-ultra-analyze/roles/synthesizer/role.md +70 -70
  442. package/.agents/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  443. package/.agents/skills/team-ultra-analyze/specs/team-config.json +6 -6
  444. package/.agents/skills/team-ux-improve/SKILL.md +146 -146
  445. package/.agents/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  446. package/.agents/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -200
  447. package/.agents/skills/team-ux-improve/roles/coordinator/commands/monitor.md +186 -186
  448. package/.agents/skills/team-ux-improve/roles/coordinator/role.md +142 -142
  449. package/.agents/skills/team-ux-improve/roles/designer/role.md +146 -146
  450. package/.agents/skills/team-ux-improve/roles/diagnoser/role.md +102 -102
  451. package/.agents/skills/team-ux-improve/roles/explorer/role.md +71 -71
  452. package/.agents/skills/team-ux-improve/roles/implementer/role.md +96 -96
  453. package/.agents/skills/team-ux-improve/roles/scanner/role.md +129 -129
  454. package/.agents/skills/team-ux-improve/roles/tester/role.md +78 -78
  455. package/.agents/skills/team-ux-improve/specs/anti-patterns.md +103 -103
  456. package/.agents/skills/team-ux-improve/specs/design-standards.md +54 -54
  457. package/.agents/skills/team-ux-improve/specs/heuristics.md +88 -88
  458. package/.agents/skills/team-ux-improve/specs/pipelines.md +54 -54
  459. package/.agents/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -49
  460. package/.agents/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -34
  461. package/.agents/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -40
  462. package/.agents/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -43
  463. package/.agents/skills/team-visual-a11y/SKILL.md +151 -151
  464. package/.agents/skills/team-visual-a11y/roles/color-auditor/role.md +172 -172
  465. package/.agents/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -72
  466. package/.agents/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -250
  467. package/.agents/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +236 -236
  468. package/.agents/skills/team-visual-a11y/roles/coordinator/role.md +169 -169
  469. package/.agents/skills/team-visual-a11y/roles/fix-implementer/role.md +240 -240
  470. package/.agents/skills/team-visual-a11y/roles/focus-auditor/role.md +216 -216
  471. package/.agents/skills/team-visual-a11y/roles/remediation-planner/role.md +200 -200
  472. package/.agents/skills/team-visual-a11y/roles/typo-auditor/role.md +179 -179
  473. package/.agents/skills/team-visual-a11y/specs/focus-patterns.md +325 -325
  474. package/.agents/skills/team-visual-a11y/specs/oklch-standards.md +130 -130
  475. package/.agents/skills/team-visual-a11y/specs/pipelines.md +98 -98
  476. package/.agents/skills/team-visual-a11y/specs/typography-scale.md +165 -165
  477. package/.agents/skills/team-visual-a11y/specs/wcag-matrix.md +133 -133
  478. package/.agy/agents/cli-explore-agent.md +1 -1
  479. package/.agy/agents/role-design-author.md +1 -1
  480. package/.agy/agents/team-supervisor.md +131 -131
  481. package/.agy/agents/ui-design-agent.md +1 -1
  482. package/.agy/agents/workflow-codebase-mapper.md +67 -67
  483. package/.agy/agents/workflow-collab-planner.md +1 -1
  484. package/.agy/agents/workflow-debugger.md +1 -1
  485. package/.agy/agents/workflow-executor.md +2 -2
  486. package/.agy/agents/workflow-external-researcher.md +78 -78
  487. package/.agy/agents/workflow-nyquist-auditor.md +1 -1
  488. package/.agy/agents/workflow-plan-checker.md +1 -1
  489. package/.agy/agents/workflow-planner.md +1 -1
  490. package/.agy/agents/workflow-project-researcher.md +63 -63
  491. package/.agy/agents/workflow-research-synthesizer.md +63 -63
  492. package/.agy/agents/workflow-reviewer.md +73 -73
  493. package/.agy/agents/workflow-verifier.md +1 -1
  494. package/.agy/skills/codify-to-knowhow/SKILL.md +1 -1
  495. package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +1 -1
  496. package/.agy/skills/codify-to-knowhow/phases/04-index-verify.md +2 -2
  497. package/.agy/skills/delegation-check/SKILL.md +297 -292
  498. package/.agy/skills/delegation-check/specs/separation-rules.md +248 -248
  499. package/.agy/skills/learn-follow/SKILL.md +114 -114
  500. package/.agy/skills/learn-investigate/SKILL.md +138 -138
  501. package/.agy/skills/learn-second-opinion/SKILL.md +105 -105
  502. package/.agy/skills/maestro/SKILL.md +227 -227
  503. package/.agy/skills/maestro-amend/SKILL.md +150 -150
  504. package/.agy/skills/maestro-analyze/SKILL.md +210 -210
  505. package/.agy/skills/maestro-blueprint/SKILL.md +175 -175
  506. package/.agy/skills/maestro-brainstorm/SKILL.md +205 -205
  507. package/.agy/skills/maestro-collab/SKILL.md +173 -173
  508. package/.agy/skills/maestro-companion/SKILL.md +517 -517
  509. package/.agy/skills/maestro-composer/SKILL.md +173 -173
  510. package/.agy/skills/maestro-execute/SKILL.md +169 -169
  511. package/.agy/skills/maestro-fork/SKILL.md +97 -97
  512. package/.agy/skills/maestro-grill/SKILL.md +161 -161
  513. package/.agy/skills/maestro-guard/SKILL.md +93 -93
  514. package/.agy/skills/maestro-help/index/catalog.json +1 -1
  515. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +1 -1
  516. package/.agy/skills/maestro-impeccable/SKILL.md +296 -296
  517. package/.agy/skills/maestro-init/SKILL.md +117 -117
  518. package/.agy/skills/maestro-merge/SKILL.md +73 -73
  519. package/.agy/skills/maestro-milestone-audit/SKILL.md +126 -126
  520. package/.agy/skills/maestro-milestone-complete/SKILL.md +123 -123
  521. package/.agy/skills/maestro-milestone-release/SKILL.md +122 -122
  522. package/.agy/skills/maestro-next/SKILL.md +252 -252
  523. package/.agy/skills/maestro-overlay/SKILL.md +177 -177
  524. package/.agy/skills/maestro-plan/SKILL.md +222 -222
  525. package/.agy/skills/maestro-player/SKILL.md +167 -167
  526. package/.agy/skills/maestro-quick/SKILL.md +69 -69
  527. package/.agy/skills/maestro-ralph/SKILL.md +831 -831
  528. package/.agy/skills/maestro-ralph-execute/SKILL.md +276 -276
  529. package/.agy/skills/maestro-roadmap/SKILL.md +159 -159
  530. package/.agy/skills/maestro-swarm-workflow/SKILL.md +229 -229
  531. package/.agy/skills/maestro-tools-execute/SKILL.md +108 -108
  532. package/.agy/skills/maestro-tools-register/SKILL.md +142 -142
  533. package/.agy/skills/maestro-ui-codify/SKILL.md +101 -101
  534. package/.agy/skills/maestro-universal-workflow/SKILL.md +534 -534
  535. package/.agy/skills/maestro-update/SKILL.md +109 -109
  536. package/.agy/skills/manage-codebase-rebuild/SKILL.md +73 -73
  537. package/.agy/skills/manage-harvest/SKILL.md +86 -86
  538. package/.agy/skills/manage-issue/SKILL.md +59 -59
  539. package/.agy/skills/manage-issue-discover/SKILL.md +70 -70
  540. package/.agy/skills/manage-kg-extractors/SKILL.md +2 -2
  541. package/.agy/skills/manage-knowhow/SKILL.md +70 -70
  542. package/.agy/skills/manage-knowhow-capture/SKILL.md +79 -79
  543. package/.agy/skills/manage-knowledge-audit/SKILL.md +120 -120
  544. package/.agy/skills/manage-status/SKILL.md +52 -52
  545. package/.agy/skills/manage-wiki/SKILL.md +69 -69
  546. package/.agy/skills/odyssey-debug/SKILL.md +465 -465
  547. package/.agy/skills/odyssey-improve/SKILL.md +496 -496
  548. package/.agy/skills/odyssey-planex/SKILL.md +594 -594
  549. package/.agy/skills/odyssey-review-test-fix/SKILL.md +422 -422
  550. package/.agy/skills/odyssey-ui/SKILL.md +450 -450
  551. package/.agy/skills/prompt-generator/SKILL.md +472 -465
  552. package/.agy/skills/prompt-generator/specs/agent-design-spec.md +299 -299
  553. package/.agy/skills/prompt-generator/specs/command-design-spec.md +367 -367
  554. package/.agy/skills/prompt-generator/specs/conversion-spec.md +207 -207
  555. package/.agy/skills/prompt-generator/templates/agent-md.md +145 -145
  556. package/.agy/skills/prompt-generator/templates/command-md.md +118 -118
  557. package/.agy/skills/quality-auto-test/SKILL.md +140 -140
  558. package/.agy/skills/quality-debug/SKILL.md +145 -145
  559. package/.agy/skills/quality-refactor/SKILL.md +91 -91
  560. package/.agy/skills/quality-retrospective/SKILL.md +109 -109
  561. package/.agy/skills/quality-review/SKILL.md +144 -144
  562. package/.agy/skills/quality-sync/SKILL.md +74 -74
  563. package/.agy/skills/quality-test/SKILL.md +157 -157
  564. package/.agy/skills/scholar-anti-ai-writing/SKILL.md +175 -168
  565. package/.agy/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -126
  566. package/.agy/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -177
  567. package/.agy/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -134
  568. package/.agy/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -242
  569. package/.agy/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -242
  570. package/.agy/skills/scholar-citation-verify/SKILL.md +170 -161
  571. package/.agy/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -141
  572. package/.agy/skills/scholar-citation-verify/phases/02-verify.md +310 -310
  573. package/.agy/skills/scholar-citation-verify/phases/03-report-fix.md +190 -190
  574. package/.agy/skills/scholar-citation-verify/references/api-usage.md +372 -372
  575. package/.agy/skills/scholar-citation-verify/references/common-errors.md +384 -384
  576. package/.agy/skills/scholar-citation-verify/references/verification-rules.md +399 -399
  577. package/.agy/skills/scholar-experiment/SKILL.md +323 -316
  578. package/.agy/skills/scholar-experiment/phases/01-data-loading.md +209 -209
  579. package/.agy/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -269
  580. package/.agy/skills/scholar-experiment/phases/03-visualization.md +319 -319
  581. package/.agy/skills/scholar-experiment/phases/04-results-writing.md +229 -229
  582. package/.agy/skills/scholar-experiment/phases/05-quality-check.md +261 -261
  583. package/.agy/skills/scholar-ideation/SKILL.md +292 -283
  584. package/.agy/skills/scholar-ideation/phases/01-literature-search.md +317 -317
  585. package/.agy/skills/scholar-ideation/phases/02-gap-analysis.md +249 -249
  586. package/.agy/skills/scholar-ideation/phases/03-research-question.md +200 -200
  587. package/.agy/skills/scholar-ideation/phases/04-method-selection.md +185 -185
  588. package/.agy/skills/scholar-ideation/phases/05-research-planning.md +385 -385
  589. package/.agy/skills/scholar-latex-organizer/SKILL.md +190 -181
  590. package/.agy/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -228
  591. package/.agy/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -500
  592. package/.agy/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -349
  593. package/.agy/skills/scholar-publish/SKILL.md +222 -215
  594. package/.agy/skills/scholar-publish/phases/01-presentation.md +243 -243
  595. package/.agy/skills/scholar-publish/phases/02-poster.md +239 -239
  596. package/.agy/skills/scholar-publish/phases/03-promotion.md +255 -255
  597. package/.agy/skills/scholar-rebuttal-pro/README.md +313 -313
  598. package/.agy/skills/scholar-rebuttal-pro/SKILL.md +518 -507
  599. package/.agy/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -227
  600. package/.agy/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -395
  601. package/.agy/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -459
  602. package/.agy/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -384
  603. package/.agy/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -691
  604. package/.agy/skills/scholar-review/SKILL.md +231 -222
  605. package/.agy/skills/scholar-review/phases/01-self-review.md +186 -186
  606. package/.agy/skills/scholar-review/phases/02-review-analysis.md +203 -203
  607. package/.agy/skills/scholar-review/phases/03-response-strategy.md +193 -193
  608. package/.agy/skills/scholar-review/phases/04-rebuttal-writing.md +181 -181
  609. package/.agy/skills/scholar-review/phases/05-revision.md +183 -183
  610. package/.agy/skills/scholar-review/specs/tone-guidelines.md +76 -76
  611. package/.agy/skills/scholar-thesis-docx/README.md +111 -111
  612. package/.agy/skills/scholar-thesis-docx/README_EN.md +108 -108
  613. package/.agy/skills/scholar-thesis-docx/SKILL.md +209 -208
  614. package/.agy/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -46
  615. package/.agy/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -178
  616. package/.agy/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -33
  617. package/.agy/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -68
  618. package/.agy/skills/scholar-thesis-docx/references/script-usage.md +157 -157
  619. package/.agy/skills/scholar-writing/SKILL.md +301 -291
  620. package/.agy/skills/scholar-writing/phases/01-repo-understanding.md +178 -178
  621. package/.agy/skills/scholar-writing/phases/02-structure-planning.md +197 -197
  622. package/.agy/skills/scholar-writing/phases/03-section-drafting.md +215 -215
  623. package/.agy/skills/scholar-writing/phases/04-citation-management.md +310 -310
  624. package/.agy/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -202
  625. package/.agy/skills/scholar-writing/phases/06-conference-formatting.md +260 -260
  626. package/.agy/skills/security-audit/SKILL.md +217 -217
  627. package/.agy/skills/skill-generator/SKILL.md +475 -465
  628. package/.agy/skills/skill-generator/phases/01-requirements-discovery.md +238 -238
  629. package/.agy/skills/skill-generator/phases/02-structure-generation.md +261 -261
  630. package/.agy/skills/skill-generator/phases/03-phase-generation.md +976 -976
  631. package/.agy/skills/skill-generator/phases/04-specs-templates.md +398 -398
  632. package/.agy/skills/skill-generator/phases/05-validation.md +417 -417
  633. package/.agy/skills/skill-generator/specs/cli-integration.md +418 -418
  634. package/.agy/skills/skill-generator/specs/execution-modes.md +399 -399
  635. package/.agy/skills/skill-generator/specs/reference-docs-spec.md +271 -271
  636. package/.agy/skills/skill-generator/specs/scripting-integration.md +265 -265
  637. package/.agy/skills/skill-generator/specs/skill-requirements.md +466 -466
  638. package/.agy/skills/skill-generator/templates/autonomous-action.md +330 -330
  639. package/.agy/skills/skill-generator/templates/autonomous-orchestrator.md +300 -300
  640. package/.agy/skills/skill-generator/templates/code-analysis-action.md +514 -514
  641. package/.agy/skills/skill-generator/templates/llm-action.md +367 -367
  642. package/.agy/skills/skill-generator/templates/script-template.md +368 -368
  643. package/.agy/skills/skill-generator/templates/sequential-phase.md +470 -470
  644. package/.agy/skills/skill-generator/templates/skill-md.md +312 -312
  645. package/.agy/skills/skill-iter-tune/SKILL.md +389 -378
  646. package/.agy/skills/skill-iter-tune/phases/01-setup.md +144 -144
  647. package/.agy/skills/skill-iter-tune/phases/02-execute.md +292 -292
  648. package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +312 -312
  649. package/.agy/skills/skill-iter-tune/phases/04-improve.md +186 -186
  650. package/.agy/skills/skill-iter-tune/phases/05-report.md +166 -166
  651. package/.agy/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -63
  652. package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +134 -134
  653. package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +97 -97
  654. package/.agy/skills/skill-simplify/SKILL.md +65 -58
  655. package/.agy/skills/skill-simplify/phases/01-analysis.md +224 -224
  656. package/.agy/skills/skill-simplify/phases/02-optimize.md +111 -111
  657. package/.agy/skills/skill-simplify/phases/03-check.md +224 -224
  658. package/.agy/skills/skill-tuning/SKILL.md +180 -170
  659. package/.agy/skills/skill-tuning/phases/actions/action-abort.md +164 -164
  660. package/.agy/skills/skill-tuning/phases/actions/{action-gemini-analysis.md → action-agy-analysis.md} +322 -322
  661. package/.agy/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -406
  662. package/.agy/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -206
  663. package/.agy/skills/skill-tuning/phases/actions/action-complete.md +195 -195
  664. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -317
  665. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -243
  666. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -318
  667. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -299
  668. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -269
  669. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -200
  670. package/.agy/skills/skill-tuning/phases/actions/action-generate-report.md +228 -228
  671. package/.agy/skills/skill-tuning/phases/actions/action-init.md +149 -149
  672. package/.agy/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -317
  673. package/.agy/skills/skill-tuning/phases/actions/action-verify.md +222 -222
  674. package/.agy/skills/skill-tuning/phases/orchestrator.md +190 -190
  675. package/.agy/skills/skill-tuning/phases/state-schema.md +378 -378
  676. package/.agy/skills/skill-tuning/specs/category-mappings.json +5 -5
  677. package/.agy/skills/skill-tuning/specs/dimension-mapping.md +212 -212
  678. package/.agy/skills/skill-tuning/specs/problem-taxonomy.md +210 -210
  679. package/.agy/skills/skill-tuning/specs/quality-gates.md +263 -263
  680. package/.agy/skills/skill-tuning/specs/skill-authoring-principles.md +192 -192
  681. package/.agy/skills/skill-tuning/specs/tuning-strategies.md +392 -392
  682. package/.agy/skills/skill-tuning/templates/diagnosis-report.md +153 -153
  683. package/.agy/skills/skill-tuning/templates/fix-proposal.md +204 -204
  684. package/.agy/skills/spec-add/SKILL.md +66 -66
  685. package/.agy/skills/spec-load/SKILL.md +67 -67
  686. package/.agy/skills/spec-remove/SKILL.md +42 -42
  687. package/.agy/skills/spec-setup/SKILL.md +37 -37
  688. package/.agy/skills/team-arch-opt/SKILL.md +142 -130
  689. package/.agy/skills/team-arch-opt/roles/analyzer/role.md +81 -80
  690. package/.agy/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  691. package/.agy/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -371
  692. package/.agy/skills/team-arch-opt/roles/coordinator/commands/monitor.md +193 -193
  693. package/.agy/skills/team-arch-opt/roles/coordinator/role.md +146 -146
  694. package/.agy/skills/team-arch-opt/roles/designer/role.md +110 -109
  695. package/.agy/skills/team-arch-opt/roles/refactorer/role.md +99 -98
  696. package/.agy/skills/team-arch-opt/roles/reviewer/role.md +106 -105
  697. package/.agy/skills/team-arch-opt/roles/validator/role.md +110 -109
  698. package/.agy/skills/team-arch-opt/specs/pipelines.md +102 -102
  699. package/.agy/skills/team-brainstorm/SKILL.md +132 -120
  700. package/.agy/skills/team-brainstorm/roles/challenger/role.md +56 -55
  701. package/.agy/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  702. package/.agy/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -206
  703. package/.agy/skills/team-brainstorm/roles/coordinator/commands/monitor.md +171 -171
  704. package/.agy/skills/team-brainstorm/roles/coordinator/role.md +140 -140
  705. package/.agy/skills/team-brainstorm/roles/evaluator/role.md +51 -50
  706. package/.agy/skills/team-brainstorm/roles/ideator/role.md +64 -63
  707. package/.agy/skills/team-brainstorm/roles/synthesizer/role.md +52 -51
  708. package/.agy/skills/team-brainstorm/specs/pipelines.md +72 -72
  709. package/.agy/skills/team-coordinate/SKILL.md +250 -238
  710. package/.agy/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -247
  711. package/.agy/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -131
  712. package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +336 -336
  713. package/.agy/skills/team-coordinate/roles/coordinator/role.md +361 -360
  714. package/.agy/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  715. package/.agy/skills/team-coordinate/specs/pipelines.md +97 -97
  716. package/.agy/skills/team-coordinate/specs/quality-gates.md +112 -112
  717. package/.agy/skills/team-coordinate/specs/role-spec-template.md +198 -198
  718. package/.agy/skills/team-designer/SKILL.md +167 -155
  719. package/.agy/skills/team-designer/phases/01-requirements-analysis.md +265 -265
  720. package/.agy/skills/team-designer/phases/02-scaffold-generation.md +236 -236
  721. package/.agy/skills/team-designer/phases/03-content-generation.md +330 -330
  722. package/.agy/skills/team-designer/phases/04-validation.md +329 -329
  723. package/.agy/skills/team-executor/SKILL.md +174 -162
  724. package/.agy/skills/team-executor/roles/executor/commands/monitor.md +223 -223
  725. package/.agy/skills/team-executor/roles/executor/role.md +171 -171
  726. package/.agy/skills/team-executor/specs/session-schema.md +264 -264
  727. package/.agy/skills/team-frontend/SKILL.md +122 -108
  728. package/.agy/skills/team-frontend/roles/analyst/role.md +92 -92
  729. package/.agy/skills/team-frontend/roles/architect/role.md +78 -78
  730. package/.agy/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  731. package/.agy/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -197
  732. package/.agy/skills/team-frontend/roles/coordinator/commands/monitor.md +210 -210
  733. package/.agy/skills/team-frontend/roles/coordinator/role.md +158 -158
  734. package/.agy/skills/team-frontend/roles/developer/role.md +85 -85
  735. package/.agy/skills/team-frontend/roles/qa/role.md +71 -71
  736. package/.agy/skills/team-frontend/specs/pipelines.md +76 -76
  737. package/.agy/skills/team-frontend-debug/SKILL.md +183 -170
  738. package/.agy/skills/team-frontend-debug/roles/analyzer/role.md +199 -199
  739. package/.agy/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  740. package/.agy/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -256
  741. package/.agy/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -148
  742. package/.agy/skills/team-frontend-debug/roles/coordinator/role.md +131 -131
  743. package/.agy/skills/team-frontend-debug/roles/fixer/role.md +138 -138
  744. package/.agy/skills/team-frontend-debug/roles/reproducer/role.md +147 -147
  745. package/.agy/skills/team-frontend-debug/roles/tester/role.md +222 -222
  746. package/.agy/skills/team-frontend-debug/roles/verifier/role.md +164 -164
  747. package/.agy/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  748. package/.agy/skills/team-frontend-debug/specs/pipelines.md +94 -94
  749. package/.agy/skills/team-interactive-craft/SKILL.md +128 -113
  750. package/.agy/skills/team-interactive-craft/roles/a11y-tester/role.md +154 -153
  751. package/.agy/skills/team-interactive-craft/roles/builder/role.md +211 -210
  752. package/.agy/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -71
  753. package/.agy/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -192
  754. package/.agy/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +192 -192
  755. package/.agy/skills/team-interactive-craft/roles/coordinator/role.md +166 -166
  756. package/.agy/skills/team-interactive-craft/roles/interaction-designer/role.md +139 -138
  757. package/.agy/skills/team-interactive-craft/roles/researcher/role.md +126 -125
  758. package/.agy/skills/team-interactive-craft/specs/interaction-patterns.md +362 -362
  759. package/.agy/skills/team-interactive-craft/specs/pipelines.md +85 -85
  760. package/.agy/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -83
  761. package/.agy/skills/team-issue/SKILL.md +132 -120
  762. package/.agy/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  763. package/.agy/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -349
  764. package/.agy/skills/team-issue/roles/coordinator/commands/monitor.md +183 -183
  765. package/.agy/skills/team-issue/roles/coordinator/role.md +173 -172
  766. package/.agy/skills/team-issue/roles/explorer/role.md +97 -96
  767. package/.agy/skills/team-issue/roles/implementer/role.md +82 -81
  768. package/.agy/skills/team-issue/roles/integrator/role.md +79 -78
  769. package/.agy/skills/team-issue/roles/planner/role.md +75 -74
  770. package/.agy/skills/team-issue/roles/reviewer/role.md +81 -80
  771. package/.agy/skills/team-issue/specs/pipelines.md +124 -124
  772. package/.agy/skills/team-lifecycle-v4/SKILL.md +170 -158
  773. package/.agy/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  774. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -56
  775. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -56
  776. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -206
  777. package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -130
  778. package/.agy/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -35
  779. package/.agy/skills/team-lifecycle-v4/roles/executor/role.md +58 -58
  780. package/.agy/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
  781. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -34
  782. package/.agy/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -44
  783. package/.agy/skills/team-lifecycle-v4/roles/reviewer/role.md +57 -57
  784. package/.agy/skills/team-lifecycle-v4/roles/supervisor/role.md +181 -181
  785. package/.agy/skills/team-lifecycle-v4/roles/tester/role.md +78 -78
  786. package/.agy/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  787. package/.agy/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -114
  788. package/.agy/skills/team-lifecycle-v4/specs/pipelines.md +140 -140
  789. package/.agy/skills/team-lifecycle-v4/specs/quality-gates.md +130 -130
  790. package/.agy/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  791. package/.agy/skills/team-lifecycle-v4/templates/epics.md +196 -196
  792. package/.agy/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  793. package/.agy/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  794. package/.agy/skills/team-motion-design/SKILL.md +134 -114
  795. package/.agy/skills/team-motion-design/roles/animator/role.md +189 -188
  796. package/.agy/skills/team-motion-design/roles/choreographer/role.md +159 -158
  797. package/.agy/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -64
  798. package/.agy/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -203
  799. package/.agy/skills/team-motion-design/roles/coordinator/commands/monitor.md +193 -193
  800. package/.agy/skills/team-motion-design/roles/coordinator/role.md +167 -167
  801. package/.agy/skills/team-motion-design/roles/motion-researcher/role.md +110 -109
  802. package/.agy/skills/team-motion-design/roles/motion-tester/role.md +170 -169
  803. package/.agy/skills/team-motion-design/specs/gpu-constraints.md +114 -114
  804. package/.agy/skills/team-motion-design/specs/motion-tokens.md +128 -128
  805. package/.agy/skills/team-motion-design/specs/pipelines.md +74 -74
  806. package/.agy/skills/team-motion-design/specs/reduced-motion.md +129 -129
  807. package/.agy/skills/team-perf-opt/SKILL.md +159 -147
  808. package/.agy/skills/team-perf-opt/roles/benchmarker/role.md +80 -80
  809. package/.agy/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  810. package/.agy/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -376
  811. package/.agy/skills/team-perf-opt/roles/coordinator/commands/monitor.md +339 -339
  812. package/.agy/skills/team-perf-opt/roles/coordinator/role.md +147 -147
  813. package/.agy/skills/team-perf-opt/roles/optimizer/role.md +89 -89
  814. package/.agy/skills/team-perf-opt/roles/profiler/role.md +73 -73
  815. package/.agy/skills/team-perf-opt/roles/reviewer/role.md +64 -64
  816. package/.agy/skills/team-perf-opt/roles/strategist/role.md +85 -85
  817. package/.agy/skills/team-perf-opt/specs/pipelines.md +65 -65
  818. package/.agy/skills/team-planex/SKILL.md +120 -108
  819. package/.agy/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  820. package/.agy/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -87
  821. package/.agy/skills/team-planex/roles/coordinator/commands/monitor.md +174 -174
  822. package/.agy/skills/team-planex/roles/coordinator/role.md +140 -140
  823. package/.agy/skills/team-planex/roles/executor/role.md +83 -83
  824. package/.agy/skills/team-planex/roles/planner/role.md +111 -111
  825. package/.agy/skills/team-planex/specs/pipelines.md +93 -93
  826. package/.agy/skills/team-quality-assurance/SKILL.md +131 -119
  827. package/.agy/skills/team-quality-assurance/roles/analyst/role.md +79 -79
  828. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  829. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -111
  830. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +223 -223
  831. package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +143 -143
  832. package/.agy/skills/team-quality-assurance/roles/executor/role.md +55 -55
  833. package/.agy/skills/team-quality-assurance/roles/generator/role.md +58 -58
  834. package/.agy/skills/team-quality-assurance/roles/scout/role.md +70 -70
  835. package/.agy/skills/team-quality-assurance/roles/strategist/role.md +63 -63
  836. package/.agy/skills/team-quality-assurance/specs/pipelines.md +115 -115
  837. package/.agy/skills/team-quality-assurance/specs/team-config.json +8 -8
  838. package/.agy/skills/team-review/SKILL.md +131 -119
  839. package/.agy/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  840. package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +91 -91
  841. package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +197 -197
  842. package/.agy/skills/team-review/roles/coordinator/role.md +132 -132
  843. package/.agy/skills/team-review/roles/fixer/role.md +68 -68
  844. package/.agy/skills/team-review/specs/dimensions.md +82 -82
  845. package/.agy/skills/team-review/specs/pipelines.md +102 -102
  846. package/.agy/skills/team-roadmap-dev/SKILL.md +153 -141
  847. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  848. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -212
  849. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +448 -448
  850. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -90
  851. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -137
  852. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -287
  853. package/.agy/skills/team-roadmap-dev/roles/coordinator/role.md +302 -302
  854. package/.agy/skills/team-roadmap-dev/roles/executor/role.md +62 -62
  855. package/.agy/skills/team-roadmap-dev/roles/planner/role.md +76 -76
  856. package/.agy/skills/team-roadmap-dev/roles/verifier/role.md +64 -64
  857. package/.agy/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  858. package/.agy/skills/team-roadmap-dev/specs/team-config.json +3 -3
  859. package/.agy/skills/team-swarm/SKILL.md +159 -147
  860. package/.agy/skills/team-tech-debt/SKILL.md +115 -100
  861. package/.agy/skills/team-tech-debt/roles/assessor/role.md +72 -71
  862. package/.agy/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  863. package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -156
  864. package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +186 -186
  865. package/.agy/skills/team-tech-debt/roles/coordinator/role.md +123 -123
  866. package/.agy/skills/team-tech-debt/roles/executor/role.md +1 -1
  867. package/.agy/skills/team-tech-debt/roles/planner/role.md +64 -63
  868. package/.agy/skills/team-tech-debt/roles/scanner/role.md +85 -84
  869. package/.agy/skills/team-tech-debt/roles/validator/role.md +2 -2
  870. package/.agy/skills/team-tech-debt/specs/pipelines.md +47 -47
  871. package/.agy/skills/team-tech-debt/specs/team-config.json +5 -5
  872. package/.agy/skills/team-testing/SKILL.md +127 -115
  873. package/.agy/skills/team-testing/roles/analyst/role.md +95 -95
  874. package/.agy/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  875. package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -108
  876. package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +230 -230
  877. package/.agy/skills/team-testing/roles/coordinator/role.md +134 -134
  878. package/.agy/skills/team-testing/roles/executor/role.md +2 -2
  879. package/.agy/skills/team-testing/roles/generator/role.md +1 -1
  880. package/.agy/skills/team-testing/roles/strategist/role.md +75 -75
  881. package/.agy/skills/team-testing/specs/pipelines.md +101 -101
  882. package/.agy/skills/team-ui-polish/SKILL.md +132 -113
  883. package/.agy/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -77
  884. package/.agy/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -194
  885. package/.agy/skills/team-ui-polish/roles/coordinator/commands/monitor.md +189 -189
  886. package/.agy/skills/team-ui-polish/roles/coordinator/role.md +170 -170
  887. package/.agy/skills/team-ui-polish/roles/diagnostician/role.md +155 -154
  888. package/.agy/skills/team-ui-polish/roles/optimizer/role.md +220 -219
  889. package/.agy/skills/team-ui-polish/roles/scanner/role.md +351 -350
  890. package/.agy/skills/team-ui-polish/roles/verifier/role.md +137 -136
  891. package/.agy/skills/team-ui-polish/specs/anti-patterns.md +141 -141
  892. package/.agy/skills/team-ui-polish/specs/design-standards.md +356 -356
  893. package/.agy/skills/team-ui-polish/specs/fix-strategies.md +235 -235
  894. package/.agy/skills/team-ui-polish/specs/pipelines.md +81 -81
  895. package/.agy/skills/team-ui-polish/specs/scoring-guide.md +162 -162
  896. package/.agy/skills/team-uidesign/SKILL.md +131 -116
  897. package/.agy/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  898. package/.agy/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -185
  899. package/.agy/skills/team-uidesign/roles/coordinator/commands/monitor.md +193 -193
  900. package/.agy/skills/team-uidesign/roles/coordinator/role.md +168 -168
  901. package/.agy/skills/team-uidesign/roles/designer/role.md +88 -87
  902. package/.agy/skills/team-uidesign/roles/implementer/role.md +89 -88
  903. package/.agy/skills/team-uidesign/roles/researcher/role.md +96 -95
  904. package/.agy/skills/team-uidesign/roles/reviewer/role.md +64 -63
  905. package/.agy/skills/team-uidesign/specs/anti-patterns.md +211 -211
  906. package/.agy/skills/team-uidesign/specs/design-standards.md +329 -329
  907. package/.agy/skills/team-uidesign/specs/pipelines.md +76 -76
  908. package/.agy/skills/team-uidesign/specs/scoring-guide.md +114 -114
  909. package/.agy/skills/team-uidesign/specs/ux-writing.md +86 -86
  910. package/.agy/skills/team-ultra-analyze/SKILL.md +156 -144
  911. package/.agy/skills/team-ultra-analyze/roles/analyst/role.md +89 -89
  912. package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  913. package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -285
  914. package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +344 -344
  915. package/.agy/skills/team-ultra-analyze/roles/coordinator/role.md +247 -247
  916. package/.agy/skills/team-ultra-analyze/roles/discussant/role.md +99 -99
  917. package/.agy/skills/team-ultra-analyze/roles/explorer/role.md +74 -74
  918. package/.agy/skills/team-ultra-analyze/roles/synthesizer/role.md +70 -70
  919. package/.agy/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  920. package/.agy/skills/team-ultra-analyze/specs/team-config.json +6 -6
  921. package/.agy/skills/team-ux-improve/SKILL.md +138 -123
  922. package/.agy/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  923. package/.agy/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -200
  924. package/.agy/skills/team-ux-improve/roles/coordinator/commands/monitor.md +163 -163
  925. package/.agy/skills/team-ux-improve/roles/coordinator/role.md +142 -142
  926. package/.agy/skills/team-ux-improve/roles/designer/role.md +147 -146
  927. package/.agy/skills/team-ux-improve/roles/diagnoser/role.md +103 -102
  928. package/.agy/skills/team-ux-improve/roles/explorer/role.md +72 -71
  929. package/.agy/skills/team-ux-improve/roles/implementer/role.md +97 -96
  930. package/.agy/skills/team-ux-improve/roles/scanner/role.md +130 -129
  931. package/.agy/skills/team-ux-improve/roles/tester/role.md +79 -78
  932. package/.agy/skills/team-ux-improve/specs/anti-patterns.md +103 -103
  933. package/.agy/skills/team-ux-improve/specs/design-standards.md +54 -54
  934. package/.agy/skills/team-ux-improve/specs/heuristics.md +88 -88
  935. package/.agy/skills/team-ux-improve/specs/pipelines.md +54 -54
  936. package/.agy/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -49
  937. package/.agy/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -34
  938. package/.agy/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -40
  939. package/.agy/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -43
  940. package/.agy/skills/team-visual-a11y/SKILL.md +149 -128
  941. package/.agy/skills/team-visual-a11y/roles/color-auditor/role.md +173 -172
  942. package/.agy/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -72
  943. package/.agy/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -250
  944. package/.agy/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +213 -213
  945. package/.agy/skills/team-visual-a11y/roles/coordinator/role.md +169 -169
  946. package/.agy/skills/team-visual-a11y/roles/fix-implementer/role.md +241 -240
  947. package/.agy/skills/team-visual-a11y/roles/focus-auditor/role.md +217 -216
  948. package/.agy/skills/team-visual-a11y/roles/remediation-planner/role.md +201 -200
  949. package/.agy/skills/team-visual-a11y/roles/typo-auditor/role.md +180 -179
  950. package/.agy/skills/team-visual-a11y/specs/focus-patterns.md +325 -325
  951. package/.agy/skills/team-visual-a11y/specs/oklch-standards.md +130 -130
  952. package/.agy/skills/team-visual-a11y/specs/pipelines.md +98 -98
  953. package/.agy/skills/team-visual-a11y/specs/typography-scale.md +165 -165
  954. package/.agy/skills/team-visual-a11y/specs/wcag-matrix.md +133 -133
  955. package/.claude/agents/cli-explore-agent.md +1 -1
  956. package/.claude/agents/role-design-author.md +1 -1
  957. package/.claude/agents/team-supervisor.md +143 -143
  958. package/.claude/agents/ui-design-agent.md +1 -1
  959. package/.claude/agents/workflow-codebase-mapper.md +77 -77
  960. package/.claude/agents/workflow-collab-planner.md +1 -1
  961. package/.claude/agents/workflow-debugger.md +1 -1
  962. package/.claude/agents/workflow-executor.md +2 -2
  963. package/.claude/agents/workflow-external-researcher.md +86 -86
  964. package/.claude/agents/workflow-nyquist-auditor.md +1 -1
  965. package/.claude/agents/workflow-plan-checker.md +1 -1
  966. package/.claude/agents/workflow-planner.md +1 -1
  967. package/.claude/agents/workflow-project-researcher.md +74 -74
  968. package/.claude/agents/workflow-research-synthesizer.md +70 -70
  969. package/.claude/agents/workflow-reviewer.md +82 -82
  970. package/.claude/agents/workflow-verifier.md +1 -1
  971. package/.claude/commands/learn-follow.md +127 -127
  972. package/.claude/commands/learn-investigate.md +151 -151
  973. package/.claude/commands/learn-second-opinion.md +118 -118
  974. package/.claude/commands/maestro-amend.md +162 -162
  975. package/.claude/commands/maestro-analyze.md +224 -224
  976. package/.claude/commands/maestro-blueprint.md +189 -189
  977. package/.claude/commands/maestro-brainstorm.md +218 -218
  978. package/.claude/commands/maestro-collab.md +185 -185
  979. package/.claude/commands/maestro-companion.md +531 -531
  980. package/.claude/commands/maestro-composer.md +188 -188
  981. package/.claude/commands/maestro-execute.md +183 -183
  982. package/.claude/commands/maestro-fork.md +111 -111
  983. package/.claude/commands/maestro-grill.md +175 -175
  984. package/.claude/commands/maestro-guard.md +103 -103
  985. package/.claude/commands/maestro-impeccable.md +311 -311
  986. package/.claude/commands/maestro-init.md +130 -130
  987. package/.claude/commands/maestro-merge.md +87 -87
  988. package/.claude/commands/maestro-milestone-audit.md +139 -139
  989. package/.claude/commands/maestro-milestone-complete.md +136 -136
  990. package/.claude/commands/maestro-milestone-release.md +136 -136
  991. package/.claude/commands/maestro-next.md +264 -264
  992. package/.claude/commands/maestro-overlay.md +189 -189
  993. package/.claude/commands/maestro-plan.md +236 -236
  994. package/.claude/commands/maestro-player.md +182 -182
  995. package/.claude/commands/maestro-quick.md +83 -83
  996. package/.claude/commands/maestro-ralph-execute.md +289 -289
  997. package/.claude/commands/maestro-ralph.md +845 -845
  998. package/.claude/commands/maestro-roadmap.md +173 -173
  999. package/.claude/commands/maestro-swarm-workflow.md +243 -243
  1000. package/.claude/commands/maestro-tools-execute.md +122 -122
  1001. package/.claude/commands/maestro-tools-register.md +156 -156
  1002. package/.claude/commands/maestro-ui-codify.md +115 -115
  1003. package/.claude/commands/maestro-universal-workflow.md +548 -548
  1004. package/.claude/commands/maestro-update.md +122 -122
  1005. package/.claude/commands/maestro.md +242 -242
  1006. package/.claude/commands/manage-codebase-rebuild.md +87 -87
  1007. package/.claude/commands/manage-harvest.md +100 -100
  1008. package/.claude/commands/manage-issue-discover.md +83 -83
  1009. package/.claude/commands/manage-issue.md +72 -72
  1010. package/.claude/commands/manage-kg-extractors.md +2 -2
  1011. package/.claude/commands/manage-knowhow-capture.md +92 -92
  1012. package/.claude/commands/manage-knowhow.md +83 -83
  1013. package/.claude/commands/manage-knowledge-audit.md +134 -134
  1014. package/.claude/commands/manage-status.md +62 -62
  1015. package/.claude/commands/manage-wiki.md +82 -82
  1016. package/.claude/commands/odyssey-debug.md +479 -479
  1017. package/.claude/commands/odyssey-improve.md +510 -510
  1018. package/.claude/commands/odyssey-planex.md +608 -608
  1019. package/.claude/commands/odyssey-review-test-fix.md +436 -436
  1020. package/.claude/commands/odyssey-ui.md +464 -464
  1021. package/.claude/commands/quality-auto-test.md +153 -153
  1022. package/.claude/commands/quality-debug.md +159 -159
  1023. package/.claude/commands/quality-refactor.md +105 -105
  1024. package/.claude/commands/quality-retrospective.md +123 -123
  1025. package/.claude/commands/quality-review.md +158 -158
  1026. package/.claude/commands/quality-sync.md +88 -88
  1027. package/.claude/commands/quality-test.md +171 -171
  1028. package/.claude/commands/security-audit.md +230 -230
  1029. package/.claude/commands/spec-add.md +77 -77
  1030. package/.claude/commands/spec-load.md +77 -77
  1031. package/.claude/commands/spec-remove.md +55 -55
  1032. package/.claude/commands/spec-setup.md +48 -48
  1033. package/.claude/skills/codify-to-knowhow/SKILL.md +1 -1
  1034. package/.claude/skills/codify-to-knowhow/phases/03-generate-specs.md +1 -1
  1035. package/.claude/skills/codify-to-knowhow/phases/04-index-verify.md +2 -2
  1036. package/.claude/skills/delegation-check/SKILL.md +297 -297
  1037. package/.claude/skills/delegation-check/specs/separation-rules.md +269 -269
  1038. package/.claude/skills/maestro-help/index/catalog.json +1 -1
  1039. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +1 -1
  1040. package/.claude/skills/prompt-generator/SKILL.md +470 -470
  1041. package/.claude/skills/prompt-generator/specs/agent-design-spec.md +299 -299
  1042. package/.claude/skills/prompt-generator/specs/command-design-spec.md +367 -367
  1043. package/.claude/skills/prompt-generator/specs/conversion-spec.md +207 -207
  1044. package/.claude/skills/prompt-generator/templates/agent-md.md +145 -145
  1045. package/.claude/skills/prompt-generator/templates/command-md.md +118 -118
  1046. package/.claude/skills/scholar-anti-ai-writing/SKILL.md +173 -173
  1047. package/.claude/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -126
  1048. package/.claude/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -177
  1049. package/.claude/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -134
  1050. package/.claude/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -242
  1051. package/.claude/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -242
  1052. package/.claude/skills/scholar-citation-verify/SKILL.md +166 -166
  1053. package/.claude/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -141
  1054. package/.claude/skills/scholar-citation-verify/phases/02-verify.md +310 -310
  1055. package/.claude/skills/scholar-citation-verify/phases/03-report-fix.md +190 -190
  1056. package/.claude/skills/scholar-citation-verify/references/api-usage.md +372 -372
  1057. package/.claude/skills/scholar-citation-verify/references/common-errors.md +384 -384
  1058. package/.claude/skills/scholar-citation-verify/references/verification-rules.md +399 -399
  1059. package/.claude/skills/scholar-experiment/SKILL.md +321 -321
  1060. package/.claude/skills/scholar-experiment/phases/01-data-loading.md +209 -209
  1061. package/.claude/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -269
  1062. package/.claude/skills/scholar-experiment/phases/03-visualization.md +319 -319
  1063. package/.claude/skills/scholar-experiment/phases/04-results-writing.md +229 -229
  1064. package/.claude/skills/scholar-experiment/phases/05-quality-check.md +261 -261
  1065. package/.claude/skills/scholar-ideation/SKILL.md +288 -288
  1066. package/.claude/skills/scholar-ideation/phases/01-literature-search.md +317 -317
  1067. package/.claude/skills/scholar-ideation/phases/02-gap-analysis.md +249 -249
  1068. package/.claude/skills/scholar-ideation/phases/03-research-question.md +200 -200
  1069. package/.claude/skills/scholar-ideation/phases/04-method-selection.md +185 -185
  1070. package/.claude/skills/scholar-ideation/phases/05-research-planning.md +385 -385
  1071. package/.claude/skills/scholar-latex-organizer/SKILL.md +186 -186
  1072. package/.claude/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -228
  1073. package/.claude/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -500
  1074. package/.claude/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -349
  1075. package/.claude/skills/scholar-publish/SKILL.md +220 -220
  1076. package/.claude/skills/scholar-publish/phases/01-presentation.md +243 -243
  1077. package/.claude/skills/scholar-publish/phases/02-poster.md +239 -239
  1078. package/.claude/skills/scholar-publish/phases/03-promotion.md +255 -255
  1079. package/.claude/skills/scholar-rebuttal-pro/README.md +313 -313
  1080. package/.claude/skills/scholar-rebuttal-pro/SKILL.md +511 -511
  1081. package/.claude/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -227
  1082. package/.claude/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -395
  1083. package/.claude/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -459
  1084. package/.claude/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -384
  1085. package/.claude/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -691
  1086. package/.claude/skills/scholar-review/SKILL.md +227 -227
  1087. package/.claude/skills/scholar-review/phases/01-self-review.md +186 -186
  1088. package/.claude/skills/scholar-review/phases/02-review-analysis.md +203 -203
  1089. package/.claude/skills/scholar-review/phases/03-response-strategy.md +193 -193
  1090. package/.claude/skills/scholar-review/phases/04-rebuttal-writing.md +181 -181
  1091. package/.claude/skills/scholar-review/phases/05-revision.md +183 -183
  1092. package/.claude/skills/scholar-review/specs/tone-guidelines.md +76 -76
  1093. package/.claude/skills/scholar-thesis-docx/README.md +111 -111
  1094. package/.claude/skills/scholar-thesis-docx/README_EN.md +108 -108
  1095. package/.claude/skills/scholar-thesis-docx/SKILL.md +212 -212
  1096. package/.claude/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -46
  1097. package/.claude/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -178
  1098. package/.claude/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -33
  1099. package/.claude/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -68
  1100. package/.claude/skills/scholar-thesis-docx/references/script-usage.md +157 -157
  1101. package/.claude/skills/scholar-writing/SKILL.md +296 -296
  1102. package/.claude/skills/scholar-writing/phases/01-repo-understanding.md +178 -178
  1103. package/.claude/skills/scholar-writing/phases/02-structure-planning.md +197 -197
  1104. package/.claude/skills/scholar-writing/phases/03-section-drafting.md +215 -215
  1105. package/.claude/skills/scholar-writing/phases/04-citation-management.md +310 -310
  1106. package/.claude/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -202
  1107. package/.claude/skills/scholar-writing/phases/06-conference-formatting.md +260 -260
  1108. package/.claude/skills/skill-generator/SKILL.md +471 -471
  1109. package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +238 -238
  1110. package/.claude/skills/skill-generator/phases/02-structure-generation.md +261 -261
  1111. package/.claude/skills/skill-generator/phases/03-phase-generation.md +976 -976
  1112. package/.claude/skills/skill-generator/phases/04-specs-templates.md +398 -398
  1113. package/.claude/skills/skill-generator/phases/05-validation.md +417 -417
  1114. package/.claude/skills/skill-generator/specs/cli-integration.md +442 -442
  1115. package/.claude/skills/skill-generator/specs/execution-modes.md +399 -399
  1116. package/.claude/skills/skill-generator/specs/reference-docs-spec.md +271 -271
  1117. package/.claude/skills/skill-generator/specs/scripting-integration.md +265 -265
  1118. package/.claude/skills/skill-generator/specs/skill-requirements.md +466 -466
  1119. package/.claude/skills/skill-generator/templates/autonomous-action.md +330 -330
  1120. package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +300 -300
  1121. package/.claude/skills/skill-generator/templates/code-analysis-action.md +514 -514
  1122. package/.claude/skills/skill-generator/templates/llm-action.md +367 -367
  1123. package/.claude/skills/skill-generator/templates/script-template.md +368 -368
  1124. package/.claude/skills/skill-generator/templates/sequential-phase.md +474 -474
  1125. package/.claude/skills/skill-generator/templates/skill-md.md +312 -312
  1126. package/.claude/skills/skill-iter-tune/SKILL.md +382 -382
  1127. package/.claude/skills/skill-iter-tune/phases/01-setup.md +144 -144
  1128. package/.claude/skills/skill-iter-tune/phases/02-execute.md +292 -292
  1129. package/.claude/skills/skill-iter-tune/phases/03-evaluate.md +312 -312
  1130. package/.claude/skills/skill-iter-tune/phases/04-improve.md +186 -186
  1131. package/.claude/skills/skill-iter-tune/phases/05-report.md +166 -166
  1132. package/.claude/skills/skill-iter-tune/specs/evaluation-criteria.md +63 -63
  1133. package/.claude/skills/skill-iter-tune/templates/eval-prompt.md +134 -134
  1134. package/.claude/skills/skill-iter-tune/templates/execute-prompt.md +97 -97
  1135. package/.claude/skills/skill-simplify/SKILL.md +63 -63
  1136. package/.claude/skills/skill-simplify/phases/01-analysis.md +224 -224
  1137. package/.claude/skills/skill-simplify/phases/02-optimize.md +111 -111
  1138. package/.claude/skills/skill-simplify/phases/03-check.md +224 -224
  1139. package/.claude/skills/skill-tuning/SKILL.md +174 -174
  1140. package/.claude/skills/skill-tuning/phases/actions/action-abort.md +164 -164
  1141. package/.claude/skills/skill-tuning/phases/actions/{action-gemini-analysis.md → action-agy-analysis.md} +322 -322
  1142. package/.claude/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -406
  1143. package/.claude/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -206
  1144. package/.claude/skills/skill-tuning/phases/actions/action-complete.md +195 -195
  1145. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -317
  1146. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -243
  1147. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -318
  1148. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -299
  1149. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -269
  1150. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -200
  1151. package/.claude/skills/skill-tuning/phases/actions/action-generate-report.md +228 -228
  1152. package/.claude/skills/skill-tuning/phases/actions/action-init.md +149 -149
  1153. package/.claude/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -317
  1154. package/.claude/skills/skill-tuning/phases/actions/action-verify.md +222 -222
  1155. package/.claude/skills/skill-tuning/phases/orchestrator.md +190 -190
  1156. package/.claude/skills/skill-tuning/phases/state-schema.md +378 -378
  1157. package/.claude/skills/skill-tuning/specs/category-mappings.json +5 -5
  1158. package/.claude/skills/skill-tuning/specs/dimension-mapping.md +212 -212
  1159. package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +210 -210
  1160. package/.claude/skills/skill-tuning/specs/quality-gates.md +263 -263
  1161. package/.claude/skills/skill-tuning/specs/skill-authoring-principles.md +192 -192
  1162. package/.claude/skills/skill-tuning/specs/tuning-strategies.md +392 -392
  1163. package/.claude/skills/skill-tuning/templates/diagnosis-report.md +153 -153
  1164. package/.claude/skills/skill-tuning/templates/fix-proposal.md +204 -204
  1165. package/.claude/skills/team-arch-opt/SKILL.md +158 -158
  1166. package/.claude/skills/team-arch-opt/roles/analyzer/role.md +86 -86
  1167. package/.claude/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -57
  1168. package/.claude/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -371
  1169. package/.claude/skills/team-arch-opt/roles/coordinator/commands/monitor.md +216 -216
  1170. package/.claude/skills/team-arch-opt/roles/coordinator/role.md +146 -146
  1171. package/.claude/skills/team-arch-opt/roles/designer/role.md +115 -115
  1172. package/.claude/skills/team-arch-opt/roles/refactorer/role.md +104 -104
  1173. package/.claude/skills/team-arch-opt/roles/reviewer/role.md +111 -111
  1174. package/.claude/skills/team-arch-opt/roles/validator/role.md +115 -115
  1175. package/.claude/skills/team-arch-opt/specs/pipelines.md +102 -102
  1176. package/.claude/skills/team-brainstorm/SKILL.md +171 -171
  1177. package/.claude/skills/team-brainstorm/roles/challenger/role.md +61 -61
  1178. package/.claude/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -58
  1179. package/.claude/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -206
  1180. package/.claude/skills/team-brainstorm/roles/coordinator/commands/monitor.md +199 -199
  1181. package/.claude/skills/team-brainstorm/roles/coordinator/role.md +140 -140
  1182. package/.claude/skills/team-brainstorm/roles/evaluator/role.md +56 -56
  1183. package/.claude/skills/team-brainstorm/roles/ideator/role.md +69 -69
  1184. package/.claude/skills/team-brainstorm/roles/synthesizer/role.md +57 -57
  1185. package/.claude/skills/team-brainstorm/specs/pipelines.md +72 -72
  1186. package/.claude/skills/team-coordinate/SKILL.md +266 -266
  1187. package/.claude/skills/team-coordinate/roles/coordinator/commands/analyze-task.md +247 -247
  1188. package/.claude/skills/team-coordinate/roles/coordinator/commands/dispatch.md +131 -131
  1189. package/.claude/skills/team-coordinate/roles/coordinator/commands/monitor.md +358 -358
  1190. package/.claude/skills/team-coordinate/roles/coordinator/role.md +363 -363
  1191. package/.claude/skills/team-coordinate/specs/knowledge-transfer.md +111 -111
  1192. package/.claude/skills/team-coordinate/specs/pipelines.md +97 -97
  1193. package/.claude/skills/team-coordinate/specs/quality-gates.md +112 -112
  1194. package/.claude/skills/team-coordinate/specs/role-spec-template.md +198 -198
  1195. package/.claude/skills/team-designer/SKILL.md +160 -160
  1196. package/.claude/skills/team-designer/phases/01-requirements-analysis.md +265 -265
  1197. package/.claude/skills/team-designer/phases/02-scaffold-generation.md +236 -236
  1198. package/.claude/skills/team-designer/phases/03-content-generation.md +330 -330
  1199. package/.claude/skills/team-designer/phases/04-validation.md +329 -329
  1200. package/.claude/skills/team-executor/SKILL.md +189 -189
  1201. package/.claude/skills/team-executor/roles/executor/commands/monitor.md +239 -239
  1202. package/.claude/skills/team-executor/roles/executor/role.md +171 -171
  1203. package/.claude/skills/team-executor/specs/session-schema.md +264 -264
  1204. package/.claude/skills/team-frontend/SKILL.md +136 -136
  1205. package/.claude/skills/team-frontend/roles/analyst/role.md +100 -100
  1206. package/.claude/skills/team-frontend/roles/architect/role.md +86 -86
  1207. package/.claude/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -52
  1208. package/.claude/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -197
  1209. package/.claude/skills/team-frontend/roles/coordinator/commands/monitor.md +233 -233
  1210. package/.claude/skills/team-frontend/roles/coordinator/role.md +158 -158
  1211. package/.claude/skills/team-frontend/roles/developer/role.md +93 -93
  1212. package/.claude/skills/team-frontend/roles/qa/role.md +79 -79
  1213. package/.claude/skills/team-frontend/specs/pipelines.md +76 -76
  1214. package/.claude/skills/team-frontend-debug/SKILL.md +198 -198
  1215. package/.claude/skills/team-frontend-debug/roles/analyzer/role.md +208 -208
  1216. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -174
  1217. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -256
  1218. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -148
  1219. package/.claude/skills/team-frontend-debug/roles/coordinator/role.md +131 -131
  1220. package/.claude/skills/team-frontend-debug/roles/fixer/role.md +147 -147
  1221. package/.claude/skills/team-frontend-debug/roles/reproducer/role.md +155 -155
  1222. package/.claude/skills/team-frontend-debug/roles/tester/role.md +231 -231
  1223. package/.claude/skills/team-frontend-debug/roles/verifier/role.md +172 -172
  1224. package/.claude/skills/team-frontend-debug/specs/debug-tools.md +215 -215
  1225. package/.claude/skills/team-frontend-debug/specs/pipelines.md +94 -94
  1226. package/.claude/skills/team-interactive-craft/SKILL.md +141 -141
  1227. package/.claude/skills/team-interactive-craft/roles/a11y-tester/role.md +159 -159
  1228. package/.claude/skills/team-interactive-craft/roles/builder/role.md +216 -216
  1229. package/.claude/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -71
  1230. package/.claude/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -192
  1231. package/.claude/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +215 -215
  1232. package/.claude/skills/team-interactive-craft/roles/coordinator/role.md +166 -166
  1233. package/.claude/skills/team-interactive-craft/roles/interaction-designer/role.md +144 -144
  1234. package/.claude/skills/team-interactive-craft/roles/researcher/role.md +131 -131
  1235. package/.claude/skills/team-interactive-craft/specs/interaction-patterns.md +362 -362
  1236. package/.claude/skills/team-interactive-craft/specs/pipelines.md +85 -85
  1237. package/.claude/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -83
  1238. package/.claude/skills/team-issue/SKILL.md +171 -171
  1239. package/.claude/skills/team-issue/roles/coordinator/commands/analyze.md +64 -64
  1240. package/.claude/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -349
  1241. package/.claude/skills/team-issue/roles/coordinator/commands/monitor.md +229 -229
  1242. package/.claude/skills/team-issue/roles/coordinator/role.md +175 -175
  1243. package/.claude/skills/team-issue/roles/explorer/role.md +102 -102
  1244. package/.claude/skills/team-issue/roles/implementer/role.md +87 -87
  1245. package/.claude/skills/team-issue/roles/integrator/role.md +84 -84
  1246. package/.claude/skills/team-issue/roles/planner/role.md +81 -81
  1247. package/.claude/skills/team-issue/roles/reviewer/role.md +86 -86
  1248. package/.claude/skills/team-issue/specs/pipelines.md +124 -124
  1249. package/.claude/skills/team-lifecycle-v4/SKILL.md +209 -209
  1250. package/.claude/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
  1251. package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/analyze.md +56 -56
  1252. package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/dispatch.md +56 -56
  1253. package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +206 -206
  1254. package/.claude/skills/team-lifecycle-v4/roles/coordinator/role.md +130 -130
  1255. package/.claude/skills/team-lifecycle-v4/roles/executor/commands/fix.md +35 -35
  1256. package/.claude/skills/team-lifecycle-v4/roles/executor/role.md +67 -67
  1257. package/.claude/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
  1258. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-code.md +34 -34
  1259. package/.claude/skills/team-lifecycle-v4/roles/reviewer/commands/review-spec.md +44 -44
  1260. package/.claude/skills/team-lifecycle-v4/roles/reviewer/role.md +69 -69
  1261. package/.claude/skills/team-lifecycle-v4/roles/supervisor/role.md +192 -192
  1262. package/.claude/skills/team-lifecycle-v4/roles/tester/role.md +87 -87
  1263. package/.claude/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
  1264. package/.claude/skills/team-lifecycle-v4/specs/knowledge-transfer.md +114 -114
  1265. package/.claude/skills/team-lifecycle-v4/specs/pipelines.md +140 -140
  1266. package/.claude/skills/team-lifecycle-v4/specs/quality-gates.md +130 -130
  1267. package/.claude/skills/team-lifecycle-v4/templates/architecture.md +254 -254
  1268. package/.claude/skills/team-lifecycle-v4/templates/epics.md +196 -196
  1269. package/.claude/skills/team-lifecycle-v4/templates/product-brief.md +133 -133
  1270. package/.claude/skills/team-lifecycle-v4/templates/requirements.md +224 -224
  1271. package/.claude/skills/team-motion-design/SKILL.md +142 -142
  1272. package/.claude/skills/team-motion-design/roles/animator/role.md +194 -194
  1273. package/.claude/skills/team-motion-design/roles/choreographer/role.md +164 -164
  1274. package/.claude/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -64
  1275. package/.claude/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -203
  1276. package/.claude/skills/team-motion-design/roles/coordinator/commands/monitor.md +216 -216
  1277. package/.claude/skills/team-motion-design/roles/coordinator/role.md +167 -167
  1278. package/.claude/skills/team-motion-design/roles/motion-researcher/role.md +115 -115
  1279. package/.claude/skills/team-motion-design/roles/motion-tester/role.md +175 -175
  1280. package/.claude/skills/team-motion-design/specs/gpu-constraints.md +114 -114
  1281. package/.claude/skills/team-motion-design/specs/motion-tokens.md +128 -128
  1282. package/.claude/skills/team-motion-design/specs/pipelines.md +74 -74
  1283. package/.claude/skills/team-motion-design/specs/reduced-motion.md +129 -129
  1284. package/.claude/skills/team-perf-opt/SKILL.md +175 -175
  1285. package/.claude/skills/team-perf-opt/roles/benchmarker/role.md +89 -89
  1286. package/.claude/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -61
  1287. package/.claude/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -376
  1288. package/.claude/skills/team-perf-opt/roles/coordinator/commands/monitor.md +362 -362
  1289. package/.claude/skills/team-perf-opt/roles/coordinator/role.md +147 -147
  1290. package/.claude/skills/team-perf-opt/roles/optimizer/role.md +99 -99
  1291. package/.claude/skills/team-perf-opt/roles/profiler/role.md +81 -81
  1292. package/.claude/skills/team-perf-opt/roles/reviewer/role.md +75 -75
  1293. package/.claude/skills/team-perf-opt/roles/strategist/role.md +94 -94
  1294. package/.claude/skills/team-perf-opt/specs/pipelines.md +65 -65
  1295. package/.claude/skills/team-planex/SKILL.md +137 -137
  1296. package/.claude/skills/team-planex/roles/coordinator/commands/analyze.md +52 -52
  1297. package/.claude/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -87
  1298. package/.claude/skills/team-planex/roles/coordinator/commands/monitor.md +195 -195
  1299. package/.claude/skills/team-planex/roles/coordinator/role.md +140 -140
  1300. package/.claude/skills/team-planex/roles/executor/role.md +91 -91
  1301. package/.claude/skills/team-planex/roles/planner/role.md +119 -119
  1302. package/.claude/skills/team-planex/specs/pipelines.md +93 -93
  1303. package/.claude/skills/team-quality-assurance/SKILL.md +147 -147
  1304. package/.claude/skills/team-quality-assurance/roles/analyst/role.md +88 -88
  1305. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/analyze.md +72 -72
  1306. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +111 -111
  1307. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +250 -250
  1308. package/.claude/skills/team-quality-assurance/roles/coordinator/role.md +143 -143
  1309. package/.claude/skills/team-quality-assurance/roles/executor/role.md +66 -66
  1310. package/.claude/skills/team-quality-assurance/roles/generator/role.md +68 -68
  1311. package/.claude/skills/team-quality-assurance/roles/scout/role.md +79 -79
  1312. package/.claude/skills/team-quality-assurance/roles/strategist/role.md +71 -71
  1313. package/.claude/skills/team-quality-assurance/specs/pipelines.md +115 -115
  1314. package/.claude/skills/team-quality-assurance/specs/team-config.json +8 -8
  1315. package/.claude/skills/team-review/SKILL.md +147 -147
  1316. package/.claude/skills/team-review/roles/coordinator/commands/analyze.md +71 -71
  1317. package/.claude/skills/team-review/roles/coordinator/commands/dispatch.md +91 -91
  1318. package/.claude/skills/team-review/roles/coordinator/commands/monitor.md +224 -224
  1319. package/.claude/skills/team-review/roles/coordinator/role.md +132 -132
  1320. package/.claude/skills/team-review/roles/fixer/role.md +76 -76
  1321. package/.claude/skills/team-review/specs/dimensions.md +82 -82
  1322. package/.claude/skills/team-review/specs/pipelines.md +102 -102
  1323. package/.claude/skills/team-roadmap-dev/SKILL.md +169 -169
  1324. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -61
  1325. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -212
  1326. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +477 -477
  1327. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -90
  1328. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -137
  1329. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -287
  1330. package/.claude/skills/team-roadmap-dev/roles/coordinator/role.md +302 -302
  1331. package/.claude/skills/team-roadmap-dev/roles/executor/role.md +72 -72
  1332. package/.claude/skills/team-roadmap-dev/roles/planner/role.md +86 -86
  1333. package/.claude/skills/team-roadmap-dev/roles/verifier/role.md +74 -74
  1334. package/.claude/skills/team-roadmap-dev/specs/pipelines.md +93 -93
  1335. package/.claude/skills/team-roadmap-dev/specs/team-config.json +3 -3
  1336. package/.claude/skills/team-swarm/SKILL.md +178 -178
  1337. package/.claude/skills/team-tech-debt/SKILL.md +128 -128
  1338. package/.claude/skills/team-tech-debt/roles/assessor/role.md +77 -77
  1339. package/.claude/skills/team-tech-debt/roles/coordinator/commands/analyze.md +47 -47
  1340. package/.claude/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +156 -156
  1341. package/.claude/skills/team-tech-debt/roles/coordinator/commands/monitor.md +209 -209
  1342. package/.claude/skills/team-tech-debt/roles/coordinator/role.md +123 -123
  1343. package/.claude/skills/team-tech-debt/roles/executor/role.md +1 -1
  1344. package/.claude/skills/team-tech-debt/roles/planner/role.md +69 -69
  1345. package/.claude/skills/team-tech-debt/roles/scanner/role.md +90 -90
  1346. package/.claude/skills/team-tech-debt/roles/validator/role.md +2 -2
  1347. package/.claude/skills/team-tech-debt/specs/pipelines.md +47 -47
  1348. package/.claude/skills/team-tech-debt/specs/team-config.json +5 -5
  1349. package/.claude/skills/team-testing/SKILL.md +143 -143
  1350. package/.claude/skills/team-testing/roles/analyst/role.md +103 -103
  1351. package/.claude/skills/team-testing/roles/coordinator/commands/analyze.md +70 -70
  1352. package/.claude/skills/team-testing/roles/coordinator/commands/dispatch.md +108 -108
  1353. package/.claude/skills/team-testing/roles/coordinator/commands/monitor.md +257 -257
  1354. package/.claude/skills/team-testing/roles/coordinator/role.md +134 -134
  1355. package/.claude/skills/team-testing/roles/executor/role.md +2 -2
  1356. package/.claude/skills/team-testing/roles/generator/role.md +1 -1
  1357. package/.claude/skills/team-testing/roles/strategist/role.md +83 -83
  1358. package/.claude/skills/team-testing/specs/pipelines.md +101 -101
  1359. package/.claude/skills/team-ui-polish/SKILL.md +141 -141
  1360. package/.claude/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -77
  1361. package/.claude/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -194
  1362. package/.claude/skills/team-ui-polish/roles/coordinator/commands/monitor.md +212 -212
  1363. package/.claude/skills/team-ui-polish/roles/coordinator/role.md +170 -170
  1364. package/.claude/skills/team-ui-polish/roles/diagnostician/role.md +160 -160
  1365. package/.claude/skills/team-ui-polish/roles/optimizer/role.md +225 -225
  1366. package/.claude/skills/team-ui-polish/roles/scanner/role.md +356 -356
  1367. package/.claude/skills/team-ui-polish/roles/verifier/role.md +142 -142
  1368. package/.claude/skills/team-ui-polish/specs/anti-patterns.md +141 -141
  1369. package/.claude/skills/team-ui-polish/specs/design-standards.md +356 -356
  1370. package/.claude/skills/team-ui-polish/specs/fix-strategies.md +235 -235
  1371. package/.claude/skills/team-ui-polish/specs/pipelines.md +81 -81
  1372. package/.claude/skills/team-ui-polish/specs/scoring-guide.md +162 -162
  1373. package/.claude/skills/team-uidesign/SKILL.md +144 -144
  1374. package/.claude/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -59
  1375. package/.claude/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -185
  1376. package/.claude/skills/team-uidesign/roles/coordinator/commands/monitor.md +216 -216
  1377. package/.claude/skills/team-uidesign/roles/coordinator/role.md +168 -168
  1378. package/.claude/skills/team-uidesign/roles/designer/role.md +93 -93
  1379. package/.claude/skills/team-uidesign/roles/implementer/role.md +94 -94
  1380. package/.claude/skills/team-uidesign/roles/researcher/role.md +101 -101
  1381. package/.claude/skills/team-uidesign/roles/reviewer/role.md +69 -69
  1382. package/.claude/skills/team-uidesign/specs/anti-patterns.md +211 -211
  1383. package/.claude/skills/team-uidesign/specs/design-standards.md +329 -329
  1384. package/.claude/skills/team-uidesign/specs/pipelines.md +76 -76
  1385. package/.claude/skills/team-uidesign/specs/scoring-guide.md +114 -114
  1386. package/.claude/skills/team-uidesign/specs/ux-writing.md +86 -86
  1387. package/.claude/skills/team-ultra-analyze/SKILL.md +173 -173
  1388. package/.claude/skills/team-ultra-analyze/roles/analyst/role.md +98 -98
  1389. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -73
  1390. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -285
  1391. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +372 -372
  1392. package/.claude/skills/team-ultra-analyze/roles/coordinator/role.md +247 -247
  1393. package/.claude/skills/team-ultra-analyze/roles/discussant/role.md +107 -107
  1394. package/.claude/skills/team-ultra-analyze/roles/explorer/role.md +82 -82
  1395. package/.claude/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -78
  1396. package/.claude/skills/team-ultra-analyze/specs/pipelines.md +64 -64
  1397. package/.claude/skills/team-ultra-analyze/specs/team-config.json +6 -6
  1398. package/.claude/skills/team-ux-improve/SKILL.md +151 -151
  1399. package/.claude/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -62
  1400. package/.claude/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -200
  1401. package/.claude/skills/team-ux-improve/roles/coordinator/commands/monitor.md +186 -186
  1402. package/.claude/skills/team-ux-improve/roles/coordinator/role.md +142 -142
  1403. package/.claude/skills/team-ux-improve/roles/designer/role.md +152 -152
  1404. package/.claude/skills/team-ux-improve/roles/diagnoser/role.md +108 -108
  1405. package/.claude/skills/team-ux-improve/roles/explorer/role.md +77 -77
  1406. package/.claude/skills/team-ux-improve/roles/implementer/role.md +102 -102
  1407. package/.claude/skills/team-ux-improve/roles/scanner/role.md +135 -135
  1408. package/.claude/skills/team-ux-improve/roles/tester/role.md +84 -84
  1409. package/.claude/skills/team-ux-improve/specs/anti-patterns.md +103 -103
  1410. package/.claude/skills/team-ux-improve/specs/design-standards.md +54 -54
  1411. package/.claude/skills/team-ux-improve/specs/heuristics.md +88 -88
  1412. package/.claude/skills/team-ux-improve/specs/pipelines.md +54 -54
  1413. package/.claude/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -49
  1414. package/.claude/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -34
  1415. package/.claude/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -40
  1416. package/.claude/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -43
  1417. package/.claude/skills/team-visual-a11y/SKILL.md +156 -156
  1418. package/.claude/skills/team-visual-a11y/roles/color-auditor/role.md +178 -178
  1419. package/.claude/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -72
  1420. package/.claude/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -250
  1421. package/.claude/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +236 -236
  1422. package/.claude/skills/team-visual-a11y/roles/coordinator/role.md +169 -169
  1423. package/.claude/skills/team-visual-a11y/roles/fix-implementer/role.md +246 -246
  1424. package/.claude/skills/team-visual-a11y/roles/focus-auditor/role.md +222 -222
  1425. package/.claude/skills/team-visual-a11y/roles/remediation-planner/role.md +206 -206
  1426. package/.claude/skills/team-visual-a11y/roles/typo-auditor/role.md +185 -185
  1427. package/.claude/skills/team-visual-a11y/specs/focus-patterns.md +325 -325
  1428. package/.claude/skills/team-visual-a11y/specs/oklch-standards.md +130 -130
  1429. package/.claude/skills/team-visual-a11y/specs/pipelines.md +98 -98
  1430. package/.claude/skills/team-visual-a11y/specs/typography-scale.md +165 -165
  1431. package/.claude/skills/team-visual-a11y/specs/wcag-matrix.md +133 -133
  1432. package/.codex/skills/codify-to-knowhow/SKILL.md +3 -3
  1433. package/.codex/skills/learn-decompose/SKILL.md +1 -1
  1434. package/.codex/skills/learn-investigate/SKILL.md +1 -1
  1435. package/.codex/skills/maestro/SKILL.md +565 -565
  1436. package/.codex/skills/maestro-analyze/SKILL.md +3 -3
  1437. package/.codex/skills/maestro-blueprint/SKILL.md +2 -2
  1438. package/.codex/skills/maestro-brainstorm/SKILL.md +3 -3
  1439. package/.codex/skills/maestro-collab/SKILL.md +2 -2
  1440. package/.codex/skills/maestro-companion/SKILL.md +5 -5
  1441. package/.codex/skills/maestro-composer/SKILL.md +2 -2
  1442. package/.codex/skills/maestro-execute/SKILL.md +2 -2
  1443. package/.codex/skills/maestro-fork/SKILL.md +156 -156
  1444. package/.codex/skills/maestro-grill/SKILL.md +2 -2
  1445. package/.codex/skills/maestro-impeccable/SKILL.md +1 -1
  1446. package/.codex/skills/maestro-init/SKILL.md +161 -161
  1447. package/.codex/skills/maestro-milestone-audit/SKILL.md +202 -202
  1448. package/.codex/skills/maestro-milestone-complete/SKILL.md +1 -1
  1449. package/.codex/skills/maestro-overlay/SKILL.md +119 -119
  1450. package/.codex/skills/maestro-plan/SKILL.md +1 -1
  1451. package/.codex/skills/maestro-quick/SKILL.md +2 -2
  1452. package/.codex/skills/maestro-roadmap/SKILL.md +2 -2
  1453. package/.codex/skills/maestro-tools-execute/SKILL.md +3 -3
  1454. package/.codex/skills/maestro-tools-register/SKILL.md +2 -2
  1455. package/.codex/skills/maestro-ui-codify/SKILL.md +2 -2
  1456. package/.codex/skills/manage-codebase-refresh/SKILL.md +72 -72
  1457. package/.codex/skills/manage-issue/SKILL.md +88 -88
  1458. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  1459. package/.codex/skills/manage-learn/SKILL.md +137 -137
  1460. package/.codex/skills/manage-status/SKILL.md +75 -75
  1461. package/.codex/skills/odyssey-debug/SKILL.md +2 -2
  1462. package/.codex/skills/odyssey-improve/SKILL.md +3 -3
  1463. package/.codex/skills/odyssey-planex/SKILL.md +3 -3
  1464. package/.codex/skills/odyssey-review-test-fix/SKILL.md +2 -2
  1465. package/.codex/skills/odyssey-ui/SKILL.md +3 -3
  1466. package/.codex/skills/quality-debug/SKILL.md +1 -1
  1467. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  1468. package/.codex/skills/quality-review/SKILL.md +1 -1
  1469. package/.codex/skills/quality-test/SKILL.md +1 -1
  1470. package/.codex/skills/spec-load/SKILL.md +1 -1
  1471. package/.codex/skills/spec-setup/SKILL.md +73 -73
  1472. package/.codex/skills/team-coordinate/SKILL.md +1 -1
  1473. package/.codex/skills/team-lifecycle-v4/roles/executor/role.md +3 -3
  1474. package/.codex/skills/team-quality-assurance/roles/analyst/role.md +1 -1
  1475. package/.codex/skills/team-quality-assurance/roles/executor/role.md +1 -1
  1476. package/.codex/skills/team-quality-assurance/specs/team-config.json +8 -8
  1477. package/.codex/skills/team-review/roles/reviewer/role.md +1 -1
  1478. package/.codex/skills/team-tech-debt/roles/assessor/role.md +2 -2
  1479. package/.codex/skills/team-tech-debt/roles/planner/role.md +2 -2
  1480. package/.codex/skills/team-tech-debt/roles/scanner/role.md +2 -2
  1481. package/.codex/skills/team-tech-debt/roles/validator/role.md +1 -1
  1482. package/.codex/skills/team-tech-debt/specs/team-config.json +5 -5
  1483. package/.codex/skills/team-testing/roles/executor/role.md +2 -2
  1484. package/.codex/skills/team-testing/roles/generator/role.md +1 -1
  1485. package/chains/_intent-map.json +307 -313
  1486. package/chains/_router.json +149 -168
  1487. package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.js +3 -0
  1488. package/dashboard/dist-server/dashboard/src/server/agents/api-explore-adapter.js.map +1 -1
  1489. package/dashboard/dist-server/dashboard/src/server/execution/execution-scheduler.d.ts +0 -10
  1490. package/dashboard/dist-server/dashboard/src/server/execution/execution-scheduler.js +0 -73
  1491. package/dashboard/dist-server/dashboard/src/server/execution/execution-scheduler.js.map +1 -1
  1492. package/dashboard/dist-server/dashboard/src/server/wiki/search.js +3 -23
  1493. package/dashboard/dist-server/dashboard/src/server/wiki/search.js.map +1 -1
  1494. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +61 -2
  1495. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  1496. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +47 -54
  1497. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  1498. package/dashboard/dist-server/dashboard/src/shared/maestro-session-types.d.ts +4 -0
  1499. package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
  1500. package/dashboard/dist-server/src/commands/hooks.js +7 -3
  1501. package/dashboard/dist-server/src/commands/hooks.js.map +1 -1
  1502. package/dashboard/dist-server/src/commands/install-backend.d.ts +1 -1
  1503. package/dashboard/dist-server/src/commands/install-backend.js +1 -1
  1504. package/dashboard/dist-server/src/commands/install-backend.js.map +1 -1
  1505. package/dashboard/dist-server/src/coordinator/graph-types.d.ts +6 -0
  1506. package/dashboard/dist-server/src/coordinator/graph-walker.js +7 -2
  1507. package/dashboard/dist-server/src/coordinator/graph-walker.js.map +1 -1
  1508. package/dashboard/dist-server/src/core/component-defs.d.ts +6 -0
  1509. package/dashboard/dist-server/src/core/component-defs.js +15 -0
  1510. package/dashboard/dist-server/src/core/component-defs.js.map +1 -1
  1511. package/dashboard/dist-server/src/hooks/spec-injector.js +7 -8
  1512. package/dashboard/dist-server/src/hooks/spec-injector.js.map +1 -1
  1513. package/dashboard/dist-server/src/search/daemon-client.d.ts +33 -0
  1514. package/dashboard/dist-server/src/search/daemon-client.js +115 -0
  1515. package/dashboard/dist-server/src/search/daemon-client.js.map +1 -0
  1516. package/dashboard/dist-server/src/tools/spec-entry-parser.js +1 -1
  1517. package/dashboard/dist-server/src/tools/spec-entry-parser.js.map +1 -1
  1518. package/dashboard/dist-server/src/tools/spec-loader.js +2 -2
  1519. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
  1520. package/dist/shared/agent-types.d.ts +2 -0
  1521. package/dist/shared/agent-types.d.ts.map +1 -1
  1522. package/dist/src/agents/api-explore/config.d.ts +5 -1
  1523. package/dist/src/agents/api-explore/config.d.ts.map +1 -1
  1524. package/dist/src/agents/api-explore/config.js +6 -3
  1525. package/dist/src/agents/api-explore/config.js.map +1 -1
  1526. package/dist/src/agents/api-explore/index.js +6 -1
  1527. package/dist/src/agents/api-explore/index.js.map +1 -1
  1528. package/dist/src/agents/api-explore/llm.d.ts +2 -0
  1529. package/dist/src/agents/api-explore/llm.d.ts.map +1 -1
  1530. package/dist/src/agents/api-explore/llm.js +138 -2
  1531. package/dist/src/agents/api-explore/llm.js.map +1 -1
  1532. package/dist/src/cli.js +3 -2
  1533. package/dist/src/cli.js.map +1 -1
  1534. package/dist/src/commands/coordinate.d.ts.map +1 -1
  1535. package/dist/src/commands/coordinate.js +2 -0
  1536. package/dist/src/commands/coordinate.js.map +1 -1
  1537. package/dist/src/commands/hooks.d.ts.map +1 -1
  1538. package/dist/src/commands/hooks.js +7 -3
  1539. package/dist/src/commands/hooks.js.map +1 -1
  1540. package/dist/src/commands/install-backend.d.ts +1 -1
  1541. package/dist/src/commands/install-backend.d.ts.map +1 -1
  1542. package/dist/src/commands/install-backend.js +1 -1
  1543. package/dist/src/commands/install-backend.js.map +1 -1
  1544. package/dist/src/commands/install.d.ts.map +1 -1
  1545. package/dist/src/commands/install.js +7 -2
  1546. package/dist/src/commands/install.js.map +1 -1
  1547. package/dist/src/commands/load.d.ts +12 -0
  1548. package/dist/src/commands/load.d.ts.map +1 -0
  1549. package/dist/src/commands/load.js +185 -0
  1550. package/dist/src/commands/load.js.map +1 -0
  1551. package/dist/src/commands/search.d.ts +15 -1
  1552. package/dist/src/commands/search.d.ts.map +1 -1
  1553. package/dist/src/commands/search.js +184 -52
  1554. package/dist/src/commands/search.js.map +1 -1
  1555. package/dist/src/commands/update.d.ts.map +1 -1
  1556. package/dist/src/commands/update.js +50 -47
  1557. package/dist/src/commands/update.js.map +1 -1
  1558. package/dist/src/commands/wiki.d.ts.map +1 -1
  1559. package/dist/src/commands/wiki.js +29 -28
  1560. package/dist/src/commands/wiki.js.map +1 -1
  1561. package/dist/src/coordinator/graph-types.d.ts +6 -0
  1562. package/dist/src/coordinator/graph-types.d.ts.map +1 -1
  1563. package/dist/src/coordinator/graph-walker.d.ts.map +1 -1
  1564. package/dist/src/coordinator/graph-walker.js +7 -2
  1565. package/dist/src/coordinator/graph-walker.js.map +1 -1
  1566. package/dist/src/core/component-defs.d.ts +6 -0
  1567. package/dist/src/core/component-defs.d.ts.map +1 -1
  1568. package/dist/src/core/component-defs.js +15 -0
  1569. package/dist/src/core/component-defs.js.map +1 -1
  1570. package/dist/src/core/install-profile.d.ts +7 -0
  1571. package/dist/src/core/install-profile.d.ts.map +1 -1
  1572. package/dist/src/core/install-profile.js +64 -0
  1573. package/dist/src/core/install-profile.js.map +1 -1
  1574. package/dist/src/graph/kg/surface/cli.d.ts.map +1 -1
  1575. package/dist/src/graph/kg/surface/cli.js +2 -1
  1576. package/dist/src/graph/kg/surface/cli.js.map +1 -1
  1577. package/dist/src/hooks/plugins/explore-plugin.d.ts +16 -0
  1578. package/dist/src/hooks/plugins/explore-plugin.d.ts.map +1 -0
  1579. package/dist/src/hooks/plugins/explore-plugin.js +63 -0
  1580. package/dist/src/hooks/plugins/explore-plugin.js.map +1 -0
  1581. package/dist/src/hooks/plugins/index.d.ts +2 -0
  1582. package/dist/src/hooks/plugins/index.d.ts.map +1 -1
  1583. package/dist/src/hooks/plugins/index.js +1 -0
  1584. package/dist/src/hooks/plugins/index.js.map +1 -1
  1585. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  1586. package/dist/src/hooks/spec-injector.js +7 -8
  1587. package/dist/src/hooks/spec-injector.js.map +1 -1
  1588. package/dist/src/i18n/detect.d.ts +2 -1
  1589. package/dist/src/i18n/detect.d.ts.map +1 -1
  1590. package/dist/src/i18n/detect.js +32 -8
  1591. package/dist/src/i18n/detect.js.map +1 -1
  1592. package/dist/src/ralph/cmd-next.d.ts.map +1 -1
  1593. package/dist/src/ralph/cmd-next.js +10 -1
  1594. package/dist/src/ralph/cmd-next.js.map +1 -1
  1595. package/dist/src/search/daemon-client.d.ts +34 -0
  1596. package/dist/src/search/daemon-client.d.ts.map +1 -0
  1597. package/dist/src/search/daemon-client.js +115 -0
  1598. package/dist/src/search/daemon-client.js.map +1 -0
  1599. package/dist/src/search/daemon.d.ts.map +1 -1
  1600. package/dist/src/search/daemon.js +8 -6
  1601. package/dist/src/search/daemon.js.map +1 -1
  1602. package/dist/src/tools/spec-entry-parser.js +1 -1
  1603. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  1604. package/dist/src/tools/spec-loader.js +2 -2
  1605. package/dist/src/tools/spec-loader.js.map +1 -1
  1606. package/dist/src/tools/store-knowhow.d.ts.map +1 -1
  1607. package/dist/src/tools/store-knowhow.js +4 -4
  1608. package/dist/src/tools/store-knowhow.js.map +1 -1
  1609. package/dist/src/tui/install-ui/BackupConfig.js +1 -1
  1610. package/dist/src/tui/install-ui/BackupConfig.js.map +1 -1
  1611. package/dist/src/tui/install-ui/CyberItem.d.ts.map +1 -1
  1612. package/dist/src/tui/install-ui/CyberItem.js +7 -10
  1613. package/dist/src/tui/install-ui/CyberItem.js.map +1 -1
  1614. package/dist/src/tui/install-ui/ExtraMcpConfig.d.ts.map +1 -1
  1615. package/dist/src/tui/install-ui/ExtraMcpConfig.js +2 -4
  1616. package/dist/src/tui/install-ui/ExtraMcpConfig.js.map +1 -1
  1617. package/dist/src/tui/install-ui/GroupedHub.d.ts.map +1 -1
  1618. package/dist/src/tui/install-ui/GroupedHub.js +6 -6
  1619. package/dist/src/tui/install-ui/GroupedHub.js.map +1 -1
  1620. package/dist/src/tui/install-ui/HooksConfig.d.ts.map +1 -1
  1621. package/dist/src/tui/install-ui/HooksConfig.js +1 -1
  1622. package/dist/src/tui/install-ui/HooksConfig.js.map +1 -1
  1623. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  1624. package/dist/src/tui/install-ui/InstallConfirm.js +1 -1
  1625. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  1626. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  1627. package/dist/src/tui/install-ui/InstallExecution.js +3 -3
  1628. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  1629. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  1630. package/dist/src/tui/install-ui/InstallFlow.js +1 -1
  1631. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  1632. package/dist/src/tui/install-ui/InstallResult.js +3 -3
  1633. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  1634. package/dist/src/tui/install-ui/McpConfig.js +1 -1
  1635. package/dist/src/tui/install-ui/McpConfig.js.map +1 -1
  1636. package/dist/src/tui/install-ui/StatuslineConfig.js +2 -2
  1637. package/dist/src/tui/install-ui/StatuslineConfig.js.map +1 -1
  1638. package/dist/src/tui/install-ui/StepSelector.js +1 -1
  1639. package/dist/src/tui/install-ui/StepSelector.js.map +1 -1
  1640. package/dist/src/utils/cli-format.d.ts +3 -3
  1641. package/dist/src/utils/cli-format.d.ts.map +1 -1
  1642. package/dist/src/utils/cli-format.js +32 -21
  1643. package/dist/src/utils/cli-format.js.map +1 -1
  1644. package/package.json +1 -1
  1645. package/shared/agent-types.ts +2 -0
  1646. package/workflows/claude-instructions.md +47 -29
  1647. package/workflows/codex-instructions.md +47 -29
  1648. package/workflows/explore-usage.md +6 -1
  1649. package/workflows/issue-discover.md +4 -4
  1650. package/workflows/issue-gaps-analyze.codex.md +1 -1
  1651. package/workflows/issue-gaps-analyze.md +3 -4
  1652. package/chains/singles/spec-generate.json +0 -31
@@ -14,597 +14,597 @@ allowed-tools:
14
14
  - view_file
15
15
  - write_to_file
16
16
  ---
17
- <purpose>
18
- Requirement-to-delivery closed loop: parse requirement → define acceptance criteria →
19
- plan → execute → verify → fix gaps → iterate until ALL criteria pass.
20
- </purpose>
21
-
22
- <boundary>
23
- **范围内:** 单一需求的实现闭环 — 从需求解析到验收标准全部通过 + 泛化同类场景
24
- **范围外:** 多需求编排 → `/maestro-roadmap` | 深度 debugging → `/odyssey-debug` | 代码审查 → `/odyssey-review-test-fix` | UI 优化 → `/odyssey-ui`
25
- **探索自由度:** 边界内自由探索 — 可自主分解任务、选择实现策略、迭代修复。verify→fix 循环内可尝试不同方案。
26
- **Zero-residual principle:** Every failing criterion MUST be fixed or explicitly escalated with specific reason. "Close enough" is not passing. "Pre-existing gap" is not a valid skip reason — if within scope, address it.
27
- **模板支持:** `--template <name>` 从预定义需求模板启动,自动生成匹配的验收标准和任务分解:
28
-
29
- | Template | 预设 criteria 模式 | 适用场景 |
30
- |----------|-------------------|---------|
31
- | `feature` | 用户故事验收 + 边界测试 + UI 验证 | 新功能开发 |
32
- | `bugfix` | 回归测试 + 根因确认 + 边界覆盖 | Bug 修复 |
33
- | `refactor` | 行为不变验证 + 性能基准 + API 兼容 | 重构 |
34
- | `migration` | 数据一致性 + 回滚验证 + 性能对比 | 数据/API 迁移 |
35
- | `api-endpoint` | 请求/响应契约 + 错误处理 + 权限校验 | API 开发 |
36
- </boundary>
37
-
38
- <execution_discipline>
39
- **三条铁律(所有阶段适用):**
40
-
41
- 1. **Phase auto-commit** — 每个阶段完成后**自动** `git commit`,无需用户确认
42
- - 代码变更 + understanding.md → `git add` → `git commit -m "odyssey-planex({slug}): {phase} — {摘要}"`
43
- - session.json / evidence.ndjson 为运行时状态,不纳入 commit
44
-
45
- 2. **Confident edits only, but must attempt** — only modify what you're confident about; record decisions only when genuinely requiring human judgment
46
- - Confident → edit code directly, commit
47
- - Needs decision → record `evidence.ndjson {"phase":"decision","status":"pending"}`, don't touch code
48
- - No speculative changes
49
- - ⚠️ **Decision gate** — ONLY these qualify as decisions (not fixes):
50
- - Cross-module architectural tradeoffs requiring human direction
51
- - Ambiguous business semantics where the fix could alter intended behavior
52
- - Requires new dependency or breaking API change
53
- - ❌ "Unsure how to fix", "Large scope", "Pre-existing issue" are NOT valid decision reasons — either fix it, or explain specifically why it's unfixable
54
-
55
- 3. **多 CLI 辅助** — 利用 `maestro delegate` 调用多个 CLI 工具交叉验证
56
- - 计划阶段: `--role analyze` 获取任务分解建议
57
- - 修复前后: `--role review` 确认无回归
58
- - verify 阶段: cli-review 类型标准自动 delegate
59
-
60
- 4. **禁止以上下文消耗为由中断** — harness 自动处理 context compression,以"上下文不足"或"已执行 N 个阶段"为由中断属于纪律违反;必须完整走完状态机直到 S_RECORD → END
61
- </execution_discipline>
62
-
63
- <context>
64
- $ARGUMENTS — requirement description and optional flags.
65
-
66
- **Flags:**
67
- | Flag | Description | Default |
68
- |------|-------------|---------|
69
- | `--template <name>` | 预定义需求模板 | — |
70
- | `--max-iterations N` | Max verify→fix cycles before escalation | 3 |
71
- | `--skip-generalize` | Skip S_GENERALIZE + S_DISCOVER | false |
72
- | `--auto` | CLI delegate calls without confirmation | false |
73
- | `--method agent\|cli\|auto` | Execution method: Agent tool, CLI delegate, or auto-select | `auto` |
74
- | `--executor <tool>` | Explicit executor tool for CLI delegate mode | First enabled in config |
75
- | `--skip-verify` | Skip execution post-validation gate | false |
76
- | `-y` | Auto-confirm — decisions recorded as `deferred` | false |
77
- | `-c` | Resume most recent session | — |
78
-
79
- **Session**: `SESSION_DIR = .workflow/scratch/{YYYYMMDD}-planex-odyssey-{slug}/`
80
-
81
- **Output — 3 files:**
82
- ```
83
- SESSION_DIR/
84
- ├── session.json # state + criteria + iterations + plan
85
- ├── evidence.ndjson # append-only log (phase distinguishes origin)
86
- └── understanding.md # evolving narrative (8 sections, one per phase)
87
- ```
88
-
89
- **session.json schema:**
90
- ```json
91
- {
92
- "session_id": "planex-odyssey-{YYYYMMDD-HHmmss}",
93
- "requirement": "",
94
- "flags": { "max_iterations": 3, "skip_generalize": false, "auto": false, "auto_confirm": false },
95
- "current_state": "S_INTAKE",
96
- "acceptance_criteria": [
97
- {"id":"AC1","criterion":"","verify_method":"test|grep|cli-review|manual","status":"pending","evidence":"","passed_at":null}
98
- ],
99
- "plan": { "tasks": [{"id":"T1","title":"","description":"","criteria_refs":["AC1"],"status":"pending","files_modified":[],"domain":"general","executor":"agent"}], "created_at":"" },
100
- "execution_config": {
101
- "method": "auto",
102
- "default_executor": "",
103
- "domain_routing": { "frontend": "", "backend": "", "default": "agent" },
104
- "code_review_tool": "Skip",
105
- "verification_tool": "Auto",
106
- "confirmed": false
107
- },
108
- "iterations": [
109
- {"iteration":1,"started_at":"","completed_at":"","criteria_before":{"passed":0,"total":0},"criteria_after":{"passed":0,"total":0},"gaps_fixed":[],"files_modified":[]}
110
- ],
111
- "current_iteration": 0,
112
- "patterns": [
113
- {"id":"P1","source":"AC1 fix","layer":"syntax|semantic|structural","signature":"","description":"","risk":"","fix_template":""}
114
- ],
115
- "generalization_stats": {"patterns_extracted":0,"total_hits":0,"cross_layer_confirmed":0,"by_layer":{"syntax":0,"semantic":0,"structural":0},"deepening_triggered":false},
116
- "phase_goals": [],
117
- "phase_goals_all_done": false,
118
- "self_iteration_log": [],
119
- "cross_phase_loops": 0, "max_loops": 5,
120
- "created_at": "", "updated_at": ""
121
- }
122
- ```
123
-
124
- **evidence.ndjson** — one JSON per line, `phase` field = `planning|execution|verification|fix|decision|generalization|discovery|self-iteration`
125
-
126
- **understanding.md sections:** §1 Requirement & Criteria ← S_INTAKE, §2 Plan ← S_PLAN, §3 Execution ← S_EXECUTE, §4 Verification (per iter) ← S_VERIFY, §5 Fix Log (per iter) ← S_FIX, §6 Generalization ← S_GENERALIZE, §7 Discoveries ← S_DISCOVER, §8 Learnings ← S_RECORD
127
-
128
- **phase_goals[]:**
129
- | ID | Goal | Done When | Phase | Skip When |
130
- |----|------|-----------|-------|-----------|
131
- | G1 | Acceptance criteria defined | ≥1 criterion in acceptance_criteria[] | S_INTAKE | — |
132
- | G2 | Plan created | session.json.plan populated | S_PLAN | — |
133
- | G3 | Implementation complete | all plan tasks executed | S_EXECUTE | — |
134
- | G4 | All criteria pass | all acceptance_criteria[].status == passed | S_VERIFY | — |
135
- | G5 | Pattern generalized | patterns[] populated ≥1 entry | S_GENERALIZE | skip_generalize |
136
- | G6 | Discoveries triaged | all scan hits classified | S_DISCOVER | skip_generalize |
137
- | G7 | Learnings persisted | spec entries created OR no actionable | S_RECORD | — |
138
-
139
- ### Pre-load(可选,缺失不阻塞)
140
-
141
- | 层级 | 命令 | 作用 |
142
- |------|------|------|
143
- | Codebase docs | Read `.workflow/codebase/ARCHITECTURE.md` | 模块边界,架构约束 |
144
- | Wiki search | `maestro search "<requirement keywords>" --json` | 先前实现、相关决策(取 top 5) |
145
- | Coding specs | `maestro spec load --category coding` | 编码规范 + 可发现的 knowhow 工具 |
146
- | UI specs(条件) | 若涉及前端 → `maestro spec load --category ui` | UI 规范 |
147
- | Role knowledge | `maestro search --category coding` → 选相关 → `maestro wiki load <id>` | 累积实现领域知识 |
148
- | Prior sessions | `grep_search(".workflow/scratch/*-planex-odyssey-*")` | 相关 odyssey 会话 |
149
-
150
- ### Knowledge Persistence(S_RECORD 中写入产出文件)
151
-
152
- S_RECORD 阶段将可沉淀知识 **写入 understanding.md §8 Learnings**,按以下分类结构化:
153
-
154
- | 分类 | 写入内容 | 后续建议命令 |
155
- |------|---------|-------------|
156
- | 多轮 fix cycle pattern | 问题场景 + fix 迭代过程 + 最终方案 | `/spec-add debug "..."` |
157
- | 可复用实现模式 | 模式描述 + 适用场景 + 代码模板 | `/spec-add coding "..."` |
158
- | 验收标准模板 | 标准模板 + verify_method 建议 | `/spec-add review "..."` |
159
- | 泛化 pattern | pattern 签名 + 风险说明 + fix 模板 | `/spec-add coding "..."` |
160
-
161
- **两步模式:** 执行中写入产出文件(临时记录)→ 任务完成后用户通过 next_step_routing 沉淀为永久知识。执行过程中不调用外部 Skill。
162
- </context>
163
-
164
- <self_iteration>
165
- **Quality Gate** — auto-evaluate after each analytical stage. Insufficient → re-enter with expanded strategy.
166
-
167
- | Dimension | Sufficient | Insufficient |
168
- |-----------|-----------|-------------|
169
- | Coverage | All known files/modules analyzed | Missed targets discoverable via grep/git log |
170
- | Depth | ≥80% findings have file:line evidence | Most findings lack specifics |
171
- | Actionability | Each conclusion has concrete next action | Only vague "consider" recommendations |
172
-
173
- **Rules:** stage complete → evaluate 3 dims → any insufficient → re-enter (max **3 rounds** per stage). Record to evidence.ndjson `{"phase":"self-iteration","type":"quality-gate","stage":"S_XXX","round":N,"assessment":{...},"expansion":"strategy"}`.
174
-
175
- **Expansion:** Round 1 = broaden scope (more dirs, more delegate angles). Round 2 = shift perspective (different CLI tool, reverse-trace from expected result). Round 3 = combine both + targeted deep-dive on remaining gaps.
176
-
177
- **Applies to:** S_PLAN, S_VERIFY, S_GENERALIZE
178
- </self_iteration>
179
-
180
- <state_machine>
181
-
182
- <states>
183
- S_INTAKE — parse requirement, define acceptance criteria PERSIST: session.json + understanding.md §1
184
- S_PLAN — decompose tasks, generate execution plan PERSIST: session.json.plan + evidence (planning) + understanding.md §2
185
- S_EXECUTE — implement tasks PERSIST: code + evidence (execution) + understanding.md §3
186
- S_VERIFY — iron gate: check every acceptance criterion PERSIST: evidence (verification) + understanding.md §4
187
- S_FIX — targeted fix for failing criteria (loops to VERIFY) PERSIST: code + evidence (fix) + understanding.md §5
188
- S_GENERALIZE — extract patterns, 4-agent scan PERSIST: session.json.patterns + understanding.md §6
189
- S_DISCOVER — triage scan hits, route decisions PERSIST: evidence (discovery|decision) + understanding.md §7
190
- S_RECORD — persist learnings, final summary PERSIST: understanding.md §8 + spec entries
191
- </states>
192
-
193
- <transitions>
194
- S_INTAKE → S_INTAKE WHEN -c + session found (resume)
195
- S_INTAKE → S_PLAN WHEN requirement + criteria defined
196
- S_INTAKE → S_INTAKE WHEN no requirement → ask_question
197
-
198
- S_PLAN → S_EXECUTE
199
- S_EXECUTE → S_VERIFY
200
-
201
- S_VERIFY → S_GENERALIZE WHEN all passed AND NOT skip_generalize
202
- S_VERIFY → S_RECORD WHEN all passed AND skip_generalize
203
- S_VERIFY → S_FIX WHEN some failed AND iteration < max
204
- S_VERIFY → S_PLAN WHEN fundamental plan flaw discovered, loops < max_loops → cross_phase_loops++ (重规划)
205
- S_VERIFY → S_RECORD WHEN some failed AND iteration >= max (escalate)
206
-
207
- S_FIX → S_VERIFY (loop)
208
-
209
- S_GENERALIZE → S_DISCOVER WHEN hits found
210
- S_GENERALIZE → S_RECORD WHEN no hits
211
-
212
- S_DISCOVER → S_EXECUTE : discovery finds area needing same implementation → cross_phase_loops++
213
- S_DISCOVER → S_RECORD : triage complete AND remaining_actionable == 0
214
- S_DISCOVER → S_RECORD : loops >= max_loops → MUST log each unfixed item with specific reason (blanket "pre-existing" is forbidden)
215
-
216
- S_RECORD → END
217
- </transitions>
218
-
219
- <actions>
220
-
221
- ### A_INTAKE
222
-
223
- 1. Parse requirement and flags, generate slug, create SESSION_DIR
224
- 2. **Define acceptance criteria** — analyze requirement → derive testable criteria. Each gets `verify_method`: test | grep | cli-review | manual
225
- - **Normal**: ask_question to confirm/edit
226
- - **`-y`**: auto-derive, record `{"phase":"decision","type":"criteria-confirmation","status":"deferred"}`
227
- 3. Search prior knowledge: `maestro search`, related sessions
228
- 4. Write session.json + understanding.md §1. Mark G1 done. Display Goal Prompt (see Appendix)
229
-
230
- 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): INTAKE — 目标解析"`
231
-
232
- ### A_PLAN
233
-
234
- 1. Decompose requirement into ordered tasks mapped to acceptance criteria
235
- 2. CLI-assisted planning (optional):
236
- ```bash
237
- maestro delegate "PURPOSE: Create implementation plan for: {requirement}
238
- TASK: Decompose into subtasks | Map to acceptance criteria | Identify dependencies
239
- MODE: analysis
240
- CONTEXT: @**/* | Criteria: {criteria_summary}
241
- EXPECTED: JSON [{task_id, title, description, criteria_refs, deps}]
242
- " --role analyze --mode analysis
243
- ```
244
- Execute with `run_in_background: true`, then wait for callback (do NOT halt the Odyssey flow).
245
- 3. Write session.json.plan, append evidence (planning), update understanding.md §2. Mark G2 done.
246
-
247
- 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): PLAN — 计划制定"`
248
-
249
- ### A_EXECUTE
250
-
251
- #### Step 1: Execution Options Confirmation
252
-
253
- **Skip if** `-y` flag OR `--method` explicitly set OR `execution_config.confirmed == true` (resume).
254
-
255
- Load available tools: `maestro delegate-config show --json` → extract enabled tools and domain tags.
256
-
257
- ```
258
- ask_question({
259
- questions: [
260
- {
261
- question: "任务如何执行?选择一种方式,或 Other 指定域路由规则(如 '前端gemini 后端codex 其余agent')",
262
- header: "Executor",
263
- options: [
264
- { label: "Auto (Recommended)", description: "域路由: frontend→{frontendTool}, backend→{backendTool}, general→agent" },
265
- { label: "Agent", description: "Claude Code Agent 执行所有任务(最快)" },
266
- // 每个 enabled CLI tool 一个选项
267
- ...availableTools.map(t => ({ label: t, description: `${t} CLI 执行所有任务` }))
268
- ]
269
- },
270
- {
271
- question: "执行后运行代码审查?",
272
- header: "Review",
273
- options: [
274
- { label: "Skip", description: "不审查" },
275
- ...availableTools.map(t => ({ label: `${t} Review`, description: `${t} CLI: git diff 质量审查` }))
276
- ]
277
- },
278
- {
279
- question: "验证门控?(外部模型检查收敛 + 结构 + 反模式)",
280
- header: "Verify",
281
- options: [
282
- { label: "Auto (Recommended)", description: `Delegate 到 ${availableTools[0]} 做收敛+结构+反模式检查` },
283
- ...availableTools.map(t => ({ label: t, description: `${t}: 验证门控` })),
284
- { label: "Skip", description: "不验证" }
285
- ]
286
- }
287
- ]
288
- })
289
- ```
290
-
291
- Parse response → write `execution_config` to session.json, set `confirmed: true`.
292
-
293
- `--skip-verify` flag overrides verification to `"Skip"`.
294
-
295
- #### Step 2: Executor Resolution
296
-
297
- Per-task domain routing (when method == "auto"):
298
-
299
- | Domain | Keywords / Patterns | File Extensions |
300
- |--------|-------------------|-----------------|
301
- | frontend | UI, component, page, style, layout, CSS, view | .tsx/.jsx/.vue/.css/.html/.svelte |
302
- | backend | API, server, database, service, algorithm, worker | .go/.rs/.java/.py/.sql/.proto |
303
- | general | mixed, config, tests, unclear | .ts/.js/other |
304
-
305
- Resolution: `execution_config.domain_routing[domain]` → fallback `domain_routing.default` ("agent").
306
-
307
- Log routing per task:
308
- ```
309
- T1 [frontend] → gemini
310
- T2 [backend] → codex
311
- T3 [general] → agent
312
- ```
313
-
314
- #### Step 3: Task Execution
315
-
316
- Execute tasks per plan order. Independent tasks (no cross-dependency) may run in parallel.
317
-
318
- **Agent path:**
319
- ```
320
- Spawn Agent with:
321
- task definition, acceptance criteria refs, prior task summaries, specs_content
322
- Agent implements → verifies convergence criteria → auto-fix (max 3) → returns result
323
- ```
324
-
325
- **CLI path (via maestro delegate):**
326
- ```bash
327
- maestro delegate "PURPOSE: Implement task ${task_id}: ${title}; success = criteria ${criteria_refs} satisfied
328
- TASK: ${description} | Read existing code first | Verify convergence criteria after changes
329
- MODE: write
330
- CONTEXT: @${scope}/**/* | Criteria: ${criteria_summary}
331
- EXPECTED: Working code changes, convergence evidence, summary of what was done
332
- CONSTRAINTS: Scope limited to task files | Follow project specs
333
-
334
- ## Acceptance Criteria (must satisfy)
335
- ${criteria_refs.map(ref => criteria[ref].criterion).join('\n')}
336
-
337
- ## Implementation Steps
338
- ${task.description}
339
-
340
- ## Project Specs
341
- ${specs_content}
342
-
343
- ## Prior Task Summaries
344
- ${prior_summaries}
345
- " --to ${resolved_executor} --mode write --id planex-${slug}-${task_id}
346
- ```
347
-
348
- Run CLI delegate with `run_in_background: true`, then wait for callback (do NOT halt the Odyssey flow).
349
-
350
- **Deviation Rule** — max 3 auto-fix attempts per task:
351
- 1. First attempt: normal dispatch
352
- 2. Retry: `--resume planex-${slug}-${task_id}` with simplified prompt
353
- 3. Final: fallback to Agent path
354
- 4. All 3 fail → mark task `blocked`, record checkpoint, continue remaining tasks
355
-
356
- #### Step 4: Per-Task Evidence
357
-
358
- Per completed task:
359
- - Record evidence: `{"phase":"execution","type":"task-completed","task_id":"T1","executor":"agent|gemini|...","files_modified":[],"summary":"","attempt":1}`
360
- - Update task status in session.json plan
361
-
362
- #### Step 5: Post-Execution Validation
363
-
364
- **Skip if** `execution_config.verification_tool == "Skip"` OR `--skip-verify` OR no completed tasks.
365
-
366
- **Check 1: Summary Consistency** — cross-check task status vs actual file changes (git diff).
367
-
368
- **Check 2: CLI Verification Gate** — delegate to external model:
369
- ```bash
370
- maestro delegate "PURPOSE: Verify execution output meets acceptance criteria; success = all criteria verified with file:line evidence
371
- TASK:
372
- 1. CONVERGENCE: For each criterion, read actual code, verify behavior exists, report status with evidence
373
- 2. EXISTENCE: Verify all expected files exist on disk
374
- 3. SUBSTANCE: Verify real implementation — flag stubs, placeholders, TODO-only
375
- 4. ANTI-PATTERNS: Scan for TODO/FIXME/HACK, console.log debug, disabled tests
376
- MODE: analysis
377
- CONTEXT: @${modified_files}
378
- EXPECTED: JSON { convergence: [{criterion, status, evidence}], issues: [{type, file, line, severity}], overall: passed|gaps_found }
379
- CONSTRAINTS: Read-only | Check ALL criteria exhaustively | Evidence must be file:line
380
-
381
- ## Acceptance Criteria (verify each)
382
- ${acceptance_criteria.map(c => c.criterion).join('\n')}
383
-
384
- ## Modified Files
385
- ${modified_files.join('\n')}
386
- " --to ${execution_config.verification_tool} --mode analysis
387
- ```
388
-
389
- Execute with `run_in_background: true`, then wait for callback (do NOT halt the Odyssey flow).
390
-
391
- On result:
392
- - `overall == "passed"` → proceed to S_VERIFY (criteria gate) with boosted confidence
393
- - `overall == "gaps_found"` → log findings, proceed to S_VERIFY (criteria will catch failures)
394
-
395
- **Check 3: Code Review** (if `execution_config.code_review_tool != "Skip"`):
396
- ```bash
397
- maestro delegate "Review git diff for correctness, style, bugs" --to ${code_review_tool} --mode analysis --rule analysis-review-code-quality
398
- ```
399
-
400
- #### Step 6: Completion
401
-
402
- Update understanding.md §3. Mark G3 done.
403
-
404
- 📌 **Auto-commit**: `git add -A && git commit -m "odyssey-planex({slug}): EXECUTE — 实现执行"`
405
-
406
- ### A_VERIFY
407
-
408
- Iron gate — every acceptance criterion checked objectively.
409
-
410
- **Verify each criterion by method:**
411
- | Method | Action |
412
- |--------|--------|
413
- | `test` | Run relevant tests, check pass/fail |
414
- | `grep` | Grep for expected pattern |
415
- | `cli-review` | `maestro delegate --role review --mode analysis` with criterion as focus |
416
- | `manual` | **Normal**: ask_question / **`-y`**: record `deferred` |
417
-
418
- Record per criterion: `{"phase":"verification","type":"criterion-check","criterion_id":"AC1","method":"","result":"passed|failed","evidence":"","iteration":N}`. Update acceptance_criteria[].status. Append to iterations[].
419
-
420
- Update understanding.md §4 with pass/fail table.
421
-
422
- **Route:** all passed → mark G4 done → next state. Some failed + iteration < max → S_FIX. Some failed + iteration >= max → **Normal**: ask_question (continue/lower bar/accept) / **`-y`**: `deferred`, proceed S_RECORD.
423
-
424
- 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): VERIFY — 验收验证"`
425
-
426
- ### A_FIX
427
-
428
- 1. Increment current_iteration
429
- 2. For each failed criterion: diagnose gap → targeted code fix
430
- 3. CLI fix review (optional):
431
- ```bash
432
- maestro delegate "PURPOSE: Review fixes for failing criteria
433
- TASK: Check fix correctness | Verify no regressions on passing criteria
434
- MODE: analysis
435
- CONTEXT: @{modified_files} | Passing: {passing} | Fixed: {fixed}
436
- EXPECTED: JSON {verdict, regression_risk, concerns}
437
- " --role review --mode analysis
438
- ```
439
- 4. Append evidence (fix), update understanding.md §5 → S_VERIFY
440
-
441
- 📌 **Auto-commit**: `git add -A && git commit -m "odyssey-planex({slug}): FIX — 修复"`
442
-
443
- ### A_GENERALIZE
444
-
445
- Extract reusable patterns from implementation, scan codebase for similar sites.
446
-
447
- **Pattern extraction (3 layers):**
448
- | Layer | Method | Example |
449
- |-------|--------|---------|
450
- | Syntax | Code regex patterns | validation/error handling patterns |
451
- | Semantic | Logic pattern description | missing similar checks at other entry points |
452
- | Structural | File/module structure match | sibling modules lacking same treatment |
453
-
454
- **4-agent parallel scan** (spawn 4 Agents):
455
- | Agent | Strategy | Scope |
456
- |-------|----------|-------|
457
- | Syntax grep | Grep syntax-layer signatures | full project |
458
- | Semantic scan | Check for same anti-pattern in related modules | related modules |
459
- | Structural match | Find structurally similar files | full project |
460
- | Historical grep | `git log -S "{pattern}"` | full git history |
461
-
462
- Each returns: `[{pattern_id, file, line, context, risk_level, layer, confidence}]`
463
-
464
- **Cross-layer dedup:** multi-layer hit on same file:line → boost confidence. Historical hit with existing fix → `already_handled`. Single layer only → `needs_review`.
465
-
466
- **Quality Gate** (self-iteration) → evaluate coverage/depth/actionability.
467
-
468
- Write understanding.md §6, generalization_stats. Mark G5 done.
469
-
470
- 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): GENERALIZE — 泛化扫描"`
471
-
472
- ### A_DISCOVER
473
-
474
- 1. **Triage:** per hit, read context (+-10 lines), classify as `already_handled` | `needs_treatment` | `low_risk`
475
- 2. **Route:**
476
- | Classification | Normal | `-y` |
477
- |---------------|--------|------|
478
- | needs_treatment | ask_question: create issue / plan next iter | auto create issue, `deferred` |
479
- | low_risk | Record only | Record only |
480
- | already_handled | Skip | Skip |
481
- 3. Append evidence (discovery + decision), update understanding.md §7. Mark G6 done.
482
-
483
- 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): DISCOVER — 发现分类"`
484
-
485
- ### A_RECORD
486
-
487
- 1. Finalize understanding.md §8 — iteration summary, what worked, what needed rework
488
- 2. Write learnings to understanding.md §8: 按 Knowledge Persistence 表分类记录(临时),completion summary 列出建议的 `/spec-add` 命令
489
- 3. Pending decisions: **Normal** → ask_question. **`-y`** → display deferred count.
490
- 4. Goal audit: check all phase_goals[*].completion_confirmed. Mark G7 done.
491
- 5. Output completion summary:
492
- ```
493
- --- PLANEX ODYSSEY COMPLETE ---
494
- Requirement: {requirement}
495
- Criteria: {passed}/{total} passed
496
- Iterations: {N} cycles
497
- Patterns: {patterns_extracted} ({by_layer} distribution)
498
- Scan hits: {total_hits} ({cross_layer_confirmed} cross-layer confirmed)
499
- Issues: {N} created | Decisions: {N} resolved, {M} pending, {K} deferred
500
- Learnings: {N} spec entries
501
- Self-iter: {N} rounds across {M} stages
502
- Goals: {done}/{total} confirmed ({skipped} skipped)
503
- Status: {ALL_PASSED|PARTIAL|ESCALATED}
504
- ---
505
- ```
506
-
507
- 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): RECORD — 会话总结"`
508
-
509
- </actions>
510
-
511
- <appendix>
512
-
513
- ### Goal Prompt Template
514
-
515
- **⚠️ 时机守卫:仅在 A_INTAKE 完成后显示一次(session 创建后、开始 Plan 前)。A_RECORD 完成时禁止重新显示。**
516
-
517
- ```
518
- 📋 Planex Odyssey 会话已创建。可随时复制以下 /goal 设定终止条件(执行过程中输入即可):
519
-
520
- /goal 完成以下目标:
521
- {for each G in phase_goals where status != "skipped":}
522
- - {G.id}: {G.goal} — 完成条件: {G.done_when}
523
- {end for}
524
- 验收标准:
525
- {for each AC in acceptance_criteria:}
526
- - {AC.id}: {AC.criterion} (验证方式: {AC.verify_method})
527
- {end for}
528
- 穷尽迭代:直到 acceptance_criteria[*] 全部 status==passed
529
- 且 phase_goals_all_done=true 才停。verify 失败自动 fix→re-verify 循环。
530
- 每轮修复后重新验证,新发现的标准违反继续修,不超过 max_iterations。
531
- 遇到 phase=decision 的 pending 必须 ask_question,不得自行 resolve。
532
- 不允许"接近通过",验收标准必须 ALL pass。
533
- ```
534
-
535
- 完成时仅输出 completion summary,不重复此提示。
536
-
537
- ### `-y` Auto-Confirm Behavior
538
-
539
- | Decision Point | Normal | `-y` |
540
- |----------------|--------|------|
541
- | S_INTAKE criteria confirmation | ask_question | auto-derive, `deferred` |
542
- | S_EXECUTE execution options | ask_question (executor/review/verify) | use defaults (auto/Skip/Auto), `confirmed: true` |
543
- | S_EXECUTE task blocked (3 retries) | ask_question: continue or stop | auto continue, log blocked |
544
- | S_VERIFY manual criterion | ask_question | `deferred` |
545
- | S_VERIFY max iteration reached | ask_question | auto accept, `deferred` |
546
- | S_DISCOVER classification routing | ask_question | auto create issue, `deferred` |
547
- | S_DISCOVER ambiguous items | ask_question | all `deferred` |
548
- | S_RECORD decision list | ask_question | skip |
549
- | S_RECORD goal audit | ask_question | auto accept |
550
-
551
- ### Iteration Model
552
-
553
- ```
554
- S_EXECUTE → S_VERIFY ──all pass──→ S_GENERALIZE → S_DISCOVER → S_RECORD
555
- │ │
556
- some fail + iter < max no hits ─→ S_RECORD
557
-
558
- S_FIX ──→ S_VERIFY (loop)
559
- ```
560
-
561
- Max iterations (default 3) prevents infinite loops. Each iteration records criteria_before, gaps_fixed, criteria_after.
562
-
563
- </appendix>
564
-
565
- </state_machine>
566
-
567
- <error_codes>
568
- | Code | Severity | Condition | Recovery |
569
- |------|----------|-----------|----------|
570
- | E001 | error | No requirement provided | Provide requirement |
571
- | E003 | error | Resume but no session found | Start new |
572
- | E004 | error | Delegate failed | Retry or proceed without |
573
- | W001 | warning | No acceptance criteria derived | Manual definition needed |
574
- | W002 | warning | Max iterations reached, criteria still failing | Escalate to user |
575
- | W003 | warning | CLI review regression concern | Review before next iteration |
576
- | W004 | warning | Delegate parse failed | Use raw output |
577
- </error_codes>
578
-
579
- <success_criteria>
580
- - [ ] Requirement parsed and ≥1 acceptance criterion defined with verify_method
581
- - [ ] Plan created with tasks mapped to criteria
582
- - [ ] Execution options confirmed (executor/review/verify) before task dispatch
583
- - [ ] Tasks dispatched via resolved executor (agent/cli/auto domain routing)
584
- - [ ] Per-task deviation rule enforced (max 3 retries, fallback chain)
585
- - [ ] Post-execution validation gate run (unless --skip-verify)
586
- - [ ] Tasks executed with evidence logged (executor, attempt count, files_modified)
587
- - [ ] Every criterion verified by its method after each iteration
588
- - [ ] Failing criteria trigger targeted fix (not full re-implementation)
589
- - [ ] Iteration count tracked, max respected
590
- - [ ] **Every unfixed criterion has individual classification and reason** — blanket "pre-existing" labels are forbidden
591
- - [ ] understanding.md updated per phase (§1-§8)
592
- - [ ] Multi-layer generalization + 4-agent scan (unless --skip-generalize)
593
- - [ ] Discoveries classified and routed (unless --skip-generalize)
594
- - [ ] Quality Gate self-iteration triggered when insufficient, logged in self_iteration_log
595
- - [ ] phase_goals G1-G7 tracked and audited
596
- - [ ] Goal Prompt displayed once after intake
597
- - [ ] `-y` mode: no blocking prompts, deferred counted
598
- - [ ] Session resumable via -c
599
- - [ ] Completion summary with iteration stats
600
- </success_criteria>
601
-
602
- <next_step_routing>
603
- | Condition | Next step |
604
- |-----------|-----------|
605
- | All criteria passed | `/odyssey-review-test-fix <changed-files>` |
606
- | Max iterations, still failing | `/odyssey-debug "<failing criterion>"` |
607
- | Want formal review | `/quality-review <phase>` |
608
- | Issues from discoveries | `/manage-issue list --source planex-odyssey` |
609
- | Pattern worth documenting | `/learn-decompose <module>` |
610
- </next_step_routing>
17
+ <purpose>
18
+ Requirement-to-delivery closed loop: parse requirement → define acceptance criteria →
19
+ plan → execute → verify → fix gaps → iterate until ALL criteria pass.
20
+ </purpose>
21
+
22
+ <boundary>
23
+ **范围内:** 单一需求的实现闭环 — 从需求解析到验收标准全部通过 + 泛化同类场景
24
+ **范围外:** 多需求编排 → `/maestro-roadmap` | 深度 debugging → `/odyssey-debug` | 代码审查 → `/odyssey-review-test-fix` | UI 优化 → `/odyssey-ui`
25
+ **探索自由度:** 边界内自由探索 — 可自主分解任务、选择实现策略、迭代修复。verify→fix 循环内可尝试不同方案。
26
+ **Zero-residual principle:** Every failing criterion MUST be fixed or explicitly escalated with specific reason. "Close enough" is not passing. "Pre-existing gap" is not a valid skip reason — if within scope, address it.
27
+ **模板支持:** `--template <name>` 从预定义需求模板启动,自动生成匹配的验收标准和任务分解:
28
+
29
+ | Template | 预设 criteria 模式 | 适用场景 |
30
+ |----------|-------------------|---------|
31
+ | `feature` | 用户故事验收 + 边界测试 + UI 验证 | 新功能开发 |
32
+ | `bugfix` | 回归测试 + 根因确认 + 边界覆盖 | Bug 修复 |
33
+ | `refactor` | 行为不变验证 + 性能基准 + API 兼容 | 重构 |
34
+ | `migration` | 数据一致性 + 回滚验证 + 性能对比 | 数据/API 迁移 |
35
+ | `api-endpoint` | 请求/响应契约 + 错误处理 + 权限校验 | API 开发 |
36
+ </boundary>
37
+
38
+ <execution_discipline>
39
+ **三条铁律(所有阶段适用):**
40
+
41
+ 1. **Phase auto-commit** — 每个阶段完成后**自动** `git commit`,无需用户确认
42
+ - 代码变更 + understanding.md → `git add` → `git commit -m "odyssey-planex({slug}): {phase} — {摘要}"`
43
+ - session.json / evidence.ndjson 为运行时状态,不纳入 commit
44
+
45
+ 2. **Confident edits only, but must attempt** — only modify what you're confident about; record decisions only when genuinely requiring human judgment
46
+ - Confident → edit code directly, commit
47
+ - Needs decision → record `evidence.ndjson {"phase":"decision","status":"pending"}`, don't touch code
48
+ - No speculative changes
49
+ - ⚠️ **Decision gate** — ONLY these qualify as decisions (not fixes):
50
+ - Cross-module architectural tradeoffs requiring human direction
51
+ - Ambiguous business semantics where the fix could alter intended behavior
52
+ - Requires new dependency or breaking API change
53
+ - ❌ "Unsure how to fix", "Large scope", "Pre-existing issue" are NOT valid decision reasons — either fix it, or explain specifically why it's unfixable
54
+
55
+ 3. **多 CLI 辅助** — 利用 `maestro delegate` 调用多个 CLI 工具交叉验证
56
+ - 计划阶段: `--role analyze` 获取任务分解建议
57
+ - 修复前后: `--role review` 确认无回归
58
+ - verify 阶段: cli-review 类型标准自动 delegate
59
+
60
+ 4. **禁止以上下文消耗为由中断** — harness 自动处理 context compression,以"上下文不足"或"已执行 N 个阶段"为由中断属于纪律违反;必须完整走完状态机直到 S_RECORD → END
61
+ </execution_discipline>
62
+
63
+ <context>
64
+ $ARGUMENTS — requirement description and optional flags.
65
+
66
+ **Flags:**
67
+ | Flag | Description | Default |
68
+ |------|-------------|---------|
69
+ | `--template <name>` | 预定义需求模板 | — |
70
+ | `--max-iterations N` | Max verify→fix cycles before escalation | 3 |
71
+ | `--skip-generalize` | Skip S_GENERALIZE + S_DISCOVER | false |
72
+ | `--auto` | CLI delegate calls without confirmation | false |
73
+ | `--method agent\|cli\|auto` | Execution method: Agent tool, CLI delegate, or auto-select | `auto` |
74
+ | `--executor <tool>` | Explicit executor tool for CLI delegate mode | First enabled in config |
75
+ | `--skip-verify` | Skip execution post-validation gate | false |
76
+ | `-y` | Auto-confirm — decisions recorded as `deferred` | false |
77
+ | `-c` | Resume most recent session | — |
78
+
79
+ **Session**: `SESSION_DIR = .workflow/scratch/{YYYYMMDD}-planex-odyssey-{slug}/`
80
+
81
+ **Output — 3 files:**
82
+ ```
83
+ SESSION_DIR/
84
+ ├── session.json # state + criteria + iterations + plan
85
+ ├── evidence.ndjson # append-only log (phase distinguishes origin)
86
+ └── understanding.md # evolving narrative (8 sections, one per phase)
87
+ ```
88
+
89
+ **session.json schema:**
90
+ ```json
91
+ {
92
+ "session_id": "planex-odyssey-{YYYYMMDD-HHmmss}",
93
+ "requirement": "",
94
+ "flags": { "max_iterations": 3, "skip_generalize": false, "auto": false, "auto_confirm": false },
95
+ "current_state": "S_INTAKE",
96
+ "acceptance_criteria": [
97
+ {"id":"AC1","criterion":"","verify_method":"test|grep|cli-review|manual","status":"pending","evidence":"","passed_at":null}
98
+ ],
99
+ "plan": { "tasks": [{"id":"T1","title":"","description":"","criteria_refs":["AC1"],"status":"pending","files_modified":[],"domain":"general","executor":"agent"}], "created_at":"" },
100
+ "execution_config": {
101
+ "method": "auto",
102
+ "default_executor": "",
103
+ "domain_routing": { "frontend": "", "backend": "", "default": "agent" },
104
+ "code_review_tool": "Skip",
105
+ "verification_tool": "Auto",
106
+ "confirmed": false
107
+ },
108
+ "iterations": [
109
+ {"iteration":1,"started_at":"","completed_at":"","criteria_before":{"passed":0,"total":0},"criteria_after":{"passed":0,"total":0},"gaps_fixed":[],"files_modified":[]}
110
+ ],
111
+ "current_iteration": 0,
112
+ "patterns": [
113
+ {"id":"P1","source":"AC1 fix","layer":"syntax|semantic|structural","signature":"","description":"","risk":"","fix_template":""}
114
+ ],
115
+ "generalization_stats": {"patterns_extracted":0,"total_hits":0,"cross_layer_confirmed":0,"by_layer":{"syntax":0,"semantic":0,"structural":0},"deepening_triggered":false},
116
+ "phase_goals": [],
117
+ "phase_goals_all_done": false,
118
+ "self_iteration_log": [],
119
+ "cross_phase_loops": 0, "max_loops": 5,
120
+ "created_at": "", "updated_at": ""
121
+ }
122
+ ```
123
+
124
+ **evidence.ndjson** — one JSON per line, `phase` field = `planning|execution|verification|fix|decision|generalization|discovery|self-iteration`
125
+
126
+ **understanding.md sections:** §1 Requirement & Criteria ← S_INTAKE, §2 Plan ← S_PLAN, §3 Execution ← S_EXECUTE, §4 Verification (per iter) ← S_VERIFY, §5 Fix Log (per iter) ← S_FIX, §6 Generalization ← S_GENERALIZE, §7 Discoveries ← S_DISCOVER, §8 Learnings ← S_RECORD
127
+
128
+ **phase_goals[]:**
129
+ | ID | Goal | Done When | Phase | Skip When |
130
+ |----|------|-----------|-------|-----------|
131
+ | G1 | Acceptance criteria defined | ≥1 criterion in acceptance_criteria[] | S_INTAKE | — |
132
+ | G2 | Plan created | session.json.plan populated | S_PLAN | — |
133
+ | G3 | Implementation complete | all plan tasks executed | S_EXECUTE | — |
134
+ | G4 | All criteria pass | all acceptance_criteria[].status == passed | S_VERIFY | — |
135
+ | G5 | Pattern generalized | patterns[] populated ≥1 entry | S_GENERALIZE | skip_generalize |
136
+ | G6 | Discoveries triaged | all scan hits classified | S_DISCOVER | skip_generalize |
137
+ | G7 | Learnings persisted | spec entries created OR no actionable | S_RECORD | — |
138
+
139
+ ### Pre-load(可选,缺失不阻塞)
140
+
141
+ | 层级 | 命令 | 作用 |
142
+ |------|------|------|
143
+ | Codebase docs | Read `.workflow/codebase/ARCHITECTURE.md` | 模块边界,架构约束 |
144
+ | Wiki search | `maestro search "<requirement keywords>" --json` | 先前实现、相关决策(取 top 5) |
145
+ | Coding specs | `maestro load --type spec --category coding` | 编码规范 + 可发现的 knowhow 工具 |
146
+ | UI specs(条件) | 若涉及前端 → `maestro load --type spec --category ui` | UI 规范 |
147
+ | Role knowledge | `maestro search --category coding` → 选相关 → `maestro load --type knowhow --id <id>` | 累积实现领域知识 |
148
+ | Prior sessions | `grep_search(".workflow/scratch/*-planex-odyssey-*")` | 相关 odyssey 会话 |
149
+
150
+ ### Knowledge Persistence(S_RECORD 中写入产出文件)
151
+
152
+ S_RECORD 阶段将可沉淀知识 **写入 understanding.md §8 Learnings**,按以下分类结构化:
153
+
154
+ | 分类 | 写入内容 | 后续建议命令 |
155
+ |------|---------|-------------|
156
+ | 多轮 fix cycle pattern | 问题场景 + fix 迭代过程 + 最终方案 | `/spec-add debug "..."` |
157
+ | 可复用实现模式 | 模式描述 + 适用场景 + 代码模板 | `/spec-add coding "..."` |
158
+ | 验收标准模板 | 标准模板 + verify_method 建议 | `/spec-add review "..."` |
159
+ | 泛化 pattern | pattern 签名 + 风险说明 + fix 模板 | `/spec-add coding "..."` |
160
+
161
+ **两步模式:** 执行中写入产出文件(临时记录)→ 任务完成后用户通过 next_step_routing 沉淀为永久知识。执行过程中不调用外部 Skill。
162
+ </context>
163
+
164
+ <self_iteration>
165
+ **Quality Gate** — auto-evaluate after each analytical stage. Insufficient → re-enter with expanded strategy.
166
+
167
+ | Dimension | Sufficient | Insufficient |
168
+ |-----------|-----------|-------------|
169
+ | Coverage | All known files/modules analyzed | Missed targets discoverable via grep/git log |
170
+ | Depth | ≥80% findings have file:line evidence | Most findings lack specifics |
171
+ | Actionability | Each conclusion has concrete next action | Only vague "consider" recommendations |
172
+
173
+ **Rules:** stage complete → evaluate 3 dims → any insufficient → re-enter (max **3 rounds** per stage). Record to evidence.ndjson `{"phase":"self-iteration","type":"quality-gate","stage":"S_XXX","round":N,"assessment":{...},"expansion":"strategy"}`.
174
+
175
+ **Expansion:** Round 1 = broaden scope (more dirs, more delegate angles). Round 2 = shift perspective (different CLI tool, reverse-trace from expected result). Round 3 = combine both + targeted deep-dive on remaining gaps.
176
+
177
+ **Applies to:** S_PLAN, S_VERIFY, S_GENERALIZE
178
+ </self_iteration>
179
+
180
+ <state_machine>
181
+
182
+ <states>
183
+ S_INTAKE — parse requirement, define acceptance criteria PERSIST: session.json + understanding.md §1
184
+ S_PLAN — decompose tasks, generate execution plan PERSIST: session.json.plan + evidence (planning) + understanding.md §2
185
+ S_EXECUTE — implement tasks PERSIST: code + evidence (execution) + understanding.md §3
186
+ S_VERIFY — iron gate: check every acceptance criterion PERSIST: evidence (verification) + understanding.md §4
187
+ S_FIX — targeted fix for failing criteria (loops to VERIFY) PERSIST: code + evidence (fix) + understanding.md §5
188
+ S_GENERALIZE — extract patterns, 4-agent scan PERSIST: session.json.patterns + understanding.md §6
189
+ S_DISCOVER — triage scan hits, route decisions PERSIST: evidence (discovery|decision) + understanding.md §7
190
+ S_RECORD — persist learnings, final summary PERSIST: understanding.md §8 + spec entries
191
+ </states>
192
+
193
+ <transitions>
194
+ S_INTAKE → S_INTAKE WHEN -c + session found (resume)
195
+ S_INTAKE → S_PLAN WHEN requirement + criteria defined
196
+ S_INTAKE → S_INTAKE WHEN no requirement → ask_question
197
+
198
+ S_PLAN → S_EXECUTE
199
+ S_EXECUTE → S_VERIFY
200
+
201
+ S_VERIFY → S_GENERALIZE WHEN all passed AND NOT skip_generalize
202
+ S_VERIFY → S_RECORD WHEN all passed AND skip_generalize
203
+ S_VERIFY → S_FIX WHEN some failed AND iteration < max
204
+ S_VERIFY → S_PLAN WHEN fundamental plan flaw discovered, loops < max_loops → cross_phase_loops++ (重规划)
205
+ S_VERIFY → S_RECORD WHEN some failed AND iteration >= max (escalate)
206
+
207
+ S_FIX → S_VERIFY (loop)
208
+
209
+ S_GENERALIZE → S_DISCOVER WHEN hits found
210
+ S_GENERALIZE → S_RECORD WHEN no hits
211
+
212
+ S_DISCOVER → S_EXECUTE : discovery finds area needing same implementation → cross_phase_loops++
213
+ S_DISCOVER → S_RECORD : triage complete AND remaining_actionable == 0
214
+ S_DISCOVER → S_RECORD : loops >= max_loops → MUST log each unfixed item with specific reason (blanket "pre-existing" is forbidden)
215
+
216
+ S_RECORD → END
217
+ </transitions>
218
+
219
+ <actions>
220
+
221
+ ### A_INTAKE
222
+
223
+ 1. Parse requirement and flags, generate slug, create SESSION_DIR
224
+ 2. **Define acceptance criteria** — analyze requirement → derive testable criteria. Each gets `verify_method`: test | grep | cli-review | manual
225
+ - **Normal**: ask_question to confirm/edit
226
+ - **`-y`**: auto-derive, record `{"phase":"decision","type":"criteria-confirmation","status":"deferred"}`
227
+ 3. Search prior knowledge: `maestro search`, related sessions
228
+ 4. Write session.json + understanding.md §1. Mark G1 done. Display Goal Prompt (see Appendix)
229
+
230
+ 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): INTAKE — 目标解析"`
231
+
232
+ ### A_PLAN
233
+
234
+ 1. Decompose requirement into ordered tasks mapped to acceptance criteria
235
+ 2. CLI-assisted planning (optional):
236
+ ```bash
237
+ maestro delegate "PURPOSE: Create implementation plan for: {requirement}
238
+ TASK: Decompose into subtasks | Map to acceptance criteria | Identify dependencies
239
+ MODE: analysis
240
+ CONTEXT: @**/* | Criteria: {criteria_summary}
241
+ EXPECTED: JSON [{task_id, title, description, criteria_refs, deps}]
242
+ " --role analyze --mode analysis
243
+ ```
244
+ Execute with `run_in_background: true`, then wait for callback (do NOT halt the Odyssey flow).
245
+ 3. Write session.json.plan, append evidence (planning), update understanding.md §2. Mark G2 done.
246
+
247
+ 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): PLAN — 计划制定"`
248
+
249
+ ### A_EXECUTE
250
+
251
+ #### Step 1: Execution Options Confirmation
252
+
253
+ **Skip if** `-y` flag OR `--method` explicitly set OR `execution_config.confirmed == true` (resume).
254
+
255
+ Load available tools: `maestro delegate-config show --json` → extract enabled tools and domain tags.
256
+
257
+ ```
258
+ ask_question({
259
+ questions: [
260
+ {
261
+ question: "任务如何执行?选择一种方式,或 Other 指定域路由规则(如 '前端agy 后端codex 其余agent')",
262
+ header: "Executor",
263
+ options: [
264
+ { label: "Auto (Recommended)", description: "域路由: frontend→{frontendTool}, backend→{backendTool}, general→agent" },
265
+ { label: "Agent", description: "Claude Code Agent 执行所有任务(最快)" },
266
+ // 每个 enabled CLI tool 一个选项
267
+ ...availableTools.map(t => ({ label: t, description: `${t} CLI 执行所有任务` }))
268
+ ]
269
+ },
270
+ {
271
+ question: "执行后运行代码审查?",
272
+ header: "Review",
273
+ options: [
274
+ { label: "Skip", description: "不审查" },
275
+ ...availableTools.map(t => ({ label: `${t} Review`, description: `${t} CLI: git diff 质量审查` }))
276
+ ]
277
+ },
278
+ {
279
+ question: "验证门控?(外部模型检查收敛 + 结构 + 反模式)",
280
+ header: "Verify",
281
+ options: [
282
+ { label: "Auto (Recommended)", description: `Delegate 到 ${availableTools[0]} 做收敛+结构+反模式检查` },
283
+ ...availableTools.map(t => ({ label: t, description: `${t}: 验证门控` })),
284
+ { label: "Skip", description: "不验证" }
285
+ ]
286
+ }
287
+ ]
288
+ })
289
+ ```
290
+
291
+ Parse response → write `execution_config` to session.json, set `confirmed: true`.
292
+
293
+ `--skip-verify` flag overrides verification to `"Skip"`.
294
+
295
+ #### Step 2: Executor Resolution
296
+
297
+ Per-task domain routing (when method == "auto"):
298
+
299
+ | Domain | Keywords / Patterns | File Extensions |
300
+ |--------|-------------------|-----------------|
301
+ | frontend | UI, component, page, style, layout, CSS, view | .tsx/.jsx/.vue/.css/.html/.svelte |
302
+ | backend | API, server, database, service, algorithm, worker | .go/.rs/.java/.py/.sql/.proto |
303
+ | general | mixed, config, tests, unclear | .ts/.js/other |
304
+
305
+ Resolution: `execution_config.domain_routing[domain]` → fallback `domain_routing.default` ("agent").
306
+
307
+ Log routing per task:
308
+ ```
309
+ T1 [frontend] → agy
310
+ T2 [backend] → codex
311
+ T3 [general] → agent
312
+ ```
313
+
314
+ #### Step 3: Task Execution
315
+
316
+ Execute tasks per plan order. Independent tasks (no cross-dependency) may run in parallel.
317
+
318
+ **Agent path:**
319
+ ```
320
+ Spawn Agent with:
321
+ task definition, acceptance criteria refs, prior task summaries, specs_content
322
+ Agent implements → verifies convergence criteria → auto-fix (max 3) → returns result
323
+ ```
324
+
325
+ **CLI path (via maestro delegate):**
326
+ ```bash
327
+ maestro delegate "PURPOSE: Implement task ${task_id}: ${title}; success = criteria ${criteria_refs} satisfied
328
+ TASK: ${description} | Read existing code first | Verify convergence criteria after changes
329
+ MODE: write
330
+ CONTEXT: @${scope}/**/* | Criteria: ${criteria_summary}
331
+ EXPECTED: Working code changes, convergence evidence, summary of what was done
332
+ CONSTRAINTS: Scope limited to task files | Follow project specs
333
+
334
+ ## Acceptance Criteria (must satisfy)
335
+ ${criteria_refs.map(ref => criteria[ref].criterion).join('\n')}
336
+
337
+ ## Implementation Steps
338
+ ${task.description}
339
+
340
+ ## Project Specs
341
+ ${specs_content}
342
+
343
+ ## Prior Task Summaries
344
+ ${prior_summaries}
345
+ " --to ${resolved_executor} --mode write --id planex-${slug}-${task_id}
346
+ ```
347
+
348
+ Run CLI delegate with `run_in_background: true`, then wait for callback (do NOT halt the Odyssey flow).
349
+
350
+ **Deviation Rule** — max 3 auto-fix attempts per task:
351
+ 1. First attempt: normal dispatch
352
+ 2. Retry: `--resume planex-${slug}-${task_id}` with simplified prompt
353
+ 3. Final: fallback to Agent path
354
+ 4. All 3 fail → mark task `blocked`, record checkpoint, continue remaining tasks
355
+
356
+ #### Step 4: Per-Task Evidence
357
+
358
+ Per completed task:
359
+ - Record evidence: `{"phase":"execution","type":"task-completed","task_id":"T1","executor":"agent|agy|...","files_modified":[],"summary":"","attempt":1}`
360
+ - Update task status in session.json plan
361
+
362
+ #### Step 5: Post-Execution Validation
363
+
364
+ **Skip if** `execution_config.verification_tool == "Skip"` OR `--skip-verify` OR no completed tasks.
365
+
366
+ **Check 1: Summary Consistency** — cross-check task status vs actual file changes (git diff).
367
+
368
+ **Check 2: CLI Verification Gate** — delegate to external model:
369
+ ```bash
370
+ maestro delegate "PURPOSE: Verify execution output meets acceptance criteria; success = all criteria verified with file:line evidence
371
+ TASK:
372
+ 1. CONVERGENCE: For each criterion, read actual code, verify behavior exists, report status with evidence
373
+ 2. EXISTENCE: Verify all expected files exist on disk
374
+ 3. SUBSTANCE: Verify real implementation — flag stubs, placeholders, TODO-only
375
+ 4. ANTI-PATTERNS: Scan for TODO/FIXME/HACK, console.log debug, disabled tests
376
+ MODE: analysis
377
+ CONTEXT: @${modified_files}
378
+ EXPECTED: JSON { convergence: [{criterion, status, evidence}], issues: [{type, file, line, severity}], overall: passed|gaps_found }
379
+ CONSTRAINTS: Read-only | Check ALL criteria exhaustively | Evidence must be file:line
380
+
381
+ ## Acceptance Criteria (verify each)
382
+ ${acceptance_criteria.map(c => c.criterion).join('\n')}
383
+
384
+ ## Modified Files
385
+ ${modified_files.join('\n')}
386
+ " --to ${execution_config.verification_tool} --mode analysis
387
+ ```
388
+
389
+ Execute with `run_in_background: true`, then wait for callback (do NOT halt the Odyssey flow).
390
+
391
+ On result:
392
+ - `overall == "passed"` → proceed to S_VERIFY (criteria gate) with boosted confidence
393
+ - `overall == "gaps_found"` → log findings, proceed to S_VERIFY (criteria will catch failures)
394
+
395
+ **Check 3: Code Review** (if `execution_config.code_review_tool != "Skip"`):
396
+ ```bash
397
+ maestro delegate "Review git diff for correctness, style, bugs" --to ${code_review_tool} --mode analysis --rule analysis-review-code-quality
398
+ ```
399
+
400
+ #### Step 6: Completion
401
+
402
+ Update understanding.md §3. Mark G3 done.
403
+
404
+ 📌 **Auto-commit**: `git add -A && git commit -m "odyssey-planex({slug}): EXECUTE — 实现执行"`
405
+
406
+ ### A_VERIFY
407
+
408
+ Iron gate — every acceptance criterion checked objectively.
409
+
410
+ **Verify each criterion by method:**
411
+ | Method | Action |
412
+ |--------|--------|
413
+ | `test` | Run relevant tests, check pass/fail |
414
+ | `grep` | Grep for expected pattern |
415
+ | `cli-review` | `maestro delegate --role review --mode analysis` with criterion as focus |
416
+ | `manual` | **Normal**: ask_question / **`-y`**: record `deferred` |
417
+
418
+ Record per criterion: `{"phase":"verification","type":"criterion-check","criterion_id":"AC1","method":"","result":"passed|failed","evidence":"","iteration":N}`. Update acceptance_criteria[].status. Append to iterations[].
419
+
420
+ Update understanding.md §4 with pass/fail table.
421
+
422
+ **Route:** all passed → mark G4 done → next state. Some failed + iteration < max → S_FIX. Some failed + iteration >= max → **Normal**: ask_question (continue/lower bar/accept) / **`-y`**: `deferred`, proceed S_RECORD.
423
+
424
+ 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): VERIFY — 验收验证"`
425
+
426
+ ### A_FIX
427
+
428
+ 1. Increment current_iteration
429
+ 2. For each failed criterion: diagnose gap → targeted code fix
430
+ 3. CLI fix review (optional):
431
+ ```bash
432
+ maestro delegate "PURPOSE: Review fixes for failing criteria
433
+ TASK: Check fix correctness | Verify no regressions on passing criteria
434
+ MODE: analysis
435
+ CONTEXT: @{modified_files} | Passing: {passing} | Fixed: {fixed}
436
+ EXPECTED: JSON {verdict, regression_risk, concerns}
437
+ " --role review --mode analysis
438
+ ```
439
+ 4. Append evidence (fix), update understanding.md §5 → S_VERIFY
440
+
441
+ 📌 **Auto-commit**: `git add -A && git commit -m "odyssey-planex({slug}): FIX — 修复"`
442
+
443
+ ### A_GENERALIZE
444
+
445
+ Extract reusable patterns from implementation, scan codebase for similar sites.
446
+
447
+ **Pattern extraction (3 layers):**
448
+ | Layer | Method | Example |
449
+ |-------|--------|---------|
450
+ | Syntax | Code regex patterns | validation/error handling patterns |
451
+ | Semantic | Logic pattern description | missing similar checks at other entry points |
452
+ | Structural | File/module structure match | sibling modules lacking same treatment |
453
+
454
+ **4-agent parallel scan** (spawn 4 Agents):
455
+ | Agent | Strategy | Scope |
456
+ |-------|----------|-------|
457
+ | Syntax grep | Grep syntax-layer signatures | full project |
458
+ | Semantic scan | Check for same anti-pattern in related modules | related modules |
459
+ | Structural match | Find structurally similar files | full project |
460
+ | Historical grep | `git log -S "{pattern}"` | full git history |
461
+
462
+ Each returns: `[{pattern_id, file, line, context, risk_level, layer, confidence}]`
463
+
464
+ **Cross-layer dedup:** multi-layer hit on same file:line → boost confidence. Historical hit with existing fix → `already_handled`. Single layer only → `needs_review`.
465
+
466
+ **Quality Gate** (self-iteration) → evaluate coverage/depth/actionability.
467
+
468
+ Write understanding.md §6, generalization_stats. Mark G5 done.
469
+
470
+ 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): GENERALIZE — 泛化扫描"`
471
+
472
+ ### A_DISCOVER
473
+
474
+ 1. **Triage:** per hit, read context (+-10 lines), classify as `already_handled` | `needs_treatment` | `low_risk`
475
+ 2. **Route:**
476
+ | Classification | Normal | `-y` |
477
+ |---------------|--------|------|
478
+ | needs_treatment | ask_question: create issue / plan next iter | auto create issue, `deferred` |
479
+ | low_risk | Record only | Record only |
480
+ | already_handled | Skip | Skip |
481
+ 3. Append evidence (discovery + decision), update understanding.md §7. Mark G6 done.
482
+
483
+ 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): DISCOVER — 发现分类"`
484
+
485
+ ### A_RECORD
486
+
487
+ 1. Finalize understanding.md §8 — iteration summary, what worked, what needed rework
488
+ 2. Write learnings to understanding.md §8: 按 Knowledge Persistence 表分类记录(临时),completion summary 列出建议的 `/spec-add` 命令
489
+ 3. Pending decisions: **Normal** → ask_question. **`-y`** → display deferred count.
490
+ 4. Goal audit: check all phase_goals[*].completion_confirmed. Mark G7 done.
491
+ 5. Output completion summary:
492
+ ```
493
+ --- PLANEX ODYSSEY COMPLETE ---
494
+ Requirement: {requirement}
495
+ Criteria: {passed}/{total} passed
496
+ Iterations: {N} cycles
497
+ Patterns: {patterns_extracted} ({by_layer} distribution)
498
+ Scan hits: {total_hits} ({cross_layer_confirmed} cross-layer confirmed)
499
+ Issues: {N} created | Decisions: {N} resolved, {M} pending, {K} deferred
500
+ Learnings: {N} spec entries
501
+ Self-iter: {N} rounds across {M} stages
502
+ Goals: {done}/{total} confirmed ({skipped} skipped)
503
+ Status: {ALL_PASSED|PARTIAL|ESCALATED}
504
+ ---
505
+ ```
506
+
507
+ 📌 **Auto-commit**: `git add understanding.md && git commit -m "odyssey-planex({slug}): RECORD — 会话总结"`
508
+
509
+ </actions>
510
+
511
+ <appendix>
512
+
513
+ ### Goal Prompt Template
514
+
515
+ **⚠️ 时机守卫:仅在 A_INTAKE 完成后显示一次(session 创建后、开始 Plan 前)。A_RECORD 完成时禁止重新显示。**
516
+
517
+ ```
518
+ 📋 Planex Odyssey 会话已创建。可随时复制以下 /goal 设定终止条件(执行过程中输入即可):
519
+
520
+ /goal 完成以下目标:
521
+ {for each G in phase_goals where status != "skipped":}
522
+ - {G.id}: {G.goal} — 完成条件: {G.done_when}
523
+ {end for}
524
+ 验收标准:
525
+ {for each AC in acceptance_criteria:}
526
+ - {AC.id}: {AC.criterion} (验证方式: {AC.verify_method})
527
+ {end for}
528
+ 穷尽迭代:直到 acceptance_criteria[*] 全部 status==passed
529
+ 且 phase_goals_all_done=true 才停。verify 失败自动 fix→re-verify 循环。
530
+ 每轮修复后重新验证,新发现的标准违反继续修,不超过 max_iterations。
531
+ 遇到 phase=decision 的 pending 必须 ask_question,不得自行 resolve。
532
+ 不允许"接近通过",验收标准必须 ALL pass。
533
+ ```
534
+
535
+ 完成时仅输出 completion summary,不重复此提示。
536
+
537
+ ### `-y` Auto-Confirm Behavior
538
+
539
+ | Decision Point | Normal | `-y` |
540
+ |----------------|--------|------|
541
+ | S_INTAKE criteria confirmation | ask_question | auto-derive, `deferred` |
542
+ | S_EXECUTE execution options | ask_question (executor/review/verify) | use defaults (auto/Skip/Auto), `confirmed: true` |
543
+ | S_EXECUTE task blocked (3 retries) | ask_question: continue or stop | auto continue, log blocked |
544
+ | S_VERIFY manual criterion | ask_question | `deferred` |
545
+ | S_VERIFY max iteration reached | ask_question | auto accept, `deferred` |
546
+ | S_DISCOVER classification routing | ask_question | auto create issue, `deferred` |
547
+ | S_DISCOVER ambiguous items | ask_question | all `deferred` |
548
+ | S_RECORD decision list | ask_question | skip |
549
+ | S_RECORD goal audit | ask_question | auto accept |
550
+
551
+ ### Iteration Model
552
+
553
+ ```
554
+ S_EXECUTE → S_VERIFY ──all pass──→ S_GENERALIZE → S_DISCOVER → S_RECORD
555
+ │ │
556
+ some fail + iter < max no hits ─→ S_RECORD
557
+
558
+ S_FIX ──→ S_VERIFY (loop)
559
+ ```
560
+
561
+ Max iterations (default 3) prevents infinite loops. Each iteration records criteria_before, gaps_fixed, criteria_after.
562
+
563
+ </appendix>
564
+
565
+ </state_machine>
566
+
567
+ <error_codes>
568
+ | Code | Severity | Condition | Recovery |
569
+ |------|----------|-----------|----------|
570
+ | E001 | error | No requirement provided | Provide requirement |
571
+ | E003 | error | Resume but no session found | Start new |
572
+ | E004 | error | Delegate failed | Retry or proceed without |
573
+ | W001 | warning | No acceptance criteria derived | Manual definition needed |
574
+ | W002 | warning | Max iterations reached, criteria still failing | Escalate to user |
575
+ | W003 | warning | CLI review regression concern | Review before next iteration |
576
+ | W004 | warning | Delegate parse failed | Use raw output |
577
+ </error_codes>
578
+
579
+ <success_criteria>
580
+ - [ ] Requirement parsed and ≥1 acceptance criterion defined with verify_method
581
+ - [ ] Plan created with tasks mapped to criteria
582
+ - [ ] Execution options confirmed (executor/review/verify) before task dispatch
583
+ - [ ] Tasks dispatched via resolved executor (agent/cli/auto domain routing)
584
+ - [ ] Per-task deviation rule enforced (max 3 retries, fallback chain)
585
+ - [ ] Post-execution validation gate run (unless --skip-verify)
586
+ - [ ] Tasks executed with evidence logged (executor, attempt count, files_modified)
587
+ - [ ] Every criterion verified by its method after each iteration
588
+ - [ ] Failing criteria trigger targeted fix (not full re-implementation)
589
+ - [ ] Iteration count tracked, max respected
590
+ - [ ] **Every unfixed criterion has individual classification and reason** — blanket "pre-existing" labels are forbidden
591
+ - [ ] understanding.md updated per phase (§1-§8)
592
+ - [ ] Multi-layer generalization + 4-agent scan (unless --skip-generalize)
593
+ - [ ] Discoveries classified and routed (unless --skip-generalize)
594
+ - [ ] Quality Gate self-iteration triggered when insufficient, logged in self_iteration_log
595
+ - [ ] phase_goals G1-G7 tracked and audited
596
+ - [ ] Goal Prompt displayed once after intake
597
+ - [ ] `-y` mode: no blocking prompts, deferred counted
598
+ - [ ] Session resumable via -c
599
+ - [ ] Completion summary with iteration stats
600
+ </success_criteria>
601
+
602
+ <next_step_routing>
603
+ | Condition | Next step |
604
+ |-----------|-----------|
605
+ | All criteria passed | `/odyssey-review-test-fix <changed-files>` |
606
+ | Max iterations, still failing | `/odyssey-debug "<failing criterion>"` |
607
+ | Want formal review | `/quality-review <phase>` |
608
+ | Issues from discoveries | `/manage-issue list --source planex-odyssey` |
609
+ | Pattern worth documenting | `/learn-decompose <module>` |
610
+ </next_step_routing>