oh-my-copilot 4.13.1 → 4.13.21

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 (507) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +3 -3
  4. package/bridge/cli.cjs +4709 -1961
  5. package/bridge/mcp-server.cjs +112 -11
  6. package/bridge/runtime-cli.cjs +4917 -2645
  7. package/bridge/team-bridge.cjs +6 -4
  8. package/bridge/team-mcp.cjs +19607 -0
  9. package/bridge/team.js +4895 -2215
  10. package/dist/__tests__/auto-slash-aliases.test.js +91 -0
  11. package/dist/__tests__/auto-slash-aliases.test.js.map +1 -1
  12. package/dist/__tests__/hooks/learner/bridge.test.js +25 -0
  13. package/dist/__tests__/hooks/learner/bridge.test.js.map +1 -1
  14. package/dist/__tests__/hooks/learner/parser.test.js +30 -0
  15. package/dist/__tests__/hooks/learner/parser.test.js.map +1 -1
  16. package/dist/__tests__/hud/extra-usage.test.js +42 -0
  17. package/dist/__tests__/hud/extra-usage.test.js.map +1 -1
  18. package/dist/__tests__/hud/labels.test.d.ts +2 -0
  19. package/dist/__tests__/hud/labels.test.d.ts.map +1 -0
  20. package/dist/__tests__/hud/labels.test.js +158 -0
  21. package/dist/__tests__/hud/labels.test.js.map +1 -0
  22. package/dist/__tests__/hud/render-enterprise.test.d.ts +5 -0
  23. package/dist/__tests__/hud/render-enterprise.test.d.ts.map +1 -0
  24. package/dist/__tests__/hud/render-enterprise.test.js +232 -0
  25. package/dist/__tests__/hud/render-enterprise.test.js.map +1 -0
  26. package/dist/__tests__/hud/render-rate-limits-priority.test.js +185 -0
  27. package/dist/__tests__/hud/render-rate-limits-priority.test.js.map +1 -1
  28. package/dist/__tests__/hud/stdin-session-scope.test.d.ts +2 -0
  29. package/dist/__tests__/hud/stdin-session-scope.test.d.ts.map +1 -0
  30. package/dist/__tests__/hud/stdin-session-scope.test.js +169 -0
  31. package/dist/__tests__/hud/stdin-session-scope.test.js.map +1 -0
  32. package/dist/__tests__/hud/usage-api.test.js +111 -1
  33. package/dist/__tests__/hud/usage-api.test.js.map +1 -1
  34. package/dist/__tests__/hud-marketplace-resolution.test.js +34 -0
  35. package/dist/__tests__/hud-marketplace-resolution.test.js.map +1 -1
  36. package/dist/__tests__/installer-hud-skip.test.js +6 -0
  37. package/dist/__tests__/installer-hud-skip.test.js.map +1 -1
  38. package/dist/__tests__/installer-omc-reference.test.js +1 -1
  39. package/dist/__tests__/installer-omc-reference.test.js.map +1 -1
  40. package/dist/__tests__/keyword-detector-echo-guard.test.d.ts +2 -0
  41. package/dist/__tests__/keyword-detector-echo-guard.test.d.ts.map +1 -0
  42. package/dist/__tests__/keyword-detector-echo-guard.test.js +218 -0
  43. package/dist/__tests__/keyword-detector-echo-guard.test.js.map +1 -0
  44. package/dist/__tests__/mnemosyne/detector.test.js +2 -0
  45. package/dist/__tests__/mnemosyne/detector.test.js.map +1 -1
  46. package/dist/__tests__/notepad.test.js +2 -2
  47. package/dist/__tests__/notepad.test.js.map +1 -1
  48. package/dist/__tests__/pre-tool-enforcer.test.js +84 -1
  49. package/dist/__tests__/pre-tool-enforcer.test.js.map +1 -1
  50. package/dist/__tests__/preemptive-compaction-hook.test.js +63 -0
  51. package/dist/__tests__/preemptive-compaction-hook.test.js.map +1 -1
  52. package/dist/__tests__/ralph-prd-mandatory.test.js +11 -1
  53. package/dist/__tests__/ralph-prd-mandatory.test.js.map +1 -1
  54. package/dist/__tests__/ralph-prd.test.js +40 -2
  55. package/dist/__tests__/ralph-prd.test.js.map +1 -1
  56. package/dist/__tests__/skills.test.js +363 -4
  57. package/dist/__tests__/skills.test.js.map +1 -1
  58. package/dist/__tests__/state-root-resolution.test.js +120 -6
  59. package/dist/__tests__/state-root-resolution.test.js.map +1 -1
  60. package/dist/autoresearch/__tests__/runtime.test.js +225 -28
  61. package/dist/autoresearch/__tests__/runtime.test.js.map +1 -1
  62. package/dist/autoresearch/runtime.d.ts.map +1 -1
  63. package/dist/autoresearch/runtime.js +9 -5
  64. package/dist/autoresearch/runtime.js.map +1 -1
  65. package/dist/cli/__tests__/team-status-worktree.test.d.ts +2 -0
  66. package/dist/cli/__tests__/team-status-worktree.test.d.ts.map +1 -0
  67. package/dist/cli/__tests__/team-status-worktree.test.js +96 -0
  68. package/dist/cli/__tests__/team-status-worktree.test.js.map +1 -0
  69. package/dist/cli/__tests__/team.test.js +164 -0
  70. package/dist/cli/__tests__/team.test.js.map +1 -1
  71. package/dist/cli/autoresearch.d.ts +1 -1
  72. package/dist/cli/autoresearch.d.ts.map +1 -1
  73. package/dist/cli/autoresearch.js +4 -4
  74. package/dist/cli/commands/team.d.ts +1 -0
  75. package/dist/cli/commands/team.d.ts.map +1 -1
  76. package/dist/cli/commands/team.js +15 -3
  77. package/dist/cli/commands/team.js.map +1 -1
  78. package/dist/cli/index.js +3 -0
  79. package/dist/cli/index.js.map +1 -1
  80. package/dist/cli/team.d.ts +6 -0
  81. package/dist/cli/team.d.ts.map +1 -1
  82. package/dist/cli/team.js +126 -5
  83. package/dist/cli/team.js.map +1 -1
  84. package/dist/cli/utils/formatting.d.ts +0 -10
  85. package/dist/cli/utils/formatting.d.ts.map +1 -1
  86. package/dist/cli/utils/formatting.js +0 -52
  87. package/dist/cli/utils/formatting.js.map +1 -1
  88. package/dist/config/__tests__/loader.test.js.map +1 -1
  89. package/dist/features/boulder-state/constants.d.ts +1 -1
  90. package/dist/features/boulder-state/constants.d.ts.map +1 -1
  91. package/dist/features/builtin-skills/skills.d.ts.map +1 -1
  92. package/dist/features/builtin-skills/skills.js +11 -3
  93. package/dist/features/builtin-skills/skills.js.map +1 -1
  94. package/dist/features/builtin-skills/types.d.ts +7 -0
  95. package/dist/features/builtin-skills/types.d.ts.map +1 -1
  96. package/dist/features/delegation-enforcer.d.ts +2 -0
  97. package/dist/features/delegation-enforcer.d.ts.map +1 -1
  98. package/dist/features/delegation-enforcer.js +10 -0
  99. package/dist/features/delegation-enforcer.js.map +1 -1
  100. package/dist/features/magic-keywords.d.ts.map +1 -1
  101. package/dist/features/magic-keywords.js +30 -1
  102. package/dist/features/magic-keywords.js.map +1 -1
  103. package/dist/features/rate-limit-wait/tmux-detector.d.ts +4 -4
  104. package/dist/features/rate-limit-wait/tmux-detector.js +9 -9
  105. package/dist/features/rate-limit-wait/tmux-detector.js.map +1 -1
  106. package/dist/hooks/__tests__/bridge-routing.test.js +156 -0
  107. package/dist/hooks/__tests__/bridge-routing.test.js.map +1 -1
  108. package/dist/hooks/auto-slash-command/constants.d.ts.map +1 -1
  109. package/dist/hooks/auto-slash-command/constants.js +1 -0
  110. package/dist/hooks/auto-slash-command/constants.js.map +1 -1
  111. package/dist/hooks/auto-slash-command/executor.d.ts.map +1 -1
  112. package/dist/hooks/auto-slash-command/executor.js +29 -0
  113. package/dist/hooks/auto-slash-command/executor.js.map +1 -1
  114. package/dist/hooks/bridge.d.ts.map +1 -1
  115. package/dist/hooks/bridge.js +184 -1
  116. package/dist/hooks/bridge.js.map +1 -1
  117. package/dist/hooks/learner/bridge.d.ts.map +1 -1
  118. package/dist/hooks/learner/bridge.js +4 -109
  119. package/dist/hooks/learner/bridge.js.map +1 -1
  120. package/dist/hooks/learner/detector.js +1 -1
  121. package/dist/hooks/learner/parser.d.ts +9 -0
  122. package/dist/hooks/learner/parser.d.ts.map +1 -1
  123. package/dist/hooks/learner/parser.js +18 -5
  124. package/dist/hooks/learner/parser.js.map +1 -1
  125. package/dist/hooks/learner/types.d.ts +6 -0
  126. package/dist/hooks/learner/types.d.ts.map +1 -1
  127. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js +16 -0
  128. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js.map +1 -1
  129. package/dist/hooks/notepad/index.d.ts +4 -1
  130. package/dist/hooks/notepad/index.d.ts.map +1 -1
  131. package/dist/hooks/notepad/index.js +7 -4
  132. package/dist/hooks/notepad/index.js.map +1 -1
  133. package/dist/hooks/persistent-mode/__tests__/ralph-verification-flow.test.js +70 -3
  134. package/dist/hooks/persistent-mode/__tests__/ralph-verification-flow.test.js.map +1 -1
  135. package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
  136. package/dist/hooks/persistent-mode/index.js +17 -13
  137. package/dist/hooks/persistent-mode/index.js.map +1 -1
  138. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js +175 -3
  139. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js.map +1 -1
  140. package/dist/hooks/project-memory/__tests__/integration.test.js +117 -3
  141. package/dist/hooks/project-memory/__tests__/integration.test.js.map +1 -1
  142. package/dist/hooks/project-memory/__tests__/storage.test.js +11 -11
  143. package/dist/hooks/project-memory/__tests__/storage.test.js.map +1 -1
  144. package/dist/hooks/project-memory/index.d.ts.map +1 -1
  145. package/dist/hooks/project-memory/index.js +24 -12
  146. package/dist/hooks/project-memory/index.js.map +1 -1
  147. package/dist/hooks/ralph/index.d.ts +1 -1
  148. package/dist/hooks/ralph/index.d.ts.map +1 -1
  149. package/dist/hooks/ralph/index.js +1 -1
  150. package/dist/hooks/ralph/index.js.map +1 -1
  151. package/dist/hooks/ralph/loop.d.ts +6 -6
  152. package/dist/hooks/ralph/loop.d.ts.map +1 -1
  153. package/dist/hooks/ralph/loop.js +18 -18
  154. package/dist/hooks/ralph/loop.js.map +1 -1
  155. package/dist/hooks/ralph/prd.d.ts +23 -12
  156. package/dist/hooks/ralph/prd.d.ts.map +1 -1
  157. package/dist/hooks/ralph/prd.js +88 -42
  158. package/dist/hooks/ralph/prd.js.map +1 -1
  159. package/dist/hooks/session-end/__tests__/mode-state-cleanup.test.js +20 -0
  160. package/dist/hooks/session-end/__tests__/mode-state-cleanup.test.js.map +1 -1
  161. package/dist/hooks/session-end/index.d.ts +9 -0
  162. package/dist/hooks/session-end/index.d.ts.map +1 -1
  163. package/dist/hooks/session-end/index.js +110 -0
  164. package/dist/hooks/session-end/index.js.map +1 -1
  165. package/dist/hooks/skill-bridge.cjs +114 -92
  166. package/dist/hooks/skill-state/index.d.ts.map +1 -1
  167. package/dist/hooks/skill-state/index.js +1 -0
  168. package/dist/hooks/skill-state/index.js.map +1 -1
  169. package/dist/hud/__tests__/enterprise-cost.test.d.ts +5 -0
  170. package/dist/hud/__tests__/enterprise-cost.test.d.ts.map +1 -0
  171. package/dist/hud/__tests__/enterprise-cost.test.js +151 -0
  172. package/dist/hud/__tests__/enterprise-cost.test.js.map +1 -0
  173. package/dist/hud/__tests__/git-status.test.js +18 -0
  174. package/dist/hud/__tests__/git-status.test.js.map +1 -1
  175. package/dist/hud/__tests__/usage-api-enterprise.test.d.ts +5 -0
  176. package/dist/hud/__tests__/usage-api-enterprise.test.d.ts.map +1 -0
  177. package/dist/hud/__tests__/usage-api-enterprise.test.js +249 -0
  178. package/dist/hud/__tests__/usage-api-enterprise.test.js.map +1 -0
  179. package/dist/hud/elements/background.d.ts +3 -3
  180. package/dist/hud/elements/background.d.ts.map +1 -1
  181. package/dist/hud/elements/background.js +5 -4
  182. package/dist/hud/elements/background.js.map +1 -1
  183. package/dist/hud/elements/call-counts.d.ts +2 -2
  184. package/dist/hud/elements/call-counts.d.ts.map +1 -1
  185. package/dist/hud/elements/call-counts.js +7 -6
  186. package/dist/hud/elements/call-counts.js.map +1 -1
  187. package/dist/hud/elements/context.d.ts +3 -3
  188. package/dist/hud/elements/context.d.ts.map +1 -1
  189. package/dist/hud/elements/context.js +5 -4
  190. package/dist/hud/elements/context.js.map +1 -1
  191. package/dist/hud/elements/enterprise-cost.d.ts +16 -0
  192. package/dist/hud/elements/enterprise-cost.d.ts.map +1 -0
  193. package/dist/hud/elements/enterprise-cost.js +63 -0
  194. package/dist/hud/elements/enterprise-cost.js.map +1 -0
  195. package/dist/hud/elements/git.d.ts +2 -1
  196. package/dist/hud/elements/git.d.ts.map +1 -1
  197. package/dist/hud/elements/git.js +7 -6
  198. package/dist/hud/elements/git.js.map +1 -1
  199. package/dist/hud/elements/permission.d.ts.map +1 -1
  200. package/dist/hud/elements/permission.js +2 -5
  201. package/dist/hud/elements/permission.js.map +1 -1
  202. package/dist/hud/elements/ralph.d.ts +2 -2
  203. package/dist/hud/elements/ralph.d.ts.map +1 -1
  204. package/dist/hud/elements/ralph.js +3 -2
  205. package/dist/hud/elements/ralph.js.map +1 -1
  206. package/dist/hud/elements/session.d.ts.map +1 -1
  207. package/dist/hud/elements/session.js +5 -9
  208. package/dist/hud/elements/session.js.map +1 -1
  209. package/dist/hud/elements/thinking.d.ts +2 -2
  210. package/dist/hud/elements/thinking.d.ts.map +1 -1
  211. package/dist/hud/elements/thinking.js +3 -2
  212. package/dist/hud/elements/thinking.js.map +1 -1
  213. package/dist/hud/elements/token-usage.d.ts +2 -2
  214. package/dist/hud/elements/token-usage.d.ts.map +1 -1
  215. package/dist/hud/elements/token-usage.js +3 -2
  216. package/dist/hud/elements/token-usage.js.map +1 -1
  217. package/dist/hud/index.d.ts.map +1 -1
  218. package/dist/hud/index.js +5 -1
  219. package/dist/hud/index.js.map +1 -1
  220. package/dist/hud/render.d.ts.map +1 -1
  221. package/dist/hud/render.js +43 -10
  222. package/dist/hud/render.js.map +1 -1
  223. package/dist/hud/state.d.ts.map +1 -1
  224. package/dist/hud/state.js +18 -1
  225. package/dist/hud/state.js.map +1 -1
  226. package/dist/hud/stdin.d.ts.map +1 -1
  227. package/dist/hud/stdin.js +49 -5
  228. package/dist/hud/stdin.js.map +1 -1
  229. package/dist/hud/types.d.ts +42 -0
  230. package/dist/hud/types.d.ts.map +1 -1
  231. package/dist/hud/types.js +59 -1
  232. package/dist/hud/types.js.map +1 -1
  233. package/dist/hud/usage-api.d.ts +19 -1
  234. package/dist/hud/usage-api.d.ts.map +1 -1
  235. package/dist/hud/usage-api.js +101 -18
  236. package/dist/hud/usage-api.js.map +1 -1
  237. package/dist/installer/__tests__/hud-cache-wrapper.test.d.ts +2 -0
  238. package/dist/installer/__tests__/hud-cache-wrapper.test.d.ts.map +1 -0
  239. package/dist/installer/__tests__/hud-cache-wrapper.test.js +235 -0
  240. package/dist/installer/__tests__/hud-cache-wrapper.test.js.map +1 -0
  241. package/dist/installer/__tests__/standalone-hook-reconcile.test.js +2 -0
  242. package/dist/installer/__tests__/standalone-hook-reconcile.test.js.map +1 -1
  243. package/dist/installer/index.d.ts +1 -0
  244. package/dist/installer/index.d.ts.map +1 -1
  245. package/dist/installer/index.js +83 -31
  246. package/dist/installer/index.js.map +1 -1
  247. package/dist/lib/__tests__/worktree-paths.test.js +162 -39
  248. package/dist/lib/__tests__/worktree-paths.test.js.map +1 -1
  249. package/dist/lib/worktree-paths.d.ts +87 -9
  250. package/dist/lib/worktree-paths.d.ts.map +1 -1
  251. package/dist/lib/worktree-paths.js +209 -27
  252. package/dist/lib/worktree-paths.js.map +1 -1
  253. package/dist/mcp/__tests__/team-server-artifact-convergence.test.js +156 -4
  254. package/dist/mcp/__tests__/team-server-artifact-convergence.test.js.map +1 -1
  255. package/dist/mcp/omc-tools-server.d.ts +11 -17
  256. package/dist/mcp/omc-tools-server.d.ts.map +1 -1
  257. package/dist/mcp/omc-tools-server.js +22 -32
  258. package/dist/mcp/omc-tools-server.js.map +1 -1
  259. package/dist/mcp/team-job-convergence.d.ts +9 -2
  260. package/dist/mcp/team-job-convergence.d.ts.map +1 -1
  261. package/dist/mcp/team-job-convergence.js +35 -14
  262. package/dist/mcp/team-job-convergence.js.map +1 -1
  263. package/dist/mcp/team-server.d.ts.map +1 -1
  264. package/dist/mcp/team-server.js +93 -13
  265. package/dist/mcp/team-server.js.map +1 -1
  266. package/dist/ralphthon/prd.d.ts.map +1 -1
  267. package/dist/ralphthon/prd.js +13 -17
  268. package/dist/ralphthon/prd.js.map +1 -1
  269. package/dist/shared/types.d.ts +2 -0
  270. package/dist/shared/types.d.ts.map +1 -1
  271. package/dist/team/__tests__/api-interop.cleanup.test.d.ts +2 -0
  272. package/dist/team/__tests__/api-interop.cleanup.test.d.ts.map +1 -0
  273. package/dist/team/__tests__/api-interop.cleanup.test.js +234 -0
  274. package/dist/team/__tests__/api-interop.cleanup.test.js.map +1 -0
  275. package/dist/team/__tests__/api-interop.dispatch.test.js +2 -1
  276. package/dist/team/__tests__/api-interop.dispatch.test.js.map +1 -1
  277. package/dist/team/__tests__/auto-merge-restart.test.d.ts +2 -0
  278. package/dist/team/__tests__/auto-merge-restart.test.d.ts.map +1 -0
  279. package/dist/team/__tests__/auto-merge-restart.test.js +128 -0
  280. package/dist/team/__tests__/auto-merge-restart.test.js.map +1 -0
  281. package/dist/team/__tests__/auto-merge.perf.test.d.ts +2 -0
  282. package/dist/team/__tests__/auto-merge.perf.test.d.ts.map +1 -0
  283. package/dist/team/__tests__/auto-merge.perf.test.js +85 -0
  284. package/dist/team/__tests__/auto-merge.perf.test.js.map +1 -0
  285. package/dist/team/__tests__/conflict-mailbox.test.d.ts +2 -0
  286. package/dist/team/__tests__/conflict-mailbox.test.d.ts.map +1 -0
  287. package/dist/team/__tests__/conflict-mailbox.test.js +238 -0
  288. package/dist/team/__tests__/conflict-mailbox.test.js.map +1 -0
  289. package/dist/team/__tests__/git-worktree.test.js +164 -3
  290. package/dist/team/__tests__/git-worktree.test.js.map +1 -1
  291. package/dist/team/__tests__/helpers/git-fixture.d.ts +72 -0
  292. package/dist/team/__tests__/helpers/git-fixture.d.ts.map +1 -0
  293. package/dist/team/__tests__/helpers/git-fixture.js +252 -0
  294. package/dist/team/__tests__/helpers/git-fixture.js.map +1 -0
  295. package/dist/team/__tests__/leader-inbox.test.d.ts +2 -0
  296. package/dist/team/__tests__/leader-inbox.test.d.ts.map +1 -0
  297. package/dist/team/__tests__/leader-inbox.test.js +152 -0
  298. package/dist/team/__tests__/leader-inbox.test.js.map +1 -0
  299. package/dist/team/__tests__/merge-orchestrator.test.d.ts +2 -0
  300. package/dist/team/__tests__/merge-orchestrator.test.d.ts.map +1 -0
  301. package/dist/team/__tests__/merge-orchestrator.test.js +779 -0
  302. package/dist/team/__tests__/merge-orchestrator.test.js.map +1 -0
  303. package/dist/team/__tests__/model-contract.test.js +35 -21
  304. package/dist/team/__tests__/model-contract.test.js.map +1 -1
  305. package/dist/team/__tests__/rebase-smoke.test.d.ts +2 -0
  306. package/dist/team/__tests__/rebase-smoke.test.d.ts.map +1 -0
  307. package/dist/team/__tests__/rebase-smoke.test.js +272 -0
  308. package/dist/team/__tests__/rebase-smoke.test.js.map +1 -0
  309. package/dist/team/__tests__/runtime-cli.test.js +11 -3
  310. package/dist/team/__tests__/runtime-cli.test.js.map +1 -1
  311. package/dist/team/__tests__/runtime-prompt-mode.test.js +14 -16
  312. package/dist/team/__tests__/runtime-prompt-mode.test.js.map +1 -1
  313. package/dist/team/__tests__/runtime-v2-role-routing.test.js +7 -1
  314. package/dist/team/__tests__/runtime-v2-role-routing.test.js.map +1 -1
  315. package/dist/team/__tests__/runtime-v2.dispatch.test.js +293 -15
  316. package/dist/team/__tests__/runtime-v2.dispatch.test.js.map +1 -1
  317. package/dist/team/__tests__/runtime-v2.monitor.test.d.ts +2 -0
  318. package/dist/team/__tests__/runtime-v2.monitor.test.d.ts.map +1 -0
  319. package/dist/team/__tests__/runtime-v2.monitor.test.js +219 -0
  320. package/dist/team/__tests__/runtime-v2.monitor.test.js.map +1 -0
  321. package/dist/team/__tests__/runtime-v2.shutdown.test.d.ts +2 -0
  322. package/dist/team/__tests__/runtime-v2.shutdown.test.d.ts.map +1 -0
  323. package/dist/team/__tests__/runtime-v2.shutdown.test.js +292 -0
  324. package/dist/team/__tests__/runtime-v2.shutdown.test.js.map +1 -0
  325. package/dist/team/__tests__/scaling-launch-config.test.js +203 -3
  326. package/dist/team/__tests__/scaling-launch-config.test.js.map +1 -1
  327. package/dist/team/__tests__/team-summary-worktree.test.d.ts +2 -0
  328. package/dist/team/__tests__/team-summary-worktree.test.d.ts.map +1 -0
  329. package/dist/team/__tests__/team-summary-worktree.test.js +85 -0
  330. package/dist/team/__tests__/team-summary-worktree.test.js.map +1 -0
  331. package/dist/team/__tests__/teardown-invariant.test.d.ts +2 -0
  332. package/dist/team/__tests__/teardown-invariant.test.d.ts.map +1 -0
  333. package/dist/team/__tests__/teardown-invariant.test.js +176 -0
  334. package/dist/team/__tests__/teardown-invariant.test.js.map +1 -0
  335. package/dist/team/__tests__/tmux-session-liveness.test.d.ts +2 -0
  336. package/dist/team/__tests__/tmux-session-liveness.test.d.ts.map +1 -0
  337. package/dist/team/__tests__/tmux-session-liveness.test.js +37 -0
  338. package/dist/team/__tests__/tmux-session-liveness.test.js.map +1 -0
  339. package/dist/team/__tests__/worker-bootstrap.test.js +47 -1
  340. package/dist/team/__tests__/worker-bootstrap.test.js.map +1 -1
  341. package/dist/team/__tests__/worker-commit-cadence.test.d.ts +2 -0
  342. package/dist/team/__tests__/worker-commit-cadence.test.d.ts.map +1 -0
  343. package/dist/team/__tests__/worker-commit-cadence.test.js +315 -0
  344. package/dist/team/__tests__/worker-commit-cadence.test.js.map +1 -0
  345. package/dist/team/__tests__/worktree-contract-fields.test.d.ts +2 -0
  346. package/dist/team/__tests__/worktree-contract-fields.test.d.ts.map +1 -0
  347. package/dist/team/__tests__/worktree-contract-fields.test.js +157 -0
  348. package/dist/team/__tests__/worktree-contract-fields.test.js.map +1 -0
  349. package/dist/team/__tests__/worktree-runtime-e2e.test.d.ts +2 -0
  350. package/dist/team/__tests__/worktree-runtime-e2e.test.d.ts.map +1 -0
  351. package/dist/team/__tests__/worktree-runtime-e2e.test.js +182 -0
  352. package/dist/team/__tests__/worktree-runtime-e2e.test.js.map +1 -0
  353. package/dist/team/api-interop.d.ts +2 -1
  354. package/dist/team/api-interop.d.ts.map +1 -1
  355. package/dist/team/api-interop.js +121 -14
  356. package/dist/team/api-interop.js.map +1 -1
  357. package/dist/team/capabilities.d.ts.map +1 -1
  358. package/dist/team/capabilities.js +2 -0
  359. package/dist/team/capabilities.js.map +1 -1
  360. package/dist/team/cli-worker-contract.d.ts +7 -6
  361. package/dist/team/cli-worker-contract.d.ts.map +1 -1
  362. package/dist/team/cli-worker-contract.js +7 -6
  363. package/dist/team/cli-worker-contract.js.map +1 -1
  364. package/dist/team/conflict-mailbox.d.ts +49 -0
  365. package/dist/team/conflict-mailbox.d.ts.map +1 -0
  366. package/dist/team/conflict-mailbox.js +98 -0
  367. package/dist/team/conflict-mailbox.js.map +1 -0
  368. package/dist/team/events.d.ts +3 -0
  369. package/dist/team/events.d.ts.map +1 -1
  370. package/dist/team/events.js +2 -1
  371. package/dist/team/events.js.map +1 -1
  372. package/dist/team/git-worktree.d.ts +78 -10
  373. package/dist/team/git-worktree.d.ts.map +1 -1
  374. package/dist/team/git-worktree.js +453 -97
  375. package/dist/team/git-worktree.js.map +1 -1
  376. package/dist/team/governance.d.ts +3 -2
  377. package/dist/team/governance.d.ts.map +1 -1
  378. package/dist/team/governance.js.map +1 -1
  379. package/dist/team/leader-inbox.d.ts +28 -0
  380. package/dist/team/leader-inbox.d.ts.map +1 -0
  381. package/dist/team/leader-inbox.js +68 -0
  382. package/dist/team/leader-inbox.js.map +1 -0
  383. package/dist/team/merge-coordinator.d.ts +6 -0
  384. package/dist/team/merge-coordinator.d.ts.map +1 -1
  385. package/dist/team/merge-coordinator.js +6 -2
  386. package/dist/team/merge-coordinator.js.map +1 -1
  387. package/dist/team/merge-orchestrator.d.ts +41 -0
  388. package/dist/team/merge-orchestrator.d.ts.map +1 -0
  389. package/dist/team/merge-orchestrator.js +736 -0
  390. package/dist/team/merge-orchestrator.js.map +1 -0
  391. package/dist/team/model-contract.d.ts +18 -2
  392. package/dist/team/model-contract.d.ts.map +1 -1
  393. package/dist/team/model-contract.js +55 -28
  394. package/dist/team/model-contract.js.map +1 -1
  395. package/dist/team/monitor.d.ts.map +1 -1
  396. package/dist/team/monitor.js +47 -3
  397. package/dist/team/monitor.js.map +1 -1
  398. package/dist/team/runtime-cli.d.ts +1 -0
  399. package/dist/team/runtime-cli.d.ts.map +1 -1
  400. package/dist/team/runtime-cli.js +15 -2
  401. package/dist/team/runtime-cli.js.map +1 -1
  402. package/dist/team/runtime-flags.d.ts +5 -0
  403. package/dist/team/runtime-flags.d.ts.map +1 -0
  404. package/dist/team/runtime-flags.js +12 -0
  405. package/dist/team/runtime-flags.js.map +1 -0
  406. package/dist/team/runtime-v2.d.ts +16 -1
  407. package/dist/team/runtime-v2.d.ts.map +1 -1
  408. package/dist/team/runtime-v2.js +531 -127
  409. package/dist/team/runtime-v2.js.map +1 -1
  410. package/dist/team/runtime.d.ts.map +1 -1
  411. package/dist/team/runtime.js +4 -1
  412. package/dist/team/runtime.js.map +1 -1
  413. package/dist/team/scaling.d.ts.map +1 -1
  414. package/dist/team/scaling.js +110 -13
  415. package/dist/team/scaling.js.map +1 -1
  416. package/dist/team/state/tasks.d.ts.map +1 -1
  417. package/dist/team/state/tasks.js +1 -0
  418. package/dist/team/state/tasks.js.map +1 -1
  419. package/dist/team/team-ops.d.ts.map +1 -1
  420. package/dist/team/team-ops.js +112 -16
  421. package/dist/team/team-ops.js.map +1 -1
  422. package/dist/team/tmux-session.d.ts +17 -29
  423. package/dist/team/tmux-session.d.ts.map +1 -1
  424. package/dist/team/tmux-session.js +117 -108
  425. package/dist/team/tmux-session.js.map +1 -1
  426. package/dist/team/types.d.ts +31 -17
  427. package/dist/team/types.d.ts.map +1 -1
  428. package/dist/team/types.js.map +1 -1
  429. package/dist/team/worker-bootstrap.d.ts +11 -0
  430. package/dist/team/worker-bootstrap.d.ts.map +1 -1
  431. package/dist/team/worker-bootstrap.js +37 -14
  432. package/dist/team/worker-bootstrap.js.map +1 -1
  433. package/dist/team/worker-canonicalization.d.ts.map +1 -1
  434. package/dist/team/worker-canonicalization.js +2 -0
  435. package/dist/team/worker-canonicalization.js.map +1 -1
  436. package/dist/team/worker-commit-cadence.d.ts +70 -0
  437. package/dist/team/worker-commit-cadence.d.ts.map +1 -0
  438. package/dist/team/worker-commit-cadence.js +271 -0
  439. package/dist/team/worker-commit-cadence.js.map +1 -0
  440. package/dist/tools/__tests__/memory-tools.test.js +4 -4
  441. package/dist/tools/__tests__/memory-tools.test.js.map +1 -1
  442. package/dist/tools/__tests__/state-tools.test.js +13 -1
  443. package/dist/tools/__tests__/state-tools.test.js.map +1 -1
  444. package/dist/utils/frontmatter.d.ts.map +1 -1
  445. package/dist/utils/frontmatter.js +1 -16
  446. package/dist/utils/frontmatter.js.map +1 -1
  447. package/dist/utils/resolve-node.d.ts.map +1 -1
  448. package/dist/utils/resolve-node.js +22 -28
  449. package/dist/utils/resolve-node.js.map +1 -1
  450. package/docs/GETTING-STARTED.md +415 -0
  451. package/docs/MIGRATION.md +1003 -0
  452. package/docs/REFERENCE.md +21 -4
  453. package/docs/TEAM-WORKTREE-MODE.md +86 -0
  454. package/docs/company-context-interface.md +5 -16
  455. package/docs/copilot-instructions.md +1 -1
  456. package/package.json +1 -1
  457. package/scripts/keyword-detector.mjs +168 -20
  458. package/scripts/lib/hud-cache-wrapper.sh +122 -0
  459. package/scripts/persistent-mode.cjs +28 -2
  460. package/scripts/persistent-mode.mjs +28 -2
  461. package/scripts/plugin-setup.mjs +10 -1
  462. package/scripts/post-tool-verifier.mjs +153 -3
  463. package/scripts/pre-tool-enforcer.mjs +54 -6
  464. package/scripts/session-start.mjs +194 -2
  465. package/skills/AGENTS.md +22 -91
  466. package/skills/ai-slop-cleaner/SKILL.md +118 -120
  467. package/skills/ask/SKILL.md +6 -8
  468. package/skills/autopilot/SKILL.md +1 -28
  469. package/skills/autoresearch/SKILL.md +5 -5
  470. package/skills/cancel/SKILL.md +13 -13
  471. package/skills/cccg/SKILL.md +1 -0
  472. package/skills/configure-notifications/SKILL.md +80 -215
  473. package/skills/debug/SKILL.md +3 -2
  474. package/skills/deep-dive/SKILL.md +20 -9
  475. package/skills/deep-interview/SKILL.md +32 -4
  476. package/skills/deepinit/SKILL.md +1 -0
  477. package/skills/external-context/SKILL.md +2 -1
  478. package/skills/hud/SKILL.md +22 -52
  479. package/skills/learner/SKILL.md +90 -57
  480. package/skills/mcp-setup/SKILL.md +45 -60
  481. package/skills/omc-doctor/SKILL.md +1 -1
  482. package/skills/omc-reference/SKILL.md +6 -6
  483. package/skills/omc-setup/SKILL.md +30 -74
  484. package/skills/omc-setup/phases/01-install-claude-md.md +97 -0
  485. package/skills/omc-setup/phases/02-configure.md +25 -40
  486. package/skills/omc-setup/phases/03-integrations.md +100 -69
  487. package/skills/omc-setup/phases/04-welcome.md +102 -44
  488. package/skills/omc-teams/SKILL.md +63 -26
  489. package/skills/plan/SKILL.md +11 -9
  490. package/skills/ralph/SKILL.md +42 -41
  491. package/skills/ralplan/SKILL.md +3 -10
  492. package/skills/release/SKILL.md +168 -57
  493. package/skills/remember/SKILL.md +2 -1
  494. package/skills/sciomc/SKILL.md +12 -11
  495. package/skills/self-improve/SKILL.md +4 -4
  496. package/skills/setup/SKILL.md +1 -0
  497. package/skills/skill/SKILL.md +21 -20
  498. package/skills/skillify/SKILL.md +34 -3
  499. package/skills/team/SKILL.md +62 -44
  500. package/skills/ultraqa/SKILL.md +1 -2
  501. package/skills/ultrawork/SKILL.md +28 -21
  502. package/skills/verify/SKILL.md +2 -1
  503. package/skills/writer-memory/SKILL.md +2 -1
  504. package/templates/hooks/keyword-detector.mjs +129 -11
  505. package/templates/hooks/persistent-mode.mjs +28 -2
  506. package/templates/hooks/pre-tool-use.mjs +144 -45
  507. package/templates/hooks/session-start.mjs +25 -1
