oh-my-claude-sisyphus 3.3.8 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/README.md +3 -3
  2. package/agents/explore-high.md +195 -0
  3. package/agents/qa-tester-high.md +141 -0
  4. package/agents/templates/README.md +110 -0
  5. package/agents/templates/base-agent.md +54 -0
  6. package/agents/templates/tier-instructions.md +94 -0
  7. package/commands/ecomode.md +60 -0
  8. package/commands/help.md +1 -1
  9. package/commands/mcp-setup.md +7 -6
  10. package/commands/ralplan.md +8 -1
  11. package/commands/ultrapilot.md +158 -0
  12. package/commands/ultrawork.md +1 -0
  13. package/dist/__tests__/delegation-enforcer-integration.test.d.ts +6 -0
  14. package/dist/__tests__/delegation-enforcer-integration.test.d.ts.map +1 -0
  15. package/dist/__tests__/delegation-enforcer-integration.test.js +136 -0
  16. package/dist/__tests__/delegation-enforcer-integration.test.js.map +1 -0
  17. package/dist/__tests__/delegation-enforcer.test.d.ts +5 -0
  18. package/dist/__tests__/delegation-enforcer.test.d.ts.map +1 -0
  19. package/dist/__tests__/delegation-enforcer.test.js +208 -0
  20. package/dist/__tests__/delegation-enforcer.test.js.map +1 -0
  21. package/dist/__tests__/hooks.test.js +2 -2
  22. package/dist/__tests__/hooks.test.js.map +1 -1
  23. package/dist/__tests__/installer.test.js +4 -6
  24. package/dist/__tests__/installer.test.js.map +1 -1
  25. package/dist/__tests__/ralph-prd.test.js +1 -1
  26. package/dist/__tests__/ralph-prd.test.js.map +1 -1
  27. package/dist/__tests__/ralph-progress.test.js +1 -1
  28. package/dist/__tests__/ralph-progress.test.js.map +1 -1
  29. package/dist/__tests__/skills.test.js +31 -24
  30. package/dist/__tests__/skills.test.js.map +1 -1
  31. package/dist/agents/analyst.d.ts.map +1 -1
  32. package/dist/agents/analyst.js +1 -0
  33. package/dist/agents/analyst.js.map +1 -1
  34. package/dist/agents/architect.d.ts.map +1 -1
  35. package/dist/agents/architect.js +1 -0
  36. package/dist/agents/architect.js.map +1 -1
  37. package/dist/agents/critic.d.ts.map +1 -1
  38. package/dist/agents/critic.js +1 -0
  39. package/dist/agents/critic.js.map +1 -1
  40. package/dist/agents/definitions.d.ts +5 -1
  41. package/dist/agents/definitions.d.ts.map +1 -1
  42. package/dist/agents/definitions.js +53 -155
  43. package/dist/agents/definitions.js.map +1 -1
  44. package/dist/agents/designer.d.ts.map +1 -1
  45. package/dist/agents/designer.js +1 -0
  46. package/dist/agents/designer.js.map +1 -1
  47. package/dist/agents/executor.d.ts.map +1 -1
  48. package/dist/agents/executor.js +1 -0
  49. package/dist/agents/executor.js.map +1 -1
  50. package/dist/agents/explore.d.ts.map +1 -1
  51. package/dist/agents/explore.js +1 -0
  52. package/dist/agents/explore.js.map +1 -1
  53. package/dist/agents/planner.d.ts.map +1 -1
  54. package/dist/agents/planner.js +1 -0
  55. package/dist/agents/planner.js.map +1 -1
  56. package/dist/agents/qa-tester.d.ts.map +1 -1
  57. package/dist/agents/qa-tester.js +1 -0
  58. package/dist/agents/qa-tester.js.map +1 -1
  59. package/dist/agents/researcher.d.ts.map +1 -1
  60. package/dist/agents/researcher.js +1 -0
  61. package/dist/agents/researcher.js.map +1 -1
  62. package/dist/agents/scientist.d.ts.map +1 -1
  63. package/dist/agents/scientist.js +1 -0
  64. package/dist/agents/scientist.js.map +1 -1
  65. package/dist/agents/types.d.ts +2 -0
  66. package/dist/agents/types.d.ts.map +1 -1
  67. package/dist/agents/types.js.map +1 -1
  68. package/dist/agents/vision.d.ts.map +1 -1
  69. package/dist/agents/vision.js +1 -0
  70. package/dist/agents/vision.js.map +1 -1
  71. package/dist/agents/writer.d.ts.map +1 -1
  72. package/dist/agents/writer.js +1 -0
  73. package/dist/agents/writer.js.map +1 -1
  74. package/dist/cli/index.js +0 -3
  75. package/dist/cli/index.js.map +1 -1
  76. package/dist/config/loader.d.ts.map +1 -1
  77. package/dist/config/loader.js +1 -6
  78. package/dist/config/loader.js.map +1 -1
  79. package/dist/features/delegation-enforcer.d.ts +71 -0
  80. package/dist/features/delegation-enforcer.d.ts.map +1 -0
  81. package/dist/features/delegation-enforcer.js +128 -0
  82. package/dist/features/delegation-enforcer.js.map +1 -0
  83. package/dist/features/index.d.ts +3 -0
  84. package/dist/features/index.d.ts.map +1 -1
  85. package/dist/features/index.js +18 -0
  86. package/dist/features/index.js.map +1 -1
  87. package/dist/features/state-manager/index.d.ts +100 -0
  88. package/dist/features/state-manager/index.d.ts.map +1 -0
  89. package/dist/features/state-manager/index.js +407 -0
  90. package/dist/features/state-manager/index.js.map +1 -0
  91. package/dist/features/state-manager/types.d.ts +147 -0
  92. package/dist/features/state-manager/types.d.ts.map +1 -0
  93. package/dist/features/state-manager/types.js +30 -0
  94. package/dist/features/state-manager/types.js.map +1 -0
  95. package/dist/features/task-decomposer/index.d.ts +33 -0
  96. package/dist/features/task-decomposer/index.d.ts.map +1 -0
  97. package/dist/features/task-decomposer/index.js +698 -0
  98. package/dist/features/task-decomposer/index.js.map +1 -0
  99. package/dist/features/task-decomposer/types.d.ts +133 -0
  100. package/dist/features/task-decomposer/types.d.ts.map +1 -0
  101. package/dist/features/task-decomposer/types.js +8 -0
  102. package/dist/features/task-decomposer/types.js.map +1 -0
  103. package/dist/features/verification/example.d.ts +49 -0
  104. package/dist/features/verification/example.d.ts.map +1 -0
  105. package/dist/features/verification/example.js +235 -0
  106. package/dist/features/verification/example.js.map +1 -0
  107. package/dist/features/verification/index.d.ts +97 -0
  108. package/dist/features/verification/index.d.ts.map +1 -0
  109. package/dist/features/verification/index.js +439 -0
  110. package/dist/features/verification/index.js.map +1 -0
  111. package/dist/features/verification/types.d.ts +142 -0
  112. package/dist/features/verification/types.d.ts.map +1 -0
  113. package/dist/features/verification/types.js +7 -0
  114. package/dist/features/verification/types.js.map +1 -0
  115. package/dist/hooks/agent-usage-reminder/constants.d.ts.map +1 -1
  116. package/dist/hooks/agent-usage-reminder/constants.js +0 -1
  117. package/dist/hooks/agent-usage-reminder/constants.js.map +1 -1
  118. package/dist/hooks/autopilot/__tests__/cancel.test.js +4 -4
  119. package/dist/hooks/autopilot/__tests__/cancel.test.js.map +1 -1
  120. package/dist/hooks/autopilot/__tests__/summary.test.js +1 -1
  121. package/dist/hooks/autopilot/__tests__/summary.test.js.map +1 -1
  122. package/dist/hooks/autopilot/__tests__/transition.test.js +1 -2
  123. package/dist/hooks/autopilot/__tests__/transition.test.js.map +1 -1
  124. package/dist/hooks/autopilot/cancel.js +2 -2
  125. package/dist/hooks/autopilot/cancel.js.map +1 -1
  126. package/dist/hooks/autopilot/enforcement.d.ts +16 -2
  127. package/dist/hooks/autopilot/enforcement.d.ts.map +1 -1
  128. package/dist/hooks/autopilot/enforcement.js +78 -4
  129. package/dist/hooks/autopilot/enforcement.js.map +1 -1
  130. package/dist/hooks/autopilot/index.d.ts +3 -6
  131. package/dist/hooks/autopilot/index.d.ts.map +1 -1
  132. package/dist/hooks/autopilot/index.js +6 -12
  133. package/dist/hooks/autopilot/index.js.map +1 -1
  134. package/dist/hooks/autopilot/state.d.ts +36 -2
  135. package/dist/hooks/autopilot/state.d.ts.map +1 -1
  136. package/dist/hooks/autopilot/state.js +216 -2
  137. package/dist/hooks/autopilot/state.js.map +1 -1
  138. package/dist/hooks/autopilot/validation.d.ts +23 -2
  139. package/dist/hooks/autopilot/validation.d.ts.map +1 -1
  140. package/dist/hooks/autopilot/validation.js +158 -1
  141. package/dist/hooks/autopilot/validation.js.map +1 -1
  142. package/dist/hooks/bridge.js +3 -3
  143. package/dist/hooks/bridge.js.map +1 -1
  144. package/dist/hooks/index.d.ts +5 -9
  145. package/dist/hooks/index.d.ts.map +1 -1
  146. package/dist/hooks/index.js +31 -21
  147. package/dist/hooks/index.js.map +1 -1
  148. package/dist/hooks/learner/promotion.js +1 -1
  149. package/dist/hooks/learner/promotion.js.map +1 -1
  150. package/dist/hooks/persistent-mode/index.d.ts.map +1 -1
  151. package/dist/hooks/persistent-mode/index.js +2 -3
  152. package/dist/hooks/persistent-mode/index.js.map +1 -1
  153. package/dist/hooks/ralph/index.d.ts +11 -0
  154. package/dist/hooks/ralph/index.d.ts.map +1 -0
  155. package/dist/hooks/ralph/index.js +53 -0
  156. package/dist/hooks/ralph/index.js.map +1 -0
  157. package/dist/hooks/ralph/loop.d.ts +116 -0
  158. package/dist/hooks/ralph/loop.d.ts.map +1 -0
  159. package/dist/hooks/ralph/loop.js +322 -0
  160. package/dist/hooks/ralph/loop.js.map +1 -0
  161. package/dist/hooks/ralph/prd.d.ts +130 -0
  162. package/dist/hooks/ralph/prd.d.ts.map +1 -0
  163. package/dist/hooks/ralph/prd.js +310 -0
  164. package/dist/hooks/ralph/prd.js.map +1 -0
  165. package/dist/hooks/ralph/progress.d.ts +102 -0
  166. package/dist/hooks/ralph/progress.d.ts.map +1 -0
  167. package/dist/hooks/ralph/progress.js +408 -0
  168. package/dist/hooks/ralph/progress.js.map +1 -0
  169. package/dist/hooks/ralph/verifier.d.ts +72 -0
  170. package/dist/hooks/ralph/verifier.d.ts.map +1 -0
  171. package/dist/hooks/ralph/verifier.js +223 -0
  172. package/dist/hooks/ralph/verifier.js.map +1 -0
  173. package/dist/hooks/recovery/constants.d.ts +114 -0
  174. package/dist/hooks/recovery/constants.d.ts.map +1 -0
  175. package/dist/hooks/recovery/constants.js +227 -0
  176. package/dist/hooks/recovery/constants.js.map +1 -0
  177. package/dist/hooks/recovery/context-window.d.ts +24 -0
  178. package/dist/hooks/recovery/context-window.d.ts.map +1 -0
  179. package/dist/hooks/recovery/context-window.js +321 -0
  180. package/dist/hooks/recovery/context-window.js.map +1 -0
  181. package/dist/hooks/recovery/edit-error.d.ts +24 -0
  182. package/dist/hooks/recovery/edit-error.d.ts.map +1 -0
  183. package/dist/hooks/recovery/edit-error.js +56 -0
  184. package/dist/hooks/recovery/edit-error.js.map +1 -0
  185. package/dist/hooks/recovery/index.d.ts +102 -0
  186. package/dist/hooks/recovery/index.d.ts.map +1 -0
  187. package/dist/hooks/recovery/index.js +166 -0
  188. package/dist/hooks/recovery/index.js.map +1 -0
  189. package/dist/hooks/recovery/session-recovery.d.ts +24 -0
  190. package/dist/hooks/recovery/session-recovery.d.ts.map +1 -0
  191. package/dist/hooks/recovery/session-recovery.js +281 -0
  192. package/dist/hooks/recovery/session-recovery.js.map +1 -0
  193. package/dist/hooks/recovery/storage.d.ts +75 -0
  194. package/dist/hooks/recovery/storage.d.ts.map +1 -0
  195. package/dist/hooks/recovery/storage.js +382 -0
  196. package/dist/hooks/recovery/storage.js.map +1 -0
  197. package/dist/hooks/recovery/types.d.ts +196 -0
  198. package/dist/hooks/recovery/types.d.ts.map +1 -0
  199. package/dist/hooks/recovery/types.js +32 -0
  200. package/dist/hooks/recovery/types.js.map +1 -0
  201. package/dist/hooks/ultrapilot/index.d.ts +90 -0
  202. package/dist/hooks/ultrapilot/index.d.ts.map +1 -0
  203. package/dist/hooks/ultrapilot/index.js +310 -0
  204. package/dist/hooks/ultrapilot/index.js.map +1 -0
  205. package/dist/hooks/ultrapilot/state.d.ts +72 -0
  206. package/dist/hooks/ultrapilot/state.d.ts.map +1 -0
  207. package/dist/hooks/ultrapilot/state.js +258 -0
  208. package/dist/hooks/ultrapilot/state.js.map +1 -0
  209. package/dist/hooks/ultrapilot/types.d.ts +113 -0
  210. package/dist/hooks/ultrapilot/types.d.ts.map +1 -0
  211. package/dist/hooks/ultrapilot/types.js +36 -0
  212. package/dist/hooks/ultrapilot/types.js.map +1 -0
  213. package/dist/hooks/ultraqa/index.d.ts +94 -0
  214. package/dist/hooks/ultraqa/index.d.ts.map +1 -0
  215. package/dist/hooks/ultraqa/index.js +216 -0
  216. package/dist/hooks/ultraqa/index.js.map +1 -0
  217. package/dist/hooks/ultrawork/index.d.ts +62 -0
  218. package/dist/hooks/ultrawork/index.d.ts.map +1 -0
  219. package/dist/hooks/ultrawork/index.js +208 -0
  220. package/dist/hooks/ultrawork/index.js.map +1 -0
  221. package/dist/hud/elements/index.d.ts +1 -1
  222. package/dist/hud/elements/index.d.ts.map +1 -1
  223. package/dist/hud/elements/index.js +1 -1
  224. package/dist/hud/elements/index.js.map +1 -1
  225. package/dist/hud/elements/limits.d.ts +6 -0
  226. package/dist/hud/elements/limits.d.ts.map +1 -1
  227. package/dist/hud/elements/limits.js +31 -0
  228. package/dist/hud/elements/limits.js.map +1 -1
  229. package/dist/hud/render.d.ts.map +1 -1
  230. package/dist/hud/render.js +8 -4
  231. package/dist/hud/render.js.map +1 -1
  232. package/dist/hud/types.d.ts +1 -0
  233. package/dist/hud/types.d.ts.map +1 -1
  234. package/dist/hud/types.js +6 -0
  235. package/dist/hud/types.js.map +1 -1
  236. package/dist/hud/usage-api.d.ts.map +1 -1
  237. package/dist/hud/usage-api.js +5 -3
  238. package/dist/hud/usage-api.js.map +1 -1
  239. package/dist/index.d.ts.map +1 -1
  240. package/dist/index.js +1 -2
  241. package/dist/index.js.map +1 -1
  242. package/dist/installer/index.d.ts +1 -1
  243. package/dist/installer/index.js +1 -1
  244. package/dist/mcp/index.d.ts +1 -1
  245. package/dist/mcp/index.d.ts.map +1 -1
  246. package/dist/mcp/index.js +1 -1
  247. package/dist/mcp/index.js.map +1 -1
  248. package/dist/mcp/servers.d.ts +2 -18
  249. package/dist/mcp/servers.d.ts.map +1 -1
  250. package/dist/mcp/servers.js +4 -36
  251. package/dist/mcp/servers.js.map +1 -1
  252. package/dist/shared/types.d.ts +1 -3
  253. package/dist/shared/types.d.ts.map +1 -1
  254. package/docs/CLAUDE.md +170 -44
  255. package/docs/DELEGATION-ENFORCER.md +282 -0
  256. package/docs/FULL-README.md +1 -1
  257. package/docs/LOCAL_PLUGIN_INSTALL.md +1 -1
  258. package/docs/MIGRATION.md +298 -104
  259. package/package.json +2 -2
  260. package/scripts/test-mutual-exclusion.ts +1 -1
  261. package/skills/analyze/SKILL.md +0 -1
  262. package/skills/autopilot/SKILL.md +0 -1
  263. package/skills/cancel/SKILL.md +580 -0
  264. package/skills/cancel-autopilot/SKILL.md +0 -1
  265. package/skills/cancel-ecomode/SKILL.md +41 -0
  266. package/skills/cancel-ralph/SKILL.md +0 -1
  267. package/skills/cancel-ultraqa/SKILL.md +0 -1
  268. package/skills/cancel-ultrawork/SKILL.md +0 -1
  269. package/skills/deepinit/SKILL.md +0 -1
  270. package/skills/deepsearch/SKILL.md +0 -1
  271. package/skills/doctor/SKILL.md +0 -1
  272. package/skills/ecomode/SKILL.md +128 -0
  273. package/skills/frontend-ui-ux/SKILL.md +0 -1
  274. package/skills/git-master/SKILL.md +0 -1
  275. package/skills/help/SKILL.md +1 -2
  276. package/skills/hud/SKILL.md +0 -1
  277. package/skills/learner/SKILL.md +0 -1
  278. package/skills/mcp-setup/SKILL.md +8 -7
  279. package/skills/note/SKILL.md +0 -1
  280. package/skills/omc-default/SKILL.md +0 -1
  281. package/skills/omc-default-global/SKILL.md +0 -1
  282. package/skills/omc-setup/SKILL.md +212 -10
  283. package/skills/orchestrate/SKILL.md +0 -1
  284. package/skills/pipeline/SKILL.md +417 -0
  285. package/skills/plan/SKILL.md +138 -21
  286. package/skills/planner/SKILL.md +0 -1
  287. package/skills/ralph/SKILL.md +65 -1
  288. package/skills/ralph-init/SKILL.md +0 -1
  289. package/skills/ralplan/SKILL.md +0 -1
  290. package/skills/release/SKILL.md +0 -1
  291. package/skills/research/SKILL.md +0 -1
  292. package/skills/review/SKILL.md +0 -1
  293. package/skills/swarm/SKILL.md +349 -0
  294. package/skills/tdd/SKILL.md +0 -1
  295. package/skills/ultrapilot/SKILL.md +563 -0
  296. package/skills/ultraqa/SKILL.md +0 -1
  297. package/skills/ultrawork/SKILL.md +0 -1
  298. package/docs/MIGRATION-v3.md +0 -186
