oh-my-copilot 4.13.2 → 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 (311) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +1 -1
  4. package/bridge/cli.cjs +2522 -949
  5. package/bridge/mcp-server.cjs +97 -9
  6. package/bridge/runtime-cli.cjs +1256 -133
  7. package/bridge/team.js +1241 -65
  8. package/dist/__tests__/auto-slash-aliases.test.js +91 -0
  9. package/dist/__tests__/auto-slash-aliases.test.js.map +1 -1
  10. package/dist/__tests__/hud/labels.test.d.ts +2 -0
  11. package/dist/__tests__/hud/labels.test.d.ts.map +1 -0
  12. package/dist/__tests__/hud/labels.test.js +158 -0
  13. package/dist/__tests__/hud/labels.test.js.map +1 -0
  14. package/dist/__tests__/hud/render-rate-limits-priority.test.js +26 -0
  15. package/dist/__tests__/hud/render-rate-limits-priority.test.js.map +1 -1
  16. package/dist/__tests__/hud-marketplace-resolution.test.js +34 -0
  17. package/dist/__tests__/hud-marketplace-resolution.test.js.map +1 -1
  18. package/dist/__tests__/installer-hud-skip.test.js +6 -0
  19. package/dist/__tests__/installer-hud-skip.test.js.map +1 -1
  20. package/dist/__tests__/installer-omc-reference.test.js +1 -1
  21. package/dist/__tests__/installer-omc-reference.test.js.map +1 -1
  22. package/dist/__tests__/mnemosyne/detector.test.js +2 -0
  23. package/dist/__tests__/mnemosyne/detector.test.js.map +1 -1
  24. package/dist/__tests__/notepad.test.js +2 -2
  25. package/dist/__tests__/notepad.test.js.map +1 -1
  26. package/dist/__tests__/pre-tool-enforcer.test.js +84 -1
  27. package/dist/__tests__/pre-tool-enforcer.test.js.map +1 -1
  28. package/dist/__tests__/ralph-prd-mandatory.test.js +11 -1
  29. package/dist/__tests__/ralph-prd-mandatory.test.js.map +1 -1
  30. package/dist/__tests__/ralph-prd.test.js +40 -2
  31. package/dist/__tests__/ralph-prd.test.js.map +1 -1
  32. package/dist/__tests__/skills.test.js +363 -4
  33. package/dist/__tests__/skills.test.js.map +1 -1
  34. package/dist/__tests__/state-root-resolution.test.js +56 -6
  35. package/dist/__tests__/state-root-resolution.test.js.map +1 -1
  36. package/dist/autoresearch/__tests__/runtime.test.js +225 -28
  37. package/dist/autoresearch/__tests__/runtime.test.js.map +1 -1
  38. package/dist/autoresearch/runtime.d.ts.map +1 -1
  39. package/dist/autoresearch/runtime.js +9 -5
  40. package/dist/autoresearch/runtime.js.map +1 -1
  41. package/dist/cli/autoresearch.d.ts +1 -1
  42. package/dist/cli/autoresearch.d.ts.map +1 -1
  43. package/dist/cli/autoresearch.js +4 -4
  44. package/dist/cli/commands/team.d.ts +1 -0
  45. package/dist/cli/commands/team.d.ts.map +1 -1
  46. package/dist/cli/commands/team.js +14 -2
  47. package/dist/cli/commands/team.js.map +1 -1
  48. package/dist/cli/index.js +3 -0
  49. package/dist/cli/index.js.map +1 -1
  50. package/dist/cli/team.d.ts +6 -0
  51. package/dist/cli/team.d.ts.map +1 -1
  52. package/dist/cli/team.js +23 -1
  53. package/dist/cli/team.js.map +1 -1
  54. package/dist/config/__tests__/loader.test.js.map +1 -1
  55. package/dist/features/boulder-state/constants.d.ts +1 -1
  56. package/dist/features/boulder-state/constants.d.ts.map +1 -1
  57. package/dist/features/builtin-skills/skills.d.ts.map +1 -1
  58. package/dist/features/builtin-skills/skills.js +11 -3
  59. package/dist/features/builtin-skills/skills.js.map +1 -1
  60. package/dist/features/builtin-skills/types.d.ts +7 -0
  61. package/dist/features/builtin-skills/types.d.ts.map +1 -1
  62. package/dist/features/magic-keywords.d.ts.map +1 -1
  63. package/dist/features/magic-keywords.js +30 -1
  64. package/dist/features/magic-keywords.js.map +1 -1
  65. package/dist/features/rate-limit-wait/tmux-detector.d.ts +4 -4
  66. package/dist/features/rate-limit-wait/tmux-detector.js +9 -9
  67. package/dist/features/rate-limit-wait/tmux-detector.js.map +1 -1
  68. package/dist/hooks/__tests__/bridge-routing.test.js +156 -0
  69. package/dist/hooks/__tests__/bridge-routing.test.js.map +1 -1
  70. package/dist/hooks/auto-slash-command/constants.d.ts.map +1 -1
  71. package/dist/hooks/auto-slash-command/constants.js +1 -0
  72. package/dist/hooks/auto-slash-command/constants.js.map +1 -1
  73. package/dist/hooks/auto-slash-command/executor.d.ts.map +1 -1
  74. package/dist/hooks/auto-slash-command/executor.js +29 -0
  75. package/dist/hooks/auto-slash-command/executor.js.map +1 -1
  76. package/dist/hooks/bridge.d.ts.map +1 -1
  77. package/dist/hooks/bridge.js +184 -1
  78. package/dist/hooks/bridge.js.map +1 -1
  79. package/dist/hooks/learner/detector.js +1 -1
  80. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js +16 -0
  81. package/dist/hooks/mode-registry/__tests__/session-isolation.test.js.map +1 -1
  82. package/dist/hooks/notepad/index.d.ts +4 -1
  83. package/dist/hooks/notepad/index.d.ts.map +1 -1
  84. package/dist/hooks/notepad/index.js +7 -4
  85. package/dist/hooks/notepad/index.js.map +1 -1
  86. package/dist/hooks/persistent-mode/__tests__/ralph-verification-flow.test.js +70 -3
  87. package/dist/hooks/persistent-mode/__tests__/ralph-verification-flow.test.js.map +1 -1
  88. package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
  89. package/dist/hooks/persistent-mode/index.js +10 -9
  90. package/dist/hooks/persistent-mode/index.js.map +1 -1
  91. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js +64 -9
  92. package/dist/hooks/persistent-mode/stop-hook-blocking.test.js.map +1 -1
  93. package/dist/hooks/project-memory/__tests__/integration.test.js +117 -3
  94. package/dist/hooks/project-memory/__tests__/integration.test.js.map +1 -1
  95. package/dist/hooks/project-memory/__tests__/storage.test.js +11 -11
  96. package/dist/hooks/project-memory/__tests__/storage.test.js.map +1 -1
  97. package/dist/hooks/project-memory/index.d.ts.map +1 -1
  98. package/dist/hooks/project-memory/index.js +24 -12
  99. package/dist/hooks/project-memory/index.js.map +1 -1
  100. package/dist/hooks/ralph/index.d.ts +1 -1
  101. package/dist/hooks/ralph/index.d.ts.map +1 -1
  102. package/dist/hooks/ralph/index.js +1 -1
  103. package/dist/hooks/ralph/index.js.map +1 -1
  104. package/dist/hooks/ralph/loop.d.ts +6 -6
  105. package/dist/hooks/ralph/loop.d.ts.map +1 -1
  106. package/dist/hooks/ralph/loop.js +18 -18
  107. package/dist/hooks/ralph/loop.js.map +1 -1
  108. package/dist/hooks/ralph/prd.d.ts +23 -12
  109. package/dist/hooks/ralph/prd.d.ts.map +1 -1
  110. package/dist/hooks/ralph/prd.js +88 -42
  111. package/dist/hooks/ralph/prd.js.map +1 -1
  112. package/dist/hooks/session-end/__tests__/mode-state-cleanup.test.js +20 -0
  113. package/dist/hooks/session-end/__tests__/mode-state-cleanup.test.js.map +1 -1
  114. package/dist/hooks/session-end/index.d.ts +9 -0
  115. package/dist/hooks/session-end/index.d.ts.map +1 -1
  116. package/dist/hooks/session-end/index.js +67 -0
  117. package/dist/hooks/session-end/index.js.map +1 -1
  118. package/dist/hooks/skill-bridge.cjs +6 -5
  119. package/dist/hooks/skill-state/index.d.ts.map +1 -1
  120. package/dist/hooks/skill-state/index.js +1 -0
  121. package/dist/hooks/skill-state/index.js.map +1 -1
  122. package/dist/hud/__tests__/git-status.test.js +18 -0
  123. package/dist/hud/__tests__/git-status.test.js.map +1 -1
  124. package/dist/hud/elements/background.d.ts +3 -3
  125. package/dist/hud/elements/background.d.ts.map +1 -1
  126. package/dist/hud/elements/background.js +5 -4
  127. package/dist/hud/elements/background.js.map +1 -1
  128. package/dist/hud/elements/call-counts.d.ts +2 -2
  129. package/dist/hud/elements/call-counts.d.ts.map +1 -1
  130. package/dist/hud/elements/call-counts.js +7 -6
  131. package/dist/hud/elements/call-counts.js.map +1 -1
  132. package/dist/hud/elements/context.d.ts +3 -3
  133. package/dist/hud/elements/context.d.ts.map +1 -1
  134. package/dist/hud/elements/context.js +5 -4
  135. package/dist/hud/elements/context.js.map +1 -1
  136. package/dist/hud/elements/git.d.ts +2 -1
  137. package/dist/hud/elements/git.d.ts.map +1 -1
  138. package/dist/hud/elements/git.js +7 -6
  139. package/dist/hud/elements/git.js.map +1 -1
  140. package/dist/hud/elements/ralph.d.ts +2 -2
  141. package/dist/hud/elements/ralph.d.ts.map +1 -1
  142. package/dist/hud/elements/ralph.js +3 -2
  143. package/dist/hud/elements/ralph.js.map +1 -1
  144. package/dist/hud/elements/thinking.d.ts +2 -2
  145. package/dist/hud/elements/thinking.d.ts.map +1 -1
  146. package/dist/hud/elements/thinking.js +3 -2
  147. package/dist/hud/elements/thinking.js.map +1 -1
  148. package/dist/hud/elements/token-usage.d.ts +2 -2
  149. package/dist/hud/elements/token-usage.d.ts.map +1 -1
  150. package/dist/hud/elements/token-usage.js +3 -2
  151. package/dist/hud/elements/token-usage.js.map +1 -1
  152. package/dist/hud/render.d.ts.map +1 -1
  153. package/dist/hud/render.js +11 -10
  154. package/dist/hud/render.js.map +1 -1
  155. package/dist/hud/state.d.ts.map +1 -1
  156. package/dist/hud/state.js +18 -1
  157. package/dist/hud/state.js.map +1 -1
  158. package/dist/hud/types.d.ts +26 -0
  159. package/dist/hud/types.d.ts.map +1 -1
  160. package/dist/hud/types.js +58 -0
  161. package/dist/hud/types.js.map +1 -1
  162. package/dist/installer/__tests__/hud-cache-wrapper.test.d.ts +2 -0
  163. package/dist/installer/__tests__/hud-cache-wrapper.test.d.ts.map +1 -0
  164. package/dist/installer/__tests__/hud-cache-wrapper.test.js +235 -0
  165. package/dist/installer/__tests__/hud-cache-wrapper.test.js.map +1 -0
  166. package/dist/installer/__tests__/standalone-hook-reconcile.test.js +2 -0
  167. package/dist/installer/__tests__/standalone-hook-reconcile.test.js.map +1 -1
  168. package/dist/installer/index.d.ts.map +1 -1
  169. package/dist/installer/index.js +19 -7
  170. package/dist/installer/index.js.map +1 -1
  171. package/dist/lib/__tests__/worktree-paths.test.js +162 -39
  172. package/dist/lib/__tests__/worktree-paths.test.js.map +1 -1
  173. package/dist/lib/worktree-paths.d.ts +87 -9
  174. package/dist/lib/worktree-paths.d.ts.map +1 -1
  175. package/dist/lib/worktree-paths.js +209 -27
  176. package/dist/lib/worktree-paths.js.map +1 -1
  177. package/dist/team/__tests__/auto-merge-restart.test.d.ts +2 -0
  178. package/dist/team/__tests__/auto-merge-restart.test.d.ts.map +1 -0
  179. package/dist/team/__tests__/auto-merge-restart.test.js +128 -0
  180. package/dist/team/__tests__/auto-merge-restart.test.js.map +1 -0
  181. package/dist/team/__tests__/auto-merge.perf.test.d.ts +2 -0
  182. package/dist/team/__tests__/auto-merge.perf.test.d.ts.map +1 -0
  183. package/dist/team/__tests__/auto-merge.perf.test.js +85 -0
  184. package/dist/team/__tests__/auto-merge.perf.test.js.map +1 -0
  185. package/dist/team/__tests__/conflict-mailbox.test.d.ts +2 -0
  186. package/dist/team/__tests__/conflict-mailbox.test.d.ts.map +1 -0
  187. package/dist/team/__tests__/conflict-mailbox.test.js +238 -0
  188. package/dist/team/__tests__/conflict-mailbox.test.js.map +1 -0
  189. package/dist/team/__tests__/helpers/git-fixture.d.ts +72 -0
  190. package/dist/team/__tests__/helpers/git-fixture.d.ts.map +1 -0
  191. package/dist/team/__tests__/helpers/git-fixture.js +252 -0
  192. package/dist/team/__tests__/helpers/git-fixture.js.map +1 -0
  193. package/dist/team/__tests__/leader-inbox.test.d.ts +2 -0
  194. package/dist/team/__tests__/leader-inbox.test.d.ts.map +1 -0
  195. package/dist/team/__tests__/leader-inbox.test.js +152 -0
  196. package/dist/team/__tests__/leader-inbox.test.js.map +1 -0
  197. package/dist/team/__tests__/merge-orchestrator.test.d.ts +2 -0
  198. package/dist/team/__tests__/merge-orchestrator.test.d.ts.map +1 -0
  199. package/dist/team/__tests__/merge-orchestrator.test.js +779 -0
  200. package/dist/team/__tests__/merge-orchestrator.test.js.map +1 -0
  201. package/dist/team/__tests__/rebase-smoke.test.d.ts +2 -0
  202. package/dist/team/__tests__/rebase-smoke.test.d.ts.map +1 -0
  203. package/dist/team/__tests__/rebase-smoke.test.js +272 -0
  204. package/dist/team/__tests__/rebase-smoke.test.js.map +1 -0
  205. package/dist/team/__tests__/runtime-cli.test.js +9 -1
  206. package/dist/team/__tests__/runtime-cli.test.js.map +1 -1
  207. package/dist/team/__tests__/runtime-v2.dispatch.test.js +150 -1
  208. package/dist/team/__tests__/runtime-v2.dispatch.test.js.map +1 -1
  209. package/dist/team/__tests__/teardown-invariant.test.d.ts +2 -0
  210. package/dist/team/__tests__/teardown-invariant.test.d.ts.map +1 -0
  211. package/dist/team/__tests__/teardown-invariant.test.js +176 -0
  212. package/dist/team/__tests__/teardown-invariant.test.js.map +1 -0
  213. package/dist/team/__tests__/worker-commit-cadence.test.d.ts +2 -0
  214. package/dist/team/__tests__/worker-commit-cadence.test.d.ts.map +1 -0
  215. package/dist/team/__tests__/worker-commit-cadence.test.js +315 -0
  216. package/dist/team/__tests__/worker-commit-cadence.test.js.map +1 -0
  217. package/dist/team/__tests__/worktree-runtime-e2e.test.d.ts +2 -0
  218. package/dist/team/__tests__/worktree-runtime-e2e.test.d.ts.map +1 -0
  219. package/dist/team/__tests__/worktree-runtime-e2e.test.js +182 -0
  220. package/dist/team/__tests__/worktree-runtime-e2e.test.js.map +1 -0
  221. package/dist/team/conflict-mailbox.d.ts +49 -0
  222. package/dist/team/conflict-mailbox.d.ts.map +1 -0
  223. package/dist/team/conflict-mailbox.js +98 -0
  224. package/dist/team/conflict-mailbox.js.map +1 -0
  225. package/dist/team/leader-inbox.d.ts +28 -0
  226. package/dist/team/leader-inbox.d.ts.map +1 -0
  227. package/dist/team/leader-inbox.js +68 -0
  228. package/dist/team/leader-inbox.js.map +1 -0
  229. package/dist/team/merge-coordinator.d.ts +6 -0
  230. package/dist/team/merge-coordinator.d.ts.map +1 -1
  231. package/dist/team/merge-coordinator.js +6 -2
  232. package/dist/team/merge-coordinator.js.map +1 -1
  233. package/dist/team/merge-orchestrator.d.ts +41 -0
  234. package/dist/team/merge-orchestrator.d.ts.map +1 -0
  235. package/dist/team/merge-orchestrator.js +736 -0
  236. package/dist/team/merge-orchestrator.js.map +1 -0
  237. package/dist/team/runtime-cli.d.ts +1 -0
  238. package/dist/team/runtime-cli.d.ts.map +1 -1
  239. package/dist/team/runtime-cli.js +15 -2
  240. package/dist/team/runtime-cli.js.map +1 -1
  241. package/dist/team/runtime-flags.d.ts +5 -0
  242. package/dist/team/runtime-flags.d.ts.map +1 -0
  243. package/dist/team/runtime-flags.js +12 -0
  244. package/dist/team/runtime-flags.js.map +1 -0
  245. package/dist/team/runtime-v2.d.ts +7 -1
  246. package/dist/team/runtime-v2.d.ts.map +1 -1
  247. package/dist/team/runtime-v2.js +185 -8
  248. package/dist/team/runtime-v2.js.map +1 -1
  249. package/dist/team/worker-bootstrap.d.ts +4 -0
  250. package/dist/team/worker-bootstrap.d.ts.map +1 -1
  251. package/dist/team/worker-bootstrap.js +10 -1
  252. package/dist/team/worker-bootstrap.js.map +1 -1
  253. package/dist/team/worker-commit-cadence.d.ts +70 -0
  254. package/dist/team/worker-commit-cadence.d.ts.map +1 -0
  255. package/dist/team/worker-commit-cadence.js +271 -0
  256. package/dist/team/worker-commit-cadence.js.map +1 -0
  257. package/dist/tools/__tests__/memory-tools.test.js +4 -4
  258. package/dist/tools/__tests__/memory-tools.test.js.map +1 -1
  259. package/dist/tools/__tests__/state-tools.test.js +13 -1
  260. package/dist/tools/__tests__/state-tools.test.js.map +1 -1
  261. package/docs/GETTING-STARTED.md +415 -0
  262. package/docs/MIGRATION.md +66 -66
  263. package/docs/REFERENCE.md +21 -4
  264. package/docs/company-context-interface.md +5 -16
  265. package/docs/copilot-instructions.md +1 -1
  266. package/package.json +1 -1
  267. package/scripts/lib/hud-cache-wrapper.sh +122 -0
  268. package/scripts/plugin-setup.mjs +10 -1
  269. package/scripts/post-tool-verifier.mjs +118 -5
  270. package/scripts/pre-tool-enforcer.mjs +54 -6
  271. package/scripts/session-start.mjs +171 -3
  272. package/skills/AGENTS.md +22 -91
  273. package/skills/ai-slop-cleaner/SKILL.md +118 -120
  274. package/skills/ask/SKILL.md +6 -8
  275. package/skills/autopilot/SKILL.md +1 -28
  276. package/skills/autoresearch/SKILL.md +5 -5
  277. package/skills/cancel/SKILL.md +13 -13
  278. package/skills/cccg/SKILL.md +1 -0
  279. package/skills/configure-notifications/SKILL.md +80 -215
  280. package/skills/debug/SKILL.md +3 -2
  281. package/skills/deep-dive/SKILL.md +20 -9
  282. package/skills/deep-interview/SKILL.md +32 -4
  283. package/skills/deepinit/SKILL.md +1 -0
  284. package/skills/external-context/SKILL.md +2 -1
  285. package/skills/hud/SKILL.md +22 -52
  286. package/skills/learner/SKILL.md +90 -57
  287. package/skills/mcp-setup/SKILL.md +45 -60
  288. package/skills/omc-doctor/SKILL.md +1 -1
  289. package/skills/omc-reference/SKILL.md +6 -6
  290. package/skills/omc-setup/SKILL.md +30 -74
  291. package/skills/omc-setup/phases/01-install-claude-md.md +97 -0
  292. package/skills/omc-setup/phases/02-configure.md +25 -40
  293. package/skills/omc-setup/phases/03-integrations.md +100 -69
  294. package/skills/omc-setup/phases/04-welcome.md +102 -44
  295. package/skills/omc-teams/SKILL.md +63 -26
  296. package/skills/plan/SKILL.md +11 -9
  297. package/skills/ralph/SKILL.md +42 -41
  298. package/skills/ralplan/SKILL.md +3 -10
  299. package/skills/release/SKILL.md +168 -57
  300. package/skills/remember/SKILL.md +2 -1
  301. package/skills/sciomc/SKILL.md +12 -11
  302. package/skills/self-improve/SKILL.md +4 -4
  303. package/skills/setup/SKILL.md +1 -0
  304. package/skills/skill/SKILL.md +21 -20
  305. package/skills/skillify/SKILL.md +34 -3
  306. package/skills/team/SKILL.md +62 -44
  307. package/skills/ultraqa/SKILL.md +1 -2
  308. package/skills/ultrawork/SKILL.md +28 -21
  309. package/skills/verify/SKILL.md +2 -1
  310. package/skills/writer-memory/SKILL.md +2 -1
  311. package/templates/hooks/pre-tool-use.mjs +144 -45