package/skills/AGENTS.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # skills
5
5
 
6
- 50 skill directories for workflow automation and specialized behaviors.
6
+ 30 skill directories for workflow automation and specialized behaviors.
7
7
 
8
8
  ## Purpose
9
9
 
@@ -31,18 +31,7 @@ Skills are reusable workflow templates that can be invoked via `/oh-my-copilot:s
31
31
  | `plan/SKILL.md` | omc-plan | Strategic planning with interview workflow |
32
32
  | `ralplan/SKILL.md` | ralplan | Iterative planning (Planner+Architect+Critic) with RALPLAN-DR structured deliberation (`--deliberate` for high-risk) |
33
33
  | `deep-interview/SKILL.md` | deep-interview | Socratic deep interview with mathematical ambiguity gating (Ouroboros-inspired) |
34
- | `deep-dive/SKILL.md` | deep-dive | 2-stage pipeline: trace (causal investigation) → deep-interview (requirements crystallization) |
35
-
36
- ### Analysis Skills
37
-
38
- | File | Skill | Purpose |
39
- |-----------|-------|---------|
40
- | `critique/SKILL.md` | critique | Pre-push adversarial critique of unpushed commits via independent devils-advocate agent |
41
- | `deep-review/SKILL.md` | deep-review | Multi-pass code review with security, quality, structural analysis, and validation |
42
- | `discover/SKILL.md` | discover | Spawn parallel specialist agents to scan the codebase and produce a prioritized improvement backlog |
43
- | `trace/SKILL.md` | trace | Evidence-driven causal tracing with competing hypotheses |
44
- | `verify/SKILL.md` | verify | Verify changes work before claiming completion |
45
- | `debug/SKILL.md` | debug | Diagnose session or repo state using logs, traces, state, and focused reproduction |
34
+ | `ralph-init/SKILL.md` | ralph-init | Initialize PRD for structured ralph |
46
35
 
47
36
  ### Exploration Skills
48
37
 
@@ -50,8 +39,6 @@ Skills are reusable workflow templates that can be invoked via `/oh-my-copilot:s
50
39
  |-----------|-------|---------|