@@ -0,0 +1,563 @@
1
+ ---
2
+ name: ultrapilot
3
+ description: Parallel autopilot with file ownership partitioning
4
+ ---
5
+
6
+ # Ultrapilot Skill
7
+
8
+ Parallel autopilot that spawns multiple workers with file ownership partitioning for maximum speed.
9
+
10
+ ## Overview
11
+
12
+ Ultrapilot is the parallel evolution of autopilot. It decomposes your task into independent parallelizable subtasks, assigns non-overlapping file sets to each worker, and runs them simultaneously.
13
+
14
+ **Key Capabilities:**
15
+ 1. **Decomposes** task into parallel-safe components
16
+ 2. **Partitions** files with exclusive ownership (no conflicts)
17
+ 3. **Spawns** up to 5 parallel workers (Claude Code limit)
18
+ 4. **Coordinates** progress via TaskOutput
19
+ 5. **Integrates** changes with sequential handling of shared files
20
+ 6. **Validates** full system integrity
21
+
22
+ **Speed Multiplier:** Up to 5x faster than sequential autopilot for suitable tasks.
23
+
24
+ ## Usage
25
+
26
+ ```
27
+ /oh-my-claudecode:ultrapilot <your task>
28
+ /oh-my-claudecode:up "Build a full-stack todo app"
29
+ /oh-my-claudecode:ultrapilot Refactor the entire backend
30
+ ```
31
+
32
+ ## Magic Keywords
33
+
34
+ These phrases auto-activate ultrapilot:
35
+ - "ultrapilot", "ultra pilot"
36
+ - "parallel build", "parallel autopilot"
37
+ - "swarm build", "swarm mode"
38
+ - "fast parallel", "ultra fast"
39
+
40
+ ## When to Use
41
+
42
+ **Ultrapilot Excels At:**
43
+ - Multi-component systems (frontend + backend + database)
44
+ - Independent feature additions across different modules
45
+ - Large refactorings with clear module boundaries
46
+ - Parallel test file generation
47
+ - Multi-service architectures
48
+
49
+ **Autopilot Better For:**
50
+ - Single-threaded sequential tasks
51
+ - Heavy interdependencies between components
52
+ - Tasks requiring constant integration checks
53
+ - Small focused features in a single module
54
+
55
+ ## Architecture
56
+
57
+ ```
58
+ User Input: "Build a full-stack todo app"
59
+ |
60
+ v
61
+ [ULTRAPILOT COORDINATOR]
62
+ |
63
+ Decomposition + File Partitioning
64
+ |
65
+ +-------+-------+-------+-------+
66
+ | | | | |
67
+ v v v v v
68
+ [W-1] [W-2] [W-3] [W-4] [W-5]
69
+ backend frontend database api-docs tests
70
+ (src/ (src/ (src/ (docs/) (tests/)
71
+ api/) ui/) db/)
72
+ | | | | |
73
+ +---+---+---+---+---+---+---+---+
74
+ |
75
+ v
76
+ [INTEGRATION PHASE]
77
+ (shared files: package.json, tsconfig.json, etc.)
78
+ |
79
+ v
80
+ [VALIDATION PHASE]
81
+ (full system test)
82
+ ```
83
+
84
+ ## Phases
85
+
86
+ ### Phase 0: Task Analysis
87
+
88
+ **Goal:** Determine if task is parallelizable
89
+
90
+ **Checks:**
91
+ - Can task be split into 2+ independent subtasks?
92
+ - Are file boundaries clear?
93
+ - Are dependencies minimal?
94
+
95
+ **Output:** Go/No-Go decision (falls back to autopilot if unsuitable)
96
+
97
+ ### Phase 1: Decomposition
98
+
99
+ **Goal:** Break task into parallel-safe subtasks
100
+
101
+ **Agent:** Architect (Opus)
102
+
103
+ **Process:**
104
+ 1. Analyze task requirements
105
+ 2. Identify independent components
106
+ 3. Define subtask boundaries
107
+ 4. Specify file ownership for each
108
+ 5. Identify shared files (handled last)
109
+
110
+ **Output:** `.omc/ultrapilot/decomposition.json`
111
+
112
+ ```json
113
+ {
114
+ "subtasks": [
115
+ {
116
+ "id": "worker-1",
117
+ "description": "Backend API routes",
118
+ "files": ["src/api/**"],
119
+ "dependencies": []
120
+ },
121
+ {
122
+ "id": "worker-2",
123
+ "description": "Frontend components",
124
+ "files": ["src/ui/**"],
125
+ "dependencies": []
126
+ }
127
+ ],
128
+ "sharedFiles": [
129
+ "package.json",
130
+ "tsconfig.json",
131
+ "README.md"
132
+ ]
133
+ }
134
+ ```
135
+
136
+ ### Phase 2: File Ownership Partitioning
137
+
138
+ **Goal:** Assign exclusive file sets to workers
139
+
140
+ **Rules:**
141
+ 1. **Exclusive ownership** - No file in multiple worker sets
142
+ 2. **Shared files deferred** - Handled sequentially in integration
143
+ 3. **Boundary files tracked** - Files that import across boundaries
144
+
145
+ **Data Structure:** `.omc/state/ultrapilot-ownership.json`
146
+
147
+ ```json
148
+ {
149
+ "sessionId": "ultrapilot-20260123-1234",
150
+ "workers": {
151
+ "worker-1": {
152
+ "ownedFiles": ["src/api/routes.ts", "src/api/handlers.ts"],
153
+ "ownedGlobs": ["src/api/**"],
154
+ "boundaryImports": ["src/types.ts"]
155
+ },
156
+ "worker-2": {
157
+ "ownedFiles": ["src/ui/App.tsx", "src/ui/TodoList.tsx"],
158
+ "ownedGlobs": ["src/ui/**"],
159
+ "boundaryImports": ["src/types.ts"]
160
+ }
161
+ },
162
+ "sharedFiles": ["package.json", "tsconfig.json", "src/types.ts"],
163
+ "conflictPolicy": "coordinator-handles"
164
+ }
165
+ ```
166
+
167
+ ### Phase 3: Parallel Execution
168
+
169
+ **Goal:** Run all workers simultaneously
170
+
171
+ **Spawn Workers:**
172
+ ```javascript
173
+ // Pseudocode
174
+ workers = [];
175
+ for (subtask in decomposition.subtasks) {
176
+ workers.push(
177
+ Task(
178
+ subagent_type: "oh-my-claudecode:executor",
179
+ model: "sonnet",
180
+ prompt: `ULTRAPILOT WORKER ${subtask.id}
181
+
182
+ Your exclusive file ownership: ${subtask.files}
183
+
184
+ Task: ${subtask.description}
185
+
186
+ CRITICAL RULES:
187
+ 1. ONLY modify files in your ownership set
188
+ 2. If you need to modify a shared file, document the change in your output
189
+ 3. Do NOT create new files outside your ownership
190
+ 4. Track all imports from boundary files
191
+
192
+ Deliver: Code changes + list of boundary dependencies`,
193
+ run_in_background: true
194
+ )
195
+ );
196
+ }
197
+ ```
198
+
199
+ **Monitoring:**
200
+ - Poll TaskOutput for each worker
201
+ - Track completion status
202
+ - Detect conflicts early
203
+ - Accumulate boundary dependencies
204
+
205
+ **Max Workers:** 5 (Claude Code limit)
206
+
207
+ ### Phase 4: Integration
208
+
209
+ **Goal:** Merge all worker changes and handle shared files
210
+
211
+ **Process:**
212
+ 1. **Collect outputs** - Gather all worker deliverables
213
+ 2. **Detect conflicts** - Check for unexpected overlaps
214
+ 3. **Handle shared files** - Sequential updates to package.json, etc.
215
+ 4. **Integrate boundary files** - Merge type definitions, shared utilities
216
+ 5. **Resolve imports** - Ensure cross-boundary imports are valid
217
+
218
+ **Agent:** Executor (Sonnet) - sequential processing
219
+
220
+ **Conflict Resolution:**
221
+ - If workers unexpectedly touched same file → manual merge
222
+ - If shared file needs multiple changes → sequential apply
223
+ - If boundary file changed → validate all dependent workers
224
+
225
+ ### Phase 5: Validation
226
+
227
+ **Goal:** Verify integrated system works
228
+
229
+ **Checks (parallel):**
230
+ 1. **Build** - `npm run build` or equivalent
231
+ 2. **Lint** - `npm run lint`
232
+ 3. **Type check** - `tsc --noEmit`
233
+ 4. **Unit tests** - All tests pass
234
+ 5. **Integration tests** - Cross-component tests
235
+
236
+ **Agents (parallel):**
237
+ - Build-fixer (Sonnet) - Fix build errors
238
+ - Architect (Opus) - Functional completeness
239
+ - Security-reviewer (Opus) - Cross-component vulnerabilities
240
+
241
+ **Retry Policy:** Up to 3 validation rounds. If failures persist, detailed error report to user.
242
+
243
+ ## State Management
244
+
245
+ ### Session State
246
+
247
+ **Location:** `.omc/ultrapilot-state.json`
248
+
249
+ ```json
250
+ {
251
+ "sessionId": "ultrapilot-20260123-1234",
252
+ "taskDescription": "Build a full-stack todo app",
253
+ "phase": "execution",
254
+ "startTime": "2026-01-23T10:30:00Z",
255
+ "decomposition": { /* from Phase 1 */ },
256
+ "workers": {
257
+ "worker-1": {
258
+ "status": "running",
259
+ "taskId": "task-abc123",
260
+ "startTime": "2026-01-23T10:31:00Z",
261
+ "estimatedDuration": "5m"
262
+ }
263
+ },
264
+ "conflicts": [],
265
+ "validationAttempts": 0
266
+ }
267
+ ```
268
+
269
+ ### File Ownership Map
270
+
271
+ **Location:** `.omc/state/ultrapilot-ownership.json`
272
+
273
+ Tracks which worker owns which files (see Phase 2 example above).
274
+
275
+ ### Progress Tracking
276
+
277
+ **Location:** `.omc/ultrapilot/progress.json`
278
+
279
+ ```json
280
+ {
281
+ "totalWorkers": 5,
282
+ "completedWorkers": 3,
283
+ "activeWorkers": 2,
284
+ "failedWorkers": 0,
285
+ "estimatedTimeRemaining": "2m30s"
286
+ }
287
+ ```
288
+
289
+ ## Configuration
290
+
291
+ Optional settings in `.claude/settings.json`:
292
+
293
+ ```json
294
+ {
295
+ "omc": {
296
+ "ultrapilot": {
297
+ "maxWorkers": 5,
298
+ "maxValidationRounds": 3,
299
+ "conflictPolicy": "coordinator-handles",
300
+ "fallbackToAutopilot": true,
301
+ "parallelThreshold": 2,
302
+ "pauseAfterDecomposition": false,
303
+ "verboseProgress": true
304
+ }
305
+ }
306
+ }
307
+ ```
308
+
309
+ **Settings Explained:**
310
+ - `maxWorkers` - Max parallel workers (5 is Claude Code limit)
311
+ - `maxValidationRounds` - Validation retry attempts
312
+ - `conflictPolicy` - "coordinator-handles" or "abort-on-conflict"
313
+ - `fallbackToAutopilot` - Auto-switch if task not parallelizable
314
+ - `parallelThreshold` - Min subtasks to use ultrapilot (else fallback)
315
+ - `pauseAfterDecomposition` - Confirm with user before execution
316
+ - `verboseProgress` - Show detailed worker progress
317
+
318
+ ## Cancellation
319
+
320
+ ```
321
+ /oh-my-claudecode:cancel-ultrapilot
322
+ ```
323
+
324
+ Or say: "stop", "cancel ultrapilot", "abort"
325
+
326
+ **Behavior:**
327
+ - All active workers gracefully terminated
328
+ - Partial progress saved to state file
329
+ - Session can be resumed
330
+
331
+ ## Resume
332
+
333
+ If ultrapilot was cancelled or a worker failed:
334
+
335
+ ```
336
+ /oh-my-claudecode:ultrapilot resume
337
+ ```
338
+
339
+ **Resume Logic:**
340
+ - Restart failed workers only
341
+ - Re-use completed worker outputs
342
+ - Continue from last phase
343
+
344
+ ## Examples
345
+
346
+ ### Example 1: Full-Stack App
347
+
348
+ ```
349
+ /oh-my-claudecode:ultrapilot Build a todo app with React frontend, Express backend, and PostgreSQL database
350
+ ```
351
+
352
+ **Workers:**
353
+ 1. Frontend (src/client/)
354
+ 2. Backend (src/server/)
355
+ 3. Database (src/db/)
356
+ 4. Tests (tests/)
357
+ 5. Docs (docs/)
358
+
359
+ **Shared Files:** package.json, docker-compose.yml, README.md
360
+
361
+ **Duration:** ~15 minutes (vs ~75 minutes sequential)
362
+
363
+ ### Example 2: Multi-Service Refactor
364
+
365
+ ```
366
+ /oh-my-claudecode:up Refactor all services to use dependency injection
367
+ ```
368
+
369
+ **Workers:**
370
+ 1. Auth service
371
+ 2. User service
372
+ 3. Payment service
373
+ 4. Notification service
374
+
375
+ **Shared Files:** src/types/services.ts, tsconfig.json
376
+
377
+ **Duration:** ~8 minutes (vs ~32 minutes sequential)
378
+
379
+ ### Example 3: Test Coverage
380
+
381
+ ```
382
+ /oh-my-claudecode:ultrapilot Generate tests for all untested modules
383
+ ```
384
+
385
+ **Workers:**
386
+ 1. API tests
387
+ 2. UI component tests
388
+ 3. Database tests
389
+ 4. Utility tests
390
+ 5. Integration tests
391
+
392
+ **Shared Files:** jest.config.js, test-utils.ts
393
+
394
+ **Duration:** ~10 minutes (vs ~50 minutes sequential)
395
+
396
+ ## Best Practices
397
+
398
+ 1. **Clear module boundaries** - Works best with well-separated code
399
+ 2. **Minimal shared state** - Reduces integration complexity
400
+ 3. **Trust the decomposition** - Architect knows what's parallel-safe
401
+ 4. **Monitor progress** - Check `.omc/ultrapilot/progress.json`
402
+ 5. **Review conflicts early** - Don't wait until integration
403
+
404
+ ## File Ownership Strategy
405
+
406
+ ### Ownership Types
407
+
408
+ **Exclusive Ownership:**
409
+ - Worker has sole write access
410
+ - No other worker can touch these files
411
+ - Worker can create new files in owned directories
412
+
413
+ **Shared Files:**
414
+ - No worker has exclusive access
415
+ - Handled sequentially in integration phase
416
+ - Includes: package.json, tsconfig.json, config files, root README
417
+
418
+ **Boundary Files:**
419
+ - Can be read by all workers
420
+ - Write access determined by usage analysis
421
+ - Typically: type definitions, shared utilities, interfaces
422
+
423
+ ### Ownership Detection Algorithm
424
+
425
+ ```
426
+ For each file in codebase:
427
+ If file in shared_patterns (package.json, *.config.js):
428
+ → sharedFiles
429
+
430
+ Else if file imported by 2+ subtask modules:
431
+ → boundaryFiles
432
+ → Assign to most relevant worker OR defer to shared
433
+
434
+ Else if file in subtask directory:
435
+ → Assign to subtask worker
436
+
437
+ Else:
438
+ → sharedFiles (safe default)
439
+ ```
440
+
441
+ ### Shared File Patterns
442
+
443
+ Automatically classified as shared:
444
+ - `package.json`, `package-lock.json`
445
+ - `tsconfig.json`, `*.config.js`, `*.config.ts`
446
+ - `.eslintrc.*`, `.prettierrc.*`
447
+ - `README.md`, `CONTRIBUTING.md`, `LICENSE`
448
+ - Docker files: `Dockerfile`, `docker-compose.yml`
449
+ - CI files: `.github/**`, `.gitlab-ci.yml`
450
+
451
+ ## Conflict Handling
452
+
453
+ ### Conflict Types
454
+
455
+ **Unexpected Overlap:**
456
+ - Two workers modified the same file
457
+ - **Resolution:** Coordinator merges with human confirmation
458
+
459
+ **Shared File Contention:**
460
+ - Multiple workers need to update package.json
461
+ - **Resolution:** Sequential application in integration phase
462
+
463
+ **Boundary File Conflict:**
464
+ - Type definition needed by multiple workers
465
+ - **Resolution:** First worker creates, others import
466
+
467
+ ### Conflict Policy
468
+
469
+ **coordinator-handles (default):**
470
+ - Coordinator attempts automatic merge
471
+ - Falls back to user if complex
472
+
473
+ **abort-on-conflict:**
474
+ - Any conflict immediately cancels ultrapilot
475
+ - User reviews conflict report
476
+ - Can resume after manual fix
477
+
478
+ ## Troubleshooting
479
+
480
+ **Decomposition fails?**
481
+ - Task may be too coupled
482
+ - Fallback to autopilot triggered automatically
483
+ - Review `.omc/ultrapilot/decomposition.json` for details
484
+
485
+ **Worker hangs?**
486
+ - Check worker logs in `.omc/logs/ultrapilot-worker-N.log`
487
+ - Cancel and restart that worker
488
+ - May indicate file ownership issue
489
+
490
+ **Integration conflicts?**
491
+ - Review `.omc/ultrapilot-state.json` conflicts array
492
+ - Check if shared files were unexpectedly modified
493
+ - Adjust ownership rules if needed
494
+
495
+ **Validation loops?**
496
+ - Cross-component integration issue
497
+ - Review boundary imports
498
+ - May need sequential retry with full context
499
+
500
+ **Too slow?**
501
+ - Check if workers are truly independent
502
+ - Review decomposition quality
503
+ - Consider if autopilot would be faster (high interdependency)
504
+
505
+ ## Differences from Autopilot
506
+
507
+ | Feature | Autopilot | Ultrapilot |
508
+ |---------|-----------|------------|
509
+ | Execution | Sequential | Parallel (up to 5x) |
510
+ | Best For | Single-threaded tasks | Multi-component systems |
511
+ | Complexity | Lower | Higher |
512
+ | Speed | Standard | 3-5x faster (suitable tasks) |
513
+ | File Conflicts | N/A | Ownership partitioning |
514
+ | Fallback | N/A | Can fallback to autopilot |
515
+ | Setup | Instant | Decomposition phase (~1-2 min) |
516
+
517
+ **Rule of Thumb:** If task has 3+ independent components, use ultrapilot. Otherwise, use autopilot.
518
+
519
+ ## Advanced: Custom Decomposition
520
+
521
+ You can provide a custom decomposition file to skip Phase 1:
522
+
523
+ **Location:** `.omc/ultrapilot/custom-decomposition.json`
524
+
525
+ ```json
526
+ {
527
+ "subtasks": [
528
+ {
529
+ "id": "worker-auth",
530
+ "description": "Add OAuth2 authentication",
531
+ "files": ["src/auth/**", "src/middleware/auth.ts"],
532
+ "dependencies": ["src/types/user.ts"]
533
+ },
534
+ {
535
+ "id": "worker-db",
536
+ "description": "Add user table and migrations",
537
+ "files": ["src/db/migrations/**", "src/db/models/user.ts"],
538
+ "dependencies": []
539
+ }
540
+ ],
541
+ "sharedFiles": ["package.json", "src/types/user.ts"]
542
+ }
543
+ ```
544
+
545
+ Then run:
546
+ ```
547
+ /oh-my-claudecode:ultrapilot --custom-decomposition
548
+ ```
549
+
550
+ ## Future Enhancements
551
+
552
+ **Planned for v4.1:**
553
+ - Dynamic worker scaling (start with 2, spawn more if needed)
554
+ - Predictive conflict detection (pre-integration analysis)
555
+ - Worker-to-worker communication (for rare dependencies)
556
+ - Speculative execution (optimistic parallelism)
557
+ - Resume from integration phase (if validation fails)
558
+
559
+ **Planned for v4.2:**
560
+ - Multi-machine distribution (if Claude Code supports)
561
+ - Real-time progress dashboard
562
+ - Worker performance analytics
563
+ - Auto-tuning of decomposition strategy
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: ultraqa
3
3
  description: QA cycling workflow - test, verify, fix, repeat until goal met
4
- user-invocable: true
5
4
  ---
6
5
 
7
6
  # UltraQA Skill
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: ultrawork
3
3
  description: Activate maximum performance mode with parallel agent orchestration for high-throughput task completion
4
- user-invocable: true
5
4
  ---
6
5
 
7
6
  # Ultrawork Skill