maestro-flow 0.5.31 → 0.5.33

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 (1443) hide show
  1. package/.agents/skills/delegation-check/SKILL.md +299 -0
  2. package/.agents/skills/delegation-check/specs/separation-rules.md +269 -0
  3. package/.agents/skills/odyssey-debug/SKILL.md +30 -16
  4. package/.agents/skills/odyssey-improve/SKILL.md +28 -15
  5. package/.agents/skills/odyssey-planex/SKILL.md +20 -12
  6. package/.agents/skills/odyssey-review-test-fix/SKILL.md +29 -13
  7. package/.agents/skills/odyssey-ui/SKILL.md +27 -14
  8. package/.agents/skills/prompt-generator/SKILL.md +472 -0
  9. package/.agents/skills/prompt-generator/specs/agent-design-spec.md +299 -0
  10. package/.agents/skills/prompt-generator/specs/command-design-spec.md +367 -0
  11. package/.agents/skills/prompt-generator/specs/conversion-spec.md +207 -0
  12. package/.agents/skills/prompt-generator/templates/agent-md.md +145 -0
  13. package/.agents/skills/prompt-generator/templates/command-md.md +118 -0
  14. package/.agents/skills/scholar-anti-ai-writing/SKILL.md +175 -0
  15. package/.agents/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -0
  16. package/.agents/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -0
  17. package/.agents/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -0
  18. package/.agents/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
  19. package/.agents/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
  20. package/.agents/skills/scholar-citation-verify/SKILL.md +168 -0
  21. package/.agents/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -0
  22. package/.agents/skills/scholar-citation-verify/phases/02-verify.md +310 -0
  23. package/.agents/skills/scholar-citation-verify/phases/03-report-fix.md +190 -0
  24. package/.agents/skills/scholar-citation-verify/references/api-usage.md +372 -0
  25. package/.agents/skills/scholar-citation-verify/references/common-errors.md +384 -0
  26. package/.agents/skills/scholar-citation-verify/references/verification-rules.md +399 -0
  27. package/.agents/skills/scholar-experiment/SKILL.md +323 -0
  28. package/.agents/skills/scholar-experiment/phases/01-data-loading.md +209 -0
  29. package/.agents/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -0
  30. package/.agents/skills/scholar-experiment/phases/03-visualization.md +319 -0
  31. package/.agents/skills/scholar-experiment/phases/04-results-writing.md +229 -0
  32. package/.agents/skills/scholar-experiment/phases/05-quality-check.md +261 -0
  33. package/.agents/skills/scholar-ideation/SKILL.md +290 -0
  34. package/.agents/skills/scholar-ideation/phases/01-literature-search.md +317 -0
  35. package/.agents/skills/scholar-ideation/phases/02-gap-analysis.md +249 -0
  36. package/.agents/skills/scholar-ideation/phases/03-research-question.md +200 -0
  37. package/.agents/skills/scholar-ideation/phases/04-method-selection.md +185 -0
  38. package/.agents/skills/scholar-ideation/phases/05-research-planning.md +385 -0
  39. package/.agents/skills/scholar-latex-organizer/SKILL.md +188 -0
  40. package/.agents/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -0
  41. package/.agents/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -0
  42. package/.agents/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -0
  43. package/.agents/skills/scholar-publish/SKILL.md +222 -0
  44. package/.agents/skills/scholar-publish/phases/01-presentation.md +243 -0
  45. package/.agents/skills/scholar-publish/phases/02-poster.md +239 -0
  46. package/.agents/skills/scholar-publish/phases/03-promotion.md +255 -0
  47. package/.agents/skills/scholar-rebuttal-pro/README.md +313 -0
  48. package/.agents/skills/scholar-rebuttal-pro/SKILL.md +513 -0
  49. package/.agents/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -0
  50. package/.agents/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -0
  51. package/.agents/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -0
  52. package/.agents/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -0
  53. package/.agents/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -0
  54. package/.agents/skills/scholar-review/SKILL.md +229 -0
  55. package/.agents/skills/scholar-review/phases/01-self-review.md +186 -0
  56. package/.agents/skills/scholar-review/phases/02-review-analysis.md +203 -0
  57. package/.agents/skills/scholar-review/phases/03-response-strategy.md +193 -0
  58. package/.agents/skills/scholar-review/phases/04-rebuttal-writing.md +181 -0
  59. package/.agents/skills/scholar-review/phases/05-revision.md +183 -0
  60. package/.agents/skills/scholar-review/specs/tone-guidelines.md +76 -0
  61. package/.agents/skills/scholar-thesis-docx/LICENSE +21 -0
  62. package/.agents/skills/scholar-thesis-docx/README.md +111 -0
  63. package/.agents/skills/scholar-thesis-docx/README_EN.md +108 -0
  64. package/.agents/skills/scholar-thesis-docx/SKILL.md +214 -0
  65. package/.agents/skills/scholar-thesis-docx/agents/openai.yaml +4 -0
  66. package/.agents/skills/scholar-thesis-docx/examples/architecture.sample.mmd +5 -0
  67. package/.agents/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -0
  68. package/.agents/skills/scholar-thesis-docx/examples/word-style-config.sample.json +35 -0
  69. package/.agents/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
  70. package/.agents/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
  71. package/.agents/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
  72. package/.agents/skills/scholar-thesis-docx/references/script-usage.md +157 -0
  73. package/.agents/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
  74. package/.agents/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
  75. package/.agents/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
  76. package/.agents/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
  77. package/.agents/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
  78. package/.agents/skills/scholar-writing/SKILL.md +298 -0
  79. package/.agents/skills/scholar-writing/phases/01-repo-understanding.md +178 -0
  80. package/.agents/skills/scholar-writing/phases/02-structure-planning.md +197 -0
  81. package/.agents/skills/scholar-writing/phases/03-section-drafting.md +215 -0
  82. package/.agents/skills/scholar-writing/phases/04-citation-management.md +310 -0
  83. package/.agents/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -0
  84. package/.agents/skills/scholar-writing/phases/06-conference-formatting.md +260 -0
  85. package/.agents/skills/skill-generator/SKILL.md +473 -0
  86. package/.agents/skills/skill-generator/phases/01-requirements-discovery.md +238 -0
  87. package/.agents/skills/skill-generator/phases/02-structure-generation.md +261 -0
  88. package/.agents/skills/skill-generator/phases/03-phase-generation.md +976 -0
  89. package/.agents/skills/skill-generator/phases/04-specs-templates.md +398 -0
  90. package/.agents/skills/skill-generator/phases/05-validation.md +417 -0
  91. package/.agents/skills/skill-generator/specs/cli-integration.md +442 -0
  92. package/.agents/skills/skill-generator/specs/execution-modes.md +399 -0
  93. package/.agents/skills/skill-generator/specs/reference-docs-spec.md +271 -0
  94. package/.agents/skills/skill-generator/specs/scripting-integration.md +265 -0
  95. package/.agents/skills/skill-generator/specs/skill-requirements.md +466 -0
  96. package/.agents/skills/skill-generator/templates/autonomous-action.md +330 -0
  97. package/.agents/skills/skill-generator/templates/autonomous-orchestrator.md +300 -0
  98. package/.agents/skills/skill-generator/templates/code-analysis-action.md +514 -0
  99. package/.agents/skills/skill-generator/templates/llm-action.md +367 -0
  100. package/.agents/skills/skill-generator/templates/script-template.md +368 -0
  101. package/.agents/skills/skill-generator/templates/sequential-phase.md +474 -0
  102. package/.agents/skills/skill-generator/templates/skill-md.md +312 -0
  103. package/.agents/skills/skill-iter-tune/SKILL.md +15 -15
  104. package/.agents/skills/skill-iter-tune/phases/02-execute.md +5 -5
  105. package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +4 -4
  106. package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +1 -1
  107. package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +1 -1
  108. package/.agents/skills/skill-simplify/SKILL.md +65 -0
  109. package/.agents/skills/skill-simplify/phases/01-analysis.md +224 -0
  110. package/.agents/skills/skill-simplify/phases/02-optimize.md +111 -0
  111. package/.agents/skills/skill-simplify/phases/03-check.md +224 -0
  112. package/.agents/skills/skill-tuning/SKILL.md +176 -0
  113. package/.agents/skills/skill-tuning/phases/actions/action-abort.md +164 -0
  114. package/.agents/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -0
  115. package/.agents/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -0
  116. package/.agents/skills/skill-tuning/phases/actions/action-complete.md +195 -0
  117. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -0
  118. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -0
  119. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -0
  120. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -0
  121. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -0
  122. package/.agents/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -0
  123. package/.agents/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -0
  124. package/.agents/skills/skill-tuning/phases/actions/action-generate-report.md +228 -0
  125. package/.agents/skills/skill-tuning/phases/actions/action-init.md +149 -0
  126. package/.agents/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -0
  127. package/.agents/skills/skill-tuning/phases/actions/action-verify.md +222 -0
  128. package/.agents/skills/skill-tuning/phases/orchestrator.md +190 -0
  129. package/.agents/skills/skill-tuning/phases/state-schema.md +378 -0
  130. package/.agents/skills/skill-tuning/specs/category-mappings.json +284 -0
  131. package/.agents/skills/skill-tuning/specs/dimension-mapping.md +212 -0
  132. package/.agents/skills/skill-tuning/specs/problem-taxonomy.md +210 -0
  133. package/.agents/skills/skill-tuning/specs/quality-gates.md +263 -0
  134. package/.agents/skills/skill-tuning/specs/skill-authoring-principles.md +192 -0
  135. package/.agents/skills/skill-tuning/specs/tuning-strategies.md +392 -0
  136. package/.agents/skills/skill-tuning/templates/diagnosis-report.md +153 -0
  137. package/.agents/skills/skill-tuning/templates/fix-proposal.md +204 -0
  138. package/.agents/skills/team-arch-opt/SKILL.md +160 -0
  139. package/.agents/skills/team-arch-opt/roles/analyzer/role.md +88 -0
  140. package/.agents/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -0
  141. package/.agents/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -0
  142. package/.agents/skills/team-arch-opt/roles/coordinator/commands/monitor.md +216 -0
  143. package/.agents/skills/team-arch-opt/roles/coordinator/role.md +146 -0
  144. package/.agents/skills/team-arch-opt/roles/designer/role.md +117 -0
  145. package/.agents/skills/team-arch-opt/roles/refactorer/role.md +106 -0
  146. package/.agents/skills/team-arch-opt/roles/reviewer/role.md +113 -0
  147. package/.agents/skills/team-arch-opt/roles/validator/role.md +117 -0
  148. package/.agents/skills/team-arch-opt/specs/pipelines.md +102 -0
  149. package/.agents/skills/team-arch-opt/specs/team-config.json +263 -0
  150. package/.agents/skills/team-brainstorm/SKILL.md +173 -0
  151. package/.agents/skills/team-brainstorm/roles/challenger/role.md +63 -0
  152. package/.agents/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -0
  153. package/.agents/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -0
  154. package/.agents/skills/team-brainstorm/roles/coordinator/commands/monitor.md +199 -0
  155. package/.agents/skills/team-brainstorm/roles/coordinator/role.md +140 -0
  156. package/.agents/skills/team-brainstorm/roles/evaluator/role.md +58 -0
  157. package/.agents/skills/team-brainstorm/roles/ideator/role.md +71 -0
  158. package/.agents/skills/team-brainstorm/roles/synthesizer/role.md +59 -0
  159. package/.agents/skills/team-brainstorm/specs/pipelines.md +72 -0
  160. package/.agents/skills/team-brainstorm/specs/team-config.json +86 -0
  161. package/.agents/skills/team-coordinate/SKILL.md +262 -262
  162. package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
  163. package/.agents/skills/team-coordinate/roles/coordinator/role.md +1 -1
  164. package/.agents/skills/team-designer/SKILL.md +162 -0
  165. package/.agents/skills/team-designer/phases/01-requirements-analysis.md +265 -0
  166. package/.agents/skills/team-designer/phases/02-scaffold-generation.md +236 -0
  167. package/.agents/skills/team-designer/phases/03-content-generation.md +330 -0
  168. package/.agents/skills/team-designer/phases/04-validation.md +329 -0
  169. package/.agents/skills/team-executor/SKILL.md +1 -1
  170. package/.agents/skills/team-frontend/SKILL.md +138 -0
  171. package/.agents/skills/team-frontend/roles/analyst/role.md +102 -0
  172. package/.agents/skills/team-frontend/roles/architect/role.md +88 -0
  173. package/.agents/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -0
  174. package/.agents/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -0
  175. package/.agents/skills/team-frontend/roles/coordinator/commands/monitor.md +233 -0
  176. package/.agents/skills/team-frontend/roles/coordinator/role.md +158 -0
  177. package/.agents/skills/team-frontend/roles/developer/role.md +95 -0
  178. package/.agents/skills/team-frontend/roles/qa/role.md +81 -0
  179. package/.agents/skills/team-frontend/specs/pipelines.md +76 -0
  180. package/.agents/skills/team-frontend/specs/team-config.json +84 -0
  181. package/.agents/skills/team-frontend-debug/SKILL.md +200 -0
  182. package/.agents/skills/team-frontend-debug/roles/analyzer/role.md +210 -0
  183. package/.agents/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -0
  184. package/.agents/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -0
  185. package/.agents/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -0
  186. package/.agents/skills/team-frontend-debug/roles/coordinator/role.md +131 -0
  187. package/.agents/skills/team-frontend-debug/roles/fixer/role.md +149 -0
  188. package/.agents/skills/team-frontend-debug/roles/reproducer/role.md +157 -0
  189. package/.agents/skills/team-frontend-debug/roles/tester/role.md +233 -0
  190. package/.agents/skills/team-frontend-debug/roles/verifier/role.md +174 -0
  191. package/.agents/skills/team-frontend-debug/specs/debug-tools.md +215 -0
  192. package/.agents/skills/team-frontend-debug/specs/pipelines.md +94 -0
  193. package/.agents/skills/team-interactive-craft/SKILL.md +143 -0
  194. package/.agents/skills/team-interactive-craft/roles/a11y-tester/role.md +161 -0
  195. package/.agents/skills/team-interactive-craft/roles/builder/role.md +218 -0
  196. package/.agents/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -0
  197. package/.agents/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -0
  198. package/.agents/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +215 -0
  199. package/.agents/skills/team-interactive-craft/roles/coordinator/role.md +166 -0
  200. package/.agents/skills/team-interactive-craft/roles/interaction-designer/role.md +146 -0
  201. package/.agents/skills/team-interactive-craft/roles/researcher/role.md +133 -0
  202. package/.agents/skills/team-interactive-craft/specs/interaction-patterns.md +362 -0
  203. package/.agents/skills/team-interactive-craft/specs/pipelines.md +85 -0
  204. package/.agents/skills/team-interactive-craft/specs/team-config.json +105 -0
  205. package/.agents/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -0
  206. package/.agents/skills/team-issue/SKILL.md +173 -0
  207. package/.agents/skills/team-issue/roles/coordinator/commands/analyze.md +64 -0
  208. package/.agents/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -0
  209. package/.agents/skills/team-issue/roles/coordinator/commands/monitor.md +229 -0
  210. package/.agents/skills/team-issue/roles/coordinator/role.md +177 -0
  211. package/.agents/skills/team-issue/roles/explorer/role.md +104 -0
  212. package/.agents/skills/team-issue/roles/implementer/role.md +89 -0
  213. package/.agents/skills/team-issue/roles/integrator/role.md +86 -0
  214. package/.agents/skills/team-issue/roles/planner/role.md +83 -0
  215. package/.agents/skills/team-issue/roles/reviewer/role.md +88 -0
  216. package/.agents/skills/team-issue/specs/pipelines.md +124 -0
  217. package/.agents/skills/team-issue/specs/team-config.json +70 -0
  218. package/.agents/skills/team-lifecycle-v4/SKILL.md +205 -205
  219. package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
  220. package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +1 -1
  221. package/.agents/skills/team-motion-design/SKILL.md +144 -0
  222. package/.agents/skills/team-motion-design/roles/animator/role.md +196 -0
  223. package/.agents/skills/team-motion-design/roles/choreographer/role.md +166 -0
  224. package/.agents/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -0
  225. package/.agents/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -0
  226. package/.agents/skills/team-motion-design/roles/coordinator/commands/monitor.md +216 -0
  227. package/.agents/skills/team-motion-design/roles/coordinator/role.md +167 -0
  228. package/.agents/skills/team-motion-design/roles/motion-researcher/role.md +117 -0
  229. package/.agents/skills/team-motion-design/roles/motion-tester/role.md +177 -0
  230. package/.agents/skills/team-motion-design/specs/gpu-constraints.md +114 -0
  231. package/.agents/skills/team-motion-design/specs/motion-tokens.md +128 -0
  232. package/.agents/skills/team-motion-design/specs/pipelines.md +74 -0
  233. package/.agents/skills/team-motion-design/specs/reduced-motion.md +129 -0
  234. package/.agents/skills/team-motion-design/specs/team-config.json +99 -0
  235. package/.agents/skills/team-perf-opt/SKILL.md +177 -0
  236. package/.agents/skills/team-perf-opt/roles/benchmarker/role.md +91 -0
  237. package/.agents/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -0
  238. package/.agents/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -0
  239. package/.agents/skills/team-perf-opt/roles/coordinator/commands/monitor.md +362 -0
  240. package/.agents/skills/team-perf-opt/roles/coordinator/role.md +147 -0
  241. package/.agents/skills/team-perf-opt/roles/optimizer/role.md +101 -0
  242. package/.agents/skills/team-perf-opt/roles/profiler/role.md +83 -0
  243. package/.agents/skills/team-perf-opt/roles/reviewer/role.md +77 -0
  244. package/.agents/skills/team-perf-opt/roles/strategist/role.md +96 -0
  245. package/.agents/skills/team-perf-opt/specs/pipelines.md +65 -0
  246. package/.agents/skills/team-perf-opt/specs/team-config.json +246 -0
  247. package/.agents/skills/team-planex/SKILL.md +139 -0
  248. package/.agents/skills/team-planex/roles/coordinator/commands/analyze.md +52 -0
  249. package/.agents/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -0
  250. package/.agents/skills/team-planex/roles/coordinator/commands/monitor.md +195 -0
  251. package/.agents/skills/team-planex/roles/coordinator/role.md +140 -0
  252. package/.agents/skills/team-planex/roles/executor/role.md +93 -0
  253. package/.agents/skills/team-planex/roles/planner/role.md +121 -0
  254. package/.agents/skills/team-planex/specs/pipelines.md +93 -0
  255. package/.agents/skills/team-quality-assurance/SKILL.md +143 -143
  256. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +1 -1
  257. package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +2 -2
  258. package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +1 -1
  259. package/.agents/skills/team-quality-assurance/roles/scout/role.md +66 -66
  260. package/.agents/skills/team-review/SKILL.md +143 -143
  261. package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +1 -1
  262. package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +2 -2
  263. package/.agents/skills/team-review/roles/coordinator/role.md +1 -1
  264. package/.agents/skills/team-roadmap-dev/SKILL.md +171 -0
  265. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -0
  266. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -0
  267. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +477 -0
  268. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -0
  269. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -0
  270. package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -0
  271. package/.agents/skills/team-roadmap-dev/roles/coordinator/role.md +302 -0
  272. package/.agents/skills/team-roadmap-dev/roles/executor/role.md +74 -0
  273. package/.agents/skills/team-roadmap-dev/roles/planner/role.md +88 -0
  274. package/.agents/skills/team-roadmap-dev/roles/verifier/role.md +76 -0
  275. package/.agents/skills/team-roadmap-dev/specs/pipelines.md +93 -0
  276. package/.agents/skills/team-roadmap-dev/specs/team-config.json +95 -0
  277. package/.agents/skills/team-swarm/SKILL.md +174 -174
  278. package/.agents/skills/team-tech-debt/SKILL.md +124 -124
  279. package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +1 -1
  280. package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +2 -2
  281. package/.agents/skills/team-tech-debt/roles/scanner/role.md +84 -84
  282. package/.agents/skills/team-testing/SKILL.md +139 -139
  283. package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +1 -1
  284. package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +2 -2
  285. package/.agents/skills/team-testing/roles/coordinator/role.md +1 -1
  286. package/.agents/skills/team-ui-polish/SKILL.md +143 -0
  287. package/.agents/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -0
  288. package/.agents/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -0
  289. package/.agents/skills/team-ui-polish/roles/coordinator/commands/monitor.md +212 -0
  290. package/.agents/skills/team-ui-polish/roles/coordinator/role.md +170 -0
  291. package/.agents/skills/team-ui-polish/roles/diagnostician/role.md +162 -0
  292. package/.agents/skills/team-ui-polish/roles/optimizer/role.md +227 -0
  293. package/.agents/skills/team-ui-polish/roles/scanner/role.md +358 -0
  294. package/.agents/skills/team-ui-polish/roles/verifier/role.md +144 -0
  295. package/.agents/skills/team-ui-polish/specs/anti-patterns.md +141 -0
  296. package/.agents/skills/team-ui-polish/specs/design-standards.md +356 -0
  297. package/.agents/skills/team-ui-polish/specs/fix-strategies.md +235 -0
  298. package/.agents/skills/team-ui-polish/specs/pipelines.md +81 -0
  299. package/.agents/skills/team-ui-polish/specs/scoring-guide.md +162 -0
  300. package/.agents/skills/team-ui-polish/specs/team-config.json +73 -0
  301. package/.agents/skills/team-uidesign/SKILL.md +146 -0
  302. package/.agents/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -0
  303. package/.agents/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -0
  304. package/.agents/skills/team-uidesign/roles/coordinator/commands/monitor.md +216 -0
  305. package/.agents/skills/team-uidesign/roles/coordinator/role.md +168 -0
  306. package/.agents/skills/team-uidesign/roles/designer/role.md +95 -0
  307. package/.agents/skills/team-uidesign/roles/implementer/role.md +96 -0
  308. package/.agents/skills/team-uidesign/roles/researcher/role.md +103 -0
  309. package/.agents/skills/team-uidesign/roles/reviewer/role.md +71 -0
  310. package/.agents/skills/team-uidesign/specs/anti-patterns.md +211 -0
  311. package/.agents/skills/team-uidesign/specs/design-standards.md +329 -0
  312. package/.agents/skills/team-uidesign/specs/pipelines.md +76 -0
  313. package/.agents/skills/team-uidesign/specs/scoring-guide.md +114 -0
  314. package/.agents/skills/team-uidesign/specs/team-config.json +107 -0
  315. package/.agents/skills/team-uidesign/specs/ux-writing.md +86 -0
  316. package/.agents/skills/team-ultra-analyze/SKILL.md +175 -0
  317. package/.agents/skills/team-ultra-analyze/roles/analyst/role.md +100 -0
  318. package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -0
  319. package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -0
  320. package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +372 -0
  321. package/.agents/skills/team-ultra-analyze/roles/coordinator/role.md +247 -0
  322. package/.agents/skills/team-ultra-analyze/roles/discussant/role.md +109 -0
  323. package/.agents/skills/team-ultra-analyze/roles/explorer/role.md +77 -0
  324. package/.agents/skills/team-ultra-analyze/roles/synthesizer/role.md +80 -0
  325. package/.agents/skills/team-ultra-analyze/specs/pipelines.md +64 -0
  326. package/.agents/skills/team-ultra-analyze/specs/team-config.json +129 -0
  327. package/.agents/skills/team-ux-improve/SKILL.md +153 -0
  328. package/.agents/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -0
  329. package/.agents/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -0
  330. package/.agents/skills/team-ux-improve/roles/coordinator/commands/monitor.md +186 -0
  331. package/.agents/skills/team-ux-improve/roles/coordinator/role.md +142 -0
  332. package/.agents/skills/team-ux-improve/roles/designer/role.md +154 -0
  333. package/.agents/skills/team-ux-improve/roles/diagnoser/role.md +110 -0
  334. package/.agents/skills/team-ux-improve/roles/explorer/role.md +79 -0
  335. package/.agents/skills/team-ux-improve/roles/implementer/role.md +104 -0
  336. package/.agents/skills/team-ux-improve/roles/scanner/role.md +137 -0
  337. package/.agents/skills/team-ux-improve/roles/tester/role.md +86 -0
  338. package/.agents/skills/team-ux-improve/specs/anti-patterns.md +103 -0
  339. package/.agents/skills/team-ux-improve/specs/design-standards.md +54 -0
  340. package/.agents/skills/team-ux-improve/specs/heuristics.md +88 -0
  341. package/.agents/skills/team-ux-improve/specs/pipelines.md +54 -0
  342. package/.agents/skills/team-ux-improve/specs/team-config.json +181 -0
  343. package/.agents/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -0
  344. package/.agents/skills/team-ux-improve/wisdom/contributions/.gitkeep +0 -0
  345. package/.agents/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -0
  346. package/.agents/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -0
  347. package/.agents/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -0
  348. package/.agents/skills/team-visual-a11y/SKILL.md +158 -0
  349. package/.agents/skills/team-visual-a11y/roles/color-auditor/role.md +180 -0
  350. package/.agents/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -0
  351. package/.agents/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -0
  352. package/.agents/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +236 -0
  353. package/.agents/skills/team-visual-a11y/roles/coordinator/role.md +169 -0
  354. package/.agents/skills/team-visual-a11y/roles/fix-implementer/role.md +248 -0
  355. package/.agents/skills/team-visual-a11y/roles/focus-auditor/role.md +224 -0
  356. package/.agents/skills/team-visual-a11y/roles/remediation-planner/role.md +208 -0
  357. package/.agents/skills/team-visual-a11y/roles/typo-auditor/role.md +187 -0
  358. package/.agents/skills/team-visual-a11y/specs/focus-patterns.md +325 -0
  359. package/.agents/skills/team-visual-a11y/specs/oklch-standards.md +130 -0
  360. package/.agents/skills/team-visual-a11y/specs/pipelines.md +98 -0
  361. package/.agents/skills/team-visual-a11y/specs/team-config.json +109 -0
  362. package/.agents/skills/team-visual-a11y/specs/typography-scale.md +165 -0
  363. package/.agents/skills/team-visual-a11y/specs/wcag-matrix.md +133 -0
  364. package/.agy/skills/delegation-check/SKILL.md +296 -0
  365. package/.agy/skills/delegation-check/specs/separation-rules.md +261 -0
  366. package/.agy/skills/odyssey-debug/SKILL.md +30 -16
  367. package/.agy/skills/odyssey-improve/SKILL.md +28 -15
  368. package/.agy/skills/odyssey-planex/SKILL.md +20 -12
  369. package/.agy/skills/odyssey-review-test-fix/SKILL.md +29 -13
  370. package/.agy/skills/odyssey-ui/SKILL.md +27 -14
  371. package/.agy/skills/prompt-generator/SKILL.md +469 -0
  372. package/.agy/skills/prompt-generator/specs/agent-design-spec.md +299 -0
  373. package/.agy/skills/prompt-generator/specs/command-design-spec.md +379 -0
  374. package/.agy/skills/prompt-generator/specs/conversion-spec.md +207 -0
  375. package/.agy/skills/prompt-generator/templates/agent-md.md +145 -0
  376. package/.agy/skills/prompt-generator/templates/command-md.md +130 -0
  377. package/.agy/skills/scholar-anti-ai-writing/SKILL.md +172 -0
  378. package/.agy/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -0
  379. package/.agy/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -0
  380. package/.agy/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -0
  381. package/.agy/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
  382. package/.agy/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
  383. package/.agy/skills/scholar-citation-verify/SKILL.md +165 -0
  384. package/.agy/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -0
  385. package/.agy/skills/scholar-citation-verify/phases/02-verify.md +310 -0
  386. package/.agy/skills/scholar-citation-verify/phases/03-report-fix.md +190 -0
  387. package/.agy/skills/scholar-citation-verify/references/api-usage.md +372 -0
  388. package/.agy/skills/scholar-citation-verify/references/common-errors.md +384 -0
  389. package/.agy/skills/scholar-citation-verify/references/verification-rules.md +399 -0
  390. package/.agy/skills/scholar-experiment/SKILL.md +320 -0
  391. package/.agy/skills/scholar-experiment/phases/01-data-loading.md +209 -0
  392. package/.agy/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -0
  393. package/.agy/skills/scholar-experiment/phases/03-visualization.md +319 -0
  394. package/.agy/skills/scholar-experiment/phases/04-results-writing.md +229 -0
  395. package/.agy/skills/scholar-experiment/phases/05-quality-check.md +261 -0
  396. package/.agy/skills/scholar-ideation/SKILL.md +287 -0
  397. package/.agy/skills/scholar-ideation/phases/01-literature-search.md +317 -0
  398. package/.agy/skills/scholar-ideation/phases/02-gap-analysis.md +249 -0
  399. package/.agy/skills/scholar-ideation/phases/03-research-question.md +200 -0
  400. package/.agy/skills/scholar-ideation/phases/04-method-selection.md +185 -0
  401. package/.agy/skills/scholar-ideation/phases/05-research-planning.md +385 -0
  402. package/.agy/skills/scholar-latex-organizer/SKILL.md +185 -0
  403. package/.agy/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -0
  404. package/.agy/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -0
  405. package/.agy/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -0
  406. package/.agy/skills/scholar-publish/SKILL.md +219 -0
  407. package/.agy/skills/scholar-publish/phases/01-presentation.md +243 -0
  408. package/.agy/skills/scholar-publish/phases/02-poster.md +239 -0
  409. package/.agy/skills/scholar-publish/phases/03-promotion.md +255 -0
  410. package/.agy/skills/scholar-rebuttal-pro/README.md +313 -0
  411. package/.agy/skills/scholar-rebuttal-pro/SKILL.md +510 -0
  412. package/.agy/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -0
  413. package/.agy/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -0
  414. package/.agy/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -0
  415. package/.agy/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -0
  416. package/.agy/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -0
  417. package/.agy/skills/scholar-review/SKILL.md +226 -0
  418. package/.agy/skills/scholar-review/phases/01-self-review.md +186 -0
  419. package/.agy/skills/scholar-review/phases/02-review-analysis.md +203 -0
  420. package/.agy/skills/scholar-review/phases/03-response-strategy.md +193 -0
  421. package/.agy/skills/scholar-review/phases/04-rebuttal-writing.md +181 -0
  422. package/.agy/skills/scholar-review/phases/05-revision.md +183 -0
  423. package/.agy/skills/scholar-review/specs/tone-guidelines.md +76 -0
  424. package/.agy/skills/scholar-thesis-docx/LICENSE +21 -0
  425. package/.agy/skills/scholar-thesis-docx/README.md +111 -0
  426. package/.agy/skills/scholar-thesis-docx/README_EN.md +108 -0
  427. package/.agy/skills/scholar-thesis-docx/SKILL.md +211 -0
  428. package/.agy/skills/scholar-thesis-docx/agents/openai.yaml +4 -0
  429. package/.agy/skills/scholar-thesis-docx/examples/architecture.sample.mmd +5 -0
  430. package/.agy/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -0
  431. package/.agy/skills/scholar-thesis-docx/examples/word-style-config.sample.json +35 -0
  432. package/.agy/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
  433. package/.agy/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
  434. package/.agy/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
  435. package/.agy/skills/scholar-thesis-docx/references/script-usage.md +157 -0
  436. package/.agy/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
  437. package/.agy/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
  438. package/.agy/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
  439. package/.agy/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
  440. package/.agy/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
  441. package/.agy/skills/scholar-writing/SKILL.md +295 -0
  442. package/.agy/skills/scholar-writing/phases/01-repo-understanding.md +178 -0
  443. package/.agy/skills/scholar-writing/phases/02-structure-planning.md +197 -0
  444. package/.agy/skills/scholar-writing/phases/03-section-drafting.md +215 -0
  445. package/.agy/skills/scholar-writing/phases/04-citation-management.md +310 -0
  446. package/.agy/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -0
  447. package/.agy/skills/scholar-writing/phases/06-conference-formatting.md +260 -0
  448. package/.agy/skills/skill-generator/SKILL.md +470 -0
  449. package/.agy/skills/skill-generator/phases/01-requirements-discovery.md +238 -0
  450. package/.agy/skills/skill-generator/phases/02-structure-generation.md +261 -0
  451. package/.agy/skills/skill-generator/phases/03-phase-generation.md +988 -0
  452. package/.agy/skills/skill-generator/phases/04-specs-templates.md +398 -0
  453. package/.agy/skills/skill-generator/phases/05-validation.md +417 -0
  454. package/.agy/skills/skill-generator/specs/cli-integration.md +432 -0
  455. package/.agy/skills/skill-generator/specs/execution-modes.md +399 -0
  456. package/.agy/skills/skill-generator/specs/reference-docs-spec.md +271 -0
  457. package/.agy/skills/skill-generator/specs/scripting-integration.md +265 -0
  458. package/.agy/skills/skill-generator/specs/skill-requirements.md +466 -0
  459. package/.agy/skills/skill-generator/templates/autonomous-action.md +330 -0
  460. package/.agy/skills/skill-generator/templates/autonomous-orchestrator.md +312 -0
  461. package/.agy/skills/skill-generator/templates/code-analysis-action.md +527 -0
  462. package/.agy/skills/skill-generator/templates/llm-action.md +367 -0
  463. package/.agy/skills/skill-generator/templates/script-template.md +368 -0
  464. package/.agy/skills/skill-generator/templates/sequential-phase.md +482 -0
  465. package/.agy/skills/skill-generator/templates/skill-md.md +312 -0
  466. package/.agy/skills/skill-iter-tune/SKILL.md +15 -15
  467. package/.agy/skills/skill-iter-tune/phases/02-execute.md +5 -5
  468. package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +4 -4
  469. package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +1 -1
  470. package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +1 -1
  471. package/.agy/skills/skill-simplify/SKILL.md +62 -0
  472. package/.agy/skills/skill-simplify/phases/01-analysis.md +224 -0
  473. package/.agy/skills/skill-simplify/phases/02-optimize.md +111 -0
  474. package/.agy/skills/skill-simplify/phases/03-check.md +224 -0
  475. package/.agy/skills/skill-tuning/SKILL.md +173 -0
  476. package/.agy/skills/skill-tuning/phases/actions/action-abort.md +164 -0
  477. package/.agy/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -0
  478. package/.agy/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -0
  479. package/.agy/skills/skill-tuning/phases/actions/action-complete.md +195 -0
  480. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -0
  481. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -0
  482. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -0
  483. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -0
  484. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -0
  485. package/.agy/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -0
  486. package/.agy/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -0
  487. package/.agy/skills/skill-tuning/phases/actions/action-generate-report.md +228 -0
  488. package/.agy/skills/skill-tuning/phases/actions/action-init.md +149 -0
  489. package/.agy/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -0
  490. package/.agy/skills/skill-tuning/phases/actions/action-verify.md +222 -0
  491. package/.agy/skills/skill-tuning/phases/orchestrator.md +202 -0
  492. package/.agy/skills/skill-tuning/phases/state-schema.md +378 -0
  493. package/.agy/skills/skill-tuning/specs/category-mappings.json +284 -0
  494. package/.agy/skills/skill-tuning/specs/dimension-mapping.md +212 -0
  495. package/.agy/skills/skill-tuning/specs/problem-taxonomy.md +210 -0
  496. package/.agy/skills/skill-tuning/specs/quality-gates.md +263 -0
  497. package/.agy/skills/skill-tuning/specs/skill-authoring-principles.md +204 -0
  498. package/.agy/skills/skill-tuning/specs/tuning-strategies.md +405 -0
  499. package/.agy/skills/skill-tuning/templates/diagnosis-report.md +153 -0
  500. package/.agy/skills/skill-tuning/templates/fix-proposal.md +204 -0
  501. package/.agy/skills/team-arch-opt/SKILL.md +148 -0
  502. package/.agy/skills/team-arch-opt/roles/analyzer/role.md +85 -0
  503. package/.agy/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -0
  504. package/.agy/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -0
  505. package/.agy/skills/team-arch-opt/roles/coordinator/commands/monitor.md +205 -0
  506. package/.agy/skills/team-arch-opt/roles/coordinator/role.md +146 -0
  507. package/.agy/skills/team-arch-opt/roles/designer/role.md +114 -0
  508. package/.agy/skills/team-arch-opt/roles/refactorer/role.md +103 -0
  509. package/.agy/skills/team-arch-opt/roles/reviewer/role.md +110 -0
  510. package/.agy/skills/team-arch-opt/roles/validator/role.md +114 -0
  511. package/.agy/skills/team-arch-opt/specs/pipelines.md +102 -0
  512. package/.agy/skills/team-arch-opt/specs/team-config.json +263 -0
  513. package/.agy/skills/team-brainstorm/SKILL.md +138 -0
  514. package/.agy/skills/team-brainstorm/roles/challenger/role.md +60 -0
  515. package/.agy/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -0
  516. package/.agy/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -0
  517. package/.agy/skills/team-brainstorm/roles/coordinator/commands/monitor.md +183 -0
  518. package/.agy/skills/team-brainstorm/roles/coordinator/role.md +140 -0
  519. package/.agy/skills/team-brainstorm/roles/evaluator/role.md +55 -0
  520. package/.agy/skills/team-brainstorm/roles/ideator/role.md +68 -0
  521. package/.agy/skills/team-brainstorm/roles/synthesizer/role.md +56 -0
  522. package/.agy/skills/team-brainstorm/specs/pipelines.md +72 -0
  523. package/.agy/skills/team-brainstorm/specs/team-config.json +86 -0
  524. package/.agy/skills/team-coordinate/SKILL.md +238 -249
  525. package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
  526. package/.agy/skills/team-coordinate/roles/coordinator/role.md +1 -1
  527. package/.agy/skills/team-designer/SKILL.md +159 -0
  528. package/.agy/skills/team-designer/phases/01-requirements-analysis.md +265 -0
  529. package/.agy/skills/team-designer/phases/02-scaffold-generation.md +248 -0
  530. package/.agy/skills/team-designer/phases/03-content-generation.md +330 -0
  531. package/.agy/skills/team-designer/phases/04-validation.md +329 -0
  532. package/.agy/skills/team-frontend/SKILL.md +126 -0
  533. package/.agy/skills/team-frontend/roles/analyst/role.md +98 -0
  534. package/.agy/skills/team-frontend/roles/architect/role.md +84 -0
  535. package/.agy/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -0
  536. package/.agy/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -0
  537. package/.agy/skills/team-frontend/roles/coordinator/commands/monitor.md +222 -0
  538. package/.agy/skills/team-frontend/roles/coordinator/role.md +158 -0
  539. package/.agy/skills/team-frontend/roles/developer/role.md +91 -0
  540. package/.agy/skills/team-frontend/roles/qa/role.md +77 -0
  541. package/.agy/skills/team-frontend/specs/pipelines.md +76 -0
  542. package/.agy/skills/team-frontend/specs/team-config.json +84 -0
  543. package/.agy/skills/team-frontend-debug/SKILL.md +188 -0
  544. package/.agy/skills/team-frontend-debug/roles/analyzer/role.md +205 -0
  545. package/.agy/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -0
  546. package/.agy/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -0
  547. package/.agy/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -0
  548. package/.agy/skills/team-frontend-debug/roles/coordinator/role.md +131 -0
  549. package/.agy/skills/team-frontend-debug/roles/fixer/role.md +144 -0
  550. package/.agy/skills/team-frontend-debug/roles/reproducer/role.md +153 -0
  551. package/.agy/skills/team-frontend-debug/roles/tester/role.md +228 -0
  552. package/.agy/skills/team-frontend-debug/roles/verifier/role.md +170 -0
  553. package/.agy/skills/team-frontend-debug/specs/debug-tools.md +215 -0
  554. package/.agy/skills/team-frontend-debug/specs/pipelines.md +94 -0
  555. package/.agy/skills/team-interactive-craft/SKILL.md +131 -0
  556. package/.agy/skills/team-interactive-craft/roles/a11y-tester/role.md +158 -0
  557. package/.agy/skills/team-interactive-craft/roles/builder/role.md +215 -0
  558. package/.agy/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -0
  559. package/.agy/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -0
  560. package/.agy/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +204 -0
  561. package/.agy/skills/team-interactive-craft/roles/coordinator/role.md +166 -0
  562. package/.agy/skills/team-interactive-craft/roles/interaction-designer/role.md +143 -0
  563. package/.agy/skills/team-interactive-craft/roles/researcher/role.md +130 -0
  564. package/.agy/skills/team-interactive-craft/specs/interaction-patterns.md +362 -0
  565. package/.agy/skills/team-interactive-craft/specs/pipelines.md +85 -0
  566. package/.agy/skills/team-interactive-craft/specs/team-config.json +105 -0
  567. package/.agy/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -0
  568. package/.agy/skills/team-issue/SKILL.md +138 -0
  569. package/.agy/skills/team-issue/roles/coordinator/commands/analyze.md +64 -0
  570. package/.agy/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -0
  571. package/.agy/skills/team-issue/roles/coordinator/commands/monitor.md +195 -0
  572. package/.agy/skills/team-issue/roles/coordinator/role.md +174 -0
  573. package/.agy/skills/team-issue/roles/explorer/role.md +101 -0
  574. package/.agy/skills/team-issue/roles/implementer/role.md +86 -0
  575. package/.agy/skills/team-issue/roles/integrator/role.md +83 -0
  576. package/.agy/skills/team-issue/roles/planner/role.md +80 -0
  577. package/.agy/skills/team-issue/roles/reviewer/role.md +85 -0
  578. package/.agy/skills/team-issue/specs/pipelines.md +124 -0
  579. package/.agy/skills/team-issue/specs/team-config.json +70 -0
  580. package/.agy/skills/team-lifecycle-v4/SKILL.md +158 -169
  581. package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
  582. package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +1 -1
  583. package/.agy/skills/team-motion-design/SKILL.md +132 -0
  584. package/.agy/skills/team-motion-design/roles/animator/role.md +193 -0
  585. package/.agy/skills/team-motion-design/roles/choreographer/role.md +163 -0
  586. package/.agy/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -0
  587. package/.agy/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -0
  588. package/.agy/skills/team-motion-design/roles/coordinator/commands/monitor.md +205 -0
  589. package/.agy/skills/team-motion-design/roles/coordinator/role.md +167 -0
  590. package/.agy/skills/team-motion-design/roles/motion-researcher/role.md +114 -0
  591. package/.agy/skills/team-motion-design/roles/motion-tester/role.md +174 -0
  592. package/.agy/skills/team-motion-design/specs/gpu-constraints.md +114 -0
  593. package/.agy/skills/team-motion-design/specs/motion-tokens.md +128 -0
  594. package/.agy/skills/team-motion-design/specs/pipelines.md +74 -0
  595. package/.agy/skills/team-motion-design/specs/reduced-motion.md +129 -0
  596. package/.agy/skills/team-motion-design/specs/team-config.json +99 -0
  597. package/.agy/skills/team-perf-opt/SKILL.md +165 -0
  598. package/.agy/skills/team-perf-opt/roles/benchmarker/role.md +86 -0
  599. package/.agy/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -0
  600. package/.agy/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -0
  601. package/.agy/skills/team-perf-opt/roles/coordinator/commands/monitor.md +351 -0
  602. package/.agy/skills/team-perf-opt/roles/coordinator/role.md +147 -0
  603. package/.agy/skills/team-perf-opt/roles/optimizer/role.md +96 -0
  604. package/.agy/skills/team-perf-opt/roles/profiler/role.md +79 -0
  605. package/.agy/skills/team-perf-opt/roles/reviewer/role.md +72 -0
  606. package/.agy/skills/team-perf-opt/roles/strategist/role.md +92 -0
  607. package/.agy/skills/team-perf-opt/specs/pipelines.md +65 -0
  608. package/.agy/skills/team-perf-opt/specs/team-config.json +246 -0
  609. package/.agy/skills/team-planex/SKILL.md +126 -0
  610. package/.agy/skills/team-planex/roles/coordinator/commands/analyze.md +52 -0
  611. package/.agy/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -0
  612. package/.agy/skills/team-planex/roles/coordinator/commands/monitor.md +186 -0
  613. package/.agy/skills/team-planex/roles/coordinator/role.md +140 -0
  614. package/.agy/skills/team-planex/roles/executor/role.md +89 -0
  615. package/.agy/skills/team-planex/roles/planner/role.md +117 -0
  616. package/.agy/skills/team-planex/specs/pipelines.md +93 -0
  617. package/.agy/skills/team-quality-assurance/SKILL.md +119 -130
  618. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +1 -1
  619. package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +2 -2
  620. package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +1 -1
  621. package/.agy/skills/team-quality-assurance/roles/scout/role.md +66 -66
  622. package/.agy/skills/team-review/SKILL.md +119 -131
  623. package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +1 -1
  624. package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +2 -2
  625. package/.agy/skills/team-review/roles/coordinator/role.md +1 -1
  626. package/.agy/skills/team-roadmap-dev/SKILL.md +159 -0
  627. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -0
  628. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -0
  629. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +460 -0
  630. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -0
  631. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -0
  632. package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -0
  633. package/.agy/skills/team-roadmap-dev/roles/coordinator/role.md +302 -0
  634. package/.agy/skills/team-roadmap-dev/roles/executor/role.md +69 -0
  635. package/.agy/skills/team-roadmap-dev/roles/planner/role.md +83 -0
  636. package/.agy/skills/team-roadmap-dev/roles/verifier/role.md +71 -0
  637. package/.agy/skills/team-roadmap-dev/specs/pipelines.md +93 -0
  638. package/.agy/skills/team-roadmap-dev/specs/team-config.json +95 -0
  639. package/.agy/skills/team-swarm/SKILL.md +147 -158
  640. package/.agy/skills/team-tech-debt/SKILL.md +100 -115
  641. package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +1 -1
  642. package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +2 -2
  643. package/.agy/skills/team-tech-debt/roles/scanner/role.md +84 -85
  644. package/.agy/skills/team-testing/SKILL.md +115 -126
  645. package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +1 -1
  646. package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +2 -2
  647. package/.agy/skills/team-testing/roles/coordinator/role.md +1 -1
  648. package/.agy/skills/team-ui-polish/SKILL.md +131 -0
  649. package/.agy/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -0
  650. package/.agy/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -0
  651. package/.agy/skills/team-ui-polish/roles/coordinator/commands/monitor.md +201 -0
  652. package/.agy/skills/team-ui-polish/roles/coordinator/role.md +170 -0
  653. package/.agy/skills/team-ui-polish/roles/diagnostician/role.md +159 -0
  654. package/.agy/skills/team-ui-polish/roles/optimizer/role.md +224 -0
  655. package/.agy/skills/team-ui-polish/roles/scanner/role.md +355 -0
  656. package/.agy/skills/team-ui-polish/roles/verifier/role.md +141 -0
  657. package/.agy/skills/team-ui-polish/specs/anti-patterns.md +141 -0
  658. package/.agy/skills/team-ui-polish/specs/design-standards.md +356 -0
  659. package/.agy/skills/team-ui-polish/specs/fix-strategies.md +235 -0
  660. package/.agy/skills/team-ui-polish/specs/pipelines.md +81 -0
  661. package/.agy/skills/team-ui-polish/specs/scoring-guide.md +162 -0
  662. package/.agy/skills/team-ui-polish/specs/team-config.json +73 -0
  663. package/.agy/skills/team-uidesign/SKILL.md +134 -0
  664. package/.agy/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -0
  665. package/.agy/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -0
  666. package/.agy/skills/team-uidesign/roles/coordinator/commands/monitor.md +205 -0
  667. package/.agy/skills/team-uidesign/roles/coordinator/role.md +168 -0
  668. package/.agy/skills/team-uidesign/roles/designer/role.md +92 -0
  669. package/.agy/skills/team-uidesign/roles/implementer/role.md +93 -0
  670. package/.agy/skills/team-uidesign/roles/researcher/role.md +100 -0
  671. package/.agy/skills/team-uidesign/roles/reviewer/role.md +68 -0
  672. package/.agy/skills/team-uidesign/specs/anti-patterns.md +211 -0
  673. package/.agy/skills/team-uidesign/specs/design-standards.md +329 -0
  674. package/.agy/skills/team-uidesign/specs/pipelines.md +76 -0
  675. package/.agy/skills/team-uidesign/specs/scoring-guide.md +114 -0
  676. package/.agy/skills/team-uidesign/specs/team-config.json +107 -0
  677. package/.agy/skills/team-uidesign/specs/ux-writing.md +86 -0
  678. package/.agy/skills/team-ultra-analyze/SKILL.md +162 -0
  679. package/.agy/skills/team-ultra-analyze/roles/analyst/role.md +96 -0
  680. package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -0
  681. package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -0
  682. package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +356 -0
  683. package/.agy/skills/team-ultra-analyze/roles/coordinator/role.md +247 -0
  684. package/.agy/skills/team-ultra-analyze/roles/discussant/role.md +105 -0
  685. package/.agy/skills/team-ultra-analyze/roles/explorer/role.md +73 -0
  686. package/.agy/skills/team-ultra-analyze/roles/synthesizer/role.md +76 -0
  687. package/.agy/skills/team-ultra-analyze/specs/pipelines.md +64 -0
  688. package/.agy/skills/team-ultra-analyze/specs/team-config.json +129 -0
  689. package/.agy/skills/team-ux-improve/SKILL.md +141 -0
  690. package/.agy/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -0
  691. package/.agy/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -0
  692. package/.agy/skills/team-ux-improve/roles/coordinator/commands/monitor.md +175 -0
  693. package/.agy/skills/team-ux-improve/roles/coordinator/role.md +142 -0
  694. package/.agy/skills/team-ux-improve/roles/designer/role.md +151 -0
  695. package/.agy/skills/team-ux-improve/roles/diagnoser/role.md +107 -0
  696. package/.agy/skills/team-ux-improve/roles/explorer/role.md +76 -0
  697. package/.agy/skills/team-ux-improve/roles/implementer/role.md +101 -0
  698. package/.agy/skills/team-ux-improve/roles/scanner/role.md +134 -0
  699. package/.agy/skills/team-ux-improve/roles/tester/role.md +83 -0
  700. package/.agy/skills/team-ux-improve/specs/anti-patterns.md +103 -0
  701. package/.agy/skills/team-ux-improve/specs/design-standards.md +54 -0
  702. package/.agy/skills/team-ux-improve/specs/heuristics.md +88 -0
  703. package/.agy/skills/team-ux-improve/specs/pipelines.md +54 -0
  704. package/.agy/skills/team-ux-improve/specs/team-config.json +181 -0
  705. package/.agy/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -0
  706. package/.agy/skills/team-ux-improve/wisdom/contributions/.gitkeep +0 -0
  707. package/.agy/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -0
  708. package/.agy/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -0
  709. package/.agy/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -0
  710. package/.agy/skills/team-visual-a11y/SKILL.md +146 -0
  711. package/.agy/skills/team-visual-a11y/roles/color-auditor/role.md +177 -0
  712. package/.agy/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -0
  713. package/.agy/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -0
  714. package/.agy/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +225 -0
  715. package/.agy/skills/team-visual-a11y/roles/coordinator/role.md +169 -0
  716. package/.agy/skills/team-visual-a11y/roles/fix-implementer/role.md +245 -0
  717. package/.agy/skills/team-visual-a11y/roles/focus-auditor/role.md +221 -0
  718. package/.agy/skills/team-visual-a11y/roles/remediation-planner/role.md +205 -0
  719. package/.agy/skills/team-visual-a11y/roles/typo-auditor/role.md +184 -0
  720. package/.agy/skills/team-visual-a11y/specs/focus-patterns.md +325 -0
  721. package/.agy/skills/team-visual-a11y/specs/oklch-standards.md +130 -0
  722. package/.agy/skills/team-visual-a11y/specs/pipelines.md +98 -0
  723. package/.agy/skills/team-visual-a11y/specs/team-config.json +109 -0
  724. package/.agy/skills/team-visual-a11y/specs/typography-scale.md +165 -0
  725. package/.agy/skills/team-visual-a11y/specs/wcag-matrix.md +133 -0
  726. package/.claude/commands/odyssey-debug.md +30 -16
  727. package/.claude/commands/odyssey-improve.md +28 -15
  728. package/.claude/commands/odyssey-planex.md +20 -12
  729. package/.claude/commands/odyssey-review-test-fix.md +29 -13
  730. package/.claude/commands/odyssey-ui.md +27 -14
  731. package/.claude/skills/delegation-check/SKILL.md +297 -0
  732. package/.claude/skills/delegation-check/specs/separation-rules.md +269 -0
  733. package/.claude/skills/prompt-generator/SKILL.md +470 -0
  734. package/.claude/skills/prompt-generator/specs/agent-design-spec.md +299 -0
  735. package/.claude/skills/prompt-generator/specs/command-design-spec.md +367 -0
  736. package/.claude/skills/prompt-generator/specs/conversion-spec.md +207 -0
  737. package/.claude/skills/prompt-generator/templates/agent-md.md +145 -0
  738. package/.claude/skills/prompt-generator/templates/command-md.md +118 -0
  739. package/.claude/skills/scholar-anti-ai-writing/SKILL.md +173 -0
  740. package/.claude/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -0
  741. package/.claude/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -0
  742. package/.claude/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -0
  743. package/.claude/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
  744. package/.claude/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
  745. package/.claude/skills/scholar-citation-verify/SKILL.md +166 -0
  746. package/.claude/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -0
  747. package/.claude/skills/scholar-citation-verify/phases/02-verify.md +310 -0
  748. package/.claude/skills/scholar-citation-verify/phases/03-report-fix.md +190 -0
  749. package/.claude/skills/scholar-citation-verify/references/api-usage.md +372 -0
  750. package/.claude/skills/scholar-citation-verify/references/common-errors.md +384 -0
  751. package/.claude/skills/scholar-citation-verify/references/verification-rules.md +399 -0
  752. package/.claude/skills/scholar-experiment/SKILL.md +321 -0
  753. package/.claude/skills/scholar-experiment/phases/01-data-loading.md +209 -0
  754. package/.claude/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -0
  755. package/.claude/skills/scholar-experiment/phases/03-visualization.md +319 -0
  756. package/.claude/skills/scholar-experiment/phases/04-results-writing.md +229 -0
  757. package/.claude/skills/scholar-experiment/phases/05-quality-check.md +261 -0
  758. package/.claude/skills/scholar-ideation/SKILL.md +288 -0
  759. package/.claude/skills/scholar-ideation/phases/01-literature-search.md +317 -0
  760. package/.claude/skills/scholar-ideation/phases/02-gap-analysis.md +249 -0
  761. package/.claude/skills/scholar-ideation/phases/03-research-question.md +200 -0
  762. package/.claude/skills/scholar-ideation/phases/04-method-selection.md +185 -0
  763. package/.claude/skills/scholar-ideation/phases/05-research-planning.md +385 -0
  764. package/.claude/skills/scholar-latex-organizer/SKILL.md +186 -0
  765. package/.claude/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -0
  766. package/.claude/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -0
  767. package/.claude/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -0
  768. package/.claude/skills/scholar-publish/SKILL.md +220 -0
  769. package/.claude/skills/scholar-publish/phases/01-presentation.md +243 -0
  770. package/.claude/skills/scholar-publish/phases/02-poster.md +239 -0
  771. package/.claude/skills/scholar-publish/phases/03-promotion.md +255 -0
  772. package/.claude/skills/scholar-rebuttal-pro/README.md +313 -0
  773. package/.claude/skills/scholar-rebuttal-pro/SKILL.md +511 -0
  774. package/.claude/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -0
  775. package/.claude/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -0
  776. package/.claude/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -0
  777. package/.claude/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -0
  778. package/.claude/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -0
  779. package/.claude/skills/scholar-review/SKILL.md +227 -0
  780. package/.claude/skills/scholar-review/phases/01-self-review.md +186 -0
  781. package/.claude/skills/scholar-review/phases/02-review-analysis.md +203 -0
  782. package/.claude/skills/scholar-review/phases/03-response-strategy.md +193 -0
  783. package/.claude/skills/scholar-review/phases/04-rebuttal-writing.md +181 -0
  784. package/.claude/skills/scholar-review/phases/05-revision.md +183 -0
  785. package/.claude/skills/scholar-review/specs/tone-guidelines.md +76 -0
  786. package/.claude/skills/scholar-thesis-docx/LICENSE +21 -0
  787. package/.claude/skills/scholar-thesis-docx/README.md +111 -0
  788. package/.claude/skills/scholar-thesis-docx/README_EN.md +108 -0
  789. package/.claude/skills/scholar-thesis-docx/SKILL.md +212 -0
  790. package/.claude/skills/scholar-thesis-docx/agents/openai.yaml +4 -0
  791. package/.claude/skills/scholar-thesis-docx/examples/architecture.sample.mmd +5 -0
  792. package/.claude/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -0
  793. package/.claude/skills/scholar-thesis-docx/examples/word-style-config.sample.json +35 -0
  794. package/.claude/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
  795. package/.claude/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
  796. package/.claude/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
  797. package/.claude/skills/scholar-thesis-docx/references/script-usage.md +157 -0
  798. package/.claude/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
  799. package/.claude/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
  800. package/.claude/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
  801. package/.claude/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
  802. package/.claude/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
  803. package/.claude/skills/scholar-writing/SKILL.md +296 -0
  804. package/.claude/skills/scholar-writing/phases/01-repo-understanding.md +178 -0
  805. package/.claude/skills/scholar-writing/phases/02-structure-planning.md +197 -0
  806. package/.claude/skills/scholar-writing/phases/03-section-drafting.md +215 -0
  807. package/.claude/skills/scholar-writing/phases/04-citation-management.md +310 -0
  808. package/.claude/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -0
  809. package/.claude/skills/scholar-writing/phases/06-conference-formatting.md +260 -0
  810. package/.claude/skills/skill-generator/SKILL.md +472 -0
  811. package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +238 -0
  812. package/.claude/skills/skill-generator/phases/02-structure-generation.md +261 -0
  813. package/.claude/skills/skill-generator/phases/03-phase-generation.md +976 -0
  814. package/.claude/skills/skill-generator/phases/04-specs-templates.md +398 -0
  815. package/.claude/skills/skill-generator/phases/05-validation.md +417 -0
  816. package/.claude/skills/skill-generator/specs/cli-integration.md +442 -0
  817. package/.claude/skills/skill-generator/specs/execution-modes.md +399 -0
  818. package/.claude/skills/skill-generator/specs/reference-docs-spec.md +271 -0
  819. package/.claude/skills/skill-generator/specs/scripting-integration.md +265 -0
  820. package/.claude/skills/skill-generator/specs/skill-requirements.md +466 -0
  821. package/.claude/skills/skill-generator/templates/autonomous-action.md +330 -0
  822. package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +300 -0
  823. package/.claude/skills/skill-generator/templates/code-analysis-action.md +514 -0
  824. package/.claude/skills/skill-generator/templates/llm-action.md +367 -0
  825. package/.claude/skills/skill-generator/templates/script-template.md +368 -0
  826. package/.claude/skills/skill-generator/templates/sequential-phase.md +474 -0
  827. package/.claude/skills/skill-generator/templates/skill-md.md +312 -0
  828. package/.claude/skills/skill-iter-tune/SKILL.md +15 -15
  829. package/.claude/skills/skill-iter-tune/phases/02-execute.md +5 -5
  830. package/.claude/skills/skill-iter-tune/phases/03-evaluate.md +4 -4
  831. package/.claude/skills/skill-iter-tune/templates/eval-prompt.md +1 -1
  832. package/.claude/skills/skill-iter-tune/templates/execute-prompt.md +1 -1
  833. package/.claude/skills/skill-simplify/SKILL.md +63 -0
  834. package/.claude/skills/skill-simplify/phases/01-analysis.md +224 -0
  835. package/.claude/skills/skill-simplify/phases/02-optimize.md +111 -0
  836. package/.claude/skills/skill-simplify/phases/03-check.md +224 -0
  837. package/.claude/skills/skill-tuning/SKILL.md +174 -0
  838. package/.claude/skills/skill-tuning/phases/actions/action-abort.md +164 -0
  839. package/.claude/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -0
  840. package/.claude/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -0
  841. package/.claude/skills/skill-tuning/phases/actions/action-complete.md +195 -0
  842. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -0
  843. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -0
  844. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -0
  845. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -0
  846. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -0
  847. package/.claude/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -0
  848. package/.claude/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -0
  849. package/.claude/skills/skill-tuning/phases/actions/action-generate-report.md +228 -0
  850. package/.claude/skills/skill-tuning/phases/actions/action-init.md +149 -0
  851. package/.claude/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -0
  852. package/.claude/skills/skill-tuning/phases/actions/action-verify.md +222 -0
  853. package/.claude/skills/skill-tuning/phases/orchestrator.md +190 -0
  854. package/.claude/skills/skill-tuning/phases/state-schema.md +378 -0
  855. package/.claude/skills/skill-tuning/specs/category-mappings.json +284 -0
  856. package/.claude/skills/skill-tuning/specs/dimension-mapping.md +212 -0
  857. package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +210 -0
  858. package/.claude/skills/skill-tuning/specs/quality-gates.md +263 -0
  859. package/.claude/skills/skill-tuning/specs/skill-authoring-principles.md +192 -0
  860. package/.claude/skills/skill-tuning/specs/tuning-strategies.md +392 -0
  861. package/.claude/skills/skill-tuning/templates/diagnosis-report.md +153 -0
  862. package/.claude/skills/skill-tuning/templates/fix-proposal.md +204 -0
  863. package/.claude/skills/team-arch-opt/SKILL.md +158 -0
  864. package/.claude/skills/team-arch-opt/roles/analyzer/role.md +86 -0
  865. package/.claude/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -0
  866. package/.claude/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -0
  867. package/.claude/skills/team-arch-opt/roles/coordinator/commands/monitor.md +216 -0
  868. package/.claude/skills/team-arch-opt/roles/coordinator/role.md +146 -0
  869. package/.claude/skills/team-arch-opt/roles/designer/role.md +115 -0
  870. package/.claude/skills/team-arch-opt/roles/refactorer/role.md +104 -0
  871. package/.claude/skills/team-arch-opt/roles/reviewer/role.md +111 -0
  872. package/.claude/skills/team-arch-opt/roles/validator/role.md +115 -0
  873. package/.claude/skills/team-arch-opt/specs/pipelines.md +102 -0
  874. package/.claude/skills/team-arch-opt/specs/team-config.json +263 -0
  875. package/.claude/skills/team-brainstorm/SKILL.md +171 -0
  876. package/.claude/skills/team-brainstorm/roles/challenger/role.md +61 -0
  877. package/.claude/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -0
  878. package/.claude/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -0
  879. package/.claude/skills/team-brainstorm/roles/coordinator/commands/monitor.md +199 -0
  880. package/.claude/skills/team-brainstorm/roles/coordinator/role.md +140 -0
  881. package/.claude/skills/team-brainstorm/roles/evaluator/role.md +56 -0
  882. package/.claude/skills/team-brainstorm/roles/ideator/role.md +69 -0
  883. package/.claude/skills/team-brainstorm/roles/synthesizer/role.md +57 -0
  884. package/.claude/skills/team-brainstorm/specs/pipelines.md +72 -0
  885. package/.claude/skills/team-brainstorm/specs/team-config.json +86 -0
  886. package/.claude/skills/team-coordinate/SKILL.md +266 -266
  887. package/.claude/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
  888. package/.claude/skills/team-coordinate/roles/coordinator/role.md +1 -1
  889. package/.claude/skills/team-designer/SKILL.md +160 -0
  890. package/.claude/skills/team-designer/phases/01-requirements-analysis.md +265 -0
  891. package/.claude/skills/team-designer/phases/02-scaffold-generation.md +236 -0
  892. package/.claude/skills/team-designer/phases/03-content-generation.md +330 -0
  893. package/.claude/skills/team-designer/phases/04-validation.md +329 -0
  894. package/.claude/skills/team-executor/SKILL.md +1 -1
  895. package/.claude/skills/team-frontend/SKILL.md +136 -0
  896. package/.claude/skills/team-frontend/roles/analyst/role.md +100 -0
  897. package/.claude/skills/team-frontend/roles/architect/role.md +86 -0
  898. package/.claude/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -0
  899. package/.claude/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -0
  900. package/.claude/skills/team-frontend/roles/coordinator/commands/monitor.md +233 -0
  901. package/.claude/skills/team-frontend/roles/coordinator/role.md +158 -0
  902. package/.claude/skills/team-frontend/roles/developer/role.md +93 -0
  903. package/.claude/skills/team-frontend/roles/qa/role.md +79 -0
  904. package/.claude/skills/team-frontend/specs/pipelines.md +76 -0
  905. package/.claude/skills/team-frontend/specs/team-config.json +84 -0
  906. package/.claude/skills/team-frontend-debug/SKILL.md +198 -0
  907. package/.claude/skills/team-frontend-debug/roles/analyzer/role.md +208 -0
  908. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -0
  909. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -0
  910. package/.claude/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -0
  911. package/.claude/skills/team-frontend-debug/roles/coordinator/role.md +131 -0
  912. package/.claude/skills/team-frontend-debug/roles/fixer/role.md +147 -0
  913. package/.claude/skills/team-frontend-debug/roles/reproducer/role.md +155 -0
  914. package/.claude/skills/team-frontend-debug/roles/tester/role.md +231 -0
  915. package/.claude/skills/team-frontend-debug/roles/verifier/role.md +172 -0
  916. package/.claude/skills/team-frontend-debug/specs/debug-tools.md +215 -0
  917. package/.claude/skills/team-frontend-debug/specs/pipelines.md +94 -0
  918. package/.claude/skills/team-interactive-craft/SKILL.md +141 -0
  919. package/.claude/skills/team-interactive-craft/roles/a11y-tester/role.md +159 -0
  920. package/.claude/skills/team-interactive-craft/roles/builder/role.md +216 -0
  921. package/.claude/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -0
  922. package/.claude/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -0
  923. package/.claude/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +215 -0
  924. package/.claude/skills/team-interactive-craft/roles/coordinator/role.md +166 -0
  925. package/.claude/skills/team-interactive-craft/roles/interaction-designer/role.md +144 -0
  926. package/.claude/skills/team-interactive-craft/roles/researcher/role.md +131 -0
  927. package/.claude/skills/team-interactive-craft/specs/interaction-patterns.md +362 -0
  928. package/.claude/skills/team-interactive-craft/specs/pipelines.md +85 -0
  929. package/.claude/skills/team-interactive-craft/specs/team-config.json +105 -0
  930. package/.claude/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -0
  931. package/.claude/skills/team-issue/SKILL.md +171 -0
  932. package/.claude/skills/team-issue/roles/coordinator/commands/analyze.md +64 -0
  933. package/.claude/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -0
  934. package/.claude/skills/team-issue/roles/coordinator/commands/monitor.md +229 -0
  935. package/.claude/skills/team-issue/roles/coordinator/role.md +175 -0
  936. package/.claude/skills/team-issue/roles/explorer/role.md +102 -0
  937. package/.claude/skills/team-issue/roles/implementer/role.md +87 -0
  938. package/.claude/skills/team-issue/roles/integrator/role.md +84 -0
  939. package/.claude/skills/team-issue/roles/planner/role.md +81 -0
  940. package/.claude/skills/team-issue/roles/reviewer/role.md +86 -0
  941. package/.claude/skills/team-issue/specs/pipelines.md +124 -0
  942. package/.claude/skills/team-issue/specs/team-config.json +70 -0
  943. package/.claude/skills/team-lifecycle-v4/SKILL.md +209 -209
  944. package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
  945. package/.claude/skills/team-lifecycle-v4/roles/coordinator/role.md +1 -1
  946. package/.claude/skills/team-motion-design/SKILL.md +142 -0
  947. package/.claude/skills/team-motion-design/roles/animator/role.md +194 -0
  948. package/.claude/skills/team-motion-design/roles/choreographer/role.md +164 -0
  949. package/.claude/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -0
  950. package/.claude/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -0
  951. package/.claude/skills/team-motion-design/roles/coordinator/commands/monitor.md +216 -0
  952. package/.claude/skills/team-motion-design/roles/coordinator/role.md +167 -0
  953. package/.claude/skills/team-motion-design/roles/motion-researcher/role.md +115 -0
  954. package/.claude/skills/team-motion-design/roles/motion-tester/role.md +175 -0
  955. package/.claude/skills/team-motion-design/specs/gpu-constraints.md +114 -0
  956. package/.claude/skills/team-motion-design/specs/motion-tokens.md +128 -0
  957. package/.claude/skills/team-motion-design/specs/pipelines.md +74 -0
  958. package/.claude/skills/team-motion-design/specs/reduced-motion.md +129 -0
  959. package/.claude/skills/team-motion-design/specs/team-config.json +99 -0
  960. package/.claude/skills/team-perf-opt/SKILL.md +175 -0
  961. package/.claude/skills/team-perf-opt/roles/benchmarker/role.md +89 -0
  962. package/.claude/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -0
  963. package/.claude/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -0
  964. package/.claude/skills/team-perf-opt/roles/coordinator/commands/monitor.md +362 -0
  965. package/.claude/skills/team-perf-opt/roles/coordinator/role.md +147 -0
  966. package/.claude/skills/team-perf-opt/roles/optimizer/role.md +99 -0
  967. package/.claude/skills/team-perf-opt/roles/profiler/role.md +81 -0
  968. package/.claude/skills/team-perf-opt/roles/reviewer/role.md +75 -0
  969. package/.claude/skills/team-perf-opt/roles/strategist/role.md +94 -0
  970. package/.claude/skills/team-perf-opt/specs/pipelines.md +65 -0
  971. package/.claude/skills/team-perf-opt/specs/team-config.json +246 -0
  972. package/.claude/skills/team-planex/SKILL.md +137 -0
  973. package/.claude/skills/team-planex/roles/coordinator/commands/analyze.md +52 -0
  974. package/.claude/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -0
  975. package/.claude/skills/team-planex/roles/coordinator/commands/monitor.md +195 -0
  976. package/.claude/skills/team-planex/roles/coordinator/role.md +140 -0
  977. package/.claude/skills/team-planex/roles/executor/role.md +91 -0
  978. package/.claude/skills/team-planex/roles/planner/role.md +119 -0
  979. package/.claude/skills/team-planex/specs/pipelines.md +93 -0
  980. package/.claude/skills/team-quality-assurance/SKILL.md +147 -147
  981. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +1 -1
  982. package/.claude/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +2 -2
  983. package/.claude/skills/team-quality-assurance/roles/coordinator/role.md +1 -1
  984. package/.claude/skills/team-quality-assurance/roles/scout/role.md +75 -75
  985. package/.claude/skills/team-review/SKILL.md +147 -147
  986. package/.claude/skills/team-review/roles/coordinator/commands/dispatch.md +1 -1
  987. package/.claude/skills/team-review/roles/coordinator/commands/monitor.md +2 -2
  988. package/.claude/skills/team-review/roles/coordinator/role.md +1 -1
  989. package/.claude/skills/team-roadmap-dev/SKILL.md +169 -0
  990. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -0
  991. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -0
  992. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +477 -0
  993. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -0
  994. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -0
  995. package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -0
  996. package/.claude/skills/team-roadmap-dev/roles/coordinator/role.md +302 -0
  997. package/.claude/skills/team-roadmap-dev/roles/executor/role.md +72 -0
  998. package/.claude/skills/team-roadmap-dev/roles/planner/role.md +86 -0
  999. package/.claude/skills/team-roadmap-dev/roles/verifier/role.md +74 -0
  1000. package/.claude/skills/team-roadmap-dev/specs/pipelines.md +93 -0
  1001. package/.claude/skills/team-roadmap-dev/specs/team-config.json +95 -0
  1002. package/.claude/skills/team-swarm/SKILL.md +178 -178
  1003. package/.claude/skills/team-tech-debt/SKILL.md +128 -128
  1004. package/.claude/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +1 -1
  1005. package/.claude/skills/team-tech-debt/roles/coordinator/commands/monitor.md +2 -2
  1006. package/.claude/skills/team-tech-debt/roles/scanner/role.md +90 -90
  1007. package/.claude/skills/team-testing/SKILL.md +143 -143
  1008. package/.claude/skills/team-testing/roles/coordinator/commands/dispatch.md +1 -1
  1009. package/.claude/skills/team-testing/roles/coordinator/commands/monitor.md +2 -2
  1010. package/.claude/skills/team-testing/roles/coordinator/role.md +1 -1
  1011. package/.claude/skills/team-ui-polish/SKILL.md +141 -0
  1012. package/.claude/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -0
  1013. package/.claude/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -0
  1014. package/.claude/skills/team-ui-polish/roles/coordinator/commands/monitor.md +212 -0
  1015. package/.claude/skills/team-ui-polish/roles/coordinator/role.md +170 -0
  1016. package/.claude/skills/team-ui-polish/roles/diagnostician/role.md +160 -0
  1017. package/.claude/skills/team-ui-polish/roles/optimizer/role.md +225 -0
  1018. package/.claude/skills/team-ui-polish/roles/scanner/role.md +356 -0
  1019. package/.claude/skills/team-ui-polish/roles/verifier/role.md +142 -0
  1020. package/.claude/skills/team-ui-polish/specs/anti-patterns.md +141 -0
  1021. package/.claude/skills/team-ui-polish/specs/design-standards.md +356 -0
  1022. package/.claude/skills/team-ui-polish/specs/fix-strategies.md +235 -0
  1023. package/.claude/skills/team-ui-polish/specs/pipelines.md +81 -0
  1024. package/.claude/skills/team-ui-polish/specs/scoring-guide.md +162 -0
  1025. package/.claude/skills/team-ui-polish/specs/team-config.json +73 -0
  1026. package/.claude/skills/team-uidesign/SKILL.md +144 -0
  1027. package/.claude/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -0
  1028. package/.claude/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -0
  1029. package/.claude/skills/team-uidesign/roles/coordinator/commands/monitor.md +216 -0
  1030. package/.claude/skills/team-uidesign/roles/coordinator/role.md +168 -0
  1031. package/.claude/skills/team-uidesign/roles/designer/role.md +93 -0
  1032. package/.claude/skills/team-uidesign/roles/implementer/role.md +94 -0
  1033. package/.claude/skills/team-uidesign/roles/researcher/role.md +101 -0
  1034. package/.claude/skills/team-uidesign/roles/reviewer/role.md +69 -0
  1035. package/.claude/skills/team-uidesign/specs/anti-patterns.md +211 -0
  1036. package/.claude/skills/team-uidesign/specs/design-standards.md +329 -0
  1037. package/.claude/skills/team-uidesign/specs/pipelines.md +76 -0
  1038. package/.claude/skills/team-uidesign/specs/scoring-guide.md +114 -0
  1039. package/.claude/skills/team-uidesign/specs/team-config.json +107 -0
  1040. package/.claude/skills/team-uidesign/specs/ux-writing.md +86 -0
  1041. package/.claude/skills/team-ultra-analyze/SKILL.md +173 -0
  1042. package/.claude/skills/team-ultra-analyze/roles/analyst/role.md +98 -0
  1043. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -0
  1044. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -0
  1045. package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +372 -0
  1046. package/.claude/skills/team-ultra-analyze/roles/coordinator/role.md +247 -0
  1047. package/.claude/skills/team-ultra-analyze/roles/discussant/role.md +107 -0
  1048. package/.claude/skills/team-ultra-analyze/roles/explorer/role.md +75 -0
  1049. package/.claude/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -0
  1050. package/.claude/skills/team-ultra-analyze/specs/pipelines.md +64 -0
  1051. package/.claude/skills/team-ultra-analyze/specs/team-config.json +129 -0
  1052. package/.claude/skills/team-ux-improve/SKILL.md +151 -0
  1053. package/.claude/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -0
  1054. package/.claude/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -0
  1055. package/.claude/skills/team-ux-improve/roles/coordinator/commands/monitor.md +186 -0
  1056. package/.claude/skills/team-ux-improve/roles/coordinator/role.md +142 -0
  1057. package/.claude/skills/team-ux-improve/roles/designer/role.md +152 -0
  1058. package/.claude/skills/team-ux-improve/roles/diagnoser/role.md +108 -0
  1059. package/.claude/skills/team-ux-improve/roles/explorer/role.md +77 -0
  1060. package/.claude/skills/team-ux-improve/roles/implementer/role.md +102 -0
  1061. package/.claude/skills/team-ux-improve/roles/scanner/role.md +135 -0
  1062. package/.claude/skills/team-ux-improve/roles/tester/role.md +84 -0
  1063. package/.claude/skills/team-ux-improve/specs/anti-patterns.md +103 -0
  1064. package/.claude/skills/team-ux-improve/specs/design-standards.md +54 -0
  1065. package/.claude/skills/team-ux-improve/specs/heuristics.md +88 -0
  1066. package/.claude/skills/team-ux-improve/specs/pipelines.md +54 -0
  1067. package/.claude/skills/team-ux-improve/specs/team-config.json +181 -0
  1068. package/.claude/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -0
  1069. package/.claude/skills/team-ux-improve/wisdom/contributions/.gitkeep +0 -0
  1070. package/.claude/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -0
  1071. package/.claude/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -0
  1072. package/.claude/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -0
  1073. package/.claude/skills/team-visual-a11y/SKILL.md +156 -0
  1074. package/.claude/skills/team-visual-a11y/roles/color-auditor/role.md +178 -0
  1075. package/.claude/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -0
  1076. package/.claude/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -0
  1077. package/.claude/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +236 -0
  1078. package/.claude/skills/team-visual-a11y/roles/coordinator/role.md +169 -0
  1079. package/.claude/skills/team-visual-a11y/roles/fix-implementer/role.md +246 -0
  1080. package/.claude/skills/team-visual-a11y/roles/focus-auditor/role.md +222 -0
  1081. package/.claude/skills/team-visual-a11y/roles/remediation-planner/role.md +206 -0
  1082. package/.claude/skills/team-visual-a11y/roles/typo-auditor/role.md +185 -0
  1083. package/.claude/skills/team-visual-a11y/specs/focus-patterns.md +325 -0
  1084. package/.claude/skills/team-visual-a11y/specs/oklch-standards.md +130 -0
  1085. package/.claude/skills/team-visual-a11y/specs/pipelines.md +98 -0
  1086. package/.claude/skills/team-visual-a11y/specs/team-config.json +109 -0
  1087. package/.claude/skills/team-visual-a11y/specs/typography-scale.md +165 -0
  1088. package/.claude/skills/team-visual-a11y/specs/wcag-matrix.md +133 -0
  1089. package/.codex/skills/odyssey-debug/SKILL.md +32 -12
  1090. package/.codex/skills/odyssey-improve/SKILL.md +34 -13
  1091. package/.codex/skills/odyssey-planex/SKILL.md +25 -12
  1092. package/.codex/skills/odyssey-review-test-fix/SKILL.md +39 -14
  1093. package/.codex/skills/odyssey-ui/SKILL.md +30 -10
  1094. package/bin/maestro.js +46 -1
  1095. package/dashboard/dist-server/dashboard/src/server/routes/install-utils.d.ts +3 -8
  1096. package/dashboard/dist-server/dashboard/src/server/routes/install-utils.js +3 -60
  1097. package/dashboard/dist-server/dashboard/src/server/routes/install-utils.js.map +1 -1
  1098. package/dashboard/dist-server/src/commands/hooks.d.ts +227 -0
  1099. package/dashboard/dist-server/src/commands/hooks.js +1380 -0
  1100. package/dashboard/dist-server/src/commands/hooks.js.map +1 -0
  1101. package/dashboard/dist-server/src/commands/install-backend.d.ts +112 -0
  1102. package/dashboard/dist-server/src/commands/install-backend.js +713 -0
  1103. package/dashboard/dist-server/src/commands/install-backend.js.map +1 -0
  1104. package/dashboard/dist-server/src/config/index.d.ts +16 -0
  1105. package/dashboard/dist-server/src/config/index.js +165 -0
  1106. package/dashboard/dist-server/src/config/index.js.map +1 -0
  1107. package/dashboard/dist-server/src/core/component-defs.d.ts +46 -0
  1108. package/dashboard/dist-server/src/core/component-defs.js +407 -0
  1109. package/dashboard/dist-server/src/core/component-defs.js.map +1 -0
  1110. package/dashboard/dist-server/src/core/manifest.d.ts +85 -0
  1111. package/dashboard/dist-server/src/core/manifest.js +232 -0
  1112. package/dashboard/dist-server/src/core/manifest.js.map +1 -0
  1113. package/dashboard/dist-server/src/core/overlay/applier.d.ts +107 -0
  1114. package/dashboard/dist-server/src/core/overlay/applier.js +443 -0
  1115. package/dashboard/dist-server/src/core/overlay/applier.js.map +1 -0
  1116. package/dashboard/dist-server/src/core/overlay/loader.d.ts +25 -0
  1117. package/dashboard/dist-server/src/core/overlay/loader.js +210 -0
  1118. package/dashboard/dist-server/src/core/overlay/loader.js.map +1 -0
  1119. package/dashboard/dist-server/src/core/overlay/patcher.d.ts +25 -0
  1120. package/dashboard/dist-server/src/core/overlay/patcher.js +212 -0
  1121. package/dashboard/dist-server/src/core/overlay/patcher.js.map +1 -0
  1122. package/dashboard/dist-server/src/core/overlay/section-parser.d.ts +24 -0
  1123. package/dashboard/dist-server/src/core/overlay/section-parser.js +99 -0
  1124. package/dashboard/dist-server/src/core/overlay/section-parser.js.map +1 -0
  1125. package/dashboard/dist-server/src/core/overlay/types.d.ts +56 -0
  1126. package/dashboard/dist-server/src/core/overlay/types.js +17 -0
  1127. package/dashboard/dist-server/src/core/overlay/types.js.map +1 -0
  1128. package/dashboard/dist-server/src/core/tag-injector.d.ts +71 -0
  1129. package/dashboard/dist-server/src/core/tag-injector.js +228 -0
  1130. package/dashboard/dist-server/src/core/tag-injector.js.map +1 -0
  1131. package/dashboard/dist-server/src/core/toggle.d.ts +12 -0
  1132. package/dashboard/dist-server/src/core/toggle.js +159 -0
  1133. package/dashboard/dist-server/src/core/toggle.js.map +1 -0
  1134. package/dashboard/dist-server/src/graph/kg/credibility.d.ts +36 -0
  1135. package/dashboard/dist-server/src/graph/kg/credibility.js +141 -0
  1136. package/dashboard/dist-server/src/graph/kg/credibility.js.map +1 -0
  1137. package/dashboard/dist-server/src/graph/kg/db/connection.d.ts +27 -0
  1138. package/dashboard/dist-server/src/graph/kg/db/connection.js +142 -0
  1139. package/dashboard/dist-server/src/graph/kg/db/connection.js.map +1 -0
  1140. package/dashboard/dist-server/src/graph/kg/db/index.d.ts +4 -0
  1141. package/dashboard/dist-server/src/graph/kg/db/index.js +6 -0
  1142. package/dashboard/dist-server/src/graph/kg/db/index.js.map +1 -0
  1143. package/dashboard/dist-server/src/graph/kg/db/migrations.d.ts +7 -0
  1144. package/dashboard/dist-server/src/graph/kg/db/migrations.js +88 -0
  1145. package/dashboard/dist-server/src/graph/kg/db/migrations.js.map +1 -0
  1146. package/dashboard/dist-server/src/graph/kg/db/queries.d.ts +83 -0
  1147. package/dashboard/dist-server/src/graph/kg/db/queries.js +471 -0
  1148. package/dashboard/dist-server/src/graph/kg/db/queries.js.map +1 -0
  1149. package/dashboard/dist-server/src/graph/kg/db/types.d.ts +122 -0
  1150. package/dashboard/dist-server/src/graph/kg/db/types.js +75 -0
  1151. package/dashboard/dist-server/src/graph/kg/db/types.js.map +1 -0
  1152. package/dashboard/dist-server/src/graph/kg/engine.d.ts +86 -0
  1153. package/dashboard/dist-server/src/graph/kg/engine.js +247 -0
  1154. package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -0
  1155. package/dashboard/dist-server/src/graph/kg/extraction/code/code-extractor.d.ts +49 -0
  1156. package/dashboard/dist-server/src/graph/kg/extraction/code/code-extractor.js +390 -0
  1157. package/dashboard/dist-server/src/graph/kg/extraction/code/code-extractor.js.map +1 -0
  1158. package/dashboard/dist-server/src/graph/kg/extraction/code/dfm-extractor.d.ts +2 -0
  1159. package/dashboard/dist-server/src/graph/kg/extraction/code/dfm-extractor.js +122 -0
  1160. package/dashboard/dist-server/src/graph/kg/extraction/code/dfm-extractor.js.map +1 -0
  1161. package/dashboard/dist-server/src/graph/kg/extraction/code/generated-detection.d.ts +13 -0
  1162. package/dashboard/dist-server/src/graph/kg/extraction/code/generated-detection.js +65 -0
  1163. package/dashboard/dist-server/src/graph/kg/extraction/code/generated-detection.js.map +1 -0
  1164. package/dashboard/dist-server/src/graph/kg/extraction/code/languages/index.d.ts +8 -0
  1165. package/dashboard/dist-server/src/graph/kg/extraction/code/languages/index.js +2119 -0
  1166. package/dashboard/dist-server/src/graph/kg/extraction/code/languages/index.js.map +1 -0
  1167. package/dashboard/dist-server/src/graph/kg/extraction/code/languages/typescript.d.ts +4 -0
  1168. package/dashboard/dist-server/src/graph/kg/extraction/code/languages/typescript.js +191 -0
  1169. package/dashboard/dist-server/src/graph/kg/extraction/code/languages/typescript.js.map +1 -0
  1170. package/dashboard/dist-server/src/graph/kg/extraction/code/liquid-extractor.d.ts +2 -0
  1171. package/dashboard/dist-server/src/graph/kg/extraction/code/liquid-extractor.js +117 -0
  1172. package/dashboard/dist-server/src/graph/kg/extraction/code/liquid-extractor.js.map +1 -0
  1173. package/dashboard/dist-server/src/graph/kg/extraction/code/mybatis-extractor.d.ts +2 -0
  1174. package/dashboard/dist-server/src/graph/kg/extraction/code/mybatis-extractor.js +84 -0
  1175. package/dashboard/dist-server/src/graph/kg/extraction/code/mybatis-extractor.js.map +1 -0
  1176. package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-engine.d.ts +38 -0
  1177. package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-engine.js +634 -0
  1178. package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-engine.js.map +1 -0
  1179. package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-types.d.ts +94 -0
  1180. package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-types.js +5 -0
  1181. package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-types.js.map +1 -0
  1182. package/dashboard/dist-server/src/graph/kg/extraction/code/scan-scope.d.ts +14 -0
  1183. package/dashboard/dist-server/src/graph/kg/extraction/code/scan-scope.js +93 -0
  1184. package/dashboard/dist-server/src/graph/kg/extraction/code/scan-scope.js.map +1 -0
  1185. package/dashboard/dist-server/src/graph/kg/extraction/code/svelte-extractor.d.ts +2 -0
  1186. package/dashboard/dist-server/src/graph/kg/extraction/code/svelte-extractor.js +97 -0
  1187. package/dashboard/dist-server/src/graph/kg/extraction/code/svelte-extractor.js.map +1 -0
  1188. package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter-types.d.ts +60 -0
  1189. package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter-types.js +53 -0
  1190. package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter-types.js.map +1 -0
  1191. package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter.d.ts +54 -0
  1192. package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter.js +227 -0
  1193. package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter.js.map +1 -0
  1194. package/dashboard/dist-server/src/graph/kg/extraction/code/vue-extractor.d.ts +5 -0
  1195. package/dashboard/dist-server/src/graph/kg/extraction/code/vue-extractor.js +114 -0
  1196. package/dashboard/dist-server/src/graph/kg/extraction/code/vue-extractor.js.map +1 -0
  1197. package/dashboard/dist-server/src/graph/kg/extraction/code/wasm-stability.d.ts +43 -0
  1198. package/dashboard/dist-server/src/graph/kg/extraction/code/wasm-stability.js +140 -0
  1199. package/dashboard/dist-server/src/graph/kg/extraction/code/wasm-stability.js.map +1 -0
  1200. package/dashboard/dist-server/src/graph/kg/extraction/code/worker-parser.d.ts +18 -0
  1201. package/dashboard/dist-server/src/graph/kg/extraction/code/worker-parser.js +117 -0
  1202. package/dashboard/dist-server/src/graph/kg/extraction/code/worker-parser.js.map +1 -0
  1203. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/codebase-extractor.d.ts +2 -0
  1204. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/codebase-extractor.js +149 -0
  1205. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/codebase-extractor.js.map +1 -0
  1206. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.d.ts +3 -0
  1207. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js +114 -0
  1208. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -0
  1209. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/issue-extractor.d.ts +2 -0
  1210. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/issue-extractor.js +84 -0
  1211. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/issue-extractor.js.map +1 -0
  1212. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/spec-extractor.d.ts +2 -0
  1213. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/spec-extractor.js +173 -0
  1214. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/spec-extractor.js.map +1 -0
  1215. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/wiki-extractor.d.ts +2 -0
  1216. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/wiki-extractor.js +165 -0
  1217. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/wiki-extractor.js.map +1 -0
  1218. package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.d.ts +15 -0
  1219. package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.js +241 -0
  1220. package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.js.map +1 -0
  1221. package/dashboard/dist-server/src/graph/kg/query/context-builder.d.ts +37 -0
  1222. package/dashboard/dist-server/src/graph/kg/query/context-builder.js +184 -0
  1223. package/dashboard/dist-server/src/graph/kg/query/context-builder.js.map +1 -0
  1224. package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +18 -0
  1225. package/dashboard/dist-server/src/graph/kg/query/scoring.js +158 -0
  1226. package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -0
  1227. package/dashboard/dist-server/src/graph/kg/query/search.d.ts +58 -0
  1228. package/dashboard/dist-server/src/graph/kg/query/search.js +158 -0
  1229. package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -0
  1230. package/dashboard/dist-server/src/graph/kg/query/traversal.d.ts +74 -0
  1231. package/dashboard/dist-server/src/graph/kg/query/traversal.js +420 -0
  1232. package/dashboard/dist-server/src/graph/kg/query/traversal.js.map +1 -0
  1233. package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.d.ts +21 -0
  1234. package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.js +288 -0
  1235. package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.js.map +1 -0
  1236. package/dashboard/dist-server/src/graph/kg/resolution/name-matcher.d.ts +24 -0
  1237. package/dashboard/dist-server/src/graph/kg/resolution/name-matcher.js +162 -0
  1238. package/dashboard/dist-server/src/graph/kg/resolution/name-matcher.js.map +1 -0
  1239. package/dashboard/dist-server/src/graph/kg/surface/hook-injector.d.ts +32 -0
  1240. package/dashboard/dist-server/src/graph/kg/surface/hook-injector.js +172 -0
  1241. package/dashboard/dist-server/src/graph/kg/surface/hook-injector.js.map +1 -0
  1242. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.d.ts +19 -0
  1243. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +253 -0
  1244. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -0
  1245. package/dashboard/dist-server/src/hooks/constants.d.ts +2 -0
  1246. package/dashboard/dist-server/src/hooks/constants.js +12 -1
  1247. package/dashboard/dist-server/src/hooks/constants.js.map +1 -1
  1248. package/dashboard/dist-server/src/hooks/context-budget.d.ts +28 -0
  1249. package/dashboard/dist-server/src/hooks/context-budget.js +142 -0
  1250. package/dashboard/dist-server/src/hooks/context-budget.js.map +1 -0
  1251. package/dashboard/dist-server/src/hooks/context-format.d.ts +45 -0
  1252. package/dashboard/dist-server/src/hooks/context-format.js +58 -0
  1253. package/dashboard/dist-server/src/hooks/context-format.js.map +1 -0
  1254. package/dashboard/dist-server/src/hooks/coordinator-tracker.d.ts +100 -0
  1255. package/dashboard/dist-server/src/hooks/coordinator-tracker.js +360 -0
  1256. package/dashboard/dist-server/src/hooks/coordinator-tracker.js.map +1 -0
  1257. package/dashboard/dist-server/src/hooks/delegate-monitor.d.ts +24 -0
  1258. package/dashboard/dist-server/src/hooks/delegate-monitor.js +76 -0
  1259. package/dashboard/dist-server/src/hooks/delegate-monitor.js.map +1 -0
  1260. package/dashboard/dist-server/src/hooks/guards/preflight-guard.d.ts +28 -0
  1261. package/dashboard/dist-server/src/hooks/guards/preflight-guard.js +95 -0
  1262. package/dashboard/dist-server/src/hooks/guards/preflight-guard.js.map +1 -0
  1263. package/dashboard/dist-server/src/hooks/guards/prompt-guard.d.ts +17 -0
  1264. package/dashboard/dist-server/src/hooks/guards/prompt-guard.js +52 -0
  1265. package/dashboard/dist-server/src/hooks/guards/prompt-guard.js.map +1 -0
  1266. package/dashboard/dist-server/src/hooks/guards/spec-validator.d.ts +24 -0
  1267. package/dashboard/dist-server/src/hooks/guards/spec-validator.js +66 -0
  1268. package/dashboard/dist-server/src/hooks/guards/spec-validator.js.map +1 -0
  1269. package/dashboard/dist-server/src/hooks/guards/workflow-guard.d.ts +35 -0
  1270. package/dashboard/dist-server/src/hooks/guards/workflow-guard.js +107 -0
  1271. package/dashboard/dist-server/src/hooks/guards/workflow-guard.js.map +1 -0
  1272. package/dashboard/dist-server/src/hooks/keyword-spec-injector.d.ts +26 -0
  1273. package/dashboard/dist-server/src/hooks/keyword-spec-injector.js +353 -0
  1274. package/dashboard/dist-server/src/hooks/keyword-spec-injector.js.map +1 -0
  1275. package/dashboard/dist-server/src/hooks/kg-auto-init.d.ts +12 -0
  1276. package/dashboard/dist-server/src/hooks/kg-auto-init.js +38 -0
  1277. package/dashboard/dist-server/src/hooks/kg-auto-init.js.map +1 -0
  1278. package/dashboard/dist-server/src/hooks/kg-context-injector.d.ts +16 -0
  1279. package/dashboard/dist-server/src/hooks/kg-context-injector.js +134 -0
  1280. package/dashboard/dist-server/src/hooks/kg-context-injector.js.map +1 -0
  1281. package/dashboard/dist-server/src/hooks/kg-sync-hook.d.ts +13 -0
  1282. package/dashboard/dist-server/src/hooks/kg-sync-hook.js +70 -0
  1283. package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -0
  1284. package/dashboard/dist-server/src/hooks/preflight-core.d.ts +36 -0
  1285. package/dashboard/dist-server/src/hooks/preflight-core.js +86 -0
  1286. package/dashboard/dist-server/src/hooks/preflight-core.js.map +1 -0
  1287. package/dashboard/dist-server/src/hooks/session-context.d.ts +24 -0
  1288. package/dashboard/dist-server/src/hooks/session-context.js +147 -0
  1289. package/dashboard/dist-server/src/hooks/session-context.js.map +1 -0
  1290. package/dashboard/dist-server/src/hooks/skill-context.d.ts +51 -0
  1291. package/dashboard/dist-server/src/hooks/skill-context.js +520 -0
  1292. package/dashboard/dist-server/src/hooks/skill-context.js.map +1 -0
  1293. package/dashboard/dist-server/src/hooks/spec-analytics.d.ts +128 -0
  1294. package/dashboard/dist-server/src/hooks/spec-analytics.js +309 -0
  1295. package/dashboard/dist-server/src/hooks/spec-analytics.js.map +1 -0
  1296. package/dashboard/dist-server/src/hooks/spec-bridge.d.ts +39 -0
  1297. package/dashboard/dist-server/src/hooks/spec-bridge.js +97 -0
  1298. package/dashboard/dist-server/src/hooks/spec-bridge.js.map +1 -0
  1299. package/dashboard/dist-server/src/hooks/spec-injector.d.ts +28 -0
  1300. package/dashboard/dist-server/src/hooks/spec-injector.js +364 -0
  1301. package/dashboard/dist-server/src/hooks/spec-injector.js.map +1 -0
  1302. package/dashboard/dist-server/src/hooks/team-monitor.d.ts +33 -0
  1303. package/dashboard/dist-server/src/hooks/team-monitor.js +149 -0
  1304. package/dashboard/dist-server/src/hooks/team-monitor.js.map +1 -0
  1305. package/dashboard/dist-server/src/hooks/wiki-role-loader.d.ts +17 -0
  1306. package/dashboard/dist-server/src/hooks/wiki-role-loader.js +43 -0
  1307. package/dashboard/dist-server/src/hooks/wiki-role-loader.js.map +1 -0
  1308. package/dashboard/dist-server/src/hooks/workspace.d.ts +33 -0
  1309. package/dashboard/dist-server/src/hooks/workspace.js +69 -0
  1310. package/dashboard/dist-server/src/hooks/workspace.js.map +1 -0
  1311. package/dashboard/dist-server/src/tools/domain-loader.d.ts +62 -0
  1312. package/dashboard/dist-server/src/tools/domain-loader.js +295 -0
  1313. package/dashboard/dist-server/src/tools/domain-loader.js.map +1 -0
  1314. package/dashboard/dist-server/src/tools/domain-matcher.d.ts +23 -0
  1315. package/dashboard/dist-server/src/tools/domain-matcher.js +117 -0
  1316. package/dashboard/dist-server/src/tools/domain-matcher.js.map +1 -0
  1317. package/dashboard/dist-server/src/tools/domain-schema.d.ts +17 -0
  1318. package/dashboard/dist-server/src/tools/domain-schema.js +104 -0
  1319. package/dashboard/dist-server/src/tools/domain-schema.js.map +1 -0
  1320. package/dashboard/dist-server/src/tools/namespace-guard.d.ts +38 -0
  1321. package/dashboard/dist-server/src/tools/namespace-guard.js +138 -0
  1322. package/dashboard/dist-server/src/tools/namespace-guard.js.map +1 -0
  1323. package/dashboard/dist-server/src/tools/spec-entry-parser.d.ts +4 -2
  1324. package/dashboard/dist-server/src/tools/spec-entry-parser.js +9 -5
  1325. package/dashboard/dist-server/src/tools/spec-entry-parser.js.map +1 -1
  1326. package/dashboard/dist-server/src/tools/spec-keyword-index.d.ts +29 -0
  1327. package/dashboard/dist-server/src/tools/spec-keyword-index.js +118 -0
  1328. package/dashboard/dist-server/src/tools/spec-keyword-index.js.map +1 -0
  1329. package/dashboard/dist-server/src/tools/spec-loader.d.ts +26 -1
  1330. package/dashboard/dist-server/src/tools/spec-loader.js +113 -28
  1331. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
  1332. package/dashboard/dist-server/src/tools/spec-seeds.d.ts +32 -0
  1333. package/dashboard/dist-server/src/tools/spec-seeds.js +200 -0
  1334. package/dashboard/dist-server/src/tools/spec-seeds.js.map +1 -0
  1335. package/dashboard/dist-server/src/tools/team-activity.d.ts +75 -0
  1336. package/dashboard/dist-server/src/tools/team-activity.js +181 -0
  1337. package/dashboard/dist-server/src/tools/team-activity.js.map +1 -0
  1338. package/dashboard/dist-server/src/tools/team-members.d.ts +111 -0
  1339. package/dashboard/dist-server/src/tools/team-members.js +303 -0
  1340. package/dashboard/dist-server/src/tools/team-members.js.map +1 -0
  1341. package/dashboard/dist-server/src/utils/cooldown-guard.d.ts +16 -0
  1342. package/dashboard/dist-server/src/utils/cooldown-guard.js +59 -0
  1343. package/dashboard/dist-server/src/utils/cooldown-guard.js.map +1 -0
  1344. package/dashboard/dist-server/src/utils/jsonl-log.d.ts +62 -0
  1345. package/dashboard/dist-server/src/utils/jsonl-log.js +199 -0
  1346. package/dashboard/dist-server/src/utils/jsonl-log.js.map +1 -0
  1347. package/dashboard/dist-server/src/utils/path-validator.d.ts +51 -0
  1348. package/dashboard/dist-server/src/utils/path-validator.js +151 -0
  1349. package/dashboard/dist-server/src/utils/path-validator.js.map +1 -0
  1350. package/dist/src/commands/install-backend.d.ts +4 -2
  1351. package/dist/src/commands/install-backend.d.ts.map +1 -1
  1352. package/dist/src/commands/install-backend.js +24 -3
  1353. package/dist/src/commands/install-backend.js.map +1 -1
  1354. package/dist/src/commands/install.d.ts.map +1 -1
  1355. package/dist/src/commands/install.js +79 -0
  1356. package/dist/src/commands/install.js.map +1 -1
  1357. package/dist/src/core/component-defs.d.ts +12 -0
  1358. package/dist/src/core/component-defs.d.ts.map +1 -1
  1359. package/dist/src/core/component-defs.js +167 -4
  1360. package/dist/src/core/component-defs.js.map +1 -1
  1361. package/dist/src/core/install-executor.d.ts.map +1 -1
  1362. package/dist/src/core/install-executor.js +4 -1
  1363. package/dist/src/core/install-executor.js.map +1 -1
  1364. package/dist/src/core/manifest.d.ts +3 -0
  1365. package/dist/src/core/manifest.d.ts.map +1 -1
  1366. package/dist/src/core/manifest.js +2 -2
  1367. package/dist/src/core/manifest.js.map +1 -1
  1368. package/dist/src/core/toggle.d.ts +13 -0
  1369. package/dist/src/core/toggle.d.ts.map +1 -0
  1370. package/dist/src/core/toggle.js +159 -0
  1371. package/dist/src/core/toggle.js.map +1 -0
  1372. package/dist/src/graph/kg/extraction/code/code-extractor.d.ts +12 -4
  1373. package/dist/src/graph/kg/extraction/code/code-extractor.d.ts.map +1 -1
  1374. package/dist/src/graph/kg/extraction/code/code-extractor.js +200 -135
  1375. package/dist/src/graph/kg/extraction/code/code-extractor.js.map +1 -1
  1376. package/dist/src/graph/kg/extraction/code/parse-worker.d.ts +2 -0
  1377. package/dist/src/graph/kg/extraction/code/parse-worker.d.ts.map +1 -0
  1378. package/dist/src/graph/kg/extraction/code/parse-worker.js +50 -0
  1379. package/dist/src/graph/kg/extraction/code/parse-worker.js.map +1 -0
  1380. package/dist/src/graph/kg/extraction/code/plugin-engine.d.ts +5 -1
  1381. package/dist/src/graph/kg/extraction/code/plugin-engine.d.ts.map +1 -1
  1382. package/dist/src/graph/kg/extraction/code/plugin-engine.js +85 -24
  1383. package/dist/src/graph/kg/extraction/code/plugin-engine.js.map +1 -1
  1384. package/dist/src/graph/kg/extraction/code/scan-scope.d.ts +15 -0
  1385. package/dist/src/graph/kg/extraction/code/scan-scope.d.ts.map +1 -0
  1386. package/dist/src/graph/kg/extraction/code/scan-scope.js +93 -0
  1387. package/dist/src/graph/kg/extraction/code/scan-scope.js.map +1 -0
  1388. package/dist/src/graph/kg/extraction/code/svelte-extractor.d.ts.map +1 -1
  1389. package/dist/src/graph/kg/extraction/code/svelte-extractor.js +17 -12
  1390. package/dist/src/graph/kg/extraction/code/svelte-extractor.js.map +1 -1
  1391. package/dist/src/graph/kg/extraction/code/vue-extractor.d.ts.map +1 -1
  1392. package/dist/src/graph/kg/extraction/code/vue-extractor.js +15 -10
  1393. package/dist/src/graph/kg/extraction/code/vue-extractor.js.map +1 -1
  1394. package/dist/src/graph/kg/extraction/code/wasm-runtime-flags.d.ts +4 -0
  1395. package/dist/src/graph/kg/extraction/code/wasm-runtime-flags.d.ts.map +1 -0
  1396. package/dist/src/graph/kg/extraction/code/wasm-runtime-flags.js +13 -0
  1397. package/dist/src/graph/kg/extraction/code/wasm-runtime-flags.js.map +1 -0
  1398. package/dist/src/graph/kg/extraction/code/wasm-stability.js +2 -2
  1399. package/dist/src/graph/kg/extraction/code/wasm-stability.js.map +1 -1
  1400. package/dist/src/graph/kg/extraction/code/worker-parser.d.ts +19 -0
  1401. package/dist/src/graph/kg/extraction/code/worker-parser.d.ts.map +1 -0
  1402. package/dist/src/graph/kg/extraction/code/worker-parser.js +117 -0
  1403. package/dist/src/graph/kg/extraction/code/worker-parser.js.map +1 -0
  1404. package/dist/src/graph/kg/extraction/orchestrator.d.ts +10 -0
  1405. package/dist/src/graph/kg/extraction/orchestrator.d.ts.map +1 -1
  1406. package/dist/src/graph/kg/extraction/orchestrator.js +48 -27
  1407. package/dist/src/graph/kg/extraction/orchestrator.js.map +1 -1
  1408. package/dist/src/graph/kg/index.d.ts +3 -1
  1409. package/dist/src/graph/kg/index.d.ts.map +1 -1
  1410. package/dist/src/graph/kg/index.js +3 -1
  1411. package/dist/src/graph/kg/index.js.map +1 -1
  1412. package/dist/src/graph/kg/surface/cli.d.ts.map +1 -1
  1413. package/dist/src/graph/kg/surface/cli.js +48 -2
  1414. package/dist/src/graph/kg/surface/cli.js.map +1 -1
  1415. package/dist/src/index.d.ts +2 -0
  1416. package/dist/src/index.d.ts.map +1 -1
  1417. package/dist/src/index.js +1 -0
  1418. package/dist/src/index.js.map +1 -1
  1419. package/dist/src/tui/install-ui/ComponentGrid.d.ts +0 -4
  1420. package/dist/src/tui/install-ui/ComponentGrid.d.ts.map +1 -1
  1421. package/dist/src/tui/install-ui/ComponentGrid.js +87 -15
  1422. package/dist/src/tui/install-ui/ComponentGrid.js.map +1 -1
  1423. package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
  1424. package/dist/src/tui/install-ui/ExecutionView.js +8 -2
  1425. package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
  1426. package/dist/src/tui/install-ui/GroupedHub.js +1 -1
  1427. package/dist/src/tui/install-ui/GroupedHub.js.map +1 -1
  1428. package/dist/src/tui/install-ui/ToggleView.d.ts +9 -0
  1429. package/dist/src/tui/install-ui/ToggleView.d.ts.map +1 -0
  1430. package/dist/src/tui/install-ui/ToggleView.js +136 -0
  1431. package/dist/src/tui/install-ui/ToggleView.js.map +1 -0
  1432. package/dist/src/tui/install-ui/useInstallFlowState.d.ts.map +1 -1
  1433. package/dist/src/tui/install-ui/useInstallFlowState.js +3 -3
  1434. package/dist/src/tui/install-ui/useInstallFlowState.js.map +1 -1
  1435. package/dist/src/utils/update-notices.js +12 -0
  1436. package/dist/src/utils/update-notices.js.map +1 -1
  1437. package/dist/src/utils/wasm-relaunch.d.ts +5 -0
  1438. package/dist/src/utils/wasm-relaunch.d.ts.map +1 -0
  1439. package/dist/src/utils/wasm-relaunch.js +29 -0
  1440. package/dist/src/utils/wasm-relaunch.js.map +1 -0
  1441. package/package.json +2 -1
  1442. package/workflows/claude-instructions.md +0 -1
  1443. package/workflows/codex-instructions.md +1 -1
