@lvlup-sw/exarchos 2.5.0 → 2.6.0

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 (553) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +21 -0
  3. package/commands/dogfood.md +31 -0
  4. package/commands/oneshot.md +178 -0
  5. package/commands/prune.md +90 -0
  6. package/dist/exarchos.js +292 -289
  7. package/package.json +7 -3
  8. package/skills/{cleanup → claude/cleanup}/SKILL.md +6 -0
  9. package/skills/{delegation → claude/delegation}/SKILL.md +50 -29
  10. package/skills/{delegation → claude/delegation}/references/troubleshooting.md +2 -2
  11. package/skills/claude/dogfood/SKILL.md +235 -0
  12. package/skills/claude/dogfood/references/report-template.md +109 -0
  13. package/skills/claude/dogfood/references/root-cause-patterns.md +227 -0
  14. package/skills/claude/oneshot-workflow/SKILL.md +468 -0
  15. package/skills/claude/oneshot-workflow/references/choice-state.md +65 -0
  16. package/skills/claude/prune-workflows/SKILL.md +290 -0
  17. package/skills/claude/prune-workflows/references/safeguards.md +74 -0
  18. package/skills/{quality-review → claude/quality-review}/SKILL.md +2 -0
  19. package/skills/{shepherd → claude/shepherd}/SKILL.md +4 -0
  20. package/skills/{spec-review → claude/spec-review}/SKILL.md +2 -0
  21. package/skills/{synthesis → claude/synthesis}/SKILL.md +40 -0
  22. package/skills/{workflow-state → claude/workflow-state}/SKILL.md +40 -4
  23. package/skills/{workflow-state → claude/workflow-state}/references/phase-transitions.md +22 -0
  24. package/skills/codex/brainstorming/SKILL.md +182 -0
  25. package/skills/codex/brainstorming/references/design-template.md +107 -0
  26. package/skills/codex/brainstorming/references/worked-example.md +58 -0
  27. package/skills/codex/cleanup/SKILL.md +169 -0
  28. package/skills/codex/cleanup/references/merge-verification.md +40 -0
  29. package/skills/codex/debug/SKILL.md +247 -0
  30. package/skills/codex/debug/references/hotfix-track.md +105 -0
  31. package/skills/codex/debug/references/investigation-checklist.md +217 -0
  32. package/skills/codex/debug/references/rca-template.md +150 -0
  33. package/skills/codex/debug/references/state-schema.md +294 -0
  34. package/skills/codex/debug/references/thorough-track.md +171 -0
  35. package/skills/codex/debug/references/triage-questions.md +155 -0
  36. package/skills/codex/debug/references/troubleshooting.md +47 -0
  37. package/skills/codex/delegation/SKILL.md +353 -0
  38. package/skills/codex/delegation/references/adaptive-orchestration.md +31 -0
  39. package/skills/codex/delegation/references/agent-teams-saga.md +254 -0
  40. package/skills/codex/delegation/references/fix-mode.md +118 -0
  41. package/skills/codex/delegation/references/fixer-prompt.md +174 -0
  42. package/skills/codex/delegation/references/implementer-prompt.md +401 -0
  43. package/skills/codex/delegation/references/parallel-strategy.md +124 -0
  44. package/skills/codex/delegation/references/pbt-patterns.md +172 -0
  45. package/skills/codex/delegation/references/pr-fixes-mode.md +155 -0
  46. package/skills/codex/delegation/references/rationalization-refutation.md +15 -0
  47. package/skills/codex/delegation/references/state-management.md +84 -0
  48. package/skills/codex/delegation/references/testing-patterns.md +146 -0
  49. package/skills/codex/delegation/references/troubleshooting.md +109 -0
  50. package/skills/codex/delegation/references/worked-example.md +104 -0
  51. package/skills/codex/delegation/references/workflow-steps.md +131 -0
  52. package/skills/codex/delegation/references/worktree-enforcement.md +71 -0
  53. package/skills/codex/dogfood/SKILL.md +235 -0
  54. package/skills/codex/dogfood/references/report-template.md +109 -0
  55. package/skills/codex/dogfood/references/root-cause-patterns.md +227 -0
  56. package/skills/codex/git-worktrees/SKILL.md +193 -0
  57. package/skills/codex/git-worktrees/references/commands-reference.md +78 -0
  58. package/skills/codex/implementation-planning/SKILL.md +289 -0
  59. package/skills/codex/implementation-planning/references/plan-document-template.md +42 -0
  60. package/skills/codex/implementation-planning/references/rationalization-refutation.md +13 -0
  61. package/skills/codex/implementation-planning/references/spec-tracing-guide.md +51 -0
  62. package/skills/codex/implementation-planning/references/task-template.md +63 -0
  63. package/skills/codex/implementation-planning/references/testing-strategy-guide.md +109 -0
  64. package/skills/codex/implementation-planning/references/worked-example.md +76 -0
  65. package/skills/codex/oneshot-workflow/SKILL.md +468 -0
  66. package/skills/codex/oneshot-workflow/references/choice-state.md +65 -0
  67. package/skills/codex/prune-workflows/SKILL.md +290 -0
  68. package/skills/codex/prune-workflows/references/safeguards.md +74 -0
  69. package/skills/codex/quality-review/SKILL.md +371 -0
  70. package/skills/codex/quality-review/references/auto-transition.md +47 -0
  71. package/skills/codex/quality-review/references/axiom-integration.md +135 -0
  72. package/skills/codex/quality-review/references/code-quality-checklist.md +171 -0
  73. package/skills/codex/quality-review/references/convergence-and-verdict.md +48 -0
  74. package/skills/codex/quality-review/references/gate-execution.md +60 -0
  75. package/skills/codex/quality-review/references/rationalization-refutation.md +13 -0
  76. package/skills/codex/quality-review/references/review-report-template.md +65 -0
  77. package/skills/codex/quality-review/references/security-checklist.md +79 -0
  78. package/skills/codex/quality-review/references/typescript-standards.md +24 -0
  79. package/skills/codex/refactor/SKILL.md +196 -0
  80. package/skills/codex/refactor/references/brief-template.md +81 -0
  81. package/skills/codex/refactor/references/doc-update-checklist.md +113 -0
  82. package/skills/codex/refactor/references/explore-checklist.md +79 -0
  83. package/skills/codex/refactor/references/overhaul-track.md +194 -0
  84. package/skills/codex/refactor/references/phases/auto-chain.md +267 -0
  85. package/skills/codex/refactor/references/phases/brief.md +176 -0
  86. package/skills/codex/refactor/references/phases/explore.md +132 -0
  87. package/skills/codex/refactor/references/phases/overhaul-delegate.md +136 -0
  88. package/skills/codex/refactor/references/phases/overhaul-plan.md +312 -0
  89. package/skills/codex/refactor/references/phases/overhaul-review.md +304 -0
  90. package/skills/codex/refactor/references/phases/polish-implement.md +347 -0
  91. package/skills/codex/refactor/references/phases/polish-validate.md +218 -0
  92. package/skills/codex/refactor/references/phases/update-docs.md +234 -0
  93. package/skills/codex/refactor/references/polish-track.md +152 -0
  94. package/skills/codex/shepherd/SKILL.md +251 -0
  95. package/skills/codex/shepherd/references/assess-checklist.md +170 -0
  96. package/skills/codex/shepherd/references/escalation-criteria.md +53 -0
  97. package/skills/codex/shepherd/references/fix-strategies.md +289 -0
  98. package/skills/codex/shepherd/references/gate-event-emission.md +47 -0
  99. package/skills/codex/shepherd/references/shepherd-event-schemas.md +56 -0
  100. package/skills/codex/spec-review/SKILL.md +294 -0
  101. package/skills/codex/spec-review/references/rationalization-refutation.md +13 -0
  102. package/skills/codex/spec-review/references/review-checklist.md +79 -0
  103. package/skills/codex/spec-review/references/worked-example.md +72 -0
  104. package/skills/codex/synthesis/SKILL.md +217 -0
  105. package/skills/codex/synthesis/references/github-native-stacking.md +135 -0
  106. package/skills/codex/synthesis/references/merge-ordering.md +50 -0
  107. package/skills/codex/synthesis/references/pr-descriptions.md +87 -0
  108. package/skills/codex/synthesis/references/synthesis-steps.md +145 -0
  109. package/skills/codex/synthesis/references/troubleshooting.md +115 -0
  110. package/skills/codex/workflow-state/SKILL.md +254 -0
  111. package/skills/codex/workflow-state/references/mcp-tool-reference.md +89 -0
  112. package/skills/codex/workflow-state/references/phase-transitions.md +206 -0
  113. package/skills/copilot/brainstorming/SKILL.md +182 -0
  114. package/skills/copilot/brainstorming/references/design-template.md +107 -0
  115. package/skills/copilot/brainstorming/references/worked-example.md +58 -0
  116. package/skills/copilot/cleanup/SKILL.md +169 -0
  117. package/skills/copilot/cleanup/references/merge-verification.md +40 -0
  118. package/skills/copilot/debug/SKILL.md +247 -0
  119. package/skills/copilot/debug/references/hotfix-track.md +105 -0
  120. package/skills/copilot/debug/references/investigation-checklist.md +217 -0
  121. package/skills/copilot/debug/references/rca-template.md +150 -0
  122. package/skills/copilot/debug/references/state-schema.md +294 -0
  123. package/skills/copilot/debug/references/thorough-track.md +171 -0
  124. package/skills/copilot/debug/references/triage-questions.md +155 -0
  125. package/skills/copilot/debug/references/troubleshooting.md +47 -0
  126. package/skills/copilot/delegation/SKILL.md +345 -0
  127. package/skills/copilot/delegation/references/adaptive-orchestration.md +31 -0
  128. package/skills/copilot/delegation/references/agent-teams-saga.md +254 -0
  129. package/skills/copilot/delegation/references/fix-mode.md +118 -0
  130. package/skills/copilot/delegation/references/fixer-prompt.md +174 -0
  131. package/skills/copilot/delegation/references/implementer-prompt.md +401 -0
  132. package/skills/copilot/delegation/references/parallel-strategy.md +124 -0
  133. package/skills/copilot/delegation/references/pbt-patterns.md +172 -0
  134. package/skills/copilot/delegation/references/pr-fixes-mode.md +155 -0
  135. package/skills/copilot/delegation/references/rationalization-refutation.md +15 -0
  136. package/skills/copilot/delegation/references/state-management.md +84 -0
  137. package/skills/copilot/delegation/references/testing-patterns.md +146 -0
  138. package/skills/copilot/delegation/references/troubleshooting.md +109 -0
  139. package/skills/copilot/delegation/references/worked-example.md +104 -0
  140. package/skills/copilot/delegation/references/workflow-steps.md +131 -0
  141. package/skills/copilot/delegation/references/worktree-enforcement.md +71 -0
  142. package/skills/copilot/dogfood/SKILL.md +235 -0
  143. package/skills/copilot/dogfood/references/report-template.md +109 -0
  144. package/skills/copilot/dogfood/references/root-cause-patterns.md +227 -0
  145. package/skills/copilot/git-worktrees/SKILL.md +193 -0
  146. package/skills/copilot/git-worktrees/references/commands-reference.md +78 -0
  147. package/skills/copilot/implementation-planning/SKILL.md +289 -0
  148. package/skills/copilot/implementation-planning/references/plan-document-template.md +42 -0
  149. package/skills/copilot/implementation-planning/references/rationalization-refutation.md +13 -0
  150. package/skills/copilot/implementation-planning/references/spec-tracing-guide.md +51 -0
  151. package/skills/copilot/implementation-planning/references/task-template.md +63 -0
  152. package/skills/copilot/implementation-planning/references/testing-strategy-guide.md +109 -0
  153. package/skills/copilot/implementation-planning/references/worked-example.md +76 -0
  154. package/skills/copilot/oneshot-workflow/SKILL.md +468 -0
  155. package/skills/copilot/oneshot-workflow/references/choice-state.md +65 -0
  156. package/skills/copilot/prune-workflows/SKILL.md +290 -0
  157. package/skills/copilot/prune-workflows/references/safeguards.md +74 -0
  158. package/skills/copilot/quality-review/SKILL.md +371 -0
  159. package/skills/copilot/quality-review/references/auto-transition.md +47 -0
  160. package/skills/copilot/quality-review/references/axiom-integration.md +135 -0
  161. package/skills/copilot/quality-review/references/code-quality-checklist.md +171 -0
  162. package/skills/copilot/quality-review/references/convergence-and-verdict.md +48 -0
  163. package/skills/copilot/quality-review/references/gate-execution.md +60 -0
  164. package/skills/copilot/quality-review/references/rationalization-refutation.md +13 -0
  165. package/skills/copilot/quality-review/references/review-report-template.md +65 -0
  166. package/skills/copilot/quality-review/references/security-checklist.md +79 -0
  167. package/skills/copilot/quality-review/references/typescript-standards.md +24 -0
  168. package/skills/copilot/refactor/SKILL.md +196 -0
  169. package/skills/copilot/refactor/references/brief-template.md +81 -0
  170. package/skills/copilot/refactor/references/doc-update-checklist.md +113 -0
  171. package/skills/copilot/refactor/references/explore-checklist.md +79 -0
  172. package/skills/copilot/refactor/references/overhaul-track.md +194 -0
  173. package/skills/copilot/refactor/references/phases/auto-chain.md +267 -0
  174. package/skills/copilot/refactor/references/phases/brief.md +176 -0
  175. package/skills/copilot/refactor/references/phases/explore.md +132 -0
  176. package/skills/copilot/refactor/references/phases/overhaul-delegate.md +136 -0
  177. package/skills/copilot/refactor/references/phases/overhaul-plan.md +312 -0
  178. package/skills/copilot/refactor/references/phases/overhaul-review.md +304 -0
  179. package/skills/copilot/refactor/references/phases/polish-implement.md +347 -0
  180. package/skills/copilot/refactor/references/phases/polish-validate.md +218 -0
  181. package/skills/copilot/refactor/references/phases/update-docs.md +234 -0
  182. package/skills/copilot/refactor/references/polish-track.md +152 -0
  183. package/skills/copilot/shepherd/SKILL.md +251 -0
  184. package/skills/copilot/shepherd/references/assess-checklist.md +170 -0
  185. package/skills/copilot/shepherd/references/escalation-criteria.md +53 -0
  186. package/skills/copilot/shepherd/references/fix-strategies.md +289 -0
  187. package/skills/copilot/shepherd/references/gate-event-emission.md +47 -0
  188. package/skills/copilot/shepherd/references/shepherd-event-schemas.md +56 -0
  189. package/skills/copilot/spec-review/SKILL.md +294 -0
  190. package/skills/copilot/spec-review/references/rationalization-refutation.md +13 -0
  191. package/skills/copilot/spec-review/references/review-checklist.md +79 -0
  192. package/skills/copilot/spec-review/references/worked-example.md +72 -0
  193. package/skills/copilot/synthesis/SKILL.md +217 -0
  194. package/skills/copilot/synthesis/references/github-native-stacking.md +135 -0
  195. package/skills/copilot/synthesis/references/merge-ordering.md +50 -0
  196. package/skills/copilot/synthesis/references/pr-descriptions.md +87 -0
  197. package/skills/copilot/synthesis/references/synthesis-steps.md +145 -0
  198. package/skills/copilot/synthesis/references/troubleshooting.md +115 -0
  199. package/skills/copilot/workflow-state/SKILL.md +254 -0
  200. package/skills/copilot/workflow-state/references/mcp-tool-reference.md +89 -0
  201. package/skills/copilot/workflow-state/references/phase-transitions.md +206 -0
  202. package/skills/cursor/brainstorming/SKILL.md +182 -0
  203. package/skills/cursor/brainstorming/references/design-template.md +107 -0
  204. package/skills/cursor/brainstorming/references/worked-example.md +58 -0
  205. package/skills/cursor/cleanup/SKILL.md +169 -0
  206. package/skills/cursor/cleanup/references/merge-verification.md +40 -0
  207. package/skills/cursor/debug/SKILL.md +247 -0
  208. package/skills/cursor/debug/references/hotfix-track.md +105 -0
  209. package/skills/cursor/debug/references/investigation-checklist.md +217 -0
  210. package/skills/cursor/debug/references/rca-template.md +150 -0
  211. package/skills/cursor/debug/references/state-schema.md +294 -0
  212. package/skills/cursor/debug/references/thorough-track.md +171 -0
  213. package/skills/cursor/debug/references/triage-questions.md +155 -0
  214. package/skills/cursor/debug/references/troubleshooting.md +47 -0
  215. package/skills/cursor/delegation/SKILL.md +351 -0
  216. package/skills/cursor/delegation/references/adaptive-orchestration.md +31 -0
  217. package/skills/cursor/delegation/references/agent-teams-saga.md +254 -0
  218. package/skills/cursor/delegation/references/fix-mode.md +118 -0
  219. package/skills/cursor/delegation/references/fixer-prompt.md +174 -0
  220. package/skills/cursor/delegation/references/implementer-prompt.md +401 -0
  221. package/skills/cursor/delegation/references/parallel-strategy.md +124 -0
  222. package/skills/cursor/delegation/references/pbt-patterns.md +172 -0
  223. package/skills/cursor/delegation/references/pr-fixes-mode.md +155 -0
  224. package/skills/cursor/delegation/references/rationalization-refutation.md +15 -0
  225. package/skills/cursor/delegation/references/state-management.md +84 -0
  226. package/skills/cursor/delegation/references/testing-patterns.md +146 -0
  227. package/skills/cursor/delegation/references/troubleshooting.md +109 -0
  228. package/skills/cursor/delegation/references/worked-example.md +104 -0
  229. package/skills/cursor/delegation/references/workflow-steps.md +131 -0
  230. package/skills/cursor/delegation/references/worktree-enforcement.md +71 -0
  231. package/skills/cursor/dogfood/SKILL.md +235 -0
  232. package/skills/cursor/dogfood/references/report-template.md +109 -0
  233. package/skills/cursor/dogfood/references/root-cause-patterns.md +227 -0
  234. package/skills/cursor/git-worktrees/SKILL.md +193 -0
  235. package/skills/cursor/git-worktrees/references/commands-reference.md +78 -0
  236. package/skills/cursor/implementation-planning/SKILL.md +289 -0
  237. package/skills/cursor/implementation-planning/references/plan-document-template.md +42 -0
  238. package/skills/cursor/implementation-planning/references/rationalization-refutation.md +13 -0
  239. package/skills/cursor/implementation-planning/references/spec-tracing-guide.md +51 -0
  240. package/skills/cursor/implementation-planning/references/task-template.md +63 -0
  241. package/skills/cursor/implementation-planning/references/testing-strategy-guide.md +109 -0
  242. package/skills/cursor/implementation-planning/references/worked-example.md +76 -0
  243. package/skills/cursor/oneshot-workflow/SKILL.md +468 -0
  244. package/skills/cursor/oneshot-workflow/references/choice-state.md +65 -0
  245. package/skills/cursor/prune-workflows/SKILL.md +290 -0
  246. package/skills/cursor/prune-workflows/references/safeguards.md +74 -0
  247. package/skills/cursor/quality-review/SKILL.md +371 -0
  248. package/skills/cursor/quality-review/references/auto-transition.md +47 -0
  249. package/skills/cursor/quality-review/references/axiom-integration.md +135 -0
  250. package/skills/cursor/quality-review/references/code-quality-checklist.md +171 -0
  251. package/skills/cursor/quality-review/references/convergence-and-verdict.md +48 -0
  252. package/skills/cursor/quality-review/references/gate-execution.md +60 -0
  253. package/skills/cursor/quality-review/references/rationalization-refutation.md +13 -0
  254. package/skills/cursor/quality-review/references/review-report-template.md +65 -0
  255. package/skills/cursor/quality-review/references/security-checklist.md +79 -0
  256. package/skills/cursor/quality-review/references/typescript-standards.md +24 -0
  257. package/skills/cursor/refactor/SKILL.md +196 -0
  258. package/skills/cursor/refactor/references/brief-template.md +81 -0
  259. package/skills/cursor/refactor/references/doc-update-checklist.md +113 -0
  260. package/skills/cursor/refactor/references/explore-checklist.md +79 -0
  261. package/skills/cursor/refactor/references/overhaul-track.md +194 -0
  262. package/skills/cursor/refactor/references/phases/auto-chain.md +267 -0
  263. package/skills/cursor/refactor/references/phases/brief.md +176 -0
  264. package/skills/cursor/refactor/references/phases/explore.md +132 -0
  265. package/skills/cursor/refactor/references/phases/overhaul-delegate.md +136 -0
  266. package/skills/cursor/refactor/references/phases/overhaul-plan.md +312 -0
  267. package/skills/cursor/refactor/references/phases/overhaul-review.md +304 -0
  268. package/skills/cursor/refactor/references/phases/polish-implement.md +347 -0
  269. package/skills/cursor/refactor/references/phases/polish-validate.md +218 -0
  270. package/skills/cursor/refactor/references/phases/update-docs.md +234 -0
  271. package/skills/cursor/refactor/references/polish-track.md +152 -0
  272. package/skills/cursor/shepherd/SKILL.md +251 -0
  273. package/skills/cursor/shepherd/references/assess-checklist.md +170 -0
  274. package/skills/cursor/shepherd/references/escalation-criteria.md +53 -0
  275. package/skills/cursor/shepherd/references/fix-strategies.md +289 -0
  276. package/skills/cursor/shepherd/references/gate-event-emission.md +47 -0
  277. package/skills/cursor/shepherd/references/shepherd-event-schemas.md +56 -0
  278. package/skills/cursor/spec-review/SKILL.md +294 -0
  279. package/skills/cursor/spec-review/references/rationalization-refutation.md +13 -0
  280. package/skills/cursor/spec-review/references/review-checklist.md +79 -0
  281. package/skills/cursor/spec-review/references/worked-example.md +72 -0
  282. package/skills/cursor/synthesis/SKILL.md +217 -0
  283. package/skills/cursor/synthesis/references/github-native-stacking.md +135 -0
  284. package/skills/cursor/synthesis/references/merge-ordering.md +50 -0
  285. package/skills/cursor/synthesis/references/pr-descriptions.md +87 -0
  286. package/skills/cursor/synthesis/references/synthesis-steps.md +145 -0
  287. package/skills/cursor/synthesis/references/troubleshooting.md +115 -0
  288. package/skills/cursor/workflow-state/SKILL.md +254 -0
  289. package/skills/cursor/workflow-state/references/mcp-tool-reference.md +89 -0
  290. package/skills/cursor/workflow-state/references/phase-transitions.md +206 -0
  291. package/skills/generic/brainstorming/SKILL.md +182 -0
  292. package/skills/generic/brainstorming/references/design-template.md +107 -0
  293. package/skills/generic/brainstorming/references/worked-example.md +58 -0
  294. package/skills/generic/cleanup/SKILL.md +169 -0
  295. package/skills/generic/cleanup/references/merge-verification.md +40 -0
  296. package/skills/generic/debug/SKILL.md +247 -0
  297. package/skills/generic/debug/references/hotfix-track.md +105 -0
  298. package/skills/generic/debug/references/investigation-checklist.md +217 -0
  299. package/skills/generic/debug/references/rca-template.md +150 -0
  300. package/skills/generic/debug/references/state-schema.md +294 -0
  301. package/skills/generic/debug/references/thorough-track.md +171 -0
  302. package/skills/generic/debug/references/triage-questions.md +155 -0
  303. package/skills/generic/debug/references/troubleshooting.md +47 -0
  304. package/skills/generic/delegation/SKILL.md +345 -0
  305. package/skills/generic/delegation/references/adaptive-orchestration.md +31 -0
  306. package/skills/generic/delegation/references/agent-teams-saga.md +254 -0
  307. package/skills/generic/delegation/references/fix-mode.md +118 -0
  308. package/skills/generic/delegation/references/fixer-prompt.md +174 -0
  309. package/skills/generic/delegation/references/implementer-prompt.md +401 -0
  310. package/skills/generic/delegation/references/parallel-strategy.md +124 -0
  311. package/skills/generic/delegation/references/pbt-patterns.md +172 -0
  312. package/skills/generic/delegation/references/pr-fixes-mode.md +155 -0
  313. package/skills/generic/delegation/references/rationalization-refutation.md +15 -0
  314. package/skills/generic/delegation/references/state-management.md +84 -0
  315. package/skills/generic/delegation/references/testing-patterns.md +146 -0
  316. package/skills/generic/delegation/references/troubleshooting.md +109 -0
  317. package/skills/generic/delegation/references/worked-example.md +104 -0
  318. package/skills/generic/delegation/references/workflow-steps.md +131 -0
  319. package/skills/generic/delegation/references/worktree-enforcement.md +71 -0
  320. package/skills/generic/dogfood/SKILL.md +235 -0
  321. package/skills/generic/dogfood/references/report-template.md +109 -0
  322. package/skills/generic/dogfood/references/root-cause-patterns.md +227 -0
  323. package/skills/generic/git-worktrees/SKILL.md +193 -0
  324. package/skills/generic/git-worktrees/references/commands-reference.md +78 -0
  325. package/skills/generic/implementation-planning/SKILL.md +289 -0
  326. package/skills/generic/implementation-planning/references/plan-document-template.md +42 -0
  327. package/skills/generic/implementation-planning/references/rationalization-refutation.md +13 -0
  328. package/skills/generic/implementation-planning/references/spec-tracing-guide.md +51 -0
  329. package/skills/generic/implementation-planning/references/task-template.md +63 -0
  330. package/skills/generic/implementation-planning/references/testing-strategy-guide.md +109 -0
  331. package/skills/generic/implementation-planning/references/worked-example.md +76 -0
  332. package/skills/generic/oneshot-workflow/SKILL.md +468 -0
  333. package/skills/generic/oneshot-workflow/references/choice-state.md +65 -0
  334. package/skills/generic/prune-workflows/SKILL.md +290 -0
  335. package/skills/generic/prune-workflows/references/safeguards.md +74 -0
  336. package/skills/generic/quality-review/SKILL.md +371 -0
  337. package/skills/generic/quality-review/references/auto-transition.md +47 -0
  338. package/skills/generic/quality-review/references/axiom-integration.md +135 -0
  339. package/skills/generic/quality-review/references/code-quality-checklist.md +171 -0
  340. package/skills/generic/quality-review/references/convergence-and-verdict.md +48 -0
  341. package/skills/generic/quality-review/references/gate-execution.md +60 -0
  342. package/skills/generic/quality-review/references/rationalization-refutation.md +13 -0
  343. package/skills/generic/quality-review/references/review-report-template.md +65 -0
  344. package/skills/generic/quality-review/references/security-checklist.md +79 -0
  345. package/skills/generic/quality-review/references/typescript-standards.md +24 -0
  346. package/skills/generic/refactor/SKILL.md +196 -0
  347. package/skills/generic/refactor/references/brief-template.md +81 -0
  348. package/skills/generic/refactor/references/doc-update-checklist.md +113 -0
  349. package/skills/generic/refactor/references/explore-checklist.md +79 -0
  350. package/skills/generic/refactor/references/overhaul-track.md +194 -0
  351. package/skills/generic/refactor/references/phases/auto-chain.md +267 -0
  352. package/skills/generic/refactor/references/phases/brief.md +176 -0
  353. package/skills/generic/refactor/references/phases/explore.md +132 -0
  354. package/skills/generic/refactor/references/phases/overhaul-delegate.md +136 -0
  355. package/skills/generic/refactor/references/phases/overhaul-plan.md +312 -0
  356. package/skills/generic/refactor/references/phases/overhaul-review.md +304 -0
  357. package/skills/generic/refactor/references/phases/polish-implement.md +347 -0
  358. package/skills/generic/refactor/references/phases/polish-validate.md +218 -0
  359. package/skills/generic/refactor/references/phases/update-docs.md +234 -0
  360. package/skills/generic/refactor/references/polish-track.md +152 -0
  361. package/skills/generic/shepherd/SKILL.md +251 -0
  362. package/skills/generic/shepherd/references/assess-checklist.md +170 -0
  363. package/skills/generic/shepherd/references/escalation-criteria.md +53 -0
  364. package/skills/generic/shepherd/references/fix-strategies.md +289 -0
  365. package/skills/generic/shepherd/references/gate-event-emission.md +47 -0
  366. package/skills/generic/shepherd/references/shepherd-event-schemas.md +56 -0
  367. package/skills/generic/spec-review/SKILL.md +294 -0
  368. package/skills/generic/spec-review/references/rationalization-refutation.md +13 -0
  369. package/skills/generic/spec-review/references/review-checklist.md +79 -0
  370. package/skills/generic/spec-review/references/worked-example.md +72 -0
  371. package/skills/generic/synthesis/SKILL.md +217 -0
  372. package/skills/generic/synthesis/references/github-native-stacking.md +135 -0
  373. package/skills/generic/synthesis/references/merge-ordering.md +50 -0
  374. package/skills/generic/synthesis/references/pr-descriptions.md +87 -0
  375. package/skills/generic/synthesis/references/synthesis-steps.md +145 -0
  376. package/skills/generic/synthesis/references/troubleshooting.md +115 -0
  377. package/skills/generic/workflow-state/SKILL.md +254 -0
  378. package/skills/generic/workflow-state/references/mcp-tool-reference.md +89 -0
  379. package/skills/generic/workflow-state/references/phase-transitions.md +206 -0
  380. package/skills/opencode/brainstorming/SKILL.md +182 -0
  381. package/skills/opencode/brainstorming/references/design-template.md +107 -0
  382. package/skills/opencode/brainstorming/references/worked-example.md +58 -0
  383. package/skills/opencode/cleanup/SKILL.md +169 -0
  384. package/skills/opencode/cleanup/references/merge-verification.md +40 -0
  385. package/skills/opencode/debug/SKILL.md +247 -0
  386. package/skills/opencode/debug/references/hotfix-track.md +105 -0
  387. package/skills/opencode/debug/references/investigation-checklist.md +217 -0
  388. package/skills/opencode/debug/references/rca-template.md +150 -0
  389. package/skills/opencode/debug/references/state-schema.md +294 -0
  390. package/skills/opencode/debug/references/thorough-track.md +171 -0
  391. package/skills/opencode/debug/references/triage-questions.md +155 -0
  392. package/skills/opencode/debug/references/troubleshooting.md +47 -0
  393. package/skills/opencode/delegation/SKILL.md +353 -0
  394. package/skills/opencode/delegation/references/adaptive-orchestration.md +31 -0
  395. package/skills/opencode/delegation/references/agent-teams-saga.md +254 -0
  396. package/skills/opencode/delegation/references/fix-mode.md +118 -0
  397. package/skills/opencode/delegation/references/fixer-prompt.md +174 -0
  398. package/skills/opencode/delegation/references/implementer-prompt.md +401 -0
  399. package/skills/opencode/delegation/references/parallel-strategy.md +124 -0
  400. package/skills/opencode/delegation/references/pbt-patterns.md +172 -0
  401. package/skills/opencode/delegation/references/pr-fixes-mode.md +155 -0
  402. package/skills/opencode/delegation/references/rationalization-refutation.md +15 -0
  403. package/skills/opencode/delegation/references/state-management.md +84 -0
  404. package/skills/opencode/delegation/references/testing-patterns.md +146 -0
  405. package/skills/opencode/delegation/references/troubleshooting.md +109 -0
  406. package/skills/opencode/delegation/references/worked-example.md +104 -0
  407. package/skills/opencode/delegation/references/workflow-steps.md +131 -0
  408. package/skills/opencode/delegation/references/worktree-enforcement.md +71 -0
  409. package/skills/opencode/dogfood/SKILL.md +235 -0
  410. package/skills/opencode/dogfood/references/report-template.md +109 -0
  411. package/skills/opencode/dogfood/references/root-cause-patterns.md +227 -0
  412. package/skills/opencode/git-worktrees/SKILL.md +193 -0
  413. package/skills/opencode/git-worktrees/references/commands-reference.md +78 -0
  414. package/skills/opencode/implementation-planning/SKILL.md +289 -0
  415. package/skills/opencode/implementation-planning/references/plan-document-template.md +42 -0
  416. package/skills/opencode/implementation-planning/references/rationalization-refutation.md +13 -0
  417. package/skills/opencode/implementation-planning/references/spec-tracing-guide.md +51 -0
  418. package/skills/opencode/implementation-planning/references/task-template.md +63 -0
  419. package/skills/opencode/implementation-planning/references/testing-strategy-guide.md +109 -0
  420. package/skills/opencode/implementation-planning/references/worked-example.md +76 -0
  421. package/skills/opencode/oneshot-workflow/SKILL.md +468 -0
  422. package/skills/opencode/oneshot-workflow/references/choice-state.md +65 -0
  423. package/skills/opencode/prune-workflows/SKILL.md +290 -0
  424. package/skills/opencode/prune-workflows/references/safeguards.md +74 -0
  425. package/skills/opencode/quality-review/SKILL.md +371 -0
  426. package/skills/opencode/quality-review/references/auto-transition.md +47 -0
  427. package/skills/opencode/quality-review/references/axiom-integration.md +135 -0
  428. package/skills/opencode/quality-review/references/code-quality-checklist.md +171 -0
  429. package/skills/opencode/quality-review/references/convergence-and-verdict.md +48 -0
  430. package/skills/opencode/quality-review/references/gate-execution.md +60 -0
  431. package/skills/opencode/quality-review/references/rationalization-refutation.md +13 -0
  432. package/skills/opencode/quality-review/references/review-report-template.md +65 -0
  433. package/skills/opencode/quality-review/references/security-checklist.md +79 -0
  434. package/skills/opencode/quality-review/references/typescript-standards.md +24 -0
  435. package/skills/opencode/refactor/SKILL.md +196 -0
  436. package/skills/opencode/refactor/references/brief-template.md +81 -0
  437. package/skills/opencode/refactor/references/doc-update-checklist.md +113 -0
  438. package/skills/opencode/refactor/references/explore-checklist.md +79 -0
  439. package/skills/opencode/refactor/references/overhaul-track.md +194 -0
  440. package/skills/opencode/refactor/references/phases/auto-chain.md +267 -0
  441. package/skills/opencode/refactor/references/phases/brief.md +176 -0
  442. package/skills/opencode/refactor/references/phases/explore.md +132 -0
  443. package/skills/opencode/refactor/references/phases/overhaul-delegate.md +136 -0
  444. package/skills/opencode/refactor/references/phases/overhaul-plan.md +312 -0
  445. package/skills/opencode/refactor/references/phases/overhaul-review.md +304 -0
  446. package/skills/opencode/refactor/references/phases/polish-implement.md +347 -0
  447. package/skills/opencode/refactor/references/phases/polish-validate.md +218 -0
  448. package/skills/opencode/refactor/references/phases/update-docs.md +234 -0
  449. package/skills/opencode/refactor/references/polish-track.md +152 -0
  450. package/skills/opencode/shepherd/SKILL.md +251 -0
  451. package/skills/opencode/shepherd/references/assess-checklist.md +170 -0
  452. package/skills/opencode/shepherd/references/escalation-criteria.md +53 -0
  453. package/skills/opencode/shepherd/references/fix-strategies.md +289 -0
  454. package/skills/opencode/shepherd/references/gate-event-emission.md +47 -0
  455. package/skills/opencode/shepherd/references/shepherd-event-schemas.md +56 -0
  456. package/skills/opencode/spec-review/SKILL.md +294 -0
  457. package/skills/opencode/spec-review/references/rationalization-refutation.md +13 -0
  458. package/skills/opencode/spec-review/references/review-checklist.md +79 -0
  459. package/skills/opencode/spec-review/references/worked-example.md +72 -0
  460. package/skills/opencode/synthesis/SKILL.md +217 -0
  461. package/skills/opencode/synthesis/references/github-native-stacking.md +135 -0
  462. package/skills/opencode/synthesis/references/merge-ordering.md +50 -0
  463. package/skills/opencode/synthesis/references/pr-descriptions.md +87 -0
  464. package/skills/opencode/synthesis/references/synthesis-steps.md +145 -0
  465. package/skills/opencode/synthesis/references/troubleshooting.md +115 -0
  466. package/skills/opencode/workflow-state/SKILL.md +254 -0
  467. package/skills/opencode/workflow-state/references/mcp-tool-reference.md +89 -0
  468. package/skills/opencode/workflow-state/references/phase-transitions.md +206 -0
  469. package/dist/node_modules/electron/index.js +0 -1
  470. package/dist/node_modules/electron/package.json +0 -1
  471. package/dist/node_modules/playwright-core/index.js +0 -1
  472. package/dist/node_modules/playwright-core/package.json +0 -1
  473. package/skills/shared/prompts/context-reading.md +0 -66
  474. package/skills/shared/prompts/report-format.md +0 -54
  475. package/skills/shared/prompts/tdd-requirements.md +0 -39
  476. package/skills/shared/references/coding-standards.md +0 -46
  477. package/skills/shared/references/mcp-tool-guidance.md +0 -39
  478. package/skills/shared/references/skill-path-resolution.md +0 -10
  479. package/skills/shared/references/tdd.md +0 -58
  480. package/skills/shared/references/telemetry-awareness.md +0 -9
  481. /package/skills/{brainstorming → claude/brainstorming}/SKILL.md +0 -0
  482. /package/skills/{brainstorming → claude/brainstorming}/references/design-template.md +0 -0
  483. /package/skills/{brainstorming → claude/brainstorming}/references/worked-example.md +0 -0
  484. /package/skills/{cleanup → claude/cleanup}/references/merge-verification.md +0 -0
  485. /package/skills/{debug → claude/debug}/SKILL.md +0 -0
  486. /package/skills/{debug → claude/debug}/references/hotfix-track.md +0 -0
  487. /package/skills/{debug → claude/debug}/references/investigation-checklist.md +0 -0
  488. /package/skills/{debug → claude/debug}/references/rca-template.md +0 -0
  489. /package/skills/{debug → claude/debug}/references/state-schema.md +0 -0
  490. /package/skills/{debug → claude/debug}/references/thorough-track.md +0 -0
  491. /package/skills/{debug → claude/debug}/references/triage-questions.md +0 -0
  492. /package/skills/{debug → claude/debug}/references/troubleshooting.md +0 -0
  493. /package/skills/{delegation → claude/delegation}/references/adaptive-orchestration.md +0 -0
  494. /package/skills/{delegation → claude/delegation}/references/agent-teams-saga.md +0 -0
  495. /package/skills/{delegation → claude/delegation}/references/fix-mode.md +0 -0
  496. /package/skills/{delegation → claude/delegation}/references/fixer-prompt.md +0 -0
  497. /package/skills/{delegation → claude/delegation}/references/implementer-prompt.md +0 -0
  498. /package/skills/{delegation → claude/delegation}/references/parallel-strategy.md +0 -0
  499. /package/skills/{delegation → claude/delegation}/references/pbt-patterns.md +0 -0
  500. /package/skills/{delegation → claude/delegation}/references/pr-fixes-mode.md +0 -0
  501. /package/skills/{delegation → claude/delegation}/references/rationalization-refutation.md +0 -0
  502. /package/skills/{delegation → claude/delegation}/references/state-management.md +0 -0
  503. /package/skills/{delegation → claude/delegation}/references/testing-patterns.md +0 -0
  504. /package/skills/{delegation → claude/delegation}/references/worked-example.md +0 -0
  505. /package/skills/{delegation → claude/delegation}/references/workflow-steps.md +0 -0
  506. /package/skills/{delegation → claude/delegation}/references/worktree-enforcement.md +0 -0
  507. /package/skills/{git-worktrees → claude/git-worktrees}/SKILL.md +0 -0
  508. /package/skills/{git-worktrees → claude/git-worktrees}/references/commands-reference.md +0 -0
  509. /package/skills/{implementation-planning → claude/implementation-planning}/SKILL.md +0 -0
  510. /package/skills/{implementation-planning → claude/implementation-planning}/references/plan-document-template.md +0 -0
  511. /package/skills/{implementation-planning → claude/implementation-planning}/references/rationalization-refutation.md +0 -0
  512. /package/skills/{implementation-planning → claude/implementation-planning}/references/spec-tracing-guide.md +0 -0
  513. /package/skills/{implementation-planning → claude/implementation-planning}/references/task-template.md +0 -0
  514. /package/skills/{implementation-planning → claude/implementation-planning}/references/testing-strategy-guide.md +0 -0
  515. /package/skills/{implementation-planning → claude/implementation-planning}/references/worked-example.md +0 -0
  516. /package/skills/{quality-review → claude/quality-review}/references/auto-transition.md +0 -0
  517. /package/skills/{quality-review → claude/quality-review}/references/axiom-integration.md +0 -0
  518. /package/skills/{quality-review → claude/quality-review}/references/code-quality-checklist.md +0 -0
  519. /package/skills/{quality-review → claude/quality-review}/references/convergence-and-verdict.md +0 -0
  520. /package/skills/{quality-review → claude/quality-review}/references/gate-execution.md +0 -0
  521. /package/skills/{quality-review → claude/quality-review}/references/rationalization-refutation.md +0 -0
  522. /package/skills/{quality-review → claude/quality-review}/references/review-report-template.md +0 -0
  523. /package/skills/{quality-review → claude/quality-review}/references/security-checklist.md +0 -0
  524. /package/skills/{quality-review → claude/quality-review}/references/typescript-standards.md +0 -0
  525. /package/skills/{refactor → claude/refactor}/SKILL.md +0 -0
  526. /package/skills/{refactor → claude/refactor}/references/brief-template.md +0 -0
  527. /package/skills/{refactor → claude/refactor}/references/doc-update-checklist.md +0 -0
  528. /package/skills/{refactor → claude/refactor}/references/explore-checklist.md +0 -0
  529. /package/skills/{refactor → claude/refactor}/references/overhaul-track.md +0 -0
  530. /package/skills/{refactor → claude/refactor/references}/phases/auto-chain.md +0 -0
  531. /package/skills/{refactor → claude/refactor/references}/phases/brief.md +0 -0
  532. /package/skills/{refactor → claude/refactor/references}/phases/explore.md +0 -0
  533. /package/skills/{refactor → claude/refactor/references}/phases/overhaul-delegate.md +0 -0
  534. /package/skills/{refactor → claude/refactor/references}/phases/overhaul-plan.md +0 -0
  535. /package/skills/{refactor → claude/refactor/references}/phases/overhaul-review.md +0 -0
  536. /package/skills/{refactor → claude/refactor/references}/phases/polish-implement.md +0 -0
  537. /package/skills/{refactor → claude/refactor/references}/phases/polish-validate.md +0 -0
  538. /package/skills/{refactor → claude/refactor/references}/phases/update-docs.md +0 -0
  539. /package/skills/{refactor → claude/refactor}/references/polish-track.md +0 -0
  540. /package/skills/{shepherd → claude/shepherd}/references/assess-checklist.md +0 -0
  541. /package/skills/{shepherd → claude/shepherd}/references/escalation-criteria.md +0 -0
  542. /package/skills/{shepherd → claude/shepherd}/references/fix-strategies.md +0 -0
  543. /package/skills/{shepherd → claude/shepherd}/references/gate-event-emission.md +0 -0
  544. /package/skills/{shepherd → claude/shepherd}/references/shepherd-event-schemas.md +0 -0
  545. /package/skills/{spec-review → claude/spec-review}/references/rationalization-refutation.md +0 -0
  546. /package/skills/{spec-review → claude/spec-review}/references/review-checklist.md +0 -0
  547. /package/skills/{spec-review → claude/spec-review}/references/worked-example.md +0 -0
  548. /package/skills/{synthesis → claude/synthesis}/references/github-native-stacking.md +0 -0
  549. /package/skills/{synthesis → claude/synthesis}/references/merge-ordering.md +0 -0
  550. /package/skills/{synthesis → claude/synthesis}/references/pr-descriptions.md +0 -0
  551. /package/skills/{synthesis → claude/synthesis}/references/synthesis-steps.md +0 -0
  552. /package/skills/{synthesis → claude/synthesis}/references/troubleshooting.md +0 -0
  553. /package/skills/{workflow-state → claude/workflow-state}/references/mcp-tool-reference.md +0 -0