51
40
  | `deepinit/SKILL.md` | deepinit | Generate hierarchical AGENTS.md |
52
41
  | `sciomc/SKILL.md` | sciomc | Parallel scientist orchestration |
53
- | `external-context/SKILL.md` | external-context | Parallel document-specialist agents for external web searches and documentation lookup |
54
- | `self-improve/SKILL.md` | self-improve | Autonomous evolutionary code improvement engine with tournament selection |
55
42
 
56
43
  ### Visual Skills
57
44
 
@@ -59,57 +46,23 @@ Skills are reusable workflow templates that can be invoked via `/oh-my-copilot:s
59
46
  |-----------|-------|---------|
60
47
  | `visual-verdict/SKILL.md` | visual-verdict | Structured visual QA verdict for screenshot/reference comparisons |
61
48
 
62
- ### Orchestration Skills
63
-
64
- | File | Skill | Purpose |
65
- |-----------|-------|---------|
66
- | `cccg/SKILL.md` | cccg | Quadri-model orchestration — Claude, Codex, Gemini provide independent analysis, Copilot synthesizes |
67
- | `omc-teams/SKILL.md` | omc-teams | CLI-team runtime for claude, codex, or gemini workers in tmux panes |
68
- | `omc-reference/SKILL.md` | omc-reference | OMC agent catalog, tools, team pipeline routing, commit protocol, and skills registry |
69
-
70
- ### Notification Skills
71
-
72
- | File | Skill | Purpose |
73
- |-----------|-------|---------|
74
- | `configure-notifications/SKILL.md` | configure-notifications | Configure notification integrations (Telegram, Discord, Slack, Teams) |
75
-
76
- ### Azure DevOps Skills
77
-
78
- | File | Skill | Purpose |
79
- |-----------|-------|---------|
80
- | `omc-ado-setup/SKILL.md` | omc-ado-setup | Configure Azure DevOps integration |
81
- | `omc-ado-review/SKILL.md` | omc-ado-review | Review Azure DevOps pull requests |
82
- | `omc-ado-auto-review/SKILL.md` | omc-ado-auto-review | Automated Azure DevOps PR review |
83
- | `omc-ado-sprint/SKILL.md` | omc-ado-sprint | Azure DevOps sprint management |
84
- | `omc-ado-triage/SKILL.md` | omc-ado-triage | Azure DevOps work item triage |
85
-
86
- ### GitHub Skills
87
-
88
- | File | Skill | Purpose |
89
- |-----------|-------|---------|
90
- | `omc-gh-setup/SKILL.md` | omc-gh-setup | Configure GitHub integration |
91
- | `omc-gh-triage/SKILL.md` | omc-gh-triage | Issue/PR/CI triage dashboard |
92
- | `omc-gh-review/SKILL.md` | omc-gh-review | Interactive PR review |
93
- | `omc-gh-auto-review/SKILL.md` | omc-gh-auto-review | Automated PR code review |
94
- | `omc-gh-project/SKILL.md` | omc-gh-project | GitHub Projects board management |
95
-
96
49
  ### Utility Skills
97
50
 
98
51
  | File | Skill | Purpose |
99
52
  |-----------|-------|---------|
100
53
  | `ai-slop-cleaner/SKILL.md` | ai-slop-cleaner | Regression-safe cleanup workflow for AI-generated code slop |
101
- | `learner/SKILL.md` | learner | Extract reusable skill from session |
102
- | `ask/SKILL.md` | ask | Ask Copilot, Codex, or Gemini via `omcp ask` and capture an artifact |
54
+ | `skillify/SKILL.md` | skillify | Extract reusable skill from session |
55
+ | `learner/SKILL.md` | learner | Deprecated compatibility alias/internal implementation history for skillify |
56
+ | `ask/SKILL.md` | ask | Ask Claude, Codex, or Gemini via `omc ask` and capture an artifact |
57
+ | `note/SKILL.md` | note | Save notes for compaction resilience |
103
58
  | `cancel/SKILL.md` | cancel | Cancel any active OMC mode |
104
- | `hud/SKILL.md` | hud | Configure HUD display options (layout, presets, display elements) |
59
+ | `hud/SKILL.md` | hud | Configure HUD display |
105
60
  | `omc-doctor/SKILL.md` | omc-doctor | Diagnose installation issues |
106
- | `remember/SKILL.md` | remember | Review reusable project knowledge and decide what belongs in project memory, notepad, or docs |
107
61
  | `setup/SKILL.md` | setup | Unified setup entrypoint for install, diagnostics, and MCP configuration |
108
62
  | `omc-setup/SKILL.md` | omc-setup | One-time setup wizard |
63
+ | `omc-help/SKILL.md` | omc-help | Usage guide |
109
64
  | `mcp-setup/SKILL.md` | mcp-setup | Configure MCP servers |
110
65
  | `skill/SKILL.md` | skill | Manage local skills |
111
- | `skillify/SKILL.md` | skillify | Turn a repeatable workflow into a reusable OMC skill draft |
112
- | `wiki/SKILL.md` | wiki | Persistent markdown knowledge base that compounds across sessions |
113
66
 
114
67
  ### Domain Skills
115
68
 
@@ -117,22 +70,7 @@ Skills are reusable workflow templates that can be invoked via `/oh-my-copilot:s
117
70
  |-----------|-------|---------|
