oh-my-codex 0.4.3 → 0.5.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 (159) hide show
  1. package/README.md +17 -10
  2. package/dist/agents/definitions.d.ts.map +1 -1
  3. package/dist/agents/definitions.js +7 -13
  4. package/dist/agents/definitions.js.map +1 -1
  5. package/dist/agents/native-config.d.ts +20 -0
  6. package/dist/agents/native-config.d.ts.map +1 -0
  7. package/dist/agents/native-config.js +84 -0
  8. package/dist/agents/native-config.js.map +1 -0
  9. package/dist/catalog/__tests__/generator.test.d.ts +2 -0
  10. package/dist/catalog/__tests__/generator.test.d.ts.map +1 -0
  11. package/dist/catalog/__tests__/generator.test.js +42 -0
  12. package/dist/catalog/__tests__/generator.test.js.map +1 -0
  13. package/dist/catalog/__tests__/schema.test.d.ts +2 -0
  14. package/dist/catalog/__tests__/schema.test.d.ts.map +1 -0
  15. package/dist/catalog/__tests__/schema.test.js +33 -0
  16. package/dist/catalog/__tests__/schema.test.js.map +1 -0
  17. package/dist/catalog/reader.d.ts +19 -0
  18. package/dist/catalog/reader.d.ts.map +1 -0
  19. package/dist/catalog/reader.js +63 -0
  20. package/dist/catalog/reader.js.map +1 -0
  21. package/dist/catalog/schema.d.ts +32 -0
  22. package/dist/catalog/schema.d.ts.map +1 -0
  23. package/dist/catalog/schema.js +101 -0
  24. package/dist/catalog/schema.js.map +1 -0
  25. package/dist/cli/__tests__/index.test.js +109 -1
  26. package/dist/cli/__tests__/index.test.js.map +1 -1
  27. package/dist/cli/__tests__/setup-scope.test.d.ts +2 -0
  28. package/dist/cli/__tests__/setup-scope.test.d.ts.map +1 -0
  29. package/dist/cli/__tests__/setup-scope.test.js +164 -0
  30. package/dist/cli/__tests__/setup-scope.test.js.map +1 -0
  31. package/dist/cli/catalog-contract.d.ts +10 -0
  32. package/dist/cli/catalog-contract.d.ts.map +1 -0
  33. package/dist/cli/catalog-contract.js +24 -0
  34. package/dist/cli/catalog-contract.js.map +1 -0
  35. package/dist/cli/doctor.d.ts.map +1 -1
  36. package/dist/cli/doctor.js +7 -4
  37. package/dist/cli/doctor.js.map +1 -1
  38. package/dist/cli/index.d.ts +10 -0
  39. package/dist/cli/index.d.ts.map +1 -1
  40. package/dist/cli/index.js +124 -99
  41. package/dist/cli/index.js.map +1 -1
  42. package/dist/cli/setup.d.ts +3 -0
  43. package/dist/cli/setup.d.ts.map +1 -1
  44. package/dist/cli/setup.js +208 -47
  45. package/dist/cli/setup.js.map +1 -1
  46. package/dist/config/__tests__/generator-notify.test.js +28 -0
  47. package/dist/config/__tests__/generator-notify.test.js.map +1 -1
  48. package/dist/config/generator.d.ts +1 -0
  49. package/dist/config/generator.d.ts.map +1 -1
  50. package/dist/config/generator.js +34 -2
  51. package/dist/config/generator.js.map +1 -1
  52. package/dist/hooks/code-simplifier/__tests__/index.test.d.ts +2 -0
  53. package/dist/hooks/code-simplifier/__tests__/index.test.d.ts.map +1 -0
  54. package/dist/hooks/code-simplifier/__tests__/index.test.js +135 -0
  55. package/dist/hooks/code-simplifier/__tests__/index.test.js.map +1 -0
  56. package/dist/hooks/code-simplifier/index.d.ts +74 -0
  57. package/dist/hooks/code-simplifier/index.d.ts.map +1 -0
  58. package/dist/hooks/code-simplifier/index.js +145 -0
  59. package/dist/hooks/code-simplifier/index.js.map +1 -0
  60. package/dist/hooks/emulator.d.ts.map +1 -1
  61. package/dist/hooks/emulator.js +0 -1
  62. package/dist/hooks/emulator.js.map +1 -1
  63. package/dist/hooks/keyword-detector.d.ts.map +1 -1
  64. package/dist/hooks/keyword-detector.js +0 -3
  65. package/dist/hooks/keyword-detector.js.map +1 -1
  66. package/dist/index.d.ts +1 -0
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +1 -0
  69. package/dist/index.js.map +1 -1
  70. package/dist/notifications/__tests__/tmux.test.js +61 -1
  71. package/dist/notifications/__tests__/tmux.test.js.map +1 -1
  72. package/dist/notifications/__tests__/verbosity.test.d.ts +2 -0
  73. package/dist/notifications/__tests__/verbosity.test.d.ts.map +1 -0
  74. package/dist/notifications/__tests__/verbosity.test.js +202 -0
  75. package/dist/notifications/__tests__/verbosity.test.js.map +1 -0
  76. package/dist/notifications/config.d.ts +14 -1
  77. package/dist/notifications/config.d.ts.map +1 -1
  78. package/dist/notifications/config.js +52 -0
  79. package/dist/notifications/config.js.map +1 -1
  80. package/dist/notifications/formatter.d.ts.map +1 -1
  81. package/dist/notifications/formatter.js +14 -0
  82. package/dist/notifications/formatter.js.map +1 -1
  83. package/dist/notifications/index.d.ts +3 -3
  84. package/dist/notifications/index.d.ts.map +1 -1
  85. package/dist/notifications/index.js +14 -4
  86. package/dist/notifications/index.js.map +1 -1
  87. package/dist/notifications/tmux.d.ts +6 -0
  88. package/dist/notifications/tmux.d.ts.map +1 -1
  89. package/dist/notifications/tmux.js +31 -1
  90. package/dist/notifications/tmux.js.map +1 -1
  91. package/dist/notifications/types.d.ts +13 -0
  92. package/dist/notifications/types.d.ts.map +1 -1
  93. package/dist/team/__tests__/model-contract.test.d.ts +2 -0
  94. package/dist/team/__tests__/model-contract.test.d.ts.map +1 -0
  95. package/dist/team/__tests__/model-contract.test.js +47 -0
  96. package/dist/team/__tests__/model-contract.test.js.map +1 -0
  97. package/dist/team/__tests__/phase-controller.test.d.ts +2 -0
  98. package/dist/team/__tests__/phase-controller.test.d.ts.map +1 -0
  99. package/dist/team/__tests__/phase-controller.test.js +36 -0
  100. package/dist/team/__tests__/phase-controller.test.js.map +1 -0
  101. package/dist/team/__tests__/runtime.test.js +112 -8
  102. package/dist/team/__tests__/runtime.test.js.map +1 -1
  103. package/dist/team/__tests__/tmux-session.test.js +71 -1
  104. package/dist/team/__tests__/tmux-session.test.js.map +1 -1
  105. package/dist/team/model-contract.d.ts +19 -0
  106. package/dist/team/model-contract.d.ts.map +1 -0
  107. package/dist/team/model-contract.js +123 -0
  108. package/dist/team/model-contract.js.map +1 -0
  109. package/dist/team/orchestrator.d.ts.map +1 -1
  110. package/dist/team/orchestrator.js +0 -1
  111. package/dist/team/orchestrator.js.map +1 -1
  112. package/dist/team/phase-controller.d.ts +10 -0
  113. package/dist/team/phase-controller.d.ts.map +1 -0
  114. package/dist/team/phase-controller.js +128 -0
  115. package/dist/team/phase-controller.js.map +1 -0
  116. package/dist/team/runtime.d.ts +3 -3
  117. package/dist/team/runtime.d.ts.map +1 -1
  118. package/dist/team/runtime.js +40 -74
  119. package/dist/team/runtime.js.map +1 -1
  120. package/dist/team/state.d.ts +15 -0
  121. package/dist/team/state.d.ts.map +1 -1
  122. package/dist/team/state.js +35 -0
  123. package/dist/team/state.js.map +1 -1
  124. package/dist/team/team-ops.d.ts +3 -1
  125. package/dist/team/team-ops.d.ts.map +1 -1
  126. package/dist/team/team-ops.js +2 -0
  127. package/dist/team/team-ops.js.map +1 -1
  128. package/dist/team/tmux-session.d.ts +12 -0
  129. package/dist/team/tmux-session.d.ts.map +1 -1
  130. package/dist/team/tmux-session.js +33 -1
  131. package/dist/team/tmux-session.js.map +1 -1
  132. package/dist/utils/paths.d.ts +2 -0
  133. package/dist/utils/paths.d.ts.map +1 -1
  134. package/dist/utils/paths.js +4 -0
  135. package/dist/utils/paths.js.map +1 -1
  136. package/package.json +2 -2
  137. package/prompts/code-simplifier.md +91 -0
  138. package/prompts/product-analyst.md +7 -7
  139. package/scripts/generate-catalog-docs.js +111 -0
  140. package/scripts/notify-hook.js +36 -1
  141. package/skills/build-fix/SKILL.md +3 -3
  142. package/skills/code-review/SKILL.md +3 -3
  143. package/skills/help/SKILL.md +4 -4
  144. package/skills/omx-setup/SKILL.md +24 -15
  145. package/skills/research/SKILL.md +28 -28
  146. package/skills/security-review/SKILL.md +3 -3
  147. package/templates/AGENTS.md +1 -8
  148. package/templates/catalog-manifest.json +397 -0
  149. package/prompts/deep-executor.md +0 -19
  150. package/prompts/scientist.md +0 -89
  151. package/skills/deepinit/SKILL.md +0 -320
  152. package/skills/learn-about-omx/SKILL.md +0 -37
  153. package/skills/learner/SKILL.md +0 -135
  154. package/skills/pipeline/SKILL.md +0 -407
  155. package/skills/project-session-manager/SKILL.md +0 -560
  156. package/skills/psm/SKILL.md +0 -20
  157. package/skills/release/SKILL.md +0 -83
  158. package/skills/ultrapilot/SKILL.md +0 -627
  159. package/skills/writer-memory/SKILL.md +0 -443