@@ -1,26 +1,27 @@
1
1
  ---
2
2
  name: mcp-setup
3
3
  description: Configure popular MCP servers for enhanced agent capabilities
4
+ level: 2
4
5
  ---
5
6
 
6
7
  # MCP Setup
7
8
 
8
- Configure Model Context Protocol (MCP) servers to extend Copilot CLI's capabilities with external tools like web search, token optimization, and DevOps integration.
9
+ Configure Model Context Protocol (MCP) servers to extend Claude Code's capabilities with external tools like web search, file system access, and GitHub integration.
9
10
 
10
11
  ## Overview
11
12
 
12
- MCP servers provide additional tools that Copilot CLI agents can use. This skill helps you configure popular MCP servers using the `copilot mcp add` command-line interface.
13
+ MCP servers provide additional tools that Claude Code agents can use. This skill helps you configure popular MCP servers using the `claude mcp add` command-line interface.
13
14
 
14
15
  ## Step 1: Choose a Setup Path
15
16
 
16
- Use **AskUserQuestion** with **one question at a time** and **no more than 3 options per question**. Recent Copilot CLI builds reject larger option payloads as invalid tool parameters, so keep the MCP selection flow staged.
17
+ Use **AskUserQuestion** with **one question at a time** and **no more than 3 options per question**. Recent Claude Code builds reject larger option payloads as invalid tool parameters, so keep the MCP selection flow staged.
17
18
 