118
71
  | `project-session-manager/SKILL.md` | project-session-manager (+ `psm` alias) | Isolated dev environments |
119
72
  | `writer-memory/SKILL.md` | writer-memory | Agentic memory for writers |
120
- | `release/SKILL.md` | release | Automated release workflow |
121
- | `ralph-experiment/SKILL.md` | ralph-experiment | Hypothesis-driven experiment loop with structured notebook and git checkpoints |
122
-
123
- ## Permission Model
124
-
125
- All plugin MCP tools use a **three-tier auto-approval system** so agents can operate without `/yolo`:
126
-
127
- - **Tier 1** (read-only): LSP nav, code search, state/memory reads — always auto-approved via `readOnlyHint` annotation
128
- - **Tier 2** (write): State/memory writes, AST replace, LSP rename — auto-approved via `permissions.allow` in `settings.local.json`
129
- - **Tier 3** (destructive): `shared_memory_delete`, `shared_memory_cleanup`, `kill_job` — always prompt user
130
-
131
- Safe bash patterns (git, npm, dotnet, gh, az, grep, find, ls) are auto-approved by the `permissionRequest` hook. Shell metacharacters are always rejected.
132
-
133
- Deny escalation: 3 consecutive or 20 total denials stops the session. All decisions are audit-logged to `.omcp/logs/permissions.log`.
134
-
135
- See [permission architecture](../docs/architecture/permissions.md) for details.
73
+ | `release/SKILL.md` | release | Generic release assistant — analyzes repo CI/rules, caches in `.omcp/RELEASE_RULE.md`, guides the release |
136
74
 