@@ -1,407 +0,0 @@
1
- ---
2
- name: pipeline
3
- description: Chain agents together in sequential or branching workflows with data passing
4
- ---
5
-
6
- # Pipeline Skill
7
-
8
- ## Overview
9
-
10
- The pipeline skill enables chaining multiple agents together in defined workflows where the output of one agent becomes the input to the next. This creates powerful agent pipelines similar to Unix pipes but designed for AI agent orchestration.
11
-
12
- ## Core Concepts
13
-
14
- ### 1. Sequential Pipelines
15
-
16
- The simplest form: Agent A's output flows to Agent B, which flows to Agent C.
17
-
18
- ```
19
- explore -> architect -> executor
20
- ```
21
-
22
- **Flow:**
23
- 1. Explore agent searches codebase and produces findings
24
- 2. Architect receives findings and produces analysis/recommendations
25
- 3. Executor receives recommendations and implements changes
26
-
27
- ### 2. Branching Pipelines
28
-
29
- Route to different agents based on output conditions.
30
-
31
- ```
32
- explore -> {
33
- if "complex refactoring" -> architect -> executor-high
34
- if "simple change" -> executor-low
35
- if "UI work" -> designer -> executor
36
- }
37
- ```
38
-
39
- ### 3. Parallel-Then-Merge Pipelines
40
-
41
- Run multiple agents in parallel, merge their outputs.
42
-
43
- ```
44
- parallel(explore, researcher) -> architect -> executor
45
- ```
46
-
47
- ## Built-in Pipeline Presets
48
-
49
- ### Review Pipeline
50
- **Purpose:** Comprehensive code review and implementation
51
-
52
- ```
53
- /pipeline review <task>
54
- ```
55
-
56
- **Stages:**
57
- 1. `explore` - Find relevant code and patterns
58
- 2. `architect` - Analyze architecture and design implications
59
- 3. `critic` - Review and critique the analysis
60
- 4. `executor` - Implement with full context
61
-
62
- **Use for:** Major features, refactorings, complex changes
63
-
64
- ---
65
-
66
- ### Implement Pipeline
67
- **Purpose:** Planned implementation with testing
68
-
69
- ```
70
- /pipeline implement <task>
71
- ```
72
-
73
- **Stages:**
74
- 1. `planner` - Create detailed implementation plan
75
- 2. `executor` - Implement the plan
76
- 3. `tdd-guide` - Add/verify tests
77
-
78
- **Use for:** New features with clear requirements
79
-
80
- ---
81
-
82
- ### Debug Pipeline
83
- **Purpose:** Systematic debugging workflow
84
-
85
- ```
86
- /pipeline debug <issue>
87
- ```
88
-
89
- **Stages:**
90
- 1. `explore` - Locate error locations and related code
91
- 2. `architect` - Analyze root cause
92
- 3. `build-fixer` - Apply fixes and verify
93
-
94
- **Use for:** Bugs, build errors, test failures
95
-
96
- ---
97
-
98
- ### Research Pipeline
99
- **Purpose:** External research + internal analysis
100
-
101
- ```
102
- /pipeline research <topic>
103
- ```
104
-
105
- **Stages:**
106
- 1. `parallel(researcher, explore)` - External docs + internal code
107
- 2. `architect` - Synthesize findings
108
- 3. `writer` - Document recommendations
109
-
110
- **Use for:** Technology decisions, API integrations
111
-
112
- ---
113
-
114
- ### Refactor Pipeline
115
- **Purpose:** Safe, verified refactoring
116
-
117
- ```
118
- /pipeline refactor <target>
119
- ```
120
-
121
- **Stages:**
122
- 1. `explore` - Find all usages and dependencies
123
- 2. `architect-medium` - Design refactoring strategy
124
- 3. `executor-high` - Execute refactoring
125
- 4. `qa-tester` - Verify no regressions
126
-
127
- **Use for:** Architectural changes, API redesigns
128
-
129
- ---
130
-
131
- ### Security Pipeline
132
- **Purpose:** Security audit and fixes
133
-
134
- ```
135
- /pipeline security <scope>
136
- ```
137
-
138
- **Stages:**
139
- 1. `explore` - Find potential vulnerabilities
140
- 2. `security-reviewer` - Audit and identify issues
141
- 3. `executor` - Implement fixes
142
- 4. `security-reviewer-low` - Re-verify
143
-
144
- **Use for:** Security reviews, vulnerability fixes
145
-
146
- ---
147
-
148
- ## Custom Pipeline Syntax
149
-
150
- ### Basic Sequential
151
-
152
- ```
153
- /pipeline agent1 -> agent2 -> agent3 "task description"
154
- ```
155
-
156
- **Example:**
157
- ```
158
- /pipeline explore -> architect -> executor "add authentication"
159
- ```
160
-
161
- ### With Model Specification
162
-
163
- ```
164
- /pipeline explore:haiku -> architect:opus -> executor:sonnet "optimize performance"
165
- ```
166
-
167
- ### With Branching
168
-
169
- ```
170
- /pipeline explore -> (
171
- complexity:high -> architect:opus -> executor-high:opus
172
- complexity:medium -> executor:sonnet
173
- complexity:low -> executor-low:haiku
174
- ) "fix reported issues"
175
- ```
176
-
177
- ### With Parallel Stages
178
-
179
- ```
180
- /pipeline [explore, researcher] -> architect -> executor "implement OAuth"
181
- ```
182
-
183
- ## Data Passing Protocol
184
-
185
- Each agent in the pipeline receives structured context from the previous stage:
186
-
187
- ```json
188
- {
189
- "pipeline_context": {
190
- "original_task": "user's original request",
191
- "previous_stages": [
192
- {
193
- "agent": "explore",
194
- "model": "haiku",
195
- "findings": "...",
196
- "files_identified": ["src/auth.ts", "src/user.ts"]
197
- }
198
- ],
199
- "current_stage": "architect",
200
- "next_stage": "executor"
201
- },
202
- "task": "specific task for this agent"
203
- }
204
- ```
205
-
206
- ## Error Handling
207
-
208
- ### Retry Logic
209
-
210
- When an agent fails, the pipeline can:
211
-
212
- 1. **Retry** - Re-run the same agent (up to 3 times)
213
- 2. **Skip** - Continue to next stage with partial output
214
- 3. **Abort** - Stop entire pipeline
215
- 4. **Fallback** - Route to alternative agent
216
-
217
- **Configuration:**
218
-
219
- ```
220
- /pipeline explore -> architect -> executor --retry=3 --on-error=abort
221
- ```
222
-
223
- ### Error Recovery Patterns
224
-
225
- **Pattern 1: Fallback to Higher Tier**
226
- ```
227
- executor-low -> on-error -> executor:sonnet
228
- ```
229
-
230
- **Pattern 2: Consult Architect**
231
- ```
232
- executor -> on-error -> architect -> executor
233
- ```
234
-
235
- **Pattern 3: Human-in-the-Loop**
236
- ```
237
- any-stage -> on-error -> pause-for-user-input
238
- ```
239
-
240
- ## Pipeline State Management
241
-
242
- Use `omx_state` MCP tools for pipeline lifecycle state.
243
-
244
- - **On start**:
245
- `state_write({mode: "pipeline", active: true, current_phase: "plan", started_at: "<now>"})`
246
- - **On phase transitions**:
247
- `state_write({mode: "pipeline", current_phase: "execute"})`
248
- `state_write({mode: "pipeline", current_phase: "verify"})`
249
- `state_write({mode: "pipeline", current_phase: "fix"})`
250
- - **On completion**:
251
- `state_write({mode: "pipeline", active: false, current_phase: "complete", completed_at: "<now>"})`
252
- - **For resume detection**:
253
- `state_read({mode: "pipeline"})`
254
-
255
- ## Verification Rules
256
-
257
- Before pipeline completion, verify:
258
-
259
- - [ ] All stages completed successfully
260
- - [ ] Output from final stage addresses original task
261
- - [ ] No unhandled errors in any stage
262
- - [ ] All files modified pass lsp_diagnostics
263
- - [ ] Tests pass (if applicable)
264
-
265
- ## Advanced Features
266
-
267
- ### Conditional Branching
268
-
269
- Based on agent output, route to different paths:
270
-
271
- ```
272
- explore -> {
273
- if files_found > 5 -> architect:opus -> executor-high:opus
274
- if files_found <= 5 -> executor:sonnet
275
- }
276
- ```
277
-
278
- ### Loop Constructs
279
-
280
- Repeat stages until condition met:
281
-
282
- ```
283
- repeat_until(tests_pass) {
284
- executor -> qa-tester
285
- }
286
- ```
287
-
288
- ### Merge Strategies
289
-
290
- When parallel agents complete:
291
-
292
- - **concat**: Concatenate all outputs
293
- - **summarize**: Use architect to summarize findings
294
- - **vote**: Use critic to choose best output
295
-
296
- ## Usage Examples
297
-
298
- ### Example 1: Feature Implementation
299
- ```
300
- /pipeline review "add rate limiting to API"
301
- ```
302
- → Triggers: explore → architect → critic → executor
303
-
304
- ### Example 2: Bug Fix
305
- ```
306
- /pipeline debug "login fails with OAuth"
307
- ```
308
- → Triggers: explore → architect → build-fixer
309
-
310
- ### Example 3: Custom Chain
311
- ```
312
- /pipeline explore:haiku -> architect:opus -> executor:sonnet -> tdd-guide:sonnet "refactor auth module"
313
- ```
314
-
315
- ### Example 4: Research-Driven Implementation
316
- ```
317
- /pipeline research "implement GraphQL subscriptions"
318
- ```
319
- → Triggers: parallel(researcher, explore) → architect → writer
320
-
321
- ## Cancellation
322
-
323
- Stop active pipeline:
324
-
325
- ```
326
- /pipeline cancel
327
- ```
328
-
329
- Or use the general cancel command which detects active pipeline.
330
-
331
- ## Integration with Other Skills
332
-
333
- Pipelines can be used within other skills:
334
-
335
- - **Ralph**: Loop pipelines until verified complete
336
- - **Ultrawork**: Run multiple pipelines in parallel
337
- - **Autopilot**: Use pipelines as building blocks
338
-
339
- ## Best Practices
340
-
341
- 1. **Start with presets** - Use built-in pipelines before creating custom ones
342
- 2. **Match model to complexity** - Don't waste opus on simple tasks
343
- 3. **Keep stages focused** - Each agent should have one clear responsibility
344
- 4. **Use parallel stages** - Run independent work simultaneously
345
- 5. **Verify at checkpoints** - Use architect or critic to verify progress
346
- 6. **Document custom pipelines** - Save successful patterns for reuse
347
-
348
- ## Troubleshooting
349
-
350
- ### Pipeline Hangs
351
-
352
- **Check:** `state_read({mode: "pipeline"})` for current stage
353
- **Fix:** Resume with `/pipeline resume` or cancel and restart
354
-
355
- ### Agent Fails Repeatedly
356
-
357
- **Check:** Retry count and error messages
358
- **Fix:** Route to higher-tier agent or add architect consultation
359
-
360
- ### Output Not Flowing
361
-
362
- **Check:** Data passing structure in agent prompts
363
- **Fix:** Ensure each agent is prompted with `pipeline_context`
364
-
365
- ## Technical Implementation
366
-
367
- The pipeline orchestrator:
368
-
369
- 1. **Parses pipeline definition** - Validates syntax and agent names
370
- 2. **Initializes state** - Calls `state_write({mode: "pipeline", active: true, ...})`
371
- 3. **Executes stages sequentially** - Spawns agents with sub-agent spawning
372
- 4. **Passes context between stages** - Structures output for next agent
373
- 5. **Handles branching logic** - Evaluates conditions and routes
374
- 6. **Manages parallel execution** - Spawns concurrent agents and merges
375
- 7. **Persists state** - Calls `state_write` after each stage
376
- 8. **Enforces verification** - Runs checks before completion
377
-
378
- ## STATE CLEANUP ON COMPLETION
379
-
380
- **IMPORTANT: Use OMX MCP cleanup on completion**
381
-
382
- When pipeline completes (all stages done or cancelled):
383
-
384
- ```text
385
- state_clear({mode: "pipeline"})
386
- ```
387
-
388
- This ensures clean state for future sessions without direct file deletion.
389
-
390
- ## Skill Invocation
391
-
392
- This skill activates when:
393
-
394
- - User types `/pipeline` command
395
- - User mentions "agent chain", "workflow", "pipe agents"
396
- - Pattern detected: "X then Y then Z" with agent names
397
-
398
- **Explicit invocation:**
399
- ```
400
- /pipeline review "task"
401
- ```
402
-
403
- **Auto-detection:**
404
- ```
405
- "First explore the codebase, then architect should analyze it, then executor implements"
406
- ```
407
- → Automatically creates pipeline: explore → architect → executor