18
19
  ### Step 1.1: First menu
19
20
 
20
21
  **Question:** "What kind of MCP setup would you like?"
21
22
 
22
23
  **Options:**
23
- 1. **Recommended starter setup** - Fast path for the most common OMCP MCP additions
24
+ 1. **Recommended starter setup** - Fast path for the most common OMC MCP additions
24
25
  2. **Individual popular server** - Pick one built-in server from a short follow-up menu
25
26
  3. **Custom server** - Add your own stdio or HTTP MCP server
26
27
 
@@ -32,8 +33,8 @@ Ask a follow-up **AskUserQuestion**:
32
33
 
33
34
  **Options:**
34
35
  1. **Context7 only (Recommended)** - Zero-config docs/context server
35
- 2. **Context7 + lean-ctx** - Docs/context plus token-saving compression layer
36
- 3. **Full recommended bundle** - Context7, lean-ctx, Exa, and GitHub
36
+ 2. **Context7 + Exa** - Docs/context plus enhanced web search
37
+ 3. **Full recommended bundle** - Context7, Exa, Filesystem, and GitHub
37
38
 
38
39
  Map that choice to the server list you will configure.
39
40
 
@@ -45,17 +46,17 @@ Ask a follow-up **AskUserQuestion**:
45
46
 
46
47
  **Options:**