137
75
  ## For AI Agents
138
76
 
@@ -149,6 +87,10 @@ triggers:
149
87
  - "keyword2"
150
88
  agent: executor # Optional: which agent to use
151
89
  model: sonnet # Optional: model override
90
+ pipeline: [skill-name, follow-up-skill] # Optional: standardized multi-skill flow
91
+ next-skill: follow-up-skill # Optional: explicit handoff target
92
+ next-skill-args: --direct # Optional: arguments for the next skill
93
+ handoff: .omcp/plans/example.md # Optional: artifact/context handed to next skill
152
94
  ---
153
95
 
154
96
  # Skill Name
@@ -187,7 +129,7 @@ Any configurable options.
187
129
  2. Define purpose, workflow, and usage
188
130
  3. Add to skill registry (auto-detected from frontmatter)
189
131
  4. Optionally add activation triggers
190
- 5. Create corresponding `commands/new-skill.md` file (mirror)
132
+ 5. Create corresponding plugin-scoped skill/slash surface via `skills/new-skill/SKILL.md` (and generated artifacts when the build requires them)
191
133
  6. Update `docs/REFERENCE.md` (Skills section, count)
192
134
  7. If execution mode skill, also create `src/hooks/new-skill/` hook
193
135
 
@@ -202,6 +144,8 @@ Any configurable options.
202
144
  4. Invoke `qa-tester` for verification