@@ -0,0 +1,155 @@
1
+ # Triage Questions
2
+
3
+ Use these questions during the triage phase to gather context and select the appropriate track.
4
+
5
+ ## Core Questions
6
+
7
+ ### 1. What is the symptom?
8
+
9
+ Capture the observable problem:
10
+ - Error messages (exact text)
11
+ - Unexpected behavior
12
+ - Performance degradation
13
+ - Data corruption/loss
14
+
15
+ **Prompts:**
16
+ - "What error message do you see?"
17
+ - "What behavior are you observing?"
18
+ - "What did you expect to happen instead?"
19
+
20
+ ### 2. Can it be reproduced?
21
+
22
+ Determine reproducibility:
23
+ - **Always** - Happens every time
24
+ - **Sometimes** - Intermittent, conditions unclear
25
+ - **Rarely** - Happened once, hard to trigger
26
+ - **Unknown** - Haven't tried yet
27
+
28
+ **Prompts:**
29
+ - "Can you trigger this consistently?"
30
+ - "What steps reproduce the issue?"
31
+ - "Does it happen in all environments?"
32
+
33
+ ### 3. What is the impact/urgency?
34
+
35
+ Assess business impact to determine urgency level:
36
+
37
+ | Level | Criteria | Examples |
38
+ |-------|----------|----------|
39
+ | **P0** | Production down, revenue impact, data loss | Site unreachable, payments failing, user data corrupted |
40
+ | **P1** | Major feature broken, significant user impact | Login fails for subset, core workflow blocked |
41
+ | **P2** | Minor issue, workaround exists, cosmetic | UI glitch, slow performance, edge case failure |
42
+
43
+ **Prompts:**
44
+ - "How many users are affected?"
45
+ - "Is there a workaround?"
46
+ - "Is this blocking production use?"
47
+
48
+ ### 4. What area of code is likely affected?
49
+
50
+ Narrow down the investigation scope:
51
+ - Component/module name
52
+ - File paths if known
53
+ - Recent changes that might relate
54
+ - Related features
55
+
56
+ **Prompts:**
57
+ - "Which feature/page does this affect?"
58
+ - "Were there recent deployments?"
59
+ - "Has this worked before? When did it break?"
60
+
61
+ ## Track Selection Logic
62
+
63
+ Based on answers, select the appropriate track:
64
+
65
+ ```
66
+ ┌─────────────┐
67
+ │ P0 / P1 │
68
+ │ severity? │
69
+ └──────┬──────┘
70
+
71
+ ┌────────────┼────────────┐
72
+ │ │ │
73
+ P0 + Known P0 + Unknown P1 or P2
74
+ Root Cause Root Cause
75
+ │ │ │
76
+ ▼ ▼ ▼
77
+ ┌─────────┐ ┌─────────┐ ┌─────────┐
78
+ │ HOTFIX │ │ Attempt │ │THOROUGH │
79
+ │ TRACK │ │ Hotfix │ │ TRACK │
80
+ └─────────┘ │ 15 min │ └─────────┘
81
+ └────┬────┘
82
+
83
+ ┌────┴────┐
84
+ │ Found │
85
+ │ in 15m? │
86
+ └────┬────┘
87
+ Yes │ No
88
+ ┌───┴───┐
89
+ ▼ ▼
90
+ HOTFIX THOROUGH
91
+ TRACK TRACK
92
+ ```
93
+
94
+ ### Hotfix Track Criteria
95
+
96
+ Select hotfix when ALL of these apply:
97
+ - [ ] P0 urgency (production down or revenue impact)
98
+ - [ ] Root cause is known OR likely findable in 15 minutes
99
+ - [ ] Fix is straightforward (code change, config fix, rollback)
100
+ - [ ] User accepts reduced ceremony for speed
101
+
102
+ ### Thorough Track Criteria
103
+
104
+ Select thorough when ANY of these apply:
105
+ - [ ] P1/P2 urgency (not production-critical)
106
+ - [ ] Root cause is unknown and complex
107
+ - [ ] Fix requires design decisions
108
+ - [ ] Issue is recurring or indicates systemic problem
109
+ - [ ] User wants full documentation for learning
110
+
111
+ ### Escalation Criteria
112
+
113
+ Escalate to `/exarchos:ideate` when:
114
+ - [ ] Fix requires architectural changes
115
+ - [ ] Multiple systems/teams need coordination
116
+ - [ ] Issue exposes design flaw requiring redesign
117
+ - [ ] Scope exceeds bug fix (becomes feature work)
118
+
119
+ ## Triage Output Format
120
+
121
+ After gathering answers, record in state file:
122
+
123
+ ```json
124
+ {
125
+ "triage": {
126
+ "symptom": "Login button returns 500 error on click",
127
+ "reproduction": "Always reproducible: Click login with valid credentials",
128
+ "affectedArea": "Authentication service, src/auth/login.ts",
129
+ "impact": "All users cannot log in"
130
+ },
131
+ "urgency": {
132
+ "level": "P0",
133
+ "justification": "Production login completely broken, 100% of users affected"
134
+ },
135
+ "track": "hotfix"
136
+ }
137
+ ```
138
+
139
+ ## Quick Triage Script
140
+
141
+ For fast P0 situations, use this abbreviated flow:
142
+
143
+ 1. **Symptom?** [one sentence]
144
+ 2. **Repro?** [yes/no/unknown]
145
+ 3. **P0?** [yes → hotfix, no → thorough]
146
+ 4. **Affected file?** [path or "unknown"]
147
+
148
+ Example:
149
+ ```
150
+ Symptom: Login 500 error
151
+ Repro: Yes
152
+ P0: Yes
153
+ File: src/auth/login.ts
154
+ → HOTFIX TRACK
155
+ ```
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: troubleshooting
3
+ ---
4
+
5
+ # Troubleshooting
6
+
7
+ ## MCP Tool Call Failed
8
+ If an Exarchos MCP tool returns an error:
9
+ 1. Check the error message -- it usually contains specific guidance
10
+ 2. Verify the workflow state exists: call `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "get"` and the featureId
11
+ 3. If "version mismatch": another process updated state -- retry the operation
12
+ 4. If state is corrupted: call `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "cancel"` and `dryRun: true`
13
+
14
+ ## State Desync
15
+ If workflow state doesn't match git reality:
16
+ 1. The SessionStart hook runs reconciliation automatically on resume
17
+ 2. If manual check needed: compare state file with `git log` and branch state
18
+ 3. Update state via `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "set"` to match git truth
19
+
20
+ ## Investigation Timeout (Hotfix Track)
21
+ If 15-minute investigation timer expires without root cause:
22
+ 1. The workflow auto-switches to thorough track
23
+ 2. All investigation findings are preserved in state
24
+ 3. Continue investigation without time constraint
25
+
26
+ ## Track Switching
27
+ If hotfix track reveals complexity requiring thorough investigation:
28
+ 1. Call `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "set"` to update track to "thorough"
29
+ 2. Previous investigation findings carry over
30
+ 3. RCA phase begins after investigation completes
31
+
32
+ ## Exarchos Integration
33
+
34
+ When Exarchos MCP tools are available, emit events throughout the debug workflow:
35
+
36
+ 1. **At workflow start (triage):** `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` -> `workflow.started` with workflowType "debug", urgency
37
+ 2. **On track selection:** `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` -> `phase.transitioned` with selected track (hotfix/thorough)
38
+ 3. **On each phase transition:** `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` -> `phase.transitioned` from->to
39
+ 4. **Thorough track stacking:** Handled by `/exarchos:synthesize` (PR creation via `gh pr create`)
40
+ 5. **Hotfix track commit:** Single `git commit -m "fix: <description>"` + `git push` -- no multi-branch stacking needed
41
+ 6. **On complete:** `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` -> `phase.transitioned` to "completed"
42
+
43
+ ## Performance Notes
44
+
45
+ - Complete each step fully before advancing -- quality over speed
46
+ - Do not skip validation checks even when the change appears trivial
47
+ - Complete each investigation step before concluding root cause. Do not jump to fix without evidence.
@@ -0,0 +1,353 @@
1
+ ---
2
+ name: delegation
3
+ description: "Dispatch implementation tasks to agent teammates in git worktrees. Triggers: 'delegate', 'dispatch tasks', 'assign work', or /delegate. Spawns teammates, creates worktrees, monitors progress. Supports --fixes flag. Do NOT use for single-file changes or polish-track refactors."
4
+ metadata:
5
+ author: exarchos
6
+ version: 2.0.0
7
+ mcp-server: exarchos
8
+ category: workflow
9
+ phase-affinity: delegate
10
+ ---
11
+
12
+ # Delegation Skill
13
+
14
+ Dispatch implementation tasks to Claude Code subagents with proper context, worktree isolation, and TDD requirements. This skill follows a three-step flow: **Prepare, Dispatch, Monitor.**
15
+
16
+ ## Triggers
17
+
18
+ Activate this skill when:
19
+ - User runs `delegate` command
20
+ - Implementation plan is ready with extractable tasks
21
+ - User wants to parallelize work across subagents
22
+
23
+ **Exception — oneshot workflows skip delegation entirely.** The oneshot playbook runs an in-session TDD loop in the main agent's context, with no subagent dispatch or review phase. If `workflowType === "oneshot"`, do not call this skill — see `@skills/oneshot-workflow/SKILL.md` for the lightweight path.
24
+
25
+ ## Core Principles
26
+
27
+ ### Fresh Context Per Task (MANDATORY)
28
+
29
+ Each subagent MUST start with a clean, self-contained context. As established in the Anthropic best practices for multi-agent coordination:
30
+
31
+ - **No shared state assumptions.** Every subagent prompt must contain the full task description, file paths, TDD requirements, and acceptance criteria. Never say "see the plan" or "as discussed earlier."
32
+ - **No cross-agent references.** Subagent A must not depend on output from Subagent B unless explicitly sequenced with a dependency edge in the plan.
33
+ - **Isolated worktrees.** Each subagent operates in its own `git worktree`. Parallel agents in the same worktree will corrupt branch state.
34
+
35
+ Rationalization patterns that violate this principle are catalogued in `references/rationalization-refutation.md`.
36
+
37
+ ### Delegation Modes
38
+
39
+ | Mode | Mechanism | Best for |
40
+ |------|-----------|----------|
41
+ | `subagent` (default) | `Task` with `run_in_background` | 1-3 independent tasks, CI, headless |
42
+ | `agent-team` | `Task` with `team_name` | 3+ interdependent tasks, interactive sessions |
43
+
44
+ **Auto-detection:** tmux + `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` present means `agent-team`. Otherwise `subagent`. Override with `delegate --mode subagent|agent-team`.
45
+
46
+ **CRITICAL:** Always specify `model: "opus"` for coding tasks (when not using native agent definitions).
47
+
48
+ ### Pre-Dispatch Schema Discovery
49
+
50
+ Before dispatching, query decision runbooks to classify the work and select the right strategy:
51
+
52
+ 1. **Task complexity:** `exarchos_orchestrate({ action: "runbook", id: "task-classification" })` to get the cognitive complexity classification tree. Low-complexity tasks can use the scaffolder agent spec for faster execution.
53
+ 2. **Dispatch strategy:** `exarchos_orchestrate({ action: "runbook", id: "dispatch-decision" })` for dispatch strategy (parallel vs sequential, team sizing, isolation mode).
54
+
55
+ ---
56
+
57
+ ## Step 1: Prepare
58
+
59
+ Use the `prepare_delegation` composite action to validate readiness in a single call. This replaces manual script invocations and individual checks.
60
+
61
+ ```typescript
62
+ exarchos_orchestrate({
63
+ action: "prepare_delegation",
64
+ featureId: "<featureId>",
65
+ tasks: [{ id: "task-001", title: "...", modules: [...] }, ...]
66
+ })
67
+ ```
68
+
69
+ The composite action performs:
70
+ 1. **Worktree creation** — creates `.worktrees/task-<id>` with `git worktree add`, runs `npm install`
71
+ 2. **State validation** — verifies workflow state is in `delegate` phase, plan exists, plan approved
72
+ 3. **Quality signal assembly** — queries `code_quality` view; if `gatePassRate < 0.80`, returns quality hints to embed in prompts. Emits `gate.executed('plan-coverage')` on success (no pre-query needed)
73
+ 4. **Benchmark detection** — sets `verification.hasBenchmarks` if any task has benchmark criteria
74
+ 5. **Readiness verdict** — returns `{ ready: true, worktrees: [...], qualityHints: [...] }` or `{ ready: false, reason: "..." }`
75
+
76
+ **If `ready: false`:** Stop. Report the reason to the user. Do not proceed.
77
+
78
+ **If `ready: true`:** Extract the `worktrees` paths and `qualityHints` for prompt construction.
79
+
80
+ ### Task Extraction
81
+
82
+ From the implementation plan, extract for each task:
83
+ - Full task description (paste inline; never reference external files)
84
+ - Files to create/modify with absolute worktree paths
85
+ - Test file paths and expected test names
86
+ - Dependencies on other tasks (for sequencing)
87
+ - Property-based testing flag (`testingStrategy.propertyTests`)
88
+
89
+ For a complete worked example of this flow, see `references/worked-example.md`.
90
+
91
+ ---
92
+
93
+ ## Step 2: Dispatch
94
+
95
+ Build subagent prompts using `references/implementer-prompt.md` as the template. Each prompt MUST include the full task context — this is the fresh-context principle in action.
96
+
97
+ ### Prompt Construction
98
+
99
+ **Claude Code (native agent definitions):**
100
+
101
+ The `exarchos-implementer` agent spec already includes the system prompt, model, isolation, skills, hooks, and memory. The dispatch prompt should contain ONLY task-specific context:
102
+ 1. Full task description (requirements, acceptance criteria)
103
+ 2. Working directory (worktree path from Step 1)
104
+ 3. File paths to create/modify and test file paths
105
+ 4. Quality hints (if any)
106
+ 5. PBT flag when `propertyTests: true`
107
+
108
+ **Cross-platform (full prompt template):**
109
+
110
+ For each task:
111
+ 1. Fill the implementer prompt template with task-specific details
112
+ 2. Set the `Working Directory` to the worktree path from Step 1
113
+ 3. Include quality hints (if any) in the Quality Signals section
114
+ 4. Include PBT section from `references/pbt-patterns.md` when `propertyTests: true`
115
+ 5. Include testing patterns from `references/testing-patterns.md`
116
+
117
+ ### Decision Runbooks
118
+
119
+ For dispatch strategy decisions, query the decision runbook:
120
+ `exarchos_orchestrate({ action: "runbook", id: "dispatch-decision" })`
121
+
122
+ This runbook provides structured criteria for parallel vs sequential dispatch, team sizing, and failure escalation.
123
+
124
+ ### Parallel Dispatch
125
+
126
+ Dispatch all independent tasks using the runtime's native spawn primitive. On runtimes with subagent support, fan out in a **single message** so the dispatches run in parallel. On runtimes without a subagent primitive, execute each task sequentially against its prepared worktree and emit one operator-visible warning per batch so users know they are not getting parallelism.
127
+
128
+ ```typescript
129
+ spawn_agent({
130
+ agent_type: "default",
131
+ message: "Implement task-001: [title]\n\nTask-specific context: requirements, file paths, acceptance criteria"
132
+ })
133
+
134
+ ```
135
+
136
+ > **Note:** On Claude Code, the `exarchos-implementer` agent definition already contains the system prompt, model, isolation, skills, hooks, and memory — the dispatch prompt should carry ONLY task-specific context. On runtimes without native agent definitions, include the full implementer prompt template from `references/implementer-prompt.md` in the `prompt` field so the spawned agent has a self-contained context.
137
+
138
+ For parallel grouping strategy and model selection, see `references/parallel-strategy.md`.
139
+
140
+ ### Agent Teams Dispatch
141
+
142
+ When using `--mode agent-team`, follow the 6-step saga in `references/agent-teams-saga.md`. The saga requires event-first execution: emit event, then execute side effect at every step.
143
+
144
+ Event emission contract for agent teams: see `references/agent-teams-saga.md` for full payload shapes and compensation protocol.
145
+
146
+ ### Event Emission Contract (REQUIRED)
147
+
148
+ The delegate phase requires these events (checked by `check-event-emissions`):
149
+
150
+ | Event | When | Emitted By |
151
+ |-------|------|------------|
152
+ | `team.spawned` | After team creation, before dispatch | Orchestrator |
153
+ | `team.task.planned` | For each task in the plan (use `batch_append`) | Orchestrator |
154
+ | `team.teammate.dispatched` | After each subagent is spawned | Orchestrator |
155
+ | `task.progressed` | After each TDD phase (red/green/refactor) | Subagent |
156
+ | `team.disbanded` | After all subagents complete | Orchestrator |
157
+
158
+ See `references/agent-teams-saga.md` for full event schemas and emission order.
159
+
160
+ > **Note:** `task.progressed` events are emitted by subagents during TDD execution, not by the orchestrator. The orchestrator only emits team lifecycle events.
161
+
162
+ ---
163
+
164
+ ## Step 3: Monitor and Collect
165
+
166
+ ### Subagent Monitoring
167
+
168
+ Poll background tasks and collect results:
169
+
170
+ ```typescript
171
+ TaskOutput({ task_id: "<id>", block: true })
172
+ ```
173
+
174
+ After each subagent reports completion:
175
+
176
+ > **Runbook:** For each completed task, execute the task-completion runbook:
177
+ > `exarchos_orchestrate({ action: "runbook", id: "task-completion" })`
178
+ > Execute the returned steps in order. Stop on gate failure.
179
+ > If the runbook action is unavailable, use `describe` to retrieve gate schemas and run manually:
180
+ > `exarchos_orchestrate({ action: "describe", actions: ["check_tdd_compliance", "check_static_analysis", "task_complete"] })`
181
+
182
+ 1. **Extract provenance from subagent report** — parse the subagent's completion output and extract structured provenance fields (`implements`, `tests`, `files`). These fields are reported by the subagent following the Provenance Reporting section of the implementer prompt.
183
+
184
+ 2. **Verify worktree state** — confirm each worktree has clean `git status` and passing tests
185
+
186
+ 3. **Run blocking gates** — the `task-completion` runbook (referenced above) defines the exact gate sequence (TDD compliance, static analysis, then task_complete). On any gate failure, keep the task in-progress and report findings. All gate handlers auto-emit `gate.executed` events, so manual `exarchos_event` calls are not needed.
187
+
188
+ 5. **Pass provenance in task completion** — when marking a task complete, pass the extracted provenance fields in the `result` parameter so they flow into the `task.completed` event:
189
+
190
+ ```typescript
191
+ exarchos_orchestrate({
192
+ action: "task_complete",
193
+ taskId: "<taskId>",
194
+ streamId: "<featureId>",
195
+ result: {
196
+ summary: "<task summary>",
197
+ implements: ["DR-1", "DR-3"],
198
+ tests: [{ name: "testName", file: "path/to/test.ts" }],
199
+ files: ["path/to/impl.ts", "path/to/test.ts"]
200
+ }
201
+ })
202
+ ```
203
+
204
+ 6. **Update workflow state** — set each passing `tasks[].status` to `"complete"` via `exarchos_workflow set`
205
+ 7. **Delegation completion gate (D4, advisory)** — after ALL tasks pass, run an operational resilience check on the full branch diff before transitioning to review:
206
+
207
+ ```typescript
208
+ exarchos_orchestrate({
209
+ action: "check_operational_resilience",
210
+ featureId: "<featureId>",
211
+ repoRoot: ".",
212
+ baseBranch: "main"
213
+ })
214
+ ```
215
+
216
+ This is advisory — findings are recorded for the convergence view but do not block the delegation→review transition. Include findings in the delegation summary for review-phase attention.
217
+
218
+ 8. **Schema sync** — if any task modified API files (`*Endpoints.cs`, `Models/*.cs`), run `npm run sync:schemas`
219
+
220
+ ### Agent Teams Monitoring
221
+
222
+ - Teammates visible in tmux split panes
223
+ - `TeammateIdle` hook auto-runs quality gates and emits completion/failure events
224
+ - Orchestrator monitors via `exarchos_view delegation_timeline` for bottleneck detection
225
+ - See `references/agent-teams-saga.md` for disbanding and reconciliation
226
+
227
+ ### Failure Recovery
228
+
229
+ When a task fails:
230
+ 1. Read the failure output from `TaskOutput`
231
+ 2. Diagnose root cause — do NOT trust the implementer's self-assessment (see R3 adversarial posture)
232
+ 3. Fix the task using the resume-aware fixer flow below
233
+ 4. Run the `task-fix` runbook gate chain after the fix completes
234
+
235
+ For the full recovery flow with a concrete example, see `references/worked-example.md`.
236
+
237
+ ### Fix Failed Tasks
238
+
239
+ Dispatch a fix agent with the full failure context and the original task description. On runtimes that support session resume (e.g. Claude Code with an `agentId` in workflow state), prefer resuming the original agent so it retains its implementer context; otherwise dispatch a fresh fixer agent using the runtime's native spawn primitive.
240
+
241
+ ```typescript
242
+ spawn_agent({
243
+ agent_type: "default",
244
+ message: "Fix failed task-001\n\nYour implementation failed. [failure context from test output]. Apply adversarial verification: do NOT trust your previous self-assessment, re-read actual test output, identify root cause not symptoms. [Original task context]."
245
+ })
246
+
247
+ ```
248
+
249
+ After fix completes, run the `task-fix` runbook gate chain:
250
+ `exarchos_orchestrate({ action: "runbook", id: "task-fix" })`
251
+ If runbook unavailable, use `describe` to retrieve gate schemas: `exarchos_orchestrate({ action: "describe", actions: ["check_tdd_compliance", "check_static_analysis", "task_complete"] })`
252
+
253
+ ---
254
+
255
+ ## Fix Mode (--fixes)
256
+
257
+ Handles review failures instead of initial implementation. Uses `references/fixer-prompt.md` template with adversarial verification posture, dispatches fix tasks per issue, then re-invokes review to re-integrate fixes.
258
+
259
+ **Arguments:** `--fixes <state-file-path>` — state JSON containing review results in `.reviews.<taskId>.specReview` or `.reviews.<taskId>.qualityReview`.
260
+
261
+ For detailed fix-mode process, see `references/fix-mode.md`. For PR feedback workflows (`--pr-fixes`), see `references/pr-fixes-mode.md`.
262
+
263
+ ---
264
+
265
+ ## Context Compaction Recovery
266
+
267
+ If context compaction occurs during delegation:
268
+ 1. Query workflow state: `exarchos_workflow get` with `fields: ["tasks"]`
269
+ 2. Check active worktrees: `ls .worktrees/` and verify branch state
270
+ 3. Reconcile: `exarchos_workflow reconcile` replays the event stream and patches stale task state (CAS-protected)
271
+ 4. Do NOT re-create branches or re-dispatch agents until confirmed lost
272
+
273
+ ### Worktree State Schema
274
+
275
+ Worktree entries are stored as `worktrees["<wt-id>"]` in workflow state. Each entry requires:
276
+
277
+ | Field | Type | Required | Notes |
278
+ |-------|------|----------|-------|
279
+ | `branch` | string | Yes | Git branch name |
280
+ | `taskId` | string | Conditional | Single task ID (use for 1-task worktrees) |
281
+ | `tasks` | string[] | Conditional | Multiple task IDs (use for multi-task worktrees) |
282
+ | `status` | `"active"` \| `"merged"` \| `"removed"` | Yes | Worktree lifecycle status |
283
+
284
+ Either `taskId` or `tasks` (non-empty array) is required — at least one must be present.
285
+
286
+ **Single-task example:**
287
+ ```json
288
+ { "branch": "feat/task-001", "taskId": "task-001", "status": "active" }
289
+ ```
290
+
291
+ **Multi-task example:**
292
+ ```json
293
+ { "branch": "feat/integration", "tasks": ["task-001", "task-002"], "status": "active" }
294
+ ```
295
+
296
+ ---
297
+
298
+ ## Phase Transitions and Guards
299
+
300
+ For the full transition table, consult `@skills/workflow-state/references/phase-transitions.md`.
301
+
302
+ **Quick reference:** The `delegate` → `review` transition requires guard `all-tasks-complete` — all `tasks[].status` must be `"complete"` in workflow state.
303
+
304
+ > **Before transitioning to review:** You MUST first update all task statuses to `"complete"` via `exarchos_workflow set` with the tasks array. The phase transition will be rejected by the guard if any task is still pending/in_progress/failed. Update tasks first, then set the phase in a separate call.
305
+
306
+ ### Task Status Values
307
+
308
+ | Status | When to use |
309
+ |--------|------------|
310
+ | `pending` | Task not yet started |
311
+ | `in_progress` | Task actively being worked on |
312
+ | `complete` | Task finished successfully |
313
+ | `failed` | Task encountered an error (requires fix cycle) |
314
+
315
+ ### Schema Discovery
316
+
317
+ Use `exarchos_workflow({ action: "describe", actions: ["set", "init"] })` for
318
+ parameter schemas and `exarchos_workflow({ action: "describe", playbook: "feature" })`
319
+ for phase transitions, guards, and playbook guidance. Use
320
+ `exarchos_orchestrate({ action: "describe", actions: ["check_tdd_compliance", "task_complete"] })`
321
+ for orchestrate action schemas.
322
+
323
+ ## Transition
324
+
325
+ After all tasks complete, **auto-continue immediately** (no user confirmation):
326
+
327
+ 1. Verify all `tasks[].status === "complete"` in workflow state
328
+ 2. Update state: `exarchos_workflow set` with `phase: "review"`
329
+ 3. Invoke: `[Invoke the exarchos:review skill with args: <plan-path>]`
330
+
331
+ This is NOT a human checkpoint — the workflow continues autonomously.
332
+
333
+ ---
334
+
335
+ ## References
336
+
337
+ | Document | Purpose |
338
+ |----------|---------|
339
+ | `references/implementer-prompt.md` | Full prompt template for implementation tasks |
340
+ | `references/fixer-prompt.md` | Fix agent prompt with adversarial verification posture |
341
+ | `references/worked-example.md` | Complete delegation trace with recovery path (R1) |
342
+ | `references/rationalization-refutation.md` | Common rationalizations and counter-arguments (R2) |
343
+ | `references/agent-teams-saga.md` | 6-step agent-team saga with event payloads |
344
+ | `references/parallel-strategy.md` | Parallel grouping and model selection |
345
+ | `references/testing-patterns.md` | Arrange/Act/Assert, naming, mocking conventions |
346
+ | `references/pbt-patterns.md` | Property-based testing patterns |
347
+ | `references/fix-mode.md` | Detailed fix-mode process |
348
+ | `references/pr-fixes-mode.md` | PR feedback fix workflows |
349
+ | `references/state-management.md` | State patterns and benchmark labeling |
350
+ | `references/troubleshooting.md` | Common failure modes and resolutions |
351
+ | `references/adaptive-orchestration.md` | Adaptive team composition |
352
+ | `references/workflow-steps.md` | Cross-platform step-by-step delegation reference |
353
+ | `references/worktree-enforcement.md` | Worktree isolation rules |
@@ -0,0 +1,31 @@
1
+ # Adaptive Orchestration
2
+
3
+ When using Agent Teams mode, the orchestrator can leverage historical data for smarter team composition.
4
+
5
+ ## Pre-Delegation Intelligence
6
+
7
+ Before creating the team, query the TeamPerformanceView for historical teammate metrics:
8
+ - `exarchos_view` with `action: 'team_performance'` -- teammate efficiency, module expertise, quality gate pass rates
9
+ - Use `synthesizeIntelligence()` from SubagentStart hook for historical fix-cycle patterns per module
10
+
11
+ ## Team Composition
12
+
13
+ Informed by historical metrics:
14
+ - **Team sizing:** Use `teamSizing.avgTasksPerTeammate` to determine optimal teammate count
15
+ - **Task assignment:** Match modules to teammates with relevant `moduleExpertise`
16
+ - **Cold start:** When no historical data exists, fall back to plan's parallel groups for sizing
17
+
18
+ ## Guard-Aware Task Graph
19
+
20
+ Before creating the native Claude Code task list:
21
+ 1. Build a dependency graph from plan task `blockedBy` fields
22
+ 2. Identify the critical path through the dependency chain
23
+ 3. Front-load independent tasks for maximum parallelism
24
+ 4. On TeammateIdle, scan the task graph for newly unblocked tasks (tasks whose `blockedBy` dependencies are all completed) so teammates can claim them
25
+
26
+ ## Intelligence Views
27
+
28
+ Two CQRS views provide team analytics:
29
+
30
+ - `exarchos_view` with `action: 'team_performance'` -- Query before delegation for team sizing and module assignment. Returns teammate metrics (tasks completed, avg duration, module expertise, quality gate pass rates) and team sizing recommendations.
31
+ - `exarchos_view` with `action: 'delegation_timeline'` -- Query after delegation for retrospective analysis. Returns task timeline with bottleneck detection (longest task, blocking dependencies).