47
48
  1. **Context7 (Recommended)** - Documentation and code context from popular libraries
48
- 2. **lean-ctx** - Token-saving compression layer for Read/Grep/Bash tools
49
- 3. **More server choices** - Exa, GitHub, Azure DevOps, or the full recommended bundle
49
+ 2. **Exa Web Search** - Enhanced web search (replaces built-in websearch)
50
+ 3. **More server choices** - Filesystem, GitHub, or the full recommended bundle
50
51
 
51
52
  If the user chooses **More server choices**, ask one more **AskUserQuestion**:
52
53
 
53
54
  **Question:** "Which additional MCP option do you want?"
54
55
 
55
56
  **Options:**
56
- 1. **Exa Web Search** - Enhanced web search (replaces built-in websearch)
57
- 2. **GitHub / Azure DevOps** - Repository and project management integration
58
- 3. **Full recommended bundle** - Configure Context7, lean-ctx, Exa, and GitHub together
57
+ 1. **Filesystem (Recommended)** - Extended file system access with additional capabilities
58
+ 2. **GitHub** - GitHub API integration for issues, PRs, and repository management
59
+ 3. **Full recommended bundle** - Configure Context7, Exa, Filesystem, and GitHub together
59
60
 
60
61
  ### Step 1.4: If the user chooses "Custom server"
61
62
 
@@ -74,9 +75,13 @@ Do you have an Exa API key?
74
75
  - Enter your API key, or type 'skip' to configure later
75
76
  ```
76
77
 
77
- ### For lean-ctx:
78
- No API key required. Installs automatically. Saves 60-80% input tokens via caching and compression.
79
- More info: https://github.com/yvgude/lean-ctx
78
+ ### For Filesystem:
79
+ Ask for allowed directories:
80
+ ```
81
+ Which directories should the filesystem MCP have access to?
82
+ Default: Current working directory
83
+ Enter comma-separated paths, or press Enter for default
84
+ ```
80
85
 
81
86
  ### For GitHub:
82
87
  Ask for token:
@@ -87,64 +92,46 @@ Do you have a GitHub Personal Access Token?
87
92
  - Enter your token, or type 'skip' to configure later
88
93
  ```
89
94
 
90
- ### For Azure DevOps:
91
- Ask for organization:
92
- ```
93
- What is your Azure DevOps organization URL?
94
- - Example: https://dev.azure.com/my-org
95
- - Enter your organization URL, or type 'skip' to configure later
96
- ```
97
- More info: https://github.com/microsoft/azure-devops-mcp
98
-
99
95
  ## Step 3: Add MCP Servers Using CLI
100
96
 
101
- Use the `copilot mcp add` command to configure each MCP server. The CLI automatically handles settings.json updates and merging.
97
+ Use the `claude mcp add` command to configure each MCP server. The CLI automatically handles settings.json updates and merging.
102
98
 
103
99
  ### Context7 Configuration:
104
100
  ```bash
105
- copilot mcp add context7 -- npx -y @upstash/context7-mcp
101
+ claude mcp add context7 -- npx -y @upstash/context7-mcp
106
102
  ```
107
103
 
108
104
  ### Exa Web Search Configuration:
109
105
  ```bash
110
- copilot mcp add -e EXA_API_KEY=<user-provided-key> exa -- npx -y exa-mcp-server
106
+ claude mcp add -e EXA_API_KEY=<user-provided-key> exa -- npx -y exa-mcp-server
111
107
  ```
112
108
 
113
- ### lean-ctx Configuration:
109
+ ### Filesystem Configuration:
114
110
  ```bash
115
- npm install -g lean-ctx-bin && lean-ctx setup
111
+ claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem <allowed-directories>
116
112
  ```
117
- > Note: lean-ctx uses its own installer (`lean-ctx setup`) which auto-configures shell and all detected editors. It hooks into existing tools (Read, Grep, Bash) to compress and cache results automatically.
118
-
119
113
 
120
114
  ### GitHub Configuration:
121
115
 
122
116
  **Option 1: Docker (local)**
123
117
  ```bash
124
- copilot mcp add -e GITHUB_PERSONAL_ACCESS_TOKEN=<user-provided-token> github -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
118
+ claude mcp add -e GITHUB_PERSONAL_ACCESS_TOKEN=<user-provided-token> github -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
125
119
  ```
126
120
 
127
121
  **Option 2: HTTP (remote)**
128
122
  ```bash
129
- copilot mcp add --transport http github https://api.githubcopilot.com/mcp/
123
+ claude mcp add --transport http github https://api.githubcopilot.com/mcp/
130
124
  ```
131
125
 