@@ -0,0 +1,17 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Overlay types — shared shapes for overlay loading, patching, and tracking.
3
+ // ---------------------------------------------------------------------------
4
+ /** XML-tagged sections recognised in command and skill files. */
5
+ export const KNOWN_SECTIONS = [
6
+ 'purpose',
7
+ 'required_reading',
8
+ 'deferred_reading',
9
+ 'context',
10
+ 'execution',
11
+ 'error_codes',
12
+ 'success_criteria',
13
+ ];
14
+ /** Reserved target name for overlays that inject into CLAUDE.md via tag-injector. */
15
+ export const CLAUDE_MD_TARGET = '_claude-md';
16
+ export const OVERLAY_MANIFEST_VERSION = '1.0';
17
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/core/overlay/types.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAO9E,iEAAiE;AACjE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,kBAAkB;IAClB,kBAAkB;IAClB,SAAS;IACT,WAAW;IACX,aAAa;IACb,kBAAkB;CACV,CAAC;AAEX,qFAAqF;AACrF,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAyD7C,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAc,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { type Manifest } from './manifest.js';
2
+ /** Default section name when none specified (backward compat). */
3
+ export declare const DEFAULT_SECTION = "core";
4
+ export declare function markerStart(section: string): string;
5
+ export declare function markerEnd(section: string): string;
6
+ /**
7
+ * Detect whether the text contains markers for a specific section.
8
+ */
9
+ export declare function hasSection(text: string, section: string): boolean;
10
+ /**
11
+ * Detect whether the text contains any maestro markers at all.
12
+ */
13
+ export declare function hasAnyMarkers(text: string): boolean;
14
+ /**
15
+ * Compute bidirectional line-level similarity (Jaccard-like).
16
+ * Returns 0..1 where 1 = existing and source have identical line sets.
17
+ * Uses intersection / union to avoid false positives when one is a superset.
18
+ */
19
+ export declare function computeSimilarity(existing: string, source: string): number;
20
+ export type MigrateAction = 'created' | 'updated' | 'migrated' | 'injected';
21
+ export interface MigrateResult {
22
+ /** What action was taken */
23
+ action: MigrateAction;
24
+ /** Final file content */
25
+ content: string;
26
+ /** Warning message for user (legacy content needs manual cleanup) */
27
+ warning?: string;
28
+ }
29
+ /**
30
+ * Migrate legacy or update existing doc file content with section-based tag injection.
31
+ *
32
+ * Handles scenarios:
33
+ * 1. No existing file → create with markers (`created`)
34
+ * 2. Has this section → replace between markers (`updated`)
35
+ * 3. Legacy ≥99% similar (core section only, no markers at all) → replace entire content (`migrated`)
36
+ * 4. Legacy ≥80% similar (core section only) → inject + warn (`injected` + warning)
37
+ * 5. Otherwise → append markers normally (`injected`)
38
+ */
39
+ export declare function migrateAndInject(existingContent: string, sourceContent: string, targetPath: string, section?: string): MigrateResult;
40
+ /**
41
+ * Inject or update content for a specific section.
42
+ *
43
+ * - If section markers exist, replaces everything between them.
44
+ * - If no section markers, appends section block at the end.
45
+ * - If the file is empty/missing, creates with section block.
46
+ *
47
+ * Returns the updated text.
48
+ */
49
+ export declare function injectContent(existingContent: string, content: string, section?: string): string;
50
+ /**
51
+ * Remove a specific section's markers and content.
52
+ * Returns the cleaned text, or the original text if section not found.
53
+ */
54
+ export declare function removeContent(text: string, section?: string): string;
55
+ /**
56
+ * Remove ALL maestro sections from text.
57
+ * Also cleans up any orphaned markers (start without matching end).
58
+ */
59
+ export declare function removeAllSections(text: string): string;
60
+ export interface CopyStats {
61
+ files: number;
62
+ dirs: number;
63
+ skipped: number;
64
+ }
65
+ /**
66
+ * Inject source content into a target doc file using sectioned markers.
67
+ * Handles legacy migration with similarity detection.
68
+ *
69
+ * Returns migration result with optional warning.
70
+ */
71
+ export declare function injectDocFile(src: string, dest: string, stats: CopyStats, manifest: Manifest, section?: string): MigrateResult;
@@ -0,0 +1,228 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Tag Injector — injects/updates/removes content in doc files using
3
+ // HTML comment markers with section attributes for non-destructive,
4
+ // idempotent, multi-section installation.
5
+ //
6
+ // Marker format:
7
+ // <!-- maestro:start section="core" -->
8
+ // ...injected content...
9
+ // <!-- maestro:end section="core" -->
10
+ //
11
+ // <!-- maestro:start section="chinese" -->
12
+ // ...chinese response content...
13
+ // <!-- maestro:end section="chinese" -->
14
+ // ---------------------------------------------------------------------------
15
+ import { existsSync, mkdirSync, readFileSync, writeFileSync, } from 'node:fs';
16
+ import { dirname } from 'node:path';
17
+ import { addFile, addDir, } from './manifest.js';
18
+ /** Default section name when none specified (backward compat). */
19
+ export const DEFAULT_SECTION = 'core';
20
+ export function markerStart(section) {
21
+ return `<!-- maestro:start section="${section}" -->`;
22
+ }
23
+ export function markerEnd(section) {
24
+ return `<!-- maestro:end section="${section}" -->`;
25
+ }
26
+ function startRe(section) {
27
+ return new RegExp(`^<!-- maestro:start section="${escapeRe(section)}" -->$`, 'm');
28
+ }
29
+ function endRe(section) {
30
+ return new RegExp(`^<!-- maestro:end section="${escapeRe(section)}" -->$`, 'm');
31
+ }
32
+ /** Match any maestro section marker (for generic detection). */
33
+ const ANY_START_RE = /^<!-- maestro:start section="[^"]*" -->$/m;
34
+ function escapeRe(s) {
35
+ return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
36
+ }
37
+ /**
38
+ * Detect whether the text contains markers for a specific section.
39
+ */
40
+ export function hasSection(text, section) {
41
+ return startRe(section).test(text) && endRe(section).test(text);
42
+ }
43
+ /**
44
+ * Detect whether the text contains any maestro markers at all.
45
+ */
46
+ export function hasAnyMarkers(text) {
47
+ return ANY_START_RE.test(text);
48
+ }
49
+ // ---------------------------------------------------------------------------
50
+ // Legacy migration — similarity detection
51
+ // ---------------------------------------------------------------------------
52
+ /** Normalize text for comparison: trim lines, collapse blanks, lowercase. */
53
+ function normalizeForCompare(text) {
54
+ return text
55
+ .replace(/\r\n/g, '\n')
56
+ .split('\n')
57
+ .map(l => l.trim())
58
+ .filter(l => l.length > 0)
59
+ .map(l => l.toLowerCase());
60
+ }
61
+ /**
62
+ * Compute bidirectional line-level similarity (Jaccard-like).
63
+ * Returns 0..1 where 1 = existing and source have identical line sets.
64
+ * Uses intersection / union to avoid false positives when one is a superset.
65
+ */
66
+ export function computeSimilarity(existing, source) {
67
+ const existingLines = normalizeForCompare(existing);
68
+ const sourceLines = normalizeForCompare(source);
69
+ if (sourceLines.length === 0 && existingLines.length === 0)
70
+ return 1;
71
+ if (sourceLines.length === 0 || existingLines.length === 0)
72
+ return 0;
73
+ const existingSet = new Set(existingLines);
74
+ const sourceSet = new Set(sourceLines);
75
+ const intersection = sourceLines.filter(l => existingSet.has(l)).length;
76
+ const union = new Set([...existingLines, ...sourceLines]).size;
77
+ return intersection / union;
78
+ }
79
+ /**
80
+ * Migrate legacy or update existing doc file content with section-based tag injection.
81
+ *
82
+ * Handles scenarios:
83
+ * 1. No existing file → create with markers (`created`)
84
+ * 2. Has this section → replace between markers (`updated`)
85
+ * 3. Legacy ≥99% similar (core section only, no markers at all) → replace entire content (`migrated`)
86
+ * 4. Legacy ≥80% similar (core section only) → inject + warn (`injected` + warning)
87
+ * 5. Otherwise → append markers normally (`injected`)
88
+ */
89
+ export function migrateAndInject(existingContent, sourceContent, targetPath, section = DEFAULT_SECTION) {
90
+ const trimmedSource = sourceContent.replace(/\r\n/g, '\n').replace(/\n+$/, '');
91
+ const block = `${markerStart(section)}\n${trimmedSource}\n${markerEnd(section)}`;
92
+ // Case 1: no existing file
93
+ if (!existingContent || existingContent.trim() === '') {
94
+ return { action: 'created', content: block + '\n' };
95
+ }
96
+ const text = existingContent.replace(/\r\n/g, '\n');
97
+ // Case 2: already has this section — just update
98
+ if (hasSection(text, section)) {
99
+ return { action: 'updated', content: injectContent(text, sourceContent, section) };
100
+ }
101
+ // If file already has other maestro sections, just append this new section
102
+ if (hasAnyMarkers(text)) {
103
+ const normalized = text.replace(/\n+$/, '');
104
+ return { action: 'injected', content: normalized + '\n\n' + block + '\n' };
105
+ }
106
+ // Case 3-5: legacy file without any markers — check similarity (only for core section)
107
+ if (section === DEFAULT_SECTION) {
108
+ // Exact content match → safe to wrap entirely in markers
109
+ const normExisting = normalizeForCompare(text);
110
+ const normSource = normalizeForCompare(sourceContent);
111
+ const isExactMatch = normExisting.length === normSource.length &&
112
+ normExisting.every((line, i) => line === normSource[i]);
113
+ if (isExactMatch) {
114
+ return { action: 'migrated', content: block + '\n' };
115
+ }
116
+ // Check how much of the source is present in existing (one-directional)
117
+ const existingSet = new Set(normExisting);
118
+ const matched = normSource.filter(l => existingSet.has(l)).length;
119
+ const forwardSimilarity = normSource.length > 0 ? matched / normSource.length : 0;
120
+ if (forwardSimilarity >= 0.8) {
121
+ const normalized = text.replace(/\n+$/, '');
122
+ return {
123
+ action: 'injected',
124
+ content: normalized + '\n\n' + block + '\n',
125
+ warning: `${targetPath}: legacy maestro content detected (${Math.round(forwardSimilarity * 100)}% match). ` +
126
+ `New content injected with markers. Please manually remove the old untagged content above the ${markerStart(section)} marker.`,
127
+ };
128
+ }
129
+ }
130
+ // Case 5: just append
131
+ const normalized = text.replace(/\n+$/, '');
132
+ return { action: 'injected', content: normalized + '\n\n' + block + '\n' };
133
+ }
134
+ /**
135
+ * Inject or update content for a specific section.
136
+ *
137
+ * - If section markers exist, replaces everything between them.
138
+ * - If no section markers, appends section block at the end.
139
+ * - If the file is empty/missing, creates with section block.
140
+ *
141
+ * Returns the updated text.
142
+ */
143
+ export function injectContent(existingContent, content, section = DEFAULT_SECTION) {
144
+ const trimmedContent = content.replace(/\r\n/g, '\n').replace(/\n+$/, '');
145
+ const block = `${markerStart(section)}\n${trimmedContent}\n${markerEnd(section)}`;
146
+ if (!existingContent || existingContent.trim() === '') {
147
+ return block + '\n';
148
+ }
149
+ const text = existingContent.replace(/\r\n/g, '\n');
150
+ if (hasSection(text, section)) {
151
+ const start = markerStart(section);
152
+ const end = markerEnd(section);
153
+ const startIdx = text.indexOf(start);
154
+ const endIdx = text.indexOf(end);
155
+ if (startIdx === -1 || endIdx === -1) {
156
+ return text + '\n\n' + block + '\n';
157
+ }
158
+ const before = text.slice(0, startIdx);
159
+ const after = text.slice(endIdx + end.length);
160
+ return before + block + after;
161
+ }
162
+ // No section markers — append with a blank line separator
163
+ const normalized = text.replace(/\n+$/, '');
164
+ return normalized + '\n\n' + block + '\n';
165
+ }
166
+ /**
167
+ * Remove a specific section's markers and content.
168
+ * Returns the cleaned text, or the original text if section not found.
169
+ */
170
+ export function removeContent(text, section = DEFAULT_SECTION) {
171
+ if (!hasSection(text, section))
172
+ return text;
173
+ const normalized = text.replace(/\r\n/g, '\n');
174
+ const start = markerStart(section);
175
+ const end = markerEnd(section);
176
+ const startIdx = normalized.indexOf(start);
177
+ const endIdx = normalized.indexOf(end);
178
+ if (startIdx === -1 || endIdx === -1)
179
+ return text;
180
+ const before = normalized.slice(0, startIdx);
181
+ const after = normalized.slice(endIdx + end.length);
182
+ // Clean up extra blank lines at the junction
183
+ const result = (before.replace(/\n+$/, '') + after.replace(/^\n+/, '\n')).replace(/\n+$/, '');
184
+ return result ? result + '\n' : '';
185
+ }
186
+ /**
187
+ * Remove ALL maestro sections from text.
188
+ * Also cleans up any orphaned markers (start without matching end).
189
+ */
190
+ export function removeAllSections(text) {
191
+ const sectionRe = /<!-- maestro:start section="([^"]*)" -->/g;
192
+ let result = text;
193
+ let match;
194
+ // Collect all section names
195
+ const sections = [];
196
+ while ((match = sectionRe.exec(text)) !== null) {
197
+ sections.push(match[1]);
198
+ }
199
+ // Remove each complete section
200
+ for (const s of sections) {
201
+ result = removeContent(result, s);
202
+ }
203
+ // Clean up orphaned start markers (no matching end)
204
+ result = result.replace(/^<!-- maestro:start section="[^"]*" -->\n?/gm, '');
205
+ return result;
206
+ }
207
+ /**
208
+ * Inject source content into a target doc file using sectioned markers.
209
+ * Handles legacy migration with similarity detection.
210
+ *
211
+ * Returns migration result with optional warning.
212
+ */
213
+ export function injectDocFile(src, dest, stats, manifest, section) {
214
+ const destDir = dirname(dest);
215
+ if (!existsSync(destDir)) {
216
+ mkdirSync(destDir, { recursive: true });
217
+ stats.dirs++;
218
+ addDir(manifest, destDir);
219
+ }
220
+ const sourceContent = readFileSync(src, 'utf-8');
221
+ const existingContent = existsSync(dest) ? readFileSync(dest, 'utf-8') : '';
222
+ const result = migrateAndInject(existingContent, sourceContent, dest, section);
223
+ writeFileSync(dest, result.content, 'utf-8');
224
+ stats.files++;
225
+ addFile(manifest, dest);
226
+ return result;
227
+ }
228
+ //# sourceMappingURL=tag-injector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-injector.js","sourceRoot":"","sources":["../../../../src/core/tag-injector.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,oEAAoE;AACpE,oEAAoE;AACpE,0CAA0C;AAC1C,EAAE;AACF,iBAAiB;AACjB,0CAA0C;AAC1C,2BAA2B;AAC3B,wCAAwC;AACxC,EAAE;AACF,6CAA6C;AAC7C,mCAAmC;AACnC,2CAA2C;AAC3C,8EAA8E;AAE9E,OAAO,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACZ,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,OAAO,EACP,MAAM,GAEP,MAAM,eAAe,CAAC;AAEvB,kEAAkE;AAClE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AAEtC,MAAM,UAAU,WAAW,CAAC,OAAe;IACzC,OAAO,+BAA+B,OAAO,OAAO,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAe;IACvC,OAAO,6BAA6B,OAAO,OAAO,CAAC;AACrD,CAAC;AAED,SAAS,OAAO,CAAC,OAAe;IAC9B,OAAO,IAAI,MAAM,CAAC,gCAAgC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AACpF,CAAC;AAED,SAAS,KAAK,CAAC,OAAe;IAC5B,OAAO,IAAI,MAAM,CAAC,8BAA8B,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAClF,CAAC;AAED,gEAAgE;AAChE,MAAM,YAAY,GAAG,2CAA2C,CAAC;AAEjE,SAAS,QAAQ,CAAC,CAAS;IACzB,OAAO,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AE,CAAC;QACzB,SAAS,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACxC,KAAK,CAAC,IAAI,EAAE,CAAC;QACb,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACjD,MAAM,eAAe,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,MAAM,MAAM,GAAG,gBAAgB,CAAC,eAAe,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAE/E,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7C,KAAK,CAAC,KAAK,EAAE,CAAC;IACd,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACxB,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,12 @@
1
+ export type ToggleState = 'on' | 'off' | 'available';
2
+ export interface ToggleItem {
3
+ name: string;
4
+ type: 'command' | 'skill' | 'agent';
5
+ state: ToggleState;
6
+ sourcePath: string;
7
+ targetActive: string;
8
+ targetDisabled: string;
9
+ }
10
+ export declare function scanToggleItems(pkgRoot: string, targetBase: string): ToggleItem[];
11
+ export declare function applyToggle(item: ToggleItem, pkgRoot: string): boolean;
12
+ export declare function updateManifestDisabledItems(scope: 'global' | 'project', targetPath: string, disabledNames: string[]): void;
@@ -0,0 +1,159 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Toggle — enable/disable individual commands, skills, and agents.
3
+ //
4
+ // Three-state model:
5
+ // on = installed & enabled
6
+ // off = installed & disabled (.md → .md.disabled)
7
+ // available = in source, not yet installed
8
+ // ---------------------------------------------------------------------------
9
+ import { join, dirname } from 'node:path';
10
+ import { existsSync, mkdirSync, readdirSync, statSync, copyFileSync, cpSync, writeFileSync, renameSync, } from 'node:fs';
11
+ import { findManifest, manifestFile } from './manifest.js';
12
+ // ---------------------------------------------------------------------------
13
+ // Scan — merge source (available) and target (on/off) into unified list
14
+ // ---------------------------------------------------------------------------
15
+ export function scanToggleItems(pkgRoot, targetBase) {
16
+ const items = new Map();
17
+ const addSource = (dir, targetDir, type, isSkill) => {
18
+ if (!existsSync(dir))
19
+ return;
20
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
21
+ if (isSkill) {
22
+ if (!entry.isDirectory() || entry.name.startsWith('_') || entry.name.startsWith('.'))
23
+ continue;
24
+ if (!existsSync(join(dir, entry.name, 'SKILL.md')))
25
+ continue;
26
+ const key = `${type}:${entry.name}`;
27
+ items.set(key, {
28
+ name: entry.name, type, state: 'available',
29
+ sourcePath: join(dir, entry.name),
30
+ targetActive: join(targetDir, entry.name, 'SKILL.md'),
31
+ targetDisabled: join(targetDir, entry.name, 'SKILL.md.disabled'),
32
+ });
33
+ }
34
+ else {
35
+ if (!entry.isFile() || !entry.name.endsWith('.md'))
36
+ continue;
37
+ const name = entry.name.replace('.md', '');
38
+ const key = `${type}:${name}`;
39
+ items.set(key, {
40
+ name, type, state: 'available',
41
+ sourcePath: join(dir, entry.name),
42
+ targetActive: join(targetDir, entry.name),
43
+ targetDisabled: join(targetDir, `${entry.name}.disabled`),
44
+ });
45
+ }
46
+ }
47
+ };
48
+ const markTarget = (dir, type, isSkill) => {
49
+ if (!existsSync(dir))
50
+ return;
51
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
52
+ if (isSkill) {
53
+ if (!entry.isDirectory())
54
+ continue;
55
+ const key = `${type}:${entry.name}`;
56
+ const hasActive = existsSync(join(dir, entry.name, 'SKILL.md'));
57
+ const hasDisabled = existsSync(join(dir, entry.name, 'SKILL.md.disabled'));
58
+ if (hasActive || hasDisabled) {
59
+ const existing = items.get(key);
60
+ const state = hasActive ? 'on' : 'off';
61
+ if (existing) {
62
+ existing.state = state;
63
+ }
64
+ else {
65
+ items.set(key, {
66
+ name: entry.name, type, state,
67
+ sourcePath: '',
68
+ targetActive: join(dir, entry.name, 'SKILL.md'),
69
+ targetDisabled: join(dir, entry.name, 'SKILL.md.disabled'),
70
+ });
71
+ }
72
+ }
73
+ }
74
+ else {
75
+ if (!entry.isFile())
76
+ continue;
77
+ const isDisabled = entry.name.endsWith('.md.disabled');
78
+ const isMd = entry.name.endsWith('.md') && !isDisabled;
79
+ if (!isMd && !isDisabled)
80
+ continue;
81
+ const name = isDisabled ? entry.name.replace('.md.disabled', '') : entry.name.replace('.md', '');
82
+ const key = `${type}:${name}`;
83
+ const state = isMd ? 'on' : 'off';
84
+ const existing = items.get(key);
85
+ if (existing) {
86
+ if (existing.state !== 'on')
87
+ existing.state = state;
88
+ }
89
+ else {
90
+ items.set(key, {
91
+ name, type, state,
92
+ sourcePath: '',
93
+ targetActive: join(dir, `${name}.md`),
94
+ targetDisabled: join(dir, `${name}.md.disabled`),
95
+ });
96
+ }
97
+ }
98
+ }
99
+ };
100
+ const srcClaude = join(pkgRoot, '.claude');
101
+ const tgtClaude = join(targetBase, '.claude');
102
+ addSource(join(srcClaude, 'commands'), join(tgtClaude, 'commands'), 'command', false);
103
+ addSource(join(srcClaude, 'skills'), join(tgtClaude, 'skills'), 'skill', true);
104
+ addSource(join(srcClaude, 'agents'), join(tgtClaude, 'agents'), 'agent', false);
105
+ markTarget(join(tgtClaude, 'commands'), 'command', false);
106
+ markTarget(join(tgtClaude, 'skills'), 'skill', true);
107
+ markTarget(join(tgtClaude, 'agents'), 'agent', false);
108
+ const srcCodex = join(pkgRoot, '.codex');
109
+ const tgtCodex = join(targetBase, '.codex');
110
+ addSource(join(srcCodex, 'skills'), join(tgtCodex, 'skills'), 'skill', true);
111
+ addSource(join(srcCodex, 'agents'), join(tgtCodex, 'agents'), 'agent', false);
112
+ markTarget(join(tgtCodex, 'skills'), 'skill', true);
113
+ markTarget(join(tgtCodex, 'agents'), 'agent', false);
114
+ return [...items.values()].sort((a, b) => a.type.localeCompare(b.type) || a.name.localeCompare(b.name));
115
+ }
116
+ // ---------------------------------------------------------------------------
117
+ // Apply — execute state transition on filesystem
118
+ // ---------------------------------------------------------------------------
119
+ export function applyToggle(item, pkgRoot) {
120
+ if (item.state === 'on') {
121
+ if (existsSync(item.targetActive)) {
122
+ renameSync(item.targetActive, item.targetDisabled);
123
+ return true;
124
+ }
125
+ }
126
+ else if (item.state === 'off') {
127
+ if (existsSync(item.targetDisabled)) {
128
+ renameSync(item.targetDisabled, item.targetActive);
129
+ return true;
130
+ }
131
+ }
132
+ else {
133
+ if (!item.sourcePath)
134
+ return false;
135
+ const targetDir = dirname(item.targetActive);
136
+ if (!existsSync(targetDir))
137
+ mkdirSync(targetDir, { recursive: true });
138
+ const srcStat = statSync(item.sourcePath);
139
+ if (srcStat.isDirectory()) {
140
+ cpSync(item.sourcePath, targetDir, { recursive: true });
141
+ }
142
+ else {
143
+ copyFileSync(item.sourcePath, item.targetActive);
144
+ }
145
+ return true;
146
+ }
147
+ return false;
148
+ }
149
+ // ---------------------------------------------------------------------------
150
+ // Manifest integration — persist disabled-item list
151
+ // ---------------------------------------------------------------------------
152
+ export function updateManifestDisabledItems(scope, targetPath, disabledNames) {
153
+ const manifest = findManifest(scope, targetPath);
154
+ if (!manifest)
155
+ return;
156
+ manifest.disabledItems = disabledNames;
157
+ writeFileSync(manifestFile(manifest.id), JSON.stringify(manifest, null, 2), 'utf-8');
158
+ }
159
+ //# sourceMappingURL=toggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../../src/core/toggle.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,mEAAmE;AACnE,EAAE;AACF,qBAAqB;AACrB,oCAAoC;AACpC,0DAA0D;AAC1D,6CAA6C;AAC7C,8EAA8E;AAE9E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL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AClB,aAAuB;IAEvB,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IACjD,IAAI,CAAC,QAAQ;QAAE,OAAO;IACtB,QAAQ,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,aAAa,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AACvF,CAAC"}
@@ -0,0 +1,36 @@
1
+ import type Database from 'better-sqlite3';
2
+ export interface CredibilityRow {
3
+ node_id: string;
4
+ content_hash: string;
5
+ search_hits: number;
6
+ consumption_count: number;
7
+ last_hit_at: number | null;
8
+ last_consumed_at: number | null;
9
+ content_changed_at: number;
10
+ created_at: number;
11
+ }
12
+ export interface CredibilityConfig {
13
+ floor: number;
14
+ ceiling: number;
15
+ warningThreshold: number;
16
+ halfLives: Record<string, number>;
17
+ }
18
+ declare const DEFAULT_CONFIG: CredibilityConfig;
19
+ export declare const CREDIBILITY_MIGRATION_SQL = "\nCREATE TABLE IF NOT EXISTS credibility (\n node_id TEXT PRIMARY KEY,\n content_hash TEXT NOT NULL,\n search_hits INTEGER NOT NULL DEFAULT 0,\n consumption_count INTEGER NOT NULL DEFAULT 0,\n last_hit_at INTEGER,\n last_consumed_at INTEGER,\n content_changed_at INTEGER NOT NULL,\n created_at INTEGER NOT NULL\n);\n\nCREATE INDEX IF NOT EXISTS idx_credibility_search_hits ON credibility(search_hits);\nCREATE INDEX IF NOT EXISTS idx_credibility_content_changed ON credibility(content_changed_at);\n";
20
+ export declare function computeDecayFactor(ageDays: number, nodeType: string, config?: CredibilityConfig): number;
21
+ export declare function computeCredibilityFactor(row: CredibilityRow | null, nodeType: string, nowMs?: number, config?: CredibilityConfig): number;
22
+ export declare function isLowCredibility(factor: number, config?: CredibilityConfig): boolean;
23
+ export declare function contentHash(body: string): string;
24
+ export declare class CredibilityStore {
25
+ private db;
26
+ constructor(db: Database.Database);
27
+ upsert(nodeId: string, hash: string, nowMs?: number): void;
28
+ get(nodeId: string): CredibilityRow | null;
29
+ getMany(nodeIds: string[]): Map<string, CredibilityRow>;
30
+ getAll(): CredibilityRow[];
31
+ incrementSearchHits(nodeIds: string[], nowMs?: number): void;
32
+ incrementConsumption(nodeId: string, nowMs?: number): void;
33
+ cleanOrphans(): number;
34
+ }
35
+ export declare function wikiIdToNodeId(wikiId: string): string | null;
36
+ export { DEFAULT_CONFIG as CREDIBILITY_DEFAULT_CONFIG };