@lvlup-sw/exarchos 2.4.3 → 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 (605) hide show
  1. package/.claude-plugin/plugin.json +7 -2
  2. package/AGENTS.md +2 -2
  3. package/README.md +91 -57
  4. package/agents/.gitkeep +0 -0
  5. package/agents/fixer.md +62 -0
  6. package/agents/implementer.md +68 -0
  7. package/agents/reviewer.md +50 -0
  8. package/commands/dogfood.md +31 -0
  9. package/commands/ideate.md +1 -1
  10. package/commands/oneshot.md +178 -0
  11. package/commands/plan.md +1 -1
  12. package/commands/prune.md +90 -0
  13. package/commands/review.md +58 -0
  14. package/dist/exarchos.js +582 -142
  15. package/hooks/hooks.json +8 -0
  16. package/package.json +18 -6
  17. package/scripts/sync-versions.sh +31 -22
  18. package/skills/{brainstorming → claude/brainstorming}/SKILL.md +16 -0
  19. package/skills/{brainstorming → claude/brainstorming}/references/design-template.md +9 -0
  20. package/skills/{cleanup → claude/cleanup}/SKILL.md +6 -0
  21. package/skills/{debug → claude/debug}/SKILL.md +41 -0
  22. package/skills/{debug → claude/debug}/references/hotfix-track.md +12 -49
  23. package/skills/{debug → claude/debug}/references/investigation-checklist.md +3 -3
  24. package/skills/{debug → claude/debug}/references/thorough-track.md +12 -42
  25. package/skills/{delegation → claude/delegation}/SKILL.md +128 -40
  26. package/skills/{delegation → claude/delegation}/references/agent-teams-saga.md +4 -1
  27. package/skills/claude/delegation/references/fix-mode.md +118 -0
  28. package/skills/{delegation → claude/delegation}/references/implementer-prompt.md +29 -1
  29. package/skills/{delegation → claude/delegation}/references/parallel-strategy.md +1 -1
  30. package/skills/{delegation → claude/delegation}/references/state-management.md +33 -0
  31. package/skills/{delegation → claude/delegation}/references/troubleshooting.md +2 -2
  32. package/skills/{delegation → claude/delegation}/references/workflow-steps.md +6 -10
  33. package/skills/{delegation → claude/delegation}/references/worktree-enforcement.md +13 -7
  34. package/skills/claude/dogfood/SKILL.md +235 -0
  35. package/skills/claude/dogfood/references/report-template.md +109 -0
  36. package/skills/claude/dogfood/references/root-cause-patterns.md +227 -0
  37. package/skills/{git-worktrees → claude/git-worktrees}/SKILL.md +6 -9
  38. package/skills/{implementation-planning → claude/implementation-planning}/SKILL.md +32 -27
  39. package/skills/claude/implementation-planning/references/task-template.md +63 -0
  40. package/skills/{implementation-planning → claude/implementation-planning}/references/testing-strategy-guide.md +22 -1
  41. package/skills/{implementation-planning → claude/implementation-planning}/references/worked-example.md +2 -2
  42. package/skills/claude/oneshot-workflow/SKILL.md +468 -0
  43. package/skills/claude/oneshot-workflow/references/choice-state.md +65 -0
  44. package/skills/claude/prune-workflows/SKILL.md +290 -0
  45. package/skills/claude/prune-workflows/references/safeguards.md +74 -0
  46. package/skills/{quality-review → claude/quality-review}/SKILL.md +105 -10
  47. package/skills/{quality-review → claude/quality-review}/references/auto-transition.md +1 -1
  48. package/skills/claude/quality-review/references/axiom-integration.md +135 -0
  49. package/skills/{refactor → claude/refactor}/SKILL.md +32 -39
  50. package/skills/{refactor → claude/refactor}/references/doc-update-checklist.md +2 -3
  51. package/skills/{refactor → claude/refactor}/references/explore-checklist.md +4 -6
  52. package/skills/{refactor → claude/refactor}/references/overhaul-track.md +20 -50
  53. package/skills/{refactor → claude/refactor/references}/phases/polish-implement.md +2 -2
  54. package/skills/{refactor → claude/refactor/references}/phases/polish-validate.md +1 -1
  55. package/skills/{refactor → claude/refactor}/references/polish-track.md +18 -46
  56. package/skills/{shepherd → claude/shepherd}/SKILL.md +42 -10
  57. package/skills/{shepherd → claude/shepherd}/references/fix-strategies.md +1 -2
  58. package/skills/claude/shepherd/references/shepherd-event-schemas.md +56 -0
  59. package/skills/{spec-review → claude/spec-review}/SKILL.md +48 -10
  60. package/skills/{spec-review → claude/spec-review}/references/worked-example.md +1 -1
  61. package/skills/{synthesis → claude/synthesis}/SKILL.md +72 -10
  62. package/skills/{synthesis → claude/synthesis}/references/github-native-stacking.md +3 -4
  63. package/skills/{synthesis → claude/synthesis}/references/synthesis-steps.md +11 -13
  64. package/skills/{workflow-state → claude/workflow-state}/SKILL.md +50 -6
  65. package/skills/{workflow-state → claude/workflow-state}/references/mcp-tool-reference.md +5 -5
  66. package/skills/{workflow-state → claude/workflow-state}/references/phase-transitions.md +28 -3
  67. package/skills/codex/brainstorming/SKILL.md +182 -0
  68. package/skills/codex/brainstorming/references/design-template.md +107 -0
  69. package/skills/codex/brainstorming/references/worked-example.md +58 -0
  70. package/skills/codex/cleanup/SKILL.md +169 -0
  71. package/skills/codex/cleanup/references/merge-verification.md +40 -0
  72. package/skills/codex/debug/SKILL.md +247 -0
  73. package/skills/codex/debug/references/hotfix-track.md +105 -0
  74. package/skills/codex/debug/references/investigation-checklist.md +217 -0
  75. package/skills/codex/debug/references/rca-template.md +150 -0
  76. package/skills/codex/debug/references/state-schema.md +294 -0
  77. package/skills/codex/debug/references/thorough-track.md +171 -0
  78. package/skills/codex/debug/references/triage-questions.md +155 -0
  79. package/skills/codex/debug/references/troubleshooting.md +47 -0
  80. package/skills/codex/delegation/SKILL.md +353 -0
  81. package/skills/codex/delegation/references/adaptive-orchestration.md +31 -0
  82. package/skills/codex/delegation/references/agent-teams-saga.md +254 -0
  83. package/skills/codex/delegation/references/fix-mode.md +118 -0
  84. package/skills/codex/delegation/references/fixer-prompt.md +174 -0
  85. package/skills/codex/delegation/references/implementer-prompt.md +401 -0
  86. package/skills/codex/delegation/references/parallel-strategy.md +124 -0
  87. package/skills/codex/delegation/references/pbt-patterns.md +172 -0
  88. package/skills/codex/delegation/references/pr-fixes-mode.md +155 -0
  89. package/skills/codex/delegation/references/rationalization-refutation.md +15 -0
  90. package/skills/codex/delegation/references/state-management.md +84 -0
  91. package/skills/codex/delegation/references/testing-patterns.md +146 -0
  92. package/skills/codex/delegation/references/troubleshooting.md +109 -0
  93. package/skills/codex/delegation/references/worked-example.md +104 -0
  94. package/skills/codex/delegation/references/workflow-steps.md +131 -0
  95. package/skills/codex/delegation/references/worktree-enforcement.md +71 -0
  96. package/skills/codex/dogfood/SKILL.md +235 -0
  97. package/skills/codex/dogfood/references/report-template.md +109 -0
  98. package/skills/codex/dogfood/references/root-cause-patterns.md +227 -0
  99. package/skills/codex/git-worktrees/SKILL.md +193 -0
  100. package/skills/codex/git-worktrees/references/commands-reference.md +78 -0
  101. package/skills/codex/implementation-planning/SKILL.md +289 -0
  102. package/skills/codex/implementation-planning/references/plan-document-template.md +42 -0
  103. package/skills/codex/implementation-planning/references/rationalization-refutation.md +13 -0
  104. package/skills/codex/implementation-planning/references/spec-tracing-guide.md +51 -0
  105. package/skills/codex/implementation-planning/references/task-template.md +63 -0
  106. package/skills/codex/implementation-planning/references/testing-strategy-guide.md +109 -0
  107. package/skills/codex/implementation-planning/references/worked-example.md +76 -0
  108. package/skills/codex/oneshot-workflow/SKILL.md +468 -0
  109. package/skills/codex/oneshot-workflow/references/choice-state.md +65 -0
  110. package/skills/codex/prune-workflows/SKILL.md +290 -0
  111. package/skills/codex/prune-workflows/references/safeguards.md +74 -0
  112. package/skills/codex/quality-review/SKILL.md +371 -0
  113. package/skills/codex/quality-review/references/auto-transition.md +47 -0
  114. package/skills/codex/quality-review/references/axiom-integration.md +135 -0
  115. package/skills/codex/quality-review/references/code-quality-checklist.md +171 -0
  116. package/skills/codex/quality-review/references/convergence-and-verdict.md +48 -0
  117. package/skills/codex/quality-review/references/gate-execution.md +60 -0
  118. package/skills/codex/quality-review/references/rationalization-refutation.md +13 -0
  119. package/skills/codex/quality-review/references/review-report-template.md +65 -0
  120. package/skills/codex/quality-review/references/security-checklist.md +79 -0
  121. package/skills/codex/quality-review/references/typescript-standards.md +24 -0
  122. package/skills/codex/refactor/SKILL.md +196 -0
  123. package/skills/codex/refactor/references/brief-template.md +81 -0
  124. package/skills/codex/refactor/references/doc-update-checklist.md +113 -0
  125. package/skills/codex/refactor/references/explore-checklist.md +79 -0
  126. package/skills/codex/refactor/references/overhaul-track.md +194 -0
  127. package/skills/codex/refactor/references/phases/auto-chain.md +267 -0
  128. package/skills/codex/refactor/references/phases/brief.md +176 -0
  129. package/skills/codex/refactor/references/phases/explore.md +132 -0
  130. package/skills/codex/refactor/references/phases/overhaul-delegate.md +136 -0
  131. package/skills/codex/refactor/references/phases/overhaul-plan.md +312 -0
  132. package/skills/codex/refactor/references/phases/overhaul-review.md +304 -0
  133. package/skills/codex/refactor/references/phases/polish-implement.md +347 -0
  134. package/skills/codex/refactor/references/phases/polish-validate.md +218 -0
  135. package/skills/codex/refactor/references/phases/update-docs.md +234 -0
  136. package/skills/codex/refactor/references/polish-track.md +152 -0
  137. package/skills/codex/shepherd/SKILL.md +251 -0
  138. package/skills/codex/shepherd/references/assess-checklist.md +170 -0
  139. package/skills/codex/shepherd/references/escalation-criteria.md +53 -0
  140. package/skills/codex/shepherd/references/fix-strategies.md +289 -0
  141. package/skills/codex/shepherd/references/gate-event-emission.md +47 -0
  142. package/skills/codex/shepherd/references/shepherd-event-schemas.md +56 -0
  143. package/skills/codex/spec-review/SKILL.md +294 -0
  144. package/skills/codex/spec-review/references/rationalization-refutation.md +13 -0
  145. package/skills/codex/spec-review/references/review-checklist.md +79 -0
  146. package/skills/codex/spec-review/references/worked-example.md +72 -0
  147. package/skills/codex/synthesis/SKILL.md +217 -0
  148. package/skills/codex/synthesis/references/github-native-stacking.md +135 -0
  149. package/skills/codex/synthesis/references/merge-ordering.md +50 -0
  150. package/skills/codex/synthesis/references/pr-descriptions.md +87 -0
  151. package/skills/codex/synthesis/references/synthesis-steps.md +145 -0
  152. package/skills/codex/synthesis/references/troubleshooting.md +115 -0
  153. package/skills/codex/workflow-state/SKILL.md +254 -0
  154. package/skills/codex/workflow-state/references/mcp-tool-reference.md +89 -0
  155. package/skills/codex/workflow-state/references/phase-transitions.md +206 -0
  156. package/skills/copilot/brainstorming/SKILL.md +182 -0
  157. package/skills/copilot/brainstorming/references/design-template.md +107 -0
  158. package/skills/copilot/brainstorming/references/worked-example.md +58 -0
  159. package/skills/copilot/cleanup/SKILL.md +169 -0
  160. package/skills/copilot/cleanup/references/merge-verification.md +40 -0
  161. package/skills/copilot/debug/SKILL.md +247 -0
  162. package/skills/copilot/debug/references/hotfix-track.md +105 -0
  163. package/skills/copilot/debug/references/investigation-checklist.md +217 -0
  164. package/skills/copilot/debug/references/rca-template.md +150 -0
  165. package/skills/copilot/debug/references/state-schema.md +294 -0
  166. package/skills/copilot/debug/references/thorough-track.md +171 -0
  167. package/skills/copilot/debug/references/triage-questions.md +155 -0
  168. package/skills/copilot/debug/references/troubleshooting.md +47 -0
  169. package/skills/copilot/delegation/SKILL.md +345 -0
  170. package/skills/copilot/delegation/references/adaptive-orchestration.md +31 -0
  171. package/skills/copilot/delegation/references/agent-teams-saga.md +254 -0
  172. package/skills/copilot/delegation/references/fix-mode.md +118 -0
  173. package/skills/copilot/delegation/references/fixer-prompt.md +174 -0
  174. package/skills/copilot/delegation/references/implementer-prompt.md +401 -0
  175. package/skills/copilot/delegation/references/parallel-strategy.md +124 -0
  176. package/skills/copilot/delegation/references/pbt-patterns.md +172 -0
  177. package/skills/copilot/delegation/references/pr-fixes-mode.md +155 -0
  178. package/skills/copilot/delegation/references/rationalization-refutation.md +15 -0
  179. package/skills/copilot/delegation/references/state-management.md +84 -0
  180. package/skills/copilot/delegation/references/testing-patterns.md +146 -0
  181. package/skills/copilot/delegation/references/troubleshooting.md +109 -0
  182. package/skills/copilot/delegation/references/worked-example.md +104 -0
  183. package/skills/copilot/delegation/references/workflow-steps.md +131 -0
  184. package/skills/copilot/delegation/references/worktree-enforcement.md +71 -0
  185. package/skills/copilot/dogfood/SKILL.md +235 -0
  186. package/skills/copilot/dogfood/references/report-template.md +109 -0
  187. package/skills/copilot/dogfood/references/root-cause-patterns.md +227 -0
  188. package/skills/copilot/git-worktrees/SKILL.md +193 -0
  189. package/skills/copilot/git-worktrees/references/commands-reference.md +78 -0
  190. package/skills/copilot/implementation-planning/SKILL.md +289 -0
  191. package/skills/copilot/implementation-planning/references/plan-document-template.md +42 -0
  192. package/skills/copilot/implementation-planning/references/rationalization-refutation.md +13 -0
  193. package/skills/copilot/implementation-planning/references/spec-tracing-guide.md +51 -0
  194. package/skills/copilot/implementation-planning/references/task-template.md +63 -0
  195. package/skills/copilot/implementation-planning/references/testing-strategy-guide.md +109 -0
  196. package/skills/copilot/implementation-planning/references/worked-example.md +76 -0
  197. package/skills/copilot/oneshot-workflow/SKILL.md +468 -0
  198. package/skills/copilot/oneshot-workflow/references/choice-state.md +65 -0
  199. package/skills/copilot/prune-workflows/SKILL.md +290 -0
  200. package/skills/copilot/prune-workflows/references/safeguards.md +74 -0
  201. package/skills/copilot/quality-review/SKILL.md +371 -0
  202. package/skills/copilot/quality-review/references/auto-transition.md +47 -0
  203. package/skills/copilot/quality-review/references/axiom-integration.md +135 -0
  204. package/skills/copilot/quality-review/references/code-quality-checklist.md +171 -0
  205. package/skills/copilot/quality-review/references/convergence-and-verdict.md +48 -0
  206. package/skills/copilot/quality-review/references/gate-execution.md +60 -0
  207. package/skills/copilot/quality-review/references/rationalization-refutation.md +13 -0
  208. package/skills/copilot/quality-review/references/review-report-template.md +65 -0
  209. package/skills/copilot/quality-review/references/security-checklist.md +79 -0
  210. package/skills/copilot/quality-review/references/typescript-standards.md +24 -0
  211. package/skills/copilot/refactor/SKILL.md +196 -0
  212. package/skills/copilot/refactor/references/brief-template.md +81 -0
  213. package/skills/copilot/refactor/references/doc-update-checklist.md +113 -0
  214. package/skills/copilot/refactor/references/explore-checklist.md +79 -0
  215. package/skills/copilot/refactor/references/overhaul-track.md +194 -0
  216. package/skills/copilot/refactor/references/phases/auto-chain.md +267 -0
  217. package/skills/copilot/refactor/references/phases/brief.md +176 -0
  218. package/skills/copilot/refactor/references/phases/explore.md +132 -0
  219. package/skills/copilot/refactor/references/phases/overhaul-delegate.md +136 -0
  220. package/skills/copilot/refactor/references/phases/overhaul-plan.md +312 -0
  221. package/skills/copilot/refactor/references/phases/overhaul-review.md +304 -0
  222. package/skills/copilot/refactor/references/phases/polish-implement.md +347 -0
  223. package/skills/copilot/refactor/references/phases/polish-validate.md +218 -0
  224. package/skills/copilot/refactor/references/phases/update-docs.md +234 -0
  225. package/skills/copilot/refactor/references/polish-track.md +152 -0
  226. package/skills/copilot/shepherd/SKILL.md +251 -0
  227. package/skills/copilot/shepherd/references/assess-checklist.md +170 -0
  228. package/skills/copilot/shepherd/references/escalation-criteria.md +53 -0
  229. package/skills/copilot/shepherd/references/fix-strategies.md +289 -0
  230. package/skills/copilot/shepherd/references/gate-event-emission.md +47 -0
  231. package/skills/copilot/shepherd/references/shepherd-event-schemas.md +56 -0
  232. package/skills/copilot/spec-review/SKILL.md +294 -0
  233. package/skills/copilot/spec-review/references/rationalization-refutation.md +13 -0
  234. package/skills/copilot/spec-review/references/review-checklist.md +79 -0
  235. package/skills/copilot/spec-review/references/worked-example.md +72 -0
  236. package/skills/copilot/synthesis/SKILL.md +217 -0
  237. package/skills/copilot/synthesis/references/github-native-stacking.md +135 -0
  238. package/skills/copilot/synthesis/references/merge-ordering.md +50 -0
  239. package/skills/copilot/synthesis/references/pr-descriptions.md +87 -0
  240. package/skills/copilot/synthesis/references/synthesis-steps.md +145 -0
  241. package/skills/copilot/synthesis/references/troubleshooting.md +115 -0
  242. package/skills/copilot/workflow-state/SKILL.md +254 -0
  243. package/skills/copilot/workflow-state/references/mcp-tool-reference.md +89 -0
  244. package/skills/copilot/workflow-state/references/phase-transitions.md +206 -0
  245. package/skills/cursor/brainstorming/SKILL.md +182 -0
  246. package/skills/cursor/brainstorming/references/design-template.md +107 -0
  247. package/skills/cursor/brainstorming/references/worked-example.md +58 -0
  248. package/skills/cursor/cleanup/SKILL.md +169 -0
  249. package/skills/cursor/cleanup/references/merge-verification.md +40 -0
  250. package/skills/cursor/debug/SKILL.md +247 -0
  251. package/skills/cursor/debug/references/hotfix-track.md +105 -0
  252. package/skills/cursor/debug/references/investigation-checklist.md +217 -0
  253. package/skills/cursor/debug/references/rca-template.md +150 -0
  254. package/skills/cursor/debug/references/state-schema.md +294 -0
  255. package/skills/cursor/debug/references/thorough-track.md +171 -0
  256. package/skills/cursor/debug/references/triage-questions.md +155 -0
  257. package/skills/cursor/debug/references/troubleshooting.md +47 -0
  258. package/skills/cursor/delegation/SKILL.md +351 -0
  259. package/skills/cursor/delegation/references/adaptive-orchestration.md +31 -0
  260. package/skills/cursor/delegation/references/agent-teams-saga.md +254 -0
  261. package/skills/cursor/delegation/references/fix-mode.md +118 -0
  262. package/skills/cursor/delegation/references/fixer-prompt.md +174 -0
  263. package/skills/cursor/delegation/references/implementer-prompt.md +401 -0
  264. package/skills/cursor/delegation/references/parallel-strategy.md +124 -0
  265. package/skills/cursor/delegation/references/pbt-patterns.md +172 -0
  266. package/skills/cursor/delegation/references/pr-fixes-mode.md +155 -0
  267. package/skills/cursor/delegation/references/rationalization-refutation.md +15 -0
  268. package/skills/cursor/delegation/references/state-management.md +84 -0
  269. package/skills/cursor/delegation/references/testing-patterns.md +146 -0
  270. package/skills/cursor/delegation/references/troubleshooting.md +109 -0
  271. package/skills/cursor/delegation/references/worked-example.md +104 -0
  272. package/skills/cursor/delegation/references/workflow-steps.md +131 -0
  273. package/skills/cursor/delegation/references/worktree-enforcement.md +71 -0
  274. package/skills/cursor/dogfood/SKILL.md +235 -0
  275. package/skills/cursor/dogfood/references/report-template.md +109 -0
  276. package/skills/cursor/dogfood/references/root-cause-patterns.md +227 -0
  277. package/skills/cursor/git-worktrees/SKILL.md +193 -0
  278. package/skills/cursor/git-worktrees/references/commands-reference.md +78 -0
  279. package/skills/cursor/implementation-planning/SKILL.md +289 -0
  280. package/skills/cursor/implementation-planning/references/plan-document-template.md +42 -0
  281. package/skills/cursor/implementation-planning/references/rationalization-refutation.md +13 -0
  282. package/skills/cursor/implementation-planning/references/spec-tracing-guide.md +51 -0
  283. package/skills/cursor/implementation-planning/references/task-template.md +63 -0
  284. package/skills/cursor/implementation-planning/references/testing-strategy-guide.md +109 -0
  285. package/skills/cursor/implementation-planning/references/worked-example.md +76 -0
  286. package/skills/cursor/oneshot-workflow/SKILL.md +468 -0
  287. package/skills/cursor/oneshot-workflow/references/choice-state.md +65 -0
  288. package/skills/cursor/prune-workflows/SKILL.md +290 -0
  289. package/skills/cursor/prune-workflows/references/safeguards.md +74 -0
  290. package/skills/cursor/quality-review/SKILL.md +371 -0
  291. package/skills/cursor/quality-review/references/auto-transition.md +47 -0
  292. package/skills/cursor/quality-review/references/axiom-integration.md +135 -0
  293. package/skills/cursor/quality-review/references/code-quality-checklist.md +171 -0
  294. package/skills/cursor/quality-review/references/convergence-and-verdict.md +48 -0
  295. package/skills/cursor/quality-review/references/gate-execution.md +60 -0
  296. package/skills/cursor/quality-review/references/rationalization-refutation.md +13 -0
  297. package/skills/cursor/quality-review/references/review-report-template.md +65 -0
  298. package/skills/cursor/quality-review/references/security-checklist.md +79 -0
  299. package/skills/cursor/quality-review/references/typescript-standards.md +24 -0
  300. package/skills/cursor/refactor/SKILL.md +196 -0
  301. package/skills/cursor/refactor/references/brief-template.md +81 -0
  302. package/skills/cursor/refactor/references/doc-update-checklist.md +113 -0
  303. package/skills/cursor/refactor/references/explore-checklist.md +79 -0
  304. package/skills/cursor/refactor/references/overhaul-track.md +194 -0
  305. package/skills/cursor/refactor/references/phases/auto-chain.md +267 -0
  306. package/skills/cursor/refactor/references/phases/brief.md +176 -0
  307. package/skills/cursor/refactor/references/phases/explore.md +132 -0
  308. package/skills/cursor/refactor/references/phases/overhaul-delegate.md +136 -0
  309. package/skills/cursor/refactor/references/phases/overhaul-plan.md +312 -0
  310. package/skills/cursor/refactor/references/phases/overhaul-review.md +304 -0
  311. package/skills/cursor/refactor/references/phases/polish-implement.md +347 -0
  312. package/skills/cursor/refactor/references/phases/polish-validate.md +218 -0
  313. package/skills/cursor/refactor/references/phases/update-docs.md +234 -0
  314. package/skills/cursor/refactor/references/polish-track.md +152 -0
  315. package/skills/cursor/shepherd/SKILL.md +251 -0
  316. package/skills/cursor/shepherd/references/assess-checklist.md +170 -0
  317. package/skills/cursor/shepherd/references/escalation-criteria.md +53 -0
  318. package/skills/cursor/shepherd/references/fix-strategies.md +289 -0
  319. package/skills/cursor/shepherd/references/gate-event-emission.md +47 -0
  320. package/skills/cursor/shepherd/references/shepherd-event-schemas.md +56 -0
  321. package/skills/cursor/spec-review/SKILL.md +294 -0
  322. package/skills/cursor/spec-review/references/rationalization-refutation.md +13 -0
  323. package/skills/cursor/spec-review/references/review-checklist.md +79 -0
  324. package/skills/cursor/spec-review/references/worked-example.md +72 -0
  325. package/skills/cursor/synthesis/SKILL.md +217 -0
  326. package/skills/cursor/synthesis/references/github-native-stacking.md +135 -0
  327. package/skills/cursor/synthesis/references/merge-ordering.md +50 -0
  328. package/skills/cursor/synthesis/references/pr-descriptions.md +87 -0
  329. package/skills/cursor/synthesis/references/synthesis-steps.md +145 -0
  330. package/skills/cursor/synthesis/references/troubleshooting.md +115 -0
  331. package/skills/cursor/workflow-state/SKILL.md +254 -0
  332. package/skills/cursor/workflow-state/references/mcp-tool-reference.md +89 -0
  333. package/skills/cursor/workflow-state/references/phase-transitions.md +206 -0
  334. package/skills/generic/brainstorming/SKILL.md +182 -0
  335. package/skills/generic/brainstorming/references/design-template.md +107 -0
  336. package/skills/generic/brainstorming/references/worked-example.md +58 -0
  337. package/skills/generic/cleanup/SKILL.md +169 -0
  338. package/skills/generic/cleanup/references/merge-verification.md +40 -0
  339. package/skills/generic/debug/SKILL.md +247 -0
  340. package/skills/generic/debug/references/hotfix-track.md +105 -0
  341. package/skills/generic/debug/references/investigation-checklist.md +217 -0
  342. package/skills/generic/debug/references/rca-template.md +150 -0
  343. package/skills/generic/debug/references/state-schema.md +294 -0
  344. package/skills/generic/debug/references/thorough-track.md +171 -0
  345. package/skills/generic/debug/references/triage-questions.md +155 -0
  346. package/skills/generic/debug/references/troubleshooting.md +47 -0
  347. package/skills/generic/delegation/SKILL.md +345 -0
  348. package/skills/generic/delegation/references/adaptive-orchestration.md +31 -0
  349. package/skills/generic/delegation/references/agent-teams-saga.md +254 -0
  350. package/skills/generic/delegation/references/fix-mode.md +118 -0
  351. package/skills/generic/delegation/references/fixer-prompt.md +174 -0
  352. package/skills/generic/delegation/references/implementer-prompt.md +401 -0
  353. package/skills/generic/delegation/references/parallel-strategy.md +124 -0
  354. package/skills/generic/delegation/references/pbt-patterns.md +172 -0
  355. package/skills/generic/delegation/references/pr-fixes-mode.md +155 -0
  356. package/skills/generic/delegation/references/rationalization-refutation.md +15 -0
  357. package/skills/generic/delegation/references/state-management.md +84 -0
  358. package/skills/generic/delegation/references/testing-patterns.md +146 -0
  359. package/skills/generic/delegation/references/troubleshooting.md +109 -0
  360. package/skills/generic/delegation/references/worked-example.md +104 -0
  361. package/skills/generic/delegation/references/workflow-steps.md +131 -0
  362. package/skills/generic/delegation/references/worktree-enforcement.md +71 -0
  363. package/skills/generic/dogfood/SKILL.md +235 -0
  364. package/skills/generic/dogfood/references/report-template.md +109 -0
  365. package/skills/generic/dogfood/references/root-cause-patterns.md +227 -0
  366. package/skills/generic/git-worktrees/SKILL.md +193 -0
  367. package/skills/generic/git-worktrees/references/commands-reference.md +78 -0
  368. package/skills/generic/implementation-planning/SKILL.md +289 -0
  369. package/skills/generic/implementation-planning/references/plan-document-template.md +42 -0
  370. package/skills/generic/implementation-planning/references/rationalization-refutation.md +13 -0
  371. package/skills/generic/implementation-planning/references/spec-tracing-guide.md +51 -0
  372. package/skills/generic/implementation-planning/references/task-template.md +63 -0
  373. package/skills/generic/implementation-planning/references/testing-strategy-guide.md +109 -0
  374. package/skills/generic/implementation-planning/references/worked-example.md +76 -0
  375. package/skills/generic/oneshot-workflow/SKILL.md +468 -0
  376. package/skills/generic/oneshot-workflow/references/choice-state.md +65 -0
  377. package/skills/generic/prune-workflows/SKILL.md +290 -0
  378. package/skills/generic/prune-workflows/references/safeguards.md +74 -0
  379. package/skills/generic/quality-review/SKILL.md +371 -0
  380. package/skills/generic/quality-review/references/auto-transition.md +47 -0
  381. package/skills/generic/quality-review/references/axiom-integration.md +135 -0
  382. package/skills/generic/quality-review/references/code-quality-checklist.md +171 -0
  383. package/skills/generic/quality-review/references/convergence-and-verdict.md +48 -0
  384. package/skills/generic/quality-review/references/gate-execution.md +60 -0
  385. package/skills/generic/quality-review/references/rationalization-refutation.md +13 -0
  386. package/skills/generic/quality-review/references/review-report-template.md +65 -0
  387. package/skills/generic/quality-review/references/security-checklist.md +79 -0
  388. package/skills/generic/quality-review/references/typescript-standards.md +24 -0
  389. package/skills/generic/refactor/SKILL.md +196 -0
  390. package/skills/generic/refactor/references/brief-template.md +81 -0
  391. package/skills/generic/refactor/references/doc-update-checklist.md +113 -0
  392. package/skills/generic/refactor/references/explore-checklist.md +79 -0
  393. package/skills/generic/refactor/references/overhaul-track.md +194 -0
  394. package/skills/generic/refactor/references/phases/auto-chain.md +267 -0
  395. package/skills/generic/refactor/references/phases/brief.md +176 -0
  396. package/skills/generic/refactor/references/phases/explore.md +132 -0
  397. package/skills/generic/refactor/references/phases/overhaul-delegate.md +136 -0
  398. package/skills/generic/refactor/references/phases/overhaul-plan.md +312 -0
  399. package/skills/generic/refactor/references/phases/overhaul-review.md +304 -0
  400. package/skills/generic/refactor/references/phases/polish-implement.md +347 -0
  401. package/skills/generic/refactor/references/phases/polish-validate.md +218 -0
  402. package/skills/generic/refactor/references/phases/update-docs.md +234 -0
  403. package/skills/generic/refactor/references/polish-track.md +152 -0
  404. package/skills/generic/shepherd/SKILL.md +251 -0
  405. package/skills/generic/shepherd/references/assess-checklist.md +170 -0
  406. package/skills/generic/shepherd/references/escalation-criteria.md +53 -0
  407. package/skills/generic/shepherd/references/fix-strategies.md +289 -0
  408. package/skills/generic/shepherd/references/gate-event-emission.md +47 -0
  409. package/skills/generic/shepherd/references/shepherd-event-schemas.md +56 -0
  410. package/skills/generic/spec-review/SKILL.md +294 -0
  411. package/skills/generic/spec-review/references/rationalization-refutation.md +13 -0
  412. package/skills/generic/spec-review/references/review-checklist.md +79 -0
  413. package/skills/generic/spec-review/references/worked-example.md +72 -0
  414. package/skills/generic/synthesis/SKILL.md +217 -0
  415. package/skills/generic/synthesis/references/github-native-stacking.md +135 -0
  416. package/skills/generic/synthesis/references/merge-ordering.md +50 -0
  417. package/skills/generic/synthesis/references/pr-descriptions.md +87 -0
  418. package/skills/generic/synthesis/references/synthesis-steps.md +145 -0
  419. package/skills/generic/synthesis/references/troubleshooting.md +115 -0
  420. package/skills/generic/workflow-state/SKILL.md +254 -0
  421. package/skills/generic/workflow-state/references/mcp-tool-reference.md +89 -0
  422. package/skills/generic/workflow-state/references/phase-transitions.md +206 -0
  423. package/skills/opencode/brainstorming/SKILL.md +182 -0
  424. package/skills/opencode/brainstorming/references/design-template.md +107 -0
  425. package/skills/opencode/brainstorming/references/worked-example.md +58 -0
  426. package/skills/opencode/cleanup/SKILL.md +169 -0
  427. package/skills/opencode/cleanup/references/merge-verification.md +40 -0
  428. package/skills/opencode/debug/SKILL.md +247 -0
  429. package/skills/opencode/debug/references/hotfix-track.md +105 -0
  430. package/skills/opencode/debug/references/investigation-checklist.md +217 -0
  431. package/skills/opencode/debug/references/rca-template.md +150 -0
  432. package/skills/opencode/debug/references/state-schema.md +294 -0
  433. package/skills/opencode/debug/references/thorough-track.md +171 -0
  434. package/skills/opencode/debug/references/triage-questions.md +155 -0
  435. package/skills/opencode/debug/references/troubleshooting.md +47 -0
  436. package/skills/opencode/delegation/SKILL.md +353 -0
  437. package/skills/opencode/delegation/references/adaptive-orchestration.md +31 -0
  438. package/skills/opencode/delegation/references/agent-teams-saga.md +254 -0
  439. package/skills/opencode/delegation/references/fix-mode.md +118 -0
  440. package/skills/opencode/delegation/references/fixer-prompt.md +174 -0
  441. package/skills/opencode/delegation/references/implementer-prompt.md +401 -0
  442. package/skills/opencode/delegation/references/parallel-strategy.md +124 -0
  443. package/skills/opencode/delegation/references/pbt-patterns.md +172 -0
  444. package/skills/opencode/delegation/references/pr-fixes-mode.md +155 -0
  445. package/skills/opencode/delegation/references/rationalization-refutation.md +15 -0
  446. package/skills/opencode/delegation/references/state-management.md +84 -0
  447. package/skills/opencode/delegation/references/testing-patterns.md +146 -0
  448. package/skills/opencode/delegation/references/troubleshooting.md +109 -0
  449. package/skills/opencode/delegation/references/worked-example.md +104 -0
  450. package/skills/opencode/delegation/references/workflow-steps.md +131 -0
  451. package/skills/opencode/delegation/references/worktree-enforcement.md +71 -0
  452. package/skills/opencode/dogfood/SKILL.md +235 -0
  453. package/skills/opencode/dogfood/references/report-template.md +109 -0
  454. package/skills/opencode/dogfood/references/root-cause-patterns.md +227 -0
  455. package/skills/opencode/git-worktrees/SKILL.md +193 -0
  456. package/skills/opencode/git-worktrees/references/commands-reference.md +78 -0
  457. package/skills/opencode/implementation-planning/SKILL.md +289 -0
  458. package/skills/opencode/implementation-planning/references/plan-document-template.md +42 -0
  459. package/skills/opencode/implementation-planning/references/rationalization-refutation.md +13 -0
  460. package/skills/opencode/implementation-planning/references/spec-tracing-guide.md +51 -0
  461. package/skills/opencode/implementation-planning/references/task-template.md +63 -0
  462. package/skills/opencode/implementation-planning/references/testing-strategy-guide.md +109 -0
  463. package/skills/opencode/implementation-planning/references/worked-example.md +76 -0
  464. package/skills/opencode/oneshot-workflow/SKILL.md +468 -0
  465. package/skills/opencode/oneshot-workflow/references/choice-state.md +65 -0
  466. package/skills/opencode/prune-workflows/SKILL.md +290 -0
  467. package/skills/opencode/prune-workflows/references/safeguards.md +74 -0
  468. package/skills/opencode/quality-review/SKILL.md +371 -0
  469. package/skills/opencode/quality-review/references/auto-transition.md +47 -0
  470. package/skills/opencode/quality-review/references/axiom-integration.md +135 -0
  471. package/skills/opencode/quality-review/references/code-quality-checklist.md +171 -0
  472. package/skills/opencode/quality-review/references/convergence-and-verdict.md +48 -0
  473. package/skills/opencode/quality-review/references/gate-execution.md +60 -0
  474. package/skills/opencode/quality-review/references/rationalization-refutation.md +13 -0
  475. package/skills/opencode/quality-review/references/review-report-template.md +65 -0
  476. package/skills/opencode/quality-review/references/security-checklist.md +79 -0
  477. package/skills/opencode/quality-review/references/typescript-standards.md +24 -0
  478. package/skills/opencode/refactor/SKILL.md +196 -0
  479. package/skills/opencode/refactor/references/brief-template.md +81 -0
  480. package/skills/opencode/refactor/references/doc-update-checklist.md +113 -0
  481. package/skills/opencode/refactor/references/explore-checklist.md +79 -0
  482. package/skills/opencode/refactor/references/overhaul-track.md +194 -0
  483. package/skills/opencode/refactor/references/phases/auto-chain.md +267 -0
  484. package/skills/opencode/refactor/references/phases/brief.md +176 -0
  485. package/skills/opencode/refactor/references/phases/explore.md +132 -0
  486. package/skills/opencode/refactor/references/phases/overhaul-delegate.md +136 -0
  487. package/skills/opencode/refactor/references/phases/overhaul-plan.md +312 -0
  488. package/skills/opencode/refactor/references/phases/overhaul-review.md +304 -0
  489. package/skills/opencode/refactor/references/phases/polish-implement.md +347 -0
  490. package/skills/opencode/refactor/references/phases/polish-validate.md +218 -0
  491. package/skills/opencode/refactor/references/phases/update-docs.md +234 -0
  492. package/skills/opencode/refactor/references/polish-track.md +152 -0
  493. package/skills/opencode/shepherd/SKILL.md +251 -0
  494. package/skills/opencode/shepherd/references/assess-checklist.md +170 -0
  495. package/skills/opencode/shepherd/references/escalation-criteria.md +53 -0
  496. package/skills/opencode/shepherd/references/fix-strategies.md +289 -0
  497. package/skills/opencode/shepherd/references/gate-event-emission.md +47 -0
  498. package/skills/opencode/shepherd/references/shepherd-event-schemas.md +56 -0
  499. package/skills/opencode/spec-review/SKILL.md +294 -0
  500. package/skills/opencode/spec-review/references/rationalization-refutation.md +13 -0
  501. package/skills/opencode/spec-review/references/review-checklist.md +79 -0
  502. package/skills/opencode/spec-review/references/worked-example.md +72 -0
  503. package/skills/opencode/synthesis/SKILL.md +217 -0
  504. package/skills/opencode/synthesis/references/github-native-stacking.md +135 -0
  505. package/skills/opencode/synthesis/references/merge-ordering.md +50 -0
  506. package/skills/opencode/synthesis/references/pr-descriptions.md +87 -0
  507. package/skills/opencode/synthesis/references/synthesis-steps.md +145 -0
  508. package/skills/opencode/synthesis/references/troubleshooting.md +115 -0
  509. package/skills/opencode/workflow-state/SKILL.md +254 -0
  510. package/skills/opencode/workflow-state/references/mcp-tool-reference.md +89 -0
  511. package/skills/opencode/workflow-state/references/phase-transitions.md +206 -0
  512. package/.claude-plugin/marketplace.json +0 -34
  513. package/dist/node_modules/electron/index.js +0 -1
  514. package/dist/node_modules/electron/package.json +0 -1
  515. package/dist/node_modules/playwright-core/index.js +0 -1
  516. package/dist/node_modules/playwright-core/package.json +0 -1
  517. package/scripts/assess-refactor-scope.sh +0 -239
  518. package/scripts/check-coderabbit.sh +0 -288
  519. package/scripts/check-context-economy.sh +0 -405
  520. package/scripts/check-coverage-thresholds.sh +0 -194
  521. package/scripts/check-operational-resilience.sh +0 -306
  522. package/scripts/check-polish-scope.sh +0 -245
  523. package/scripts/check-post-merge.sh +0 -185
  524. package/scripts/check-pr-comments.sh +0 -127
  525. package/scripts/check-task-decomposition.sh +0 -451
  526. package/scripts/check-tdd-compliance.sh +0 -265
  527. package/scripts/check-workflow-determinism.sh +0 -312
  528. package/scripts/debug-review-gate.sh +0 -201
  529. package/scripts/extract-fix-tasks.sh +0 -179
  530. package/scripts/extract-task.sh +0 -67
  531. package/scripts/generate-traceability.sh +0 -209
  532. package/scripts/investigation-timer.sh +0 -171
  533. package/scripts/needs-schema-sync.sh +0 -174
  534. package/scripts/new-project.sh +0 -103
  535. package/scripts/post-delegation-check.sh +0 -317
  536. package/scripts/pre-synthesis-check.sh +0 -475
  537. package/scripts/reconcile-state.sh +0 -346
  538. package/scripts/review-diff.sh +0 -63
  539. package/scripts/review-verdict.sh +0 -169
  540. package/scripts/security-scan.sh +0 -248
  541. package/scripts/select-debug-track.sh +0 -186
  542. package/scripts/setup-worktree.sh +0 -323
  543. package/scripts/spec-coverage-check.sh +0 -230
  544. package/scripts/static-analysis-gate.sh +0 -261
  545. package/scripts/validate-companion.sh +0 -161
  546. package/scripts/validate-pr-body.sh +0 -158
  547. package/scripts/validate-pr-stack.sh +0 -146
  548. package/scripts/verify-delegation-saga.sh +0 -240
  549. package/scripts/verify-doc-links.sh +0 -211
  550. package/scripts/verify-ideate-artifacts.sh +0 -296
  551. package/scripts/verify-plan-coverage.sh +0 -408
  552. package/scripts/verify-provenance-chain.sh +0 -310
  553. package/scripts/verify-review-triage.sh +0 -219
  554. package/scripts/verify-worktree-baseline.sh +0 -159
  555. package/scripts/verify-worktree.sh +0 -84
  556. package/skills/delegation/references/fix-mode.md +0 -78
  557. package/skills/implementation-planning/references/task-template.md +0 -43
  558. package/skills/shared/prompts/context-reading.md +0 -66
  559. package/skills/shared/prompts/report-format.md +0 -54
  560. package/skills/shared/prompts/tdd-requirements.md +0 -39
  561. package/skills/shared/references/coding-standards.md +0 -46
  562. package/skills/shared/references/mcp-tool-guidance.md +0 -26
  563. package/skills/shared/references/skill-path-resolution.md +0 -10
  564. package/skills/shared/references/tdd.md +0 -41
  565. package/skills/shared/references/telemetry-awareness.md +0 -9
  566. /package/skills/{brainstorming → claude/brainstorming}/references/worked-example.md +0 -0
  567. /package/skills/{cleanup → claude/cleanup}/references/merge-verification.md +0 -0
  568. /package/skills/{debug → claude/debug}/references/rca-template.md +0 -0
  569. /package/skills/{debug → claude/debug}/references/state-schema.md +0 -0
  570. /package/skills/{debug → claude/debug}/references/triage-questions.md +0 -0
  571. /package/skills/{debug → claude/debug}/references/troubleshooting.md +0 -0
  572. /package/skills/{delegation → claude/delegation}/references/adaptive-orchestration.md +0 -0
  573. /package/skills/{delegation → claude/delegation}/references/fixer-prompt.md +0 -0
  574. /package/skills/{delegation → claude/delegation}/references/pbt-patterns.md +0 -0
  575. /package/skills/{delegation → claude/delegation}/references/pr-fixes-mode.md +0 -0
  576. /package/skills/{delegation → claude/delegation}/references/rationalization-refutation.md +0 -0
  577. /package/skills/{delegation → claude/delegation}/references/testing-patterns.md +0 -0
  578. /package/skills/{delegation → claude/delegation}/references/worked-example.md +0 -0
  579. /package/skills/{git-worktrees → claude/git-worktrees}/references/commands-reference.md +0 -0
  580. /package/skills/{implementation-planning → claude/implementation-planning}/references/plan-document-template.md +0 -0
  581. /package/skills/{implementation-planning → claude/implementation-planning}/references/rationalization-refutation.md +0 -0
  582. /package/skills/{implementation-planning → claude/implementation-planning}/references/spec-tracing-guide.md +0 -0
  583. /package/skills/{quality-review → claude/quality-review}/references/code-quality-checklist.md +0 -0
  584. /package/skills/{quality-review → claude/quality-review}/references/convergence-and-verdict.md +0 -0
  585. /package/skills/{quality-review → claude/quality-review}/references/gate-execution.md +0 -0
  586. /package/skills/{quality-review → claude/quality-review}/references/rationalization-refutation.md +0 -0
  587. /package/skills/{quality-review → claude/quality-review}/references/review-report-template.md +0 -0
  588. /package/skills/{quality-review → claude/quality-review}/references/security-checklist.md +0 -0
  589. /package/skills/{quality-review → claude/quality-review}/references/typescript-standards.md +0 -0
  590. /package/skills/{refactor → claude/refactor}/references/brief-template.md +0 -0
  591. /package/skills/{refactor → claude/refactor/references}/phases/auto-chain.md +0 -0
  592. /package/skills/{refactor → claude/refactor/references}/phases/brief.md +0 -0
  593. /package/skills/{refactor → claude/refactor/references}/phases/explore.md +0 -0
  594. /package/skills/{refactor → claude/refactor/references}/phases/overhaul-delegate.md +0 -0
  595. /package/skills/{refactor → claude/refactor/references}/phases/overhaul-plan.md +0 -0
  596. /package/skills/{refactor → claude/refactor/references}/phases/overhaul-review.md +0 -0
  597. /package/skills/{refactor → claude/refactor/references}/phases/update-docs.md +0 -0
  598. /package/skills/{shepherd → claude/shepherd}/references/assess-checklist.md +0 -0
  599. /package/skills/{shepherd → claude/shepherd}/references/escalation-criteria.md +0 -0
  600. /package/skills/{shepherd → claude/shepherd}/references/gate-event-emission.md +0 -0
  601. /package/skills/{spec-review → claude/spec-review}/references/rationalization-refutation.md +0 -0
  602. /package/skills/{spec-review → claude/spec-review}/references/review-checklist.md +0 -0
  603. /package/skills/{synthesis → claude/synthesis}/references/merge-ordering.md +0 -0
  604. /package/skills/{synthesis → claude/synthesis}/references/pr-descriptions.md +0 -0
  605. /package/skills/{synthesis → claude/synthesis}/references/troubleshooting.md +0 -0
@@ -0,0 +1,135 @@
1
+ ---
2
+ name: github-native-stacking
3
+ ---
4
+
5
+ # GitHub-Native PR Stacking
6
+
7
+ PR stacking creates a chain of dependent pull requests that merge bottom-up into `main`. Each PR targets the previous PR's branch as its base, forming a reviewable sequence of incremental changes.
8
+
9
+ ## 1. PR Chain Creation
10
+
11
+ Create PRs that chain together by setting each PR's `--base` to the previous branch:
12
+
13
+ ```bash
14
+ # First PR in chain targets main
15
+ gh pr create --base main --head feat/step-1 --title "feat: step 1" --body "..."
16
+
17
+ # Subsequent PRs target the previous PR's branch
18
+ gh pr create --base feat/step-1 --head feat/step-2 --title "feat: step 2" --body "..."
19
+ gh pr create --base feat/step-2 --head feat/step-3 --title "feat: step 3" --body "..."
20
+ ```
21
+
22
+ The resulting chain looks like:
23
+
24
+ ```text
25
+ main <- feat/step-1 <- feat/step-2 <- feat/step-3
26
+ ```
27
+
28
+ Each PR shows only the diff between its branch and its base, keeping reviews focused.
29
+
30
+ ## 2. Merge Ordering
31
+
32
+ Stacked PRs must merge **bottom-up** (base-first):
33
+
34
+ 1. Merge PR 1 (`feat/step-1` into `main`)
35
+ 2. GitHub auto-retargets PR 2's base from `feat/step-1` to `main`
36
+ 3. Merge PR 2 (`feat/step-2` into `main`)
37
+ 4. Continue until all PRs are merged
38
+
39
+ Merging out of order causes conflicts because later branches contain commits from earlier branches that have not yet landed on the target.
40
+
41
+ ## 3. Auto-Retargeting
42
+
43
+ When a PR's base branch is merged and deleted, GitHub automatically retargets dependent PRs:
44
+
45
+ - PR 1 merges `feat/step-1` into `main`, branch `feat/step-1` is deleted
46
+ - GitHub detects that PR 2's base (`feat/step-1`) no longer exists
47
+ - GitHub retargets PR 2's base to `main` automatically
48
+ - No manual intervention is needed
49
+
50
+ This behavior is built into GitHub and requires no configuration. It works as long as the merged branch is deleted (which is the default repository setting for most projects).
51
+
52
+ ## 4. Branch Updates
53
+
54
+ Keep branches up to date after upstream changes:
55
+
56
+ ```bash
57
+ # Rebase current branch on its updated base (via GitHub API)
58
+ gh pr update-branch --rebase
59
+
60
+ # Or rebase locally
61
+ git fetch origin && git rebase origin/main
62
+ git push --force-with-lease
63
+
64
+ # For mid-stack branches, rebase on the base branch
65
+ git fetch origin && git rebase origin/feat/step-1
66
+ git push --force-with-lease
67
+ ```
68
+
69
+ After rebasing a mid-stack branch, all downstream branches in the stack must also be rebased in order.
70
+
71
+ ## 5. Stack Visualization
72
+
73
+ View the current PR chain and its state:
74
+
75
+ ```bash
76
+ # List all open PRs with base/head branch relationships
77
+ gh pr list --json number,baseRefName,headRefName,title,state \
78
+ --jq '.[] | "\(.number): \(.baseRefName) <- \(.headRefName) [\(.state)]"'
79
+
80
+ # Example output:
81
+ # 101: main <- feat/step-1 [OPEN]
82
+ # 102: feat/step-1 <- feat/step-2 [OPEN]
83
+ # 103: feat/step-2 <- feat/step-3 [OPEN]
84
+ ```
85
+
86
+ To validate stack integrity, use the `validate_pr_stack` action via orchestrate:
87
+
88
+ ```typescript
89
+ exarchos_orchestrate({
90
+ action: "validate_pr_stack",
91
+ baseBranch: "main"
92
+ })
93
+ ```
94
+
95
+ ## 6. Merge Queue
96
+
97
+ GitHub's native merge queue ensures PRs pass CI before merging:
98
+
99
+ - **Enable:** Repository Settings > Rules > Branch protection > Require merge queue
100
+ - **Auto-merge:** `gh pr merge --auto --squash` enables auto-merge once checks pass
101
+ - **For stacks:** Enable auto-merge on each PR, then merge bottom-up
102
+
103
+ ```bash
104
+ # Enable auto-merge on all PRs in the stack
105
+ gh pr merge 101 --auto --squash
106
+ gh pr merge 102 --auto --squash
107
+ gh pr merge 103 --auto --squash
108
+
109
+ # Merge the first PR to start the cascade
110
+ gh pr merge 101 --squash
111
+ ```
112
+
113
+ After PR 101 merges and its branch is deleted, GitHub retargets PR 102 to `main`. If auto-merge is enabled on PR 102, it merges automatically once CI passes.
114
+
115
+ ## 7. Graphite to GitHub-Native Equivalents
116
+
117
+ | Graphite Command | GitHub-Native Equivalent |
118
+ |---|---|
119
+ | `gt create <branch> -m "feat: ..."` | `git checkout -b <branch> && git commit -m "feat: ..." && git push -u origin <branch>` |
120
+ | `gt submit --no-interactive --publish --stack` | `gh pr create --base <base> --title "..." --body "..."` (per PR) |
121
+ | `gt log` | `gh pr list --json number,baseRefName,headRefName` |
122
+ | `gt modify -m "..."` | `git commit --amend -m "..." && git push --force-with-lease` |
123
+ | `gt sync` | `git fetch --prune && git rebase origin/main` |
124
+ | `gt restack` | `git rebase origin/<base-branch>` per branch in stack |
125
+ | `mcp__graphite__run_gt_cmd` | `gh` CLI directly via Bash tool |
126
+
127
+ ## 8. Error Handling
128
+
129
+ | Scenario | Resolution |
130
+ |---|---|
131
+ | **Auto-retargeting fails** | Manually retarget: `gh pr edit <number> --base <new-base>` |
132
+ | **Merge conflicts** | Rebase on updated base: `git fetch origin && git rebase origin/<base>`, resolve conflicts, then `git push --force-with-lease` |
133
+ | **Out-of-order merge** | Bottom-up ordering is critical. If PR 2 merges before PR 1, PR 1 now has conflicts against `main`. Manually retarget and resolve. |
134
+ | **CI failure mid-stack** | Fix the failing branch, push the fix. Downstream PRs remain queued until the fix lands. |
135
+ | **Stale branch** | Update with `gh pr update-branch --rebase` or local rebase + force-push. |
@@ -0,0 +1,50 @@
1
+ # Merge Ordering Strategy
2
+
3
+ ## Overview
4
+
5
+ GitHub-native stacked PRs merge bottom-up: the base branch merges first, then each dependent branch in sequence. This ordering is enforced by creating PRs with correct base branches and enabling auto-merge (`gh pr merge --auto --squash`).
6
+
7
+ ## Stack Ordering Rules
8
+
9
+ 1. **Foundation branches merge first** -- Types, interfaces, and shared utilities form the stack base
10
+ 2. **Implementation branches follow** -- Feature code depends on foundation types
11
+ 3. **Test-only branches merge last** -- Integration tests depend on all implementation branches
12
+
13
+ ## Merge Ordering in Practice
14
+
15
+ The merge order is determined by the branch stack structure established during delegation. The PR list shows the exact merge order (bottom-up):
16
+
17
+ ```text
18
+ main
19
+ ├── task/001-types ← merges first
20
+ ├── task/002-core ← merges second
21
+ └── task/003-integration ← merges last
22
+ ```
23
+
24
+ ## State Tracking
25
+
26
+ Record the merge order in workflow state after PR submission:
27
+ ```typescript
28
+ action: "set", featureId: "<id>", updates: {
29
+ "synthesis": {
30
+ "mergeOrder": ["task/001-types", "task/002-core", "task/003-integration"],
31
+ "prUrl": ["<url1>", "<url2>", "<url3>"]
32
+ }
33
+ }
34
+ ```
35
+
36
+ ## Handling Merge Failures
37
+
38
+ If a branch fails CI in the merge queue:
39
+ 1. The entire stack pauses until the failure is resolved
40
+ 2. Fix the failing branch, push the fix
41
+ 3. After the fix merges, retarget dependent PRs: `gh pr edit <number> --base <new-base>`
42
+
43
+ ## Common Issues
44
+
45
+ | Issue | Resolution |
46
+ |-------|------------|
47
+ | Middle branch fails CI | Fix and push; retarget dependent PRs with `gh pr edit` |
48
+ | Branch needs rebase | Run `git rebase origin/<base>` for each branch in order |
49
+ | Merge conflict on trunk | Rebase stack onto latest trunk with `git rebase origin/main` |
50
+ | Wrong merge order | Retarget PRs with `gh pr edit <number> --base <correct-base>` |
@@ -0,0 +1,87 @@
1
+ # PR Description Guidelines
2
+
3
+ Write PR descriptions that help reviewers understand the change quickly. Aim for ~120-200 words. CodeRabbit adds detailed analysis—focus on motivation and high-level changes.
4
+
5
+ ## Title Format
6
+
7
+ `<type>: <what>` (max 72 chars)
8
+
9
+ Examples:
10
+ - `feat: Add knowledge ingestion workflow`
11
+ - `fix: Resolve null state in workflow steps`
12
+ - `refactor: Simplify token ledger interface`
13
+
14
+ ## Body Structure
15
+
16
+ ### Summary (required)
17
+ 2-3 sentences explaining what changed and why it matters. Include the motivation—what problem does this solve?
18
+
19
+ ### Changes (required)
20
+ Scannable list of key changes. Use `**Bold**` for component names and `—` (em-dash) as separator.
21
+
22
+ ### Test Plan (required)
23
+ Brief description of testing approach. What was tested and how?
24
+
25
+ ### Footer (required)
26
+ Separated by `---`. Contains results, design doc, and related PRs.
27
+
28
+ ## Template
29
+
30
+ ```markdown
31
+ ## Summary
32
+
33
+ [2-3 sentences: What changed, why it matters, what problem it solves]
34
+
35
+ ## Changes
36
+
37
+ - **Component 1** — Brief description of what changed
38
+ - **Component 2** — Brief description of what changed
39
+ - **Component 3** — Brief description of what changed
40
+
41
+ ## Test Plan
42
+
43
+ [1-2 sentences: Testing approach and coverage summary]
44
+
45
+ ---
46
+
47
+ **Results:** Tests X ✓ · Build 0 errors
48
+ **Design:** [design-doc.md](docs/path/design-doc.md)
49
+ **Related:** #123, Continues #456
50
+ ```
51
+
52
+ ## Example
53
+
54
+ ```markdown
55
+ ## Summary
56
+
57
+ Completes the Knowledge System foundation for RAG-based agent workflows. The platform needs to ingest documents, extract semantic concepts, and build a linked knowledge graph—this PR delivers that infrastructure.
58
+
59
+ ## Changes
60
+
61
+ - **LLM Inference** — vLLM client with streaming SSE and LoRA adapter support
62
+ - **Token Accounting** — Multi-dimensional ledger tracking usage across categories
63
+ - **Vector Collections** — Registry with schema versioning for embedding spaces
64
+ - **Knowledge Models** — Core types for representing extracted knowledge
65
+ - **Ingestion Workflow** — 11-step pipeline from parsing to knowledge graph commit
66
+
67
+ ## Test Plan
68
+
69
+ Added ~180 unit tests covering all new components. Integration tests verify the complete workflow with mocked dependencies.
70
+
71
+ ---
72
+
73
+ **Results:** Tests 3462 ✓ · Build 0 errors
74
+ **Design:** [shared-infrastructure.md](docs/adrs/workflow-designs/shared-infrastructure.md)
75
+ **Related:** Continues #5
76
+ ```
77
+
78
+ ## Anti-Patterns
79
+
80
+ Avoid these—they bloat descriptions without adding value:
81
+
82
+ - Bullet lists of every file changed
83
+ - Repeating commit messages in the body
84
+ - Low-level implementation details (class names, method signatures)
85
+ - "Generated with..." footers
86
+ - Phase-by-phase breakdowns
87
+ - Detailed test counts by project
@@ -0,0 +1,145 @@
1
+ ---
2
+ name: synthesis-steps
3
+ ---
4
+
5
+ # Synthesis Process
6
+
7
+ ## Step 1: Verify Readiness
8
+
9
+ Call the `prepare_synthesis` composite action to validate all preconditions in a single operation:
10
+ ```typescript
11
+ mcp__plugin_exarchos_exarchos__exarchos_orchestrate({
12
+ action: "prepare_synthesis",
13
+ featureId: "<featureId>"
14
+ })
15
+ ```
16
+
17
+ The composite action validates all readiness conditions:
18
+ - All delegated tasks complete (from state file)
19
+ - All reviews passed (from state file)
20
+ - No outstanding fix requests (from state file)
21
+ - Task branches exist and are pushed to remote
22
+ - All tests pass (`npm run test:run && npm run typecheck`)
23
+ - Stack integrity verified
24
+
25
+ **On `passed: true`:** All checks passed -- proceed to Step 2.
26
+ **On `passed: false`:** Output identifies the failing check. Return to `/exarchos:review` or `/exarchos:delegate` as appropriate.
27
+
28
+ ## Step 2: Verify Branch Stack
29
+
30
+ Run the stack reconstruction script to detect and fix any broken branch state:
31
+ ```typescript
32
+ mcp__plugin_exarchos_exarchos__exarchos_orchestrate({
33
+ action: "reconstruct_stack",
34
+ repoRoot: "<repo-root>",
35
+ stateFile: "~/.claude/workflow-state/<featureId>.state.json"
36
+ })
37
+ ```
38
+
39
+ The script has three phases:
40
+ 1. **Detection** -- Checks for diverged branches, missing task branches, or broken parent chains
41
+ 2. **Reconstruction** -- If issues detected: resets branch pointers, removes blocking worktrees, rebases with correct parent chain
42
+ 3. **Validation** -- Confirms all task branches are present with correct ancestry
43
+
44
+ **On `passed: true`:** Stack is healthy (or was successfully reconstructed) -- proceed to Step 3.
45
+ **On `passed: false`:** Reconstruction failed validation. Manual intervention required -- inspect branch state and resolve conflicts.
46
+
47
+ Use `--dry-run` arg to preview reconstruction actions without making changes.
48
+
49
+ ## Step 3: Quick Test Verification
50
+
51
+ Run tests from the top of the branch stack to confirm everything works:
52
+ ```bash
53
+ npm run test:run
54
+ npm run typecheck
55
+ ```
56
+
57
+ If these fail, return to `/exarchos:review` or `/exarchos:delegate` to resolve.
58
+
59
+ ## Step 4: Check CodeRabbit Review State
60
+
61
+ Get PR numbers from the branch stack, then run the CodeRabbit review check:
62
+ ```typescript
63
+ // Check CodeRabbit review state via orchestrate
64
+ mcp__plugin_exarchos_exarchos__exarchos_orchestrate({
65
+ action: "check_coderabbit",
66
+ owner: "<owner>",
67
+ repo: "<repo>",
68
+ prNumbers: ["<pr-number-1>", "<pr-number-2>"]
69
+ })
70
+ ```
71
+
72
+ The script queries GitHub's PR reviews API for each PR, filters for CodeRabbit reviews, and classifies the latest review state.
73
+
74
+ **On `passed: true`:** All PRs are APPROVED or have no CodeRabbit review -- proceed to Step 5.
75
+ **On `passed: false`:** At least one PR has CHANGES_REQUESTED or PENDING. The output identifies which PRs need attention. Route to fix cycle:
76
+ ```typescript
77
+ Skill({ skill: "exarchos:delegate", args: "--pr-fixes [PR_URL]" })
78
+ ```
79
+ After fixes are applied, return to Step 4 to re-check.
80
+
81
+ ## Step 5: Write PR Descriptions
82
+
83
+ For each PR in the stack, write a structured description following `references/pr-descriptions.md`:
84
+
85
+ 1. **Title:** `<type>: <what>` (max 72 chars)
86
+ 2. **Body:** Summary → Changes → Test Plan → Footer
87
+
88
+ Update each PR body via GitHub MCP or CLI (run this before or after PR creation in Step 6):
89
+ ```bash
90
+ gh pr edit <number> --body "$(cat <<'EOF'
91
+ ## Summary
92
+ [2-3 sentences]
93
+
94
+ ## Changes
95
+ - **Component** — Description
96
+
97
+ ## Test Plan
98
+ [1-2 sentences]
99
+
100
+ ---
101
+ **Results:** Tests X ✓ · Build 0 errors
102
+ **Design:** [doc](path)
103
+ **Related:** #issue
104
+ EOF
105
+ )"
106
+ ```
107
+
108
+ **Validation:** Run `mcp__plugin_exarchos_exarchos__exarchos_orchestrate({ action: "validate_pr_body", pr: "<number>" })` to verify the body passes.
109
+ CI enforces this via the `PR Body Check` workflow — PRs missing required sections will fail.
110
+
111
+ **Custom templates:** If the project has a `.exarchos/pr-template.md`, pass it via `--template`:
112
+ ```typescript
113
+ mcp__plugin_exarchos_exarchos__exarchos_orchestrate({
114
+ action: "validate_pr_body",
115
+ pr: "<number>",
116
+ template: ".exarchos/pr-template.md"
117
+ })
118
+ ```
119
+
120
+ ## Step 6: Create PRs and Enable Auto-Merge
121
+
122
+ Create PRs for each branch in the stack (bottom-up) and enable auto-merge:
123
+
124
+ ```bash
125
+ # For each branch in the stack (bottom-up):
126
+ gh pr create --base <parent-branch> --head <branch> --title "<type>: <what>" --body "<pr-body>"
127
+ gh pr merge <number> --auto --squash
128
+ ```
129
+
130
+ After creation, use `gh pr list --json number,url,headRefName` to get the PR URLs for each stack entry.
131
+
132
+ ## Step 7: Cleanup After Merge
133
+
134
+ After PRs are merged, sync and clean up:
135
+ ```bash
136
+ git fetch --prune
137
+ git branch -d <merged-branch-1> <merged-branch-2> ...
138
+ ```
139
+
140
+ Then remove worktrees if they exist:
141
+ ```bash
142
+ # Remove worktrees used during delegation
143
+ git worktree list | grep ".worktrees/" | awk '{print $1}' | xargs -I{} git worktree remove {}
144
+ git worktree prune
145
+ ```
@@ -0,0 +1,115 @@
1
+ # Troubleshooting
2
+
3
+ ## Handling Failures
4
+
5
+ ### Test Failure (Unexpected)
6
+
7
+ If tests fail during synthesis (they passed in review):
8
+
9
+ 1. Return to review phase to investigate
10
+ 2. Re-run `/exarchos:review` to diagnose
11
+ 3. Dispatch fixes via `/exarchos:delegate --fixes`
12
+ 4. Return to synthesis after review passes
13
+
14
+ ### PR Checks Fail
15
+
16
+ 1. Wait for CI feedback
17
+ 2. Create fix task for failures
18
+ 3. Push fixes to the stack branches
19
+ 4. Re-run synthesis verification
20
+
21
+ ### Merge Queue Rejection
22
+
23
+ If the merge queue rejects a PR:
24
+ 1. Check CI status via `gh pr checks <number>` (or GitHub MCP `pull_request_read` with method `get_status` if available)
25
+ 2. Fix failing checks
26
+ 3. Push fixes and re-enqueue
27
+
28
+ ## Handling PR Feedback
29
+
30
+ If the user receives PR review comments:
31
+
32
+ 1. Offer to address feedback:
33
+ ```typescript
34
+ Skill({ skill: "exarchos:delegate", args: "--pr-fixes [PR_URL]" })
35
+ ```
36
+
37
+ 2. Delegate reads PR comments via gh CLI:
38
+ ```bash
39
+ gh pr view <number> --json reviews,comments
40
+ ```
41
+ > Or use GitHub MCP `pull_request_read` if available.
42
+
43
+ 3. Creates fix tasks from review comments
44
+ 4. After fixes, amend the commit with `git commit --amend -m "fix: <description>"` and push with `git push --force-with-lease`
45
+ 5. Return to merge confirmation
46
+
47
+ ## Final Report Template
48
+
49
+ ```markdown
50
+ ## Synthesis Complete
51
+
52
+ ### Pull Requests
53
+ [PR URLs from gh pr list]
54
+
55
+ ### Stack Branches
56
+ - task/001-types
57
+ - task/002-api
58
+ - task/003-tests
59
+
60
+ ### Test Results
61
+ - Unit tests: PASS
62
+ - Type check: PASS
63
+ - Lint: PASS
64
+ - Build: PASS
65
+
66
+ ### Next Steps
67
+ 1. Wait for CI/CD checks
68
+ 2. Request code review (if required)
69
+ 3. Merge when approved
70
+ 4. Worktrees will be cleaned up after merge
71
+
72
+ ### Documentation
73
+ - Design: docs/designs/YYYY-MM-DD-feature.md
74
+ - Plan: docs/plans/YYYY-MM-DD-feature.md
75
+ ```
76
+
77
+ ## MCP Tool Call Failed
78
+ If an Exarchos MCP tool returns an error:
79
+ 1. Check the error message -- it usually contains specific guidance
80
+ 2. Verify the workflow state exists: call `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "get"` and the featureId
81
+ 3. If "version mismatch": another process updated state -- retry the operation
82
+ 4. If state is corrupted: call `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "cancel"` and `dryRun: true`
83
+
84
+ ## State Desync
85
+ If workflow state doesn't match git reality:
86
+ 1. The SessionStart hook runs reconciliation automatically on resume
87
+ 2. If manual check needed: compare state file with `git log` and branch state
88
+ 3. Update state via `mcp__plugin_exarchos_exarchos__exarchos_workflow` with `action: "set"` to match git truth
89
+
90
+ ## PR Creation Failed
91
+ If `gh pr create` fails:
92
+ 1. Check the error output for specific guidance
93
+ 2. Run `gh pr list --json number,baseRefName,headRefName` to verify the branch state
94
+ 3. If rebase conflict: run `git rebase origin/<base>` to resolve
95
+ 4. If authentication issue: check GitHub token permissions
96
+
97
+ ## Stack Rebase Conflict
98
+ If `git rebase` encounters conflicts:
99
+ 1. Resolve conflicts manually in each affected file
100
+ 2. Run `git add <resolved-files>` then `git rebase --continue`
101
+ 3. After resolution, push with `git push --force-with-lease`
102
+
103
+ ## Exarchos Integration
104
+
105
+ When Exarchos MCP tools are available:
106
+
107
+ 1. **After stack submission:** Call `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` with event type `stack.enqueued` including PR numbers from `gh pr list --json number`
108
+ 2. **Monitor merge status:** Use `gh pr list --json number,state,mergedAt` to check stack/PR status
109
+ 3. **On successful merge:** Call `mcp__plugin_exarchos_exarchos__exarchos_event` with `action: "append"` with event type `phase.transitioned` to mark workflow complete
110
+
111
+ ## Performance Notes
112
+
113
+ - Complete each step fully before advancing -- quality over speed
114
+ - Do not skip validation checks even when the change appears trivial
115
+ - Verify all tests pass before creating PR. Do not skip the pre-submit validation step.