132
126
  > Note: Docker option requires Docker installed. HTTP option is simpler but may have different capabilities.
133
127
 
134
- ### Azure DevOps Configuration:
135
- ```bash
136
- copilot mcp add azure-devops -- npx -y @microsoft/azure-devops-mcp
137
- ```
138
-
139
- > Note: Requires Azure DevOps authentication. Run `az login` first or configure a PAT. See https://github.com/microsoft/azure-devops-mcp for setup details.
140
-
141
128
  ## Step 4: Verify Installation
142
129
 
143
130
  After configuration, verify the MCP servers are properly set up:
144
131
 
145
132
  ```bash
146
133
  # List configured MCP servers
147
- copilot mcp list
134
+ claude mcp list
148
135
  ```
149
136
 
150
137
  This will display all configured MCP servers and their status.
@@ -158,27 +145,26 @@ CONFIGURED SERVERS:
158
145
  [List the servers that were configured]
159
146
 
160
147
  NEXT STEPS:
161
- 1. Restart Copilot CLI for changes to take effect
148
+ 1. Restart Claude Code for changes to take effect
162
149
  2. The configured MCP tools will be available to all agents
163
- 3. Run `copilot mcp list` to verify configuration
150
+ 3. Run `claude mcp list` to verify configuration
164
151
 
165
152
  USAGE TIPS:
166
153
  - Context7: Ask about library documentation (e.g., "How do I use React hooks?")
167
154
  - Exa: Use for web searches (e.g., "Search the web for latest TypeScript features")
168
- - lean-ctx: Automatic — compresses Read/Grep/Bash results to save tokens
155
+ - Filesystem: Extended file operations beyond the working directory
169
156
  - GitHub: Interact with GitHub repos, issues, and PRs
170
- - Azure DevOps: Manage work items, pipelines, repos, and wikis
171
157
 
172
158
  TROUBLESHOOTING:
173
- - If MCP servers don't appear, run `copilot mcp list` to check status
159
+ - If MCP servers don't appear, run `claude mcp list` to check status
174
160
  - Ensure you have Node.js 18+ installed for npx-based servers
175
161
  - For GitHub Docker option, ensure Docker is installed and running
176
162
  - Run /oh-my-copilot:omc-doctor to diagnose issues
177
163
 
178
164
  MANAGING MCP SERVERS:
179
- - Add more servers: /oh-my-copilot:mcp-setup or `copilot mcp add ...`
180
- - List servers: `copilot mcp list`
181
- - Remove a server: `copilot mcp remove <server-name>`
165
+ - Add more servers: /oh-my-copilot:mcp-setup or `claude mcp add ...`
166
+ - List servers: `claude mcp list`
167
+ - Remove a server: `claude mcp remove <server-name>`
182
168
  ```
183
169
 
184
170
  ## Custom MCP Server
@@ -193,24 +179,24 @@ Ask for:
193
179
  5. Environment variables (optional, key=value pairs)
194
180
  6. HTTP headers (optional, for http transport only)
195
181
 
196
- Then construct and run the appropriate `copilot mcp add` command:
182
+ Then construct and run the appropriate `claude mcp add` command:
197
183
 
198
184
  **For stdio servers:**
199
185
  ```bash
200
186
  # Without environment variables
201
- copilot mcp add <server-name> -- <command> [args...]
187
+ claude mcp add <server-name> -- <command> [args...]
202
188
 
203
189
  # With environment variables
204
- copilot mcp add -e KEY1=value1 -e KEY2=value2 <server-name> -- <command> [args...]
190
+ claude mcp add -e KEY1=value1 -e KEY2=value2 <server-name> -- <command> [args...]
205
191
  ```
206
192
 
207
193
  **For HTTP servers:**
208
194
  ```bash
209
195
  # Basic HTTP server
210
- copilot mcp add --transport http <server-name> <url>
196
+ claude mcp add --transport http <server-name> <url>
211
197
 
212
198
  # HTTP server with headers
213
- copilot mcp add --transport http --header "Authorization: Bearer <token>" <server-name> <url>
199
+ claude mcp add --transport http --header "Authorization: Bearer <token>" <server-name> <url>
214
200
  ```
215
201
 
216
202
  ### Company-context convention
@@ -220,7 +206,7 @@ If the custom server is meant to provide organization-specific reference materia
220
206
  Example local registration:
221
207
 
222
208
  ```bash