203
145
  ```
204
146
 
147
+ If `pipeline` / `next-skill` metadata is present, OMC appends a standardized **Skill Pipeline** handoff block to the rendered skill prompt so downstream steps are explicit.
148
+
205
149
  **Conditional behavior:**
206
150
  ```markdown
207
151
  ## Workflow
@@ -232,18 +176,12 @@ None - pure markdown files.
232
176
 
233
177
  | Category | Skills | Trigger Keywords |
234
178
  |----------|--------|------------------|
235
- | Execution | autopilot, ultrawork, ralph, team, ultraqa, ralph-experiment, self-improve | "autopilot", "ulw", "ralph", "self-improve" |
236
- | Planning | omc-plan, ralplan, deep-interview, deep-dive | "ralplan", "deep-interview", "ouroboros" |
237
- | Analysis | critique, deep-review, discover, debug, trace, verify | "critique", "code review", "security review", "trace", "verify", "debug" |
238
- | Exploration | deepinit, sciomc, external-context | "deepinit", "sciomc", "external-context" |
239
- | Orchestration | cccg, omc-teams, omc-reference | "cccg", "ask codex", "ask gemini", "ask claude" |
240
- | Visual | visual-verdict | screenshot QA |
241
- | Cleanup | ai-slop-cleaner | "deslop", "anti-slop" |
242
- | Azure DevOps | omc-ado-setup, omc-ado-review, omc-ado-auto-review, omc-ado-sprint, omc-ado-triage | "ado setup", "ado triage" |
243
- | GitHub | omc-gh-setup, omc-gh-triage, omc-gh-review, omc-gh-auto-review, omc-gh-project | "gh setup", "gh triage", "gh review" |
244
- | Notifications | configure-notifications | "configure discord", "setup telegram" |
245
- | Utility | learner, ask, cancel, setup, omc-doctor, omc-setup, mcp-setup, skill, skillify, wiki, hud, remember | "cancelomc", "stopomc", "wiki", "skillify" |
246
- | Domain | project-session-manager, writer-memory, release | psm context |
179
+ | Execution | autopilot, ultrawork, ralph, team, ultraqa | "autopilot", "ulw", "ralph", "team" |
180
+ | Cleanup | ai-slop-cleaner | "deslop", "anti-slop", cleanup/refactor + slop smells |
181
+ | Planning | omc-plan, ralplan, deep-interview, ralph-init | "plan this", "interview me", "ouroboros" |
182
+ | Exploration | deepinit, sciomc, external-context | "deepinit", "research" |
183
+ | Utility | skillify, learner (deprecated alias), note, cancel, hud, setup, omc-doctor, omc-setup, omc-help, mcp-setup | "stop", "cancel" |
184
+ | Domain | psm, writer-memory, release | psm context |
247
185
 
248
186
  ## Auto-Activation
249
187
 
@@ -255,13 +193,6 @@ Some skills activate automatically based on context:
255
193
  | ultrawork | "ulw", "ultrawork" |
256
194
  | ralph | "ralph", "don't stop until" |
257
195
  | deep-interview | "deep interview", "interview me", "ouroboros", "don't assume" |
258
- | critique | "critique", "review before push", "critique my changes" |
259
- | self-improve | "self-improve" |
260
- | ai-slop-cleaner | "deslop", "anti-slop", "clean slop" |
261
- | discover | "discover" |
262
- | trace | "trace" |
263
- | verify | "verify" |
264
- | wiki | "wiki" |
265
196
  | cancel | "stop", "cancel", "abort" |
266
197
 
267
198
  <!-- MANUAL:
@@ -1,135 +1,133 @@
1
1
  ---
2
2
  name: ai-slop-cleaner
3
- description: Clean AI-generated code slop with a test-first, deletion-first deslop workflow and optional reviewer-only mode
3
+ description: Clean AI-generated code slop with a regression-safe, deletion-first workflow and optional reviewer-only mode
4
+ level: 3
4
5
  ---
5
6
 
6
- <Purpose>
7
- Use this skill to systematically clean AI-generated code slop without changing intended behavior. It focuses on simplifying existing code by deleting dead code, collapsing duplicates, removing needless abstractions, tightening boundaries, and reinforcing tests before and after cleanup.
8
- </Purpose>
9
-
10
- <Use_When>
11
- - The user explicitly says "deslop", "anti-slop", or "AI slop"
12
- - The request is to clean up or refactor code that feels bloated, repetitive, or overly abstract
13
- - The user wants a reviewer-only anti-slop pass via `--review` after cleanup work is drafted
14
- - The user calls out duplicate code, dead code, wrapper layers, boundary violations, or weak regression coverage
15
- - The goal is simplification, deletion, and cleanup rather than adding new features
16
- </Use_When>
17
-
18
- <Do_Not_Use_When>
19
- - The task is primarily a new feature build -- use `autopilot` or direct implementation instead
20
- - The user wants a broad architecture redesign rather than an incremental cleanup pass
21
- - The request is a generic refactor with no cleanup/simplification intent
22
- - Behavior is unclear and there are no tests or concrete anchors -- clarify scope first
23
- </Do_Not_Use_When>
24
-
25
- <Why_This_Exists>
26
- AI-generated code often works while still adding avoidable complexity: duplicate helpers, dead branches, wrapper layers, inconsistent naming, boundary leaks, and missing tests. This skill enforces a disciplined cleanup workflow so simplification happens deliberately instead of as vague "refactoring" that might expand scope.
27
- </Why_This_Exists>
28
-
29
- <Review_Mode>
30
- ### Review Mode (`--review`)
31
- `--review` activates an explicit reviewer pass after the cleanup writer pass.
7
+ # AI Slop Cleaner
8
+
9
+ Use this skill to clean AI-generated code slop without drifting scope or changing intended behavior. In OMC, this is the bounded cleanup workflow for code that works but feels bloated, repetitive, weakly tested, or over-abstracted.
10
+
11
+ ## When to Use
12
+
13
+ Use this skill when:
14
+ - the user explicitly says `deslop`, `anti-slop`, or `AI slop`
15
+ - the request is to clean up or refactor code that feels noisy, repetitive, or overly abstract
16
+ - follow-up implementation left duplicate logic, dead code, wrapper layers, boundary leaks, or weak regression coverage
17
+ - the user wants a reviewer-only anti-slop pass via `--review`
18
+ - the goal is simplification and cleanup, not new feature delivery
19
+
20
+ ## When Not to Use
21
+
22
+ Do not use this skill when:
23
+ - the task is mainly a new feature build or product change
24
+ - the user wants a broad redesign instead of an incremental cleanup pass
25
+ - the request is a generic refactor with no simplification or anti-slop intent
26
+ - behavior is too unclear to protect with tests or a concrete verification plan
27
+
28
+ ## OMC Execution Posture
29
+
30
+ - Preserve behavior unless the user explicitly asks for behavior changes.
31
+ - Lock behavior with focused regression tests first whenever practical.
32
+ - Write a cleanup plan before editing code.
33
+ - Prefer deletion over addition.
34
+ - Reuse existing utilities and patterns before introducing new ones.
35
+ - Avoid new dependencies unless the user explicitly requests them.
36
+ - Keep diffs small, reversible, and smell-focused.
37
+ - Stay concise and evidence-dense: inspect, edit, verify, and report.
38
+ - Treat new user instructions as local scope updates without dropping earlier non-conflicting constraints.
39
+
40
+ ## Scoped File-List Usage
41
+
42
+ This skill can be bounded to an explicit file list or changed-file scope when the caller already knows the safe cleanup surface.
43
+
44
+ - Good fit: `oh-my-copilot:ai-slop-cleaner skills/ralph/SKILL.md skills/ai-slop-cleaner/SKILL.md`
45
+ - Good fit: a Ralph session handing off only the files changed in that session
46
+ - Preserve the same regression-safe workflow even when the scope is a short file list
47
+ - Do not silently expand a changed-file scope into broader cleanup work unless the user explicitly asks for it
48
+
49
+ ## Ralph Integration
50
+
51
+ Ralph can invoke this skill as a bounded post-review cleanup pass.
52
+
53
+ - In that workflow, the cleaner runs in standard mode (not `--review`)
54
+ - The cleanup scope is the Ralph session's changed files only
55
+ - After the cleanup pass, Ralph re-runs regression verification before completion
56
+ - `--review` remains the reviewer-only follow-up mode, not the default Ralph integration path
57
+
58
+ ## Review Mode (`--review`)
59
+
60
+ `--review` is a reviewer-only pass after cleanup work is drafted. It exists to preserve explicit writer/reviewer separation for anti-slop work.
32
61
 
33
62
  - **Writer pass**: make the cleanup changes with behavior locked by tests.
34
- - **Reviewer pass (`--review`)**: inspect the result for duplication, dead code, boundary violations, missing tests, and unnecessary abstractions.
35
- - The same pass must not both write and self-approve without a separate review step.
63
+ - **Reviewer pass**: inspect the cleanup plan, changed files, and verification evidence.
64
+ - The same pass must not both write and self-approve high-impact cleanup without a separate review step.
36
65
 
37
66
  In review mode:
38
- 1. Do **not** make edits first.
39
- 2. Inspect the cleanup plan, changed files, and regression coverage.
67
+ 1. Do **not** start by editing files.
68
+ 2. Review the cleanup plan, changed files, and regression coverage.
40
69
  3. Check specifically for:
41
70
  - leftover dead code or unused exports
42
- - duplicate logic that was not consolidated
71
+ - duplicate logic that should have been consolidated
43
72
  - needless wrappers or abstractions that still blur boundaries
44
73
  - missing tests or weak verification for preserved behavior
45
- - risky cleanup that changed behavior without explicit intent
74
+ - cleanup that appears to have changed behavior without intent
46
75
  4. Produce a reviewer verdict with required follow-ups.
47
- 5. If changes are needed, hand them back to a separate writer/executor pass instead of fixing and approving in one pass.
48
-
49
- This mode exists to preserve writer/reviewer separation: the authoring pass changes code, the reviewer pass evaluates whether the cleanup actually reduced slop safely.
50
- </Review_Mode>
51
-
52
- <Execution_Policy>
53
- - Preserve behavior unless the user explicitly asks for behavior changes
54
- - Lock behavior with regression tests first whenever practical
55
- - Write a cleanup plan before editing code
56
- - Prefer deletion over addition
57
- - Reuse existing utilities and patterns before introducing anything new
58
- - Avoid new dependencies unless the user explicitly requests them
59
- - Keep diffs small, reversible, and smell-focused
60
- - Keep writer/reviewer separation: author in one pass, review in another
61
- - Verify with lint/typecheck/tests/static analysis relevant to the touched area
62
- </Execution_Policy>
63
-
64
- <Steps>
65
- 1. **Lock behavior first**
66
- - Identify the current behavior and add or strengthen regression tests before cleanup when practical
67
- - If tests cannot be added first, record the verification plan explicitly before editing
68
-
69
- 2. **Create a cleanup plan**
70
- - Do not start coding immediately
71
- - List the targeted smells and the files likely involved
72
- - Sequence cleanup passes from lowest-risk deletion to higher-risk consolidation
73
-
74
- 3. **Categorize the slop**
75
- - Duplicate code
76
- - Dead or unused code
77
- - Needless abstraction / wrapper layers
78
- - Boundary violations / misplaced responsibilities
79
- - Missing or weak tests
80
-
81
- 4. **Execute one smell-focused pass at a time**
82
- - **Pass 1: Dead code deletion** -- remove unused branches, helpers, exports, and stale comments
83
- - **Pass 2: Duplicate removal** -- consolidate repeated logic into existing patterns where possible
84
- - **Pass 3: Naming and error-handling cleanup** -- tighten naming, trim noisy plumbing, normalize obvious inconsistencies
85
- - **Pass 4: Test reinforcement** -- fill any regression gaps revealed by the cleanup
86
-
87
- 5. **Run quality gates**
88
- - Run the relevant lint, typecheck, unit/integration tests, and any static or security checks already present for the touched area
89
- - If a gate fails, fix the underlying issue or revert the risky cleanup instead of forcing it through
90
-
91
- 6. **Optional `--review` pass**
92
- - Run a distinct reviewer pass that checks duplication, dead code, boundary violations, test coverage, and needless abstractions
93
- - If the reviewer finds issues, address them in a follow-up cleanup pass before closing the task
94
-
95
- 7. **Report outcome**
96
- - Changed files
97
- - Simplifications made
98
- - Behavior locked by tests
99
- - Remaining risks or slop intentionally left for a later pass
100
- </Steps>
101
-
102
- <Examples>
103
- <Good>
104
- User: "deslop this module -- too many wrappers, duplicate helpers, and dead code"
105
- Why good: Explicit anti-slop intent with concrete cleanup smells.
106
- </Good>
107
-
108
- <Good>
109
- User: "cleanup the AI slop in src/auth: remove dead code and tighten boundaries"
110
- Why good: Cleanup/refactor request is clearly about simplification, not feature work.
111
- </Good>
112
-
113
- <Bad>
114
- User: "refactor auth to support SSO"
115
- Why bad: This is feature work disguised as refactoring, not anti-slop cleanup.
116
- </Bad>
117
-
118
- <Bad>
119
- User: "clean up formatting"
120
- Why bad: Formatting-only work does not need the full anti-slop workflow.
121
- </Bad>
122
- </Examples>
123
-
124
- <Final_Report>
125
- Always end with:
126
- - **Changed files**
127
- - **Simplifications**
128
- - **Verification run**
129
- - **Remaining risks**
130
- </Final_Report>
131
-
132
- <Usage>
76
+ 5. Hand needed changes back to a separate writer pass instead of fixing and approving in one step.
77
+
78
+ ## Workflow
79
+
80
+ 1. **Protect current behavior first**
81
+ - Identify what must stay the same.
82
+ - Add or run the narrowest regression tests needed before editing.
83
+ - If tests cannot come first, record the verification plan explicitly before touching code.
84
+
85
+ 2. **Write a cleanup plan before code**
86
+ - Bound the pass to the requested files or feature area.
87
+ - List the concrete smells to remove.
88
+ - Order the work from safest deletion to riskier consolidation.
89
+
90
+ 3. **Classify the slop before editing**
91
+ - **Duplication** — repeated logic, copy-paste branches, redundant helpers
92
+ - **Dead code** — unused code, unreachable branches, stale flags, debug leftovers
93
+ - **Needless abstraction** — pass-through wrappers, speculative indirection, single-use helper layers
94
+ - **Boundary violations** — hidden coupling, misplaced responsibilities, wrong-layer imports or side effects
95
+ - **Missing tests** — behavior not locked, weak regression coverage, edge-case gaps
96
+
97
+ 4. **Run one smell-focused pass at a time**
98
+ - **Pass 1: Dead code deletion**
99
+ - **Pass 2: Duplicate removal**
100
+ - **Pass 3: Naming and error-handling cleanup**
101
+ - **Pass 4: Test reinforcement**
102
+ - Re-run targeted verification after each pass.
103
+ - Do not bundle unrelated refactors into the same edit set.
104
+
105
+ 5. **Run the quality gates**
106
+ - Keep regression tests green.
107
+ - Run the relevant lint, typecheck, and unit/integration tests for the touched area.
108
+ - Run existing static or security checks when available.
109
+ - If a gate fails, fix the issue or back out the risky cleanup instead of forcing it through.
110
+
111
+ 6. **Close with an evidence-dense report**
112
+ Always report:
113
+ - **Changed files**
114
+ - **Simplifications**
115
+ - **Behavior lock / verification run**
116
+ - **Remaining risks**
117
+
118
+ ## Usage
119
+
133
120
  - `/oh-my-copilot:ai-slop-cleaner <target>`
134
121
  - `/oh-my-copilot:ai-slop-cleaner <target> --review`
135
- </Usage>
122
+ - `/oh-my-copilot:ai-slop-cleaner <file-a> <file-b> <file-c>`
123
+ - From Ralph: run the cleaner on the Ralph session's changed files only, then return to Ralph for post-cleanup regression verification
124
+
125
+ ## Good Fits
126
+
127
+ **Good:** `deslop this module: too many wrappers, duplicate helpers, and dead code`
128
+
129
+ **Good:** `cleanup the AI slop in src/auth and tighten boundaries without changing behavior`
130
+
131
+ **Bad:** `refactor auth to support SSO`
132
+
133
+ **Bad:** `clean up formatting`
@@ -1,22 +1,21 @@
1
1
  ---
2
2
  name: ask
3
- description: Process-first advisor routing for Copilot, Claude, Codex, or Gemini via `omcp ask`, with artifact capture and no raw CLI assembly
3
+ description: Process-first advisor routing for Claude, Codex, or Gemini via `omc ask`, with artifact capture and no raw CLI assembly
4
4
  ---
5
5
 
6
6
  # Ask
7
7
 
8
- Use OMC's canonical advisor skill to route a prompt through a local CLI (Copilot, Claude, Codex, or Gemini) and persist the result as an ask artifact.
8
+ Use OMC's canonical advisor skill to route a prompt through the local Claude, Codex, or Gemini CLI and persist the result as an ask artifact.
9
9
 
10
10
  ## Usage
11
11
 
12
12
  ```bash
13
- /oh-my-copilot:ask <copilot|claude|codex|gemini> <question or task>
13
+ /oh-my-copilot:ask <claude|codex|gemini> <question or task>
14
14
  ```
15
15
 
16
16
  Examples:
17
17
 
18
18
  ```bash
19
- /oh-my-copilot:ask copilot "get a fresh perspective on this design decision"
20
19
  /oh-my-copilot:ask codex "review this patch from a security perspective"
21
20
  /oh-my-copilot:ask gemini "suggest UX improvements for this flow"
22
21
  /oh-my-copilot:ask claude "draft an implementation plan for issue #123"
@@ -27,10 +26,10 @@ Examples:
27
26
  **Required execution path — always use this command:**
28
27
 
29
28
  ```bash