223
- copilot mcp add company-context -- node examples/vendor-mcp-server/server.mjs
209
+ claude mcp add company-context -- node examples/vendor-mcp-server/server.mjs
224
210
  ```
225
211
 
226
212
  Then point OMC at the full tool name in `.copilot/omg.jsonc` or `~/.config/copilot-omg/config.jsonc`:
@@ -241,20 +227,19 @@ This remains advisory prompt context, not runtime enforcement.
241
227
  ### MCP Server Not Loading
242
228
  - Ensure Node.js 18+ is installed
243
229
  - Check that npx is available in PATH
244
- - Run `copilot mcp list` to verify server status
230
+ - Run `claude mcp list` to verify server status
245
231
  - Check server logs for errors
246
232
 
247
233
  ### API Key Issues
248
234
  - Exa: Verify key at https://dashboard.exa.ai
249
235
  - GitHub: Ensure token has required scopes (repo, read:org)
250
- - Azure DevOps: Run `az login` or check PAT permissions
251
- - Re-run `copilot mcp add` with correct credentials if needed
236
+ - Re-run `claude mcp add` with correct credentials if needed
252
237
 
253
238
  ### Agents Still Using Built-in Tools
254
- - Restart Copilot CLI after configuration
239
+ - Restart Claude Code after configuration
255
240
  - The built-in websearch will be deprioritized when exa is configured
256
- - Run `copilot mcp list` to confirm servers are active
241
+ - Run `claude mcp list` to confirm servers are active
257
242
 
258
243
  ### Removing or Updating a Server
259
- - Remove: `copilot mcp remove <server-name>`
244
+ - Remove: `claude mcp remove <server-name>`
260
245
  - Update: Remove the old server, then add it again with new configuration
@@ -110,7 +110,7 @@ ls -la "${COPILOT_CONFIG_DIR:-$HOME/.copilot}"/skills/ 2>/dev/null
110
110
  `architect.md`, `document-specialist.md`, `explore.md`, `executor.md`, `debugger.md`, `planner.md`, `analyst.md`, `critic.md`, `verifier.md`, `test-engineer.md`, `designer.md`, `writer.md`, `qa-tester.md`, `scientist.md`, `security-reviewer.md`, `code-reviewer.md`, `git-master.md`, `code-simplifier.md`
111
111
 
112
112
  **Known plugin skill names** (check skills/ for these):
113
- `ai-slop-cleaner`, `ask`, `autopilot`, `cancel`, `cccg`, `configure-notifications`, `deep-interview`, `deepinit`, `external-context`, `hud`, `learner`, `mcp-setup`, `omc-doctor`, `omc-setup`, `omc-teams`, `plan`, `project-session-manager`, `ralph`, `ralplan`, `release`, `sciomc`, `setup`, `skill`, `team`, `ultraqa`, `ultrawork`, `visual-verdict`, `writer-memory`
113
+ `ai-slop-cleaner`, `ask`, `autopilot`, `cancel`, `cccg`, `configure-notifications`, `deep-interview`, `deepinit`, `external-context`, `hud`, `skillify`, `learner`, `mcp-setup`, `omc-doctor`, `omc-setup`, `omc-teams`, `plan`, `project-session-manager`, `ralph`, `ralplan`, `release`, `sciomc`, `setup`, `skill`, `team`, `ultraqa`, `ultrawork`, `visual-verdict`, `writer-memory`
114
114
 
115
115
  **Known plugin command names** (check commands/ for these):
116
116
  `ultrawork.md`, `deepsearch.md`
@@ -42,9 +42,9 @@ Prefix: `oh-my-copilot:`. See `agents/*.md` for full prompts.
42
42
 
43
43
  ### External AI / orchestration
44
44
  - `/team N:executor "task"`
45
- - `omcp team N:codex|gemini "..."`
46
- - `omcp ask <claude|codex|gemini>`
47
- - `/cccg`
45
+ - `omc team N:codex|gemini "..."`
46
+ - `omc ask <claude|codex|gemini>`
47
+ - `/ccg`
48
48
 
49
49
  ### OMC state
50
50
  - `state_read`, `state_write`, `state_clear`, `state_list_active`, `state_get_status`
@@ -73,7 +73,7 @@ Invoke built-in workflows via `/oh-my-copilot:<name>`.
73
73
  - `ultrawork` — high-throughput parallel execution
74
74
  - `visual-verdict` — structured visual QA verdicts
75
75
  - `team` — coordinated team orchestration
76
- - `cccg` — Copilot + Claude + Codex + Gemini quad-model orchestration
76
+ - `ccg` — Codex + Gemini + Claude synthesis lane
77
77
  - `ultraqa` — QA cycle: test, verify, fix, repeat
78
78
  - `omc-plan` — planning workflow and `/plan`-safe alias
79
79
  - `ralplan` — consensus planning workflow
@@ -84,13 +84,13 @@ Invoke built-in workflows via `/oh-my-copilot:<name>`.
84
84
  - `ai-slop-cleaner` — regression-safe cleanup workflow
85
85
 
86
86
  ### Utility skills
87
- - `ask`, `cancel`, `note`, `learner`, `omc-setup`, `mcp-setup`, `hud`, `omc-doctor`, `trace`, `release`, `project-session-manager`, `skill`, `writer-memory`, `configure-notifications`
87
+ - `ask`, `cancel`, `note`, `skillify`, `learner` (deprecated alias), `omc-setup`, `mcp-setup`, `hud`, `omc-doctor`, `trace`, `release`, `project-session-manager`, `skill`, `writer-memory`, `configure-notifications`
88
88
 
89
89
  ### Keyword triggers kept compact in CLAUDE.md
90
90
  - `"autopilot"→autopilot`
91
91
  - `"ralph"→ralph`
92
92
  - `"ulw"→ultrawork`
93
- - `"cccg"→cccg`
93
+ - `"ccg"→ccg`
94
94
  - `"ralplan"→ralplan`
95
95
  - `"deep interview"→deep-interview`
96
96
  - `"deslop" / "anti-slop"→ai-slop-cleaner`
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: omc-setup
3
3
  description: Install or refresh oh-my-copilot for plugin, npm, and local-dev setups from the canonical setup flow
4
+ level: 2
4
5
  ---
5
6
 
6
7
  # OMC Setup
@@ -9,14 +10,14 @@ This is the **only command you need to learn**. After running this, everything e
9
10
 
10
11
  **When this skill is invoked, immediately execute the workflow below. Do not only restate or summarize these instructions back to the user.**
11
12
 
12
- Note: All `~/.copilot/...` paths in this guide respect `COPILOT_CONFIG_DIR` when that environment variable is set.
13
+ Note: All `~/.claude/...` paths in this guide respect `COPILOT_CONFIG_DIR` when that environment variable is set.
13
14
 
14
15
  ## Best-Fit Use
15
16
 
16
17
  Choose this setup flow when the user wants to **install, refresh, or repair OMC itself**.
17
18
 
18
19
  - Marketplace/plugin install users should land here after `/plugin install oh-my-copilot`
19
- - npm users should land here after `npm i -g oh-my-copilot@latest`
20
+ - npm users should land here after `npm i -g oh-my-claude-sisyphus@latest`
20
21
  - local-dev and worktree users should land here after updating the checked-out repo and rerunning setup
21
22
 
22
23
  ## Flag Parsing
@@ -37,15 +38,15 @@ OMC Setup - Configure oh-my-copilot
37
38
 
38
39
  USAGE:
39
40
  /oh-my-copilot:omc-setup Run initial setup wizard (or update if already configured)
40
- /oh-my-copilot:omc-setup --local Configure local project (.copilot/copilot-instructions.md)
41
- /oh-my-copilot:omc-setup --global Configure global settings (~/.copilot/copilot-instructions.md)
41
+ /oh-my-copilot:omc-setup --local Configure local project (.claude/CLAUDE.md)
42
+ /oh-my-copilot:omc-setup --global Configure global settings (~/.claude/CLAUDE.md)
42
43
  /oh-my-copilot:omc-setup --force Force full setup wizard even if already configured
43
44
  /oh-my-copilot:omc-setup --help Show this help
44
45
 
45
46
  MODES:
46
47
  Initial Setup (no flags)
47
48
  - Interactive wizard for first-time setup
48
- - Configures copilot-instructions.md (local or global)
49
+ - Configures CLAUDE.md (local or global)
49
50
  - Sets up HUD statusline
50
51
  - Checks for updates
51
52
  - Offers MCP server configuration
@@ -53,15 +54,17 @@ MODES:
53
54
  - If already configured, offers quick update option
54
55
 
55
56
  Local Configuration (--local)
56
- - Downloads fresh copilot-instructions.md to ./.copilot/
57
- - Backs up existing copilot-instructions.md to .copilot/copilot-instructions.md.backup.YYYY-MM-DD
57
+ - Downloads fresh CLAUDE.md to ./.claude/
58
+ - Backs up existing CLAUDE.md to .claude/CLAUDE.md.backup.YYYY-MM-DD
58
59
  - Project-specific settings
59
60
  - Use this to update project config after OMC upgrades
60
61
 
61
62
  Global Configuration (--global)
62
- - Downloads fresh copilot-instructions.md to ~/.copilot/
63
- - Backs up existing copilot-instructions.md to ~/.copilot/copilot-instructions.md.backup.YYYY-MM-DD
64
- - Applies to all Copilot CLI sessions
63
+ - Downloads fresh CLAUDE.md to ~/.claude/
64
+ - Backs up existing CLAUDE.md to ~/.claude/CLAUDE.md.backup.YYYY-MM-DD
65
+ - Default: explicitly overwrites ~/.claude/CLAUDE.md so plain `claude` also uses OMC
66
+ - Optional preserve mode keeps the user's base `CLAUDE.md` and installs OMC into `CLAUDE-omc.md` for `omc` launches
67
+ - Applies to all Claude Code sessions
65
68
  - Cleans up legacy hooks
66
69
  - Use this to update global config after OMC upgrades
67
70
 
@@ -71,30 +74,12 @@ MODES:
71
74
  - Use when you want to reconfigure preferences
72
75
 
73
76
  EXAMPLES:
74
- /oh-my-copilot:omc-setup # First time setup (or update copilot-instructions.md if configured)
77
+ /oh-my-copilot:omc-setup # First time setup (or update CLAUDE.md if configured)
75
78
  /oh-my-copilot:omc-setup --local # Update this project
76
79
  /oh-my-copilot:omc-setup --global # Update all projects
77
80
  /oh-my-copilot:omc-setup --force # Re-run full setup wizard
78
81
 
79
- For more info: https://github.com/RobinNorberg/oh-my-copilot
80
- ```
81
-
82
- ## Step 0: Discover Plugin Root
83
-
84
- Before anything else, resolve `COPILOT_PLUGIN_ROOT`. Run this command and use the result for all subsequent `${COPILOT_PLUGIN_ROOT}` references:
85
-
86
- ```bash
87
- # Find the oh-my-copilot plugin root
88
- for d in "${COPILOT_PLUGIN_ROOT:-}" "${COPILOT_CONFIG_DIR:-$HOME/.copilot}/installed-plugins/omcp/oh-my-copilot" "${COPILOT_CONFIG_DIR:-$HOME/.copilot}/installed-plugins/_direct/oh-my-copilot" "$(npm root -g 2>/dev/null)/oh-my-copilot" ; do
89
- [ -n "$d" ] && [ -f "$d/skills/omc-setup/SKILL.md" ] && { echo "$d"; break; }
90
- done
91
- ```
92
-
93
- Store the output as `COPILOT_PLUGIN_ROOT` for the rest of this setup. If no path is found, tell the user to install first:
94
- ```
95
- oh-my-copilot plugin not found. Install it first:
96
- /plugin marketplace add https://github.com/RobinNorberg/oh-my-copilot
97
- /plugin install oh-my-copilot@omcp
82
+ For more info: https://github.com/Yeachan-Heo/oh-my-copilot
98
83
  ```
99
84
 
100
85
  ## Pre-Setup Check: Already Configured?
@@ -126,14 +111,14 @@ Use AskUserQuestion to prompt:
126
111
  **Question:** "OMC is already configured. What would you like to do?"
127
112
 
128
113
  **Options:**
129
- 1. **Update copilot-instructions.md only** - Download latest copilot-instructions.md without re-running full setup
114
+ 1. **Update CLAUDE.md only** - Download latest CLAUDE.md without re-running full setup
130
115
  2. **Run full setup again** - Go through the complete setup wizard
131
116
  3. **Cancel** - Exit without changes
132
117
 
133
- **If user chooses "Update copilot-instructions.md only":**
134
- - Detect if local (.copilot/copilot-instructions.md) or global (~/.copilot/copilot-instructions.md) config exists
135
- - If local exists, run: `bash "${COPILOT_PLUGIN_ROOT}/scripts/setup-copilot-instructions.sh" local`
136
- - If only global exists, run: `bash "${COPILOT_PLUGIN_ROOT}/scripts/setup-copilot-instructions.sh" global`
118
+ **If user chooses "Update CLAUDE.md only":**
119
+ - Detect if local (.claude/CLAUDE.md) or global (~/.claude/CLAUDE.md) config exists
120
+ - If local exists, run: `bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-claude-md.sh" local`
121
+ - If only global exists, run: `bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-claude-md.sh" global`
137
122
  - Skip all other steps
138
123
  - Report success and exit
139
124
 
@@ -152,7 +137,7 @@ If user passes `--force` flag, skip this check and proceed directly to setup.
152
137
  Before starting any phase, check for existing state:
153
138
 
154
139
  ```bash
155
- bash "${COPILOT_PLUGIN_ROOT}/scripts/setup-progress.sh" resume
140
+ bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh" resume
156
141
  ```
157
142
 
158
143
  If state exists (output is not "fresh"), use AskUserQuestion to prompt:
@@ -165,64 +150,35 @@ If state exists (output is not "fresh"), use AskUserQuestion to prompt:
165
150
 
166
151
  If user chooses "Start fresh":
167
152
  ```bash
168
- bash "${COPILOT_PLUGIN_ROOT}/scripts/setup-progress.sh" clear
153
+ bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh" clear
169
154
  ```
170
155
 
171
156
  ## Phase Execution
172
157
 
173
158
  ### For `--local` or `--global` flags:
174
- Read the file at `${COPILOT_PLUGIN_ROOT}/skills/omc-setup/phases/01-install-copilot-instructions.md` and follow its instructions.
159
+ Read the file at `${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/01-install-claude-md.md` and follow its instructions.
175
160
  (The phase file handles early exit for flag mode.)
176
161
 
177
162
  ### For full setup (default or --force):
163
+ Execute phases sequentially. For each phase, read the corresponding file and follow its instructions:
178
164
 
179
- #### Setup Mode Selection
180
-
181
- Before executing phases, ask the user which setup mode they prefer:
182
-
183
- Use AskUserQuestion to prompt:
184
-
185
- **Question:** "How would you like to configure oh-my-copilot?"
186
-
187
- **Options:**
188
- 1. **Quick Setup (Recommended)** - Apply sensible defaults and jump straight to MCP server configuration. You can customize later with `/omc-setup --force`.
189
- 2. **Step-by-step Setup** - Walk through each option individually (local/global, HUD, CLI install, team defaults, etc.)
190
-
191
- Set `SETUP_MODE` to `quick` or `interactive` based on user's choice.
192
-
193
- #### Quick Setup Mode (SETUP_MODE=quick)
194
-
195
- Apply all recommended defaults automatically with minimal prompts:
196
-
197
- 1. **Phase 1 - Install copilot-instructions.md (global)**: Read `${COPILOT_PLUGIN_ROOT}/skills/omc-setup/phases/01-install-copilot-instructions.md` and follow its instructions, but **skip the AskUserQuestion** — use `CONFIG_TARGET=global` automatically.
198
-
199
- 2. **Phase 2 - Environment Configuration (auto)**: Read `${COPILOT_PLUGIN_ROOT}/skills/omc-setup/phases/02-configure.md` and follow its instructions in **quick mode** — apply all defaults without interactive prompts (see phase file for quick-mode behavior).
200
-
201
- 3. **Phase 3 - Integration Setup (MCP focus)**: Read `${COPILOT_PLUGIN_ROOT}/skills/omc-setup/phases/03-integrations.md` and follow its instructions — in quick mode, skip team customization and go straight to MCP server configuration.
202
-
203
- 4. **Phase 4 - Completion**: Read `${COPILOT_PLUGIN_ROOT}/skills/omc-setup/phases/04-welcome.md` and follow its instructions.
204
-
205
- #### Step-by-step Setup Mode (SETUP_MODE=interactive)
206
-
207
- Execute all phases with full interactive prompts:
208
-
209
- 1. **Phase 1 - Install copilot-instructions.md**: Read `${COPILOT_PLUGIN_ROOT}/skills/omc-setup/phases/01-install-copilot-instructions.md` and follow its instructions.
165
+ 1. **Phase 1 - Install CLAUDE.md**: Read `${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/01-install-claude-md.md` and follow its instructions.
210
166
 
211
- 2. **Phase 2 - Environment Configuration**: Read `${COPILOT_PLUGIN_ROOT}/skills/omc-setup/phases/02-configure.md` and follow its instructions in **interactive mode**.
167
+ 2. **Phase 2 - Environment Configuration**: Read `${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/02-configure.md` and follow its instructions. Phase 2 must delegate HUD/statusLine setup to the `hud` skill; do not generate or patch `statusLine` paths inline here.
212
168
 
213
- 3. **Phase 3 - Integration Setup**: Read `${COPILOT_PLUGIN_ROOT}/skills/omc-setup/phases/03-integrations.md` and follow its instructions.
169
+ 3. **Phase 3 - Integration Setup**: Read `${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/03-integrations.md` and follow its instructions.
214
170
 
215
- 4. **Phase 4 - Completion**: Read `${COPILOT_PLUGIN_ROOT}/skills/omc-setup/phases/04-welcome.md` and follow its instructions.
171
+ 4. **Phase 4 - Completion**: Read `${CLAUDE_PLUGIN_ROOT}/skills/omc-setup/phases/04-welcome.md` and follow its instructions.
216
172
 
217
173
  ## Graceful Interrupt Handling
218
174
 
219
- **IMPORTANT**: This setup process saves progress after each phase via `${COPILOT_PLUGIN_ROOT}/scripts/setup-progress.sh`. If interrupted (Ctrl+C or connection loss), the setup can resume from where it left off.
175
+ **IMPORTANT**: This setup process saves progress after each phase via `${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh`. If interrupted (Ctrl+C or connection loss), the setup can resume from where it left off.
220
176
 
221
177
  ## Keeping Up to Date
222
178
 
223
179
  After installing oh-my-copilot updates (via npm or plugin update):
224
180
 
225
- **Automatic**: Just run `/oh-my-copilot:omc-setup` - it will detect you've already configured and offer a quick "Update copilot-instructions.md only" option that skips the full wizard.
181
+ **Automatic**: Just run `/oh-my-copilot:omc-setup` - it will detect you've already configured and offer a quick "Update CLAUDE.md only" option that skips the full wizard.
226
182
 
227
183
  **Manual options**:
228
184
  - `/oh-my-copilot:omc-setup --local` to update project config only
@@ -0,0 +1,97 @@
1
+ # Phase 1: Install CLAUDE.md
2
+
3
+ ## Determine Configuration Target
4
+
5
+ If `--local` flag was passed, set `CONFIG_TARGET=local`.
6
+ If `--global` flag was passed, set `CONFIG_TARGET=global`.
7
+
8
+ Otherwise (initial setup wizard), use AskUserQuestion to prompt:
9
+
10
+ **Question:** "Where should I configure oh-my-copilot?"
11
+
12
+ **Options:**
13
+ 1. **Local (this project)** - Creates `.claude/CLAUDE.md` in current project directory. Best for project-specific configurations.
14
+ 2. **Global (all projects)** - Creates `~/.claude/CLAUDE.md` for all Claude Code sessions. Best for consistent behavior everywhere.
15
+
16
+ Set `CONFIG_TARGET` to `local` or `global` based on user's choice.
17
+
18
+ If `CONFIG_TARGET=global` and `~/.claude/CLAUDE.md` already exists without OMC markers, ask a second explicit question before running setup:
19
+
20
+ **Question:** "Global setup will change your base Claude config. Which behavior do you want?"
21
+
22
+ **Options (default first):**
23
+ 1. **Overwrite base CLAUDE.md (Recommended)** - plain `claude` and `omc` both use OMC globally.
24
+ 2. **Keep base CLAUDE.md; use OMC only through `omc`** - preserve the user's base file, install OMC into `CLAUDE-omc.md`, and let `omc` force-load that companion config at launch.
25
+
26
+ Set `GLOBAL_INSTALL_STYLE=overwrite` or `preserve` based on the user's choice. If you did not ask this question, default `GLOBAL_INSTALL_STYLE=overwrite`.
27
+
28
+ ## Download and Install CLAUDE.md
29
+
30
+ **MANDATORY**: Always run this command. Do NOT skip. Do NOT use the Write tool. Let the setup script choose the safest canonical source (bundled `docs/CLAUDE.md` first, GitHub fallback only if needed).
31
+
32
+ ```bash
33
+ bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-claude-md.sh" <CONFIG_TARGET> [GLOBAL_INSTALL_STYLE]
34
+ ```
35
+
36
+ Replace `<CONFIG_TARGET>` with `local` or `global`. For local installs, omit the optional style argument. For global installs, pass `overwrite` or `preserve` when you know the user's choice; otherwise let the script default to `overwrite`.
37
+
38
+ The script must install the canonical `docs/CLAUDE.md` content and preserve the required
39
+ `<!-- OMC:START -->` / `<!-- OMC:END -->` markers. Do **not** hand-write, summarize, or
40
+ partially reconstruct CLAUDE.md.
41
+
42
+ After running the script, verify the target file contains both markers. If marker validation
43
+ fails, stop and report the failure instead of writing CLAUDE.md manually.
44
+
45
+ For `local` installs inside a git repository, the script also seeds `.git/info/exclude` with an OMC block that re-includes `.omcp/`, ignores local `.omcp/*` artifacts by default, and preserves `.omcp/skills/` for project skills you intend to commit.
46
+
47
+ **FALLBACK** if curl fails:
48
+ Tell user to manually download from:
49
+ https://raw.githubusercontent.com/Yeachan-Heo/oh-my-copilot/main/docs/CLAUDE.md
50
+
51
+ **Note**: The downloaded CLAUDE.md includes Context Persistence instructions with `<remember>` tags for surviving conversation compaction.
52
+
53
+ **Note**: Preserve mode installs OMC into a companion `CLAUDE-omc.md` with a small managed import block, and `omc` launch force-loads that companion config without changing plain `claude`.
54
+
55
+ ## Report Success
56
+
57
+ If `CONFIG_TARGET` is `local`:
58
+ ```
59
+ OMC Project Configuration Complete
60
+ - CLAUDE.md: Updated with latest configuration from GitHub at ./.claude/CLAUDE.md
61
+ - Git excludes: Added local `.omcp/*` ignore rules to `.git/info/exclude` (keeps `.omcp/skills/` trackable for committed project skills)
62
+ - Backup: Previous CLAUDE.md backed up (if existed)
63
+ - Scope: PROJECT - applies only to this project
64
+ - Hooks: Provided by plugin (no manual installation needed)
65
+ - Agents: 28+ available (base + tiered variants)
66
+ - Model routing: Haiku/Sonnet/Opus based on task complexity
67
+
68
+ Note: This configuration is project-specific and won't affect other projects or global settings.
69
+ ```
70
+
71
+ If `CONFIG_TARGET` is `global`:
72
+ ```
73
+ OMC Global Configuration Complete
74
+ - CLAUDE.md: Updated at ~/.claude/CLAUDE.md, or preserved with explicit preserve mode
75
+ - Companion: May install ~/.claude/CLAUDE-omc.md when preserve mode is chosen
76
+ - Backup: Previous CLAUDE.md backed up (if existed)
77
+ - Scope: GLOBAL - applies to all Claude Code sessions
78
+ - Hooks: Provided by plugin (no manual installation needed)
79
+ - Agents: 28+ available (base + tiered variants)
80
+ - Model routing: Haiku/Sonnet/Opus based on task complexity
81
+
82
+ Note: Hooks are now managed by the plugin system automatically. No manual hook installation required.
83
+ ```
84
+
85
+ ## Save Progress
86
+
87
+ ```bash
88
+ bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh" save 2 <CONFIG_TARGET>
89
+ ```
90
+
91
+ ## Early Exit for Flag Mode
92
+
93
+ If `--local` or `--global` flag was used, clear state and **STOP HERE**:
94
+ ```bash
95
+ bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup-progress.sh" clear
96
+ ```
97
+ Do not continue to Phase 2 or other phases.