30
- omcp ask {{ARGUMENTS}}
29
+ omc ask {{ARGUMENTS}}
31
30
  ```
32
31
 
33
- **Do NOT manually construct raw provider CLI commands.** Never run `copilot`, `codex`, `claude`, or `gemini` directly to fulfill this skill. The `omcp ask` wrapper handles correct flag selection, artifact persistence, and provider-version compatibility automatically. Manually assembling provider CLI flags will produce incorrect or outdated invocations.
32
+ **Do NOT manually construct raw provider CLI commands.** Never run `codex`, `claude`, or `gemini` directly to fulfill this skill. The `omc ask` wrapper handles correct flag selection, artifact persistence, and provider-version compatibility automatically. Manually assembling provider CLI flags will produce incorrect or outdated invocations.
34
33
 
35
34
  ## Requirements
36
35
 
@@ -38,7 +37,6 @@ omcp ask {{ARGUMENTS}}
38
37
  - Verify availability with the matching command:
39
38
 
40
39
  ```bash
41
- copilot --version
42
40
  claude --version
43
41
  codex --version
44
42
  gemini --version
@@ -46,7 +44,7 @@ gemini --version
46
44
 
47
45
  ## Artifacts
48
46
 
49
- `omcp ask` writes artifacts to:
47
+ `omc ask` writes artifacts to:
50
48
 
51
49
  ```text
52
50
  .omcp/artifacts/ask/<provider>-<slug>-<timestamp>.md
@@ -28,20 +28,6 @@ Autopilot takes a brief product idea and autonomously handles the full lifecycle
28
28
  Most non-trivial software tasks require coordinated phases: understanding requirements, designing a solution, implementing in parallel, testing, and validating quality. Autopilot orchestrates all of these phases automatically so the user can describe what they want and receive working code without managing each step.
29
29
  </Why_This_Exists>
30
30
 
31
- <Complexity_Gate>
32
- Before starting Phase 0, classify the task complexity:
33
-
34
- 1. **Heuristic check** (zero-cost): The system's complexity classifier runs pattern matching on your prompt
35
- 2. **AI assessment** (if heuristic inconclusive): Spawn an `explore` agent (haiku) to assess complexity
36
-
37
- **Routing by complexity:**
38
- - **SIMPLE** (e.g., "fix typo", "rename variable", "bump version"): Skip Phase 0 and Phase 1 entirely. Jump directly to Phase 2 (Execution) with a minimal plan.
39
- - **STANDARD** (default): Run the normal autopilot flow (all phases)
40
- - **COMPLEX** (e.g., auth systems, migrations, distributed architecture): Run all phases AND add Critic review after Phase 0 and Phase 1 for additional quality gates
41
-
42
- Complexity result is stored in `.omcp/state/sessions/{sessionId}/complexity.json` for downstream phases to reference.
43
- </Complexity_Gate>
44
-
45
31
  <Execution_Policy>
46
32
  - Each phase must complete before the next begins
47
33
  - Parallel execution is used within phases where possible (Phase 2 and Phase 4)
@@ -58,27 +44,23 @@ Complexity result is stored in `.omcp/state/sessions/{sessionId}/complexity.json
58
44
  - **If input is vague** (no file paths, function names, or concrete anchors): Offer redirect to `/deep-interview` for Socratic clarification before expanding
59
45
  - **Otherwise**: Analyst (Opus) extracts requirements, Architect (Opus) creates technical specification
60
46
  - Output: `.omcp/autopilot/spec.md`
61
- - **Context capture**: Phase 0 output (spec summary) is captured for injection into Phase 1
62
47
 
63
48
  2. **Phase 1 - Planning**: Create an implementation plan from the spec
64
49
  - **If ralplan consensus plan exists**: Skip — already done in the 3-stage pipeline
65
50
  - Architect (Opus): Create plan (direct mode, no interview)
66
51
  - Critic (Opus): Validate plan
67
52
  - Output: `.omcp/plans/autopilot-impl.md`
68
- - **Context capture**: Phase 1 output (plan summary) is captured for injection into Phase 2
69
53
 
70
54
  3. **Phase 2 - Execution**: Implement the plan using Ralph + Ultrawork
71
55
  - Executor (Haiku): Simple tasks
72
56
  - Executor (Sonnet): Standard tasks
73
57
  - Executor (Opus): Complex tasks
74
58
  - Run independent tasks in parallel
75
- - **Context capture**: Phase 2 output (implementation summary: files changed, decisions made) is captured for injection into Phase 3
76
59
 
77
60
  4. **Phase 3 - QA**: Cycle until all tests pass (UltraQA mode)
78
61
  - Build, lint, test, fix failures
79
62
  - Repeat up to 5 cycles
80
63
  - Stop early if the same error repeats 3 times (indicates a fundamental issue)
81
- - **Context capture**: Phase 3 output (QA results) is captured for injection into Phase 4
82
64
 
83
65
  5. **Phase 4 - Validation**: Multi-perspective review in parallel
84
66
  - Architect: Functional completeness
@@ -95,7 +77,7 @@ Complexity result is stored in `.omcp/state/sessions/{sessionId}/complexity.json
95
77
  - Use `Task(subagent_type="oh-my-copilot:architect", ...)` for Phase 4 architecture validation
96
78
  - Use `Task(subagent_type="oh-my-copilot:security-reviewer", ...)` for Phase 4 security review
97
79
  - Use `Task(subagent_type="oh-my-copilot:code-reviewer", ...)` for Phase 4 quality review
98
- - Agents form their own analysis first, then spawn Copilot Task agents for cross-validation
80
+ - Agents form their own analysis first, then spawn Claude Task agents for cross-validation
99
81
  - Never block on external tools; proceed with available agents if delegation fails
100
82
  </Tool_Usage>
101
83
 
@@ -138,15 +120,6 @@ Why bad: This is an exploration/brainstorming request. Respond conversationally
138
120
  </Final_Checklist>
139
121
 
140
122
  <Advanced>
141
- ## Context Accumulation
142
-
143
- Autopilot captures key outputs from each phase and injects them into the next phase's agent prompt as a `<prior-phase-context>` block. This ensures downstream agents have context from earlier phases without needing to re-read files.
144
-
145
- - Phase outputs are truncated to 12KB each
146
- - Context is session-scoped and cleared on `/cancel`
147
- - Includes: spec summaries, plan summaries, implementation decisions, QA results
148
- - Stored in `.omcp/state/sessions/{sessionId}/phase-context.json`
149
-
150
123
  ## Configuration
151
124
 
152
125
  Optional settings in `.copilot/omg.jsonc` (project) or `~/.config/copilot-omg/config.jsonc` (user):
@@ -12,14 +12,14 @@ Autoresearch is a stateful skill for bounded, evaluator-driven iterative improve
12
12
  <Use_When>
13
13
  - You already have a mission and evaluator from `/deep-interview --autoresearch`
14
14
  - You want persistent single-mission improvement with strict evaluation
15
- - You need durable experiment logs under `.omc/autoresearch/`
15
+ - You need durable experiment logs under `.omcp/autoresearch/`
16
16
  - You want a supported path for periodic reruns via Claude Code native cron
17
17
  </Use_When>
18
18
 
19
19
  <Do_Not_Use_When>
20
20
  - You need evaluator generation at runtime — use `/deep-interview --autoresearch` first
21
21
  - You need multiple missions orchestrated together — v1 forbids that
22
- - You want the deprecated `omcp autoresearch` CLI flow — it is no longer authoritative
22
+ - You want the deprecated `omc autoresearch` CLI flow — it is no longer authoritative
23
23
  </Do_Not_Use_When>
24
24
 
25
25
  <Contract>
@@ -31,7 +31,7 @@ Autoresearch is a stateful skill for bounded, evaluator-driven iterative improve
31
31
  </Contract>
32
32
 
33
33
  <Required_Artifacts>
34
- Canonical persistent storage lives under `.omc/autoresearch/<mission-slug>/` and/or `.omc/logs/autoresearch/<run-id>/`.
34
+ Canonical persistent storage lives under `.omcp/autoresearch/<mission-slug>/` and/or `.omcp/logs/autoresearch/<run-id>/`.
35
35
 
36
36
  Minimum required artifacts:
37
37
  - mission spec
@@ -41,7 +41,7 @@ Minimum required artifacts:
41
41
 
42
42
  Recommended canonical shape:
43
43
  ```text
44
- .omc/autoresearch/<mission-slug>/
44
+ .omcp/autoresearch/<mission-slug>/
45
45
  mission.md
46
46
  evaluator.json
47
47
  runs/<run-id>/
@@ -83,7 +83,7 @@ If cron is used:
83
83
  </Cron_Integration>
84
84
 
85
85
  <Execution_Policy>
86
- - Do not hand execution back to `omcp autoresearch`
86
+ - Do not hand execution back to `omc autoresearch`
87
87
  - Do not create multi-mission orchestration
88
88
  - Prefer reusing `src/autoresearch/*` runtime/schema helpers where they already match the stricter contract
89
89
  - Keep logs useful to humans, not only machines