oh-my-codex 0.1.1

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 (182) hide show
  1. package/README.md +269 -0
  2. package/bin/omx.js +25 -0
  3. package/dist/agents/definitions.d.ts +22 -0
  4. package/dist/agents/definitions.d.ts.map +1 -0
  5. package/dist/agents/definitions.js +235 -0
  6. package/dist/agents/definitions.js.map +1 -0
  7. package/dist/cli/doctor.d.ts +11 -0
  8. package/dist/cli/doctor.d.ts.map +1 -0
  9. package/dist/cli/doctor.js +157 -0
  10. package/dist/cli/doctor.js.map +1 -0
  11. package/dist/cli/index.d.ts +6 -0
  12. package/dist/cli/index.d.ts.map +1 -0
  13. package/dist/cli/index.js +266 -0
  14. package/dist/cli/index.js.map +1 -0
  15. package/dist/cli/setup.d.ts +12 -0
  16. package/dist/cli/setup.d.ts.map +1 -0
  17. package/dist/cli/setup.js +175 -0
  18. package/dist/cli/setup.js.map +1 -0
  19. package/dist/cli/version.d.ts +2 -0
  20. package/dist/cli/version.d.ts.map +1 -0
  21. package/dist/cli/version.js +17 -0
  22. package/dist/cli/version.js.map +1 -0
  23. package/dist/config/generator.d.ts +14 -0
  24. package/dist/config/generator.d.ts.map +1 -0
  25. package/dist/config/generator.js +106 -0
  26. package/dist/config/generator.js.map +1 -0
  27. package/dist/hooks/__tests__/agents-overlay.test.d.ts +8 -0
  28. package/dist/hooks/__tests__/agents-overlay.test.d.ts.map +1 -0
  29. package/dist/hooks/__tests__/agents-overlay.test.js +148 -0
  30. package/dist/hooks/__tests__/agents-overlay.test.js.map +1 -0
  31. package/dist/hooks/agents-overlay.d.ts +34 -0
  32. package/dist/hooks/agents-overlay.d.ts.map +1 -0
  33. package/dist/hooks/agents-overlay.js +265 -0
  34. package/dist/hooks/agents-overlay.js.map +1 -0
  35. package/dist/hooks/emulator.d.ts +44 -0
  36. package/dist/hooks/emulator.d.ts.map +1 -0
  37. package/dist/hooks/emulator.js +108 -0
  38. package/dist/hooks/emulator.js.map +1 -0
  39. package/dist/hooks/keyword-detector.d.ts +27 -0
  40. package/dist/hooks/keyword-detector.d.ts.map +1 -0
  41. package/dist/hooks/keyword-detector.js +63 -0
  42. package/dist/hooks/keyword-detector.js.map +1 -0
  43. package/dist/hooks/session.d.ts +38 -0
  44. package/dist/hooks/session.d.ts.map +1 -0
  45. package/dist/hooks/session.js +135 -0
  46. package/dist/hooks/session.js.map +1 -0
  47. package/dist/hud/colors.d.ts +26 -0
  48. package/dist/hud/colors.d.ts.map +1 -0
  49. package/dist/hud/colors.js +71 -0
  50. package/dist/hud/colors.js.map +1 -0
  51. package/dist/hud/index.d.ts +12 -0
  52. package/dist/hud/index.d.ts.map +1 -0
  53. package/dist/hud/index.js +107 -0
  54. package/dist/hud/index.js.map +1 -0
  55. package/dist/hud/render.d.ts +9 -0
  56. package/dist/hud/render.d.ts.map +1 -0
  57. package/dist/hud/render.js +192 -0
  58. package/dist/hud/render.js.map +1 -0
  59. package/dist/hud/state.d.ts +21 -0
  60. package/dist/hud/state.d.ts.map +1 -0
  61. package/dist/hud/state.js +101 -0
  62. package/dist/hud/state.js.map +1 -0
  63. package/dist/hud/types.d.ts +87 -0
  64. package/dist/hud/types.d.ts.map +1 -0
  65. package/dist/hud/types.js +8 -0
  66. package/dist/hud/types.js.map +1 -0
  67. package/dist/index.d.ts +18 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +18 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/mcp/code-intel-server.d.ts +7 -0
  72. package/dist/mcp/code-intel-server.d.ts.map +1 -0
  73. package/dist/mcp/code-intel-server.js +567 -0
  74. package/dist/mcp/code-intel-server.js.map +1 -0
  75. package/dist/mcp/memory-server.d.ts +7 -0
  76. package/dist/mcp/memory-server.d.ts.map +1 -0
  77. package/dist/mcp/memory-server.js +359 -0
  78. package/dist/mcp/memory-server.js.map +1 -0
  79. package/dist/mcp/state-server.d.ts +7 -0
  80. package/dist/mcp/state-server.d.ts.map +1 -0
  81. package/dist/mcp/state-server.js +181 -0
  82. package/dist/mcp/state-server.js.map +1 -0
  83. package/dist/mcp/trace-server.d.ts +7 -0
  84. package/dist/mcp/trace-server.d.ts.map +1 -0
  85. package/dist/mcp/trace-server.js +205 -0
  86. package/dist/mcp/trace-server.js.map +1 -0
  87. package/dist/modes/base.d.ts +50 -0
  88. package/dist/modes/base.d.ts.map +1 -0
  89. package/dist/modes/base.js +140 -0
  90. package/dist/modes/base.js.map +1 -0
  91. package/dist/notifications/notifier.d.ts +30 -0
  92. package/dist/notifications/notifier.d.ts.map +1 -0
  93. package/dist/notifications/notifier.js +124 -0
  94. package/dist/notifications/notifier.js.map +1 -0
  95. package/dist/team/orchestrator.d.ts +54 -0
  96. package/dist/team/orchestrator.d.ts.map +1 -0
  97. package/dist/team/orchestrator.js +106 -0
  98. package/dist/team/orchestrator.js.map +1 -0
  99. package/dist/utils/package.d.ts +9 -0
  100. package/dist/utils/package.d.ts.map +1 -0
  101. package/dist/utils/package.js +31 -0
  102. package/dist/utils/package.js.map +1 -0
  103. package/dist/utils/paths.d.ts +27 -0
  104. package/dist/utils/paths.d.ts.map +1 -0
  105. package/dist/utils/paths.js +60 -0
  106. package/dist/utils/paths.js.map +1 -0
  107. package/dist/verification/verifier.d.ts +32 -0
  108. package/dist/verification/verifier.d.ts.map +1 -0
  109. package/dist/verification/verifier.js +81 -0
  110. package/dist/verification/verifier.js.map +1 -0
  111. package/package.json +54 -0
  112. package/prompts/analyst.md +110 -0
  113. package/prompts/api-reviewer.md +98 -0
  114. package/prompts/architect.md +109 -0
  115. package/prompts/build-fixer.md +89 -0
  116. package/prompts/code-reviewer.md +105 -0
  117. package/prompts/critic.md +87 -0
  118. package/prompts/debugger.md +93 -0
  119. package/prompts/deep-executor.md +112 -0
  120. package/prompts/dependency-expert.md +99 -0
  121. package/prompts/designer.md +103 -0
  122. package/prompts/executor.md +99 -0
  123. package/prompts/explore.md +112 -0
  124. package/prompts/git-master.md +92 -0
  125. package/prompts/information-architect.md +267 -0
  126. package/prompts/performance-reviewer.md +94 -0
  127. package/prompts/planner.md +116 -0
  128. package/prompts/product-analyst.md +299 -0
  129. package/prompts/product-manager.md +255 -0
  130. package/prompts/qa-tester.md +98 -0
  131. package/prompts/quality-reviewer.md +105 -0
  132. package/prompts/quality-strategist.md +227 -0
  133. package/prompts/researcher.md +96 -0
  134. package/prompts/scientist.md +92 -0
  135. package/prompts/security-reviewer.md +125 -0
  136. package/prompts/style-reviewer.md +87 -0
  137. package/prompts/test-engineer.md +103 -0
  138. package/prompts/ux-researcher.md +282 -0
  139. package/prompts/verifier.md +95 -0
  140. package/prompts/vision.md +75 -0
  141. package/prompts/writer.md +86 -0
  142. package/scripts/notify-hook.js +237 -0
  143. package/skills/analyze/SKILL.md +93 -0
  144. package/skills/autopilot/SKILL.md +175 -0
  145. package/skills/build-fix/SKILL.md +123 -0
  146. package/skills/cancel/SKILL.md +387 -0
  147. package/skills/code-review/SKILL.md +208 -0
  148. package/skills/configure-discord/SKILL.md +256 -0
  149. package/skills/configure-telegram/SKILL.md +232 -0
  150. package/skills/deepinit/SKILL.md +320 -0
  151. package/skills/deepsearch/SKILL.md +38 -0
  152. package/skills/doctor/SKILL.md +193 -0
  153. package/skills/ecomode/SKILL.md +114 -0
  154. package/skills/frontend-ui-ux/SKILL.md +34 -0
  155. package/skills/git-master/SKILL.md +29 -0
  156. package/skills/help/SKILL.md +192 -0
  157. package/skills/hud/SKILL.md +97 -0
  158. package/skills/learn-about-omx/SKILL.md +37 -0
  159. package/skills/learner/SKILL.md +135 -0
  160. package/skills/note/SKILL.md +62 -0
  161. package/skills/omx-setup/SKILL.md +1147 -0
  162. package/skills/pipeline/SKILL.md +407 -0
  163. package/skills/plan/SKILL.md +223 -0
  164. package/skills/project-session-manager/SKILL.md +560 -0
  165. package/skills/psm/SKILL.md +20 -0
  166. package/skills/ralph/SKILL.md +197 -0
  167. package/skills/ralph-init/SKILL.md +38 -0
  168. package/skills/ralplan/SKILL.md +34 -0
  169. package/skills/release/SKILL.md +83 -0
  170. package/skills/research/SKILL.md +510 -0
  171. package/skills/review/SKILL.md +30 -0
  172. package/skills/security-review/SKILL.md +284 -0
  173. package/skills/skill/SKILL.md +837 -0
  174. package/skills/swarm/SKILL.md +25 -0
  175. package/skills/tdd/SKILL.md +106 -0
  176. package/skills/team/SKILL.md +860 -0
  177. package/skills/trace/SKILL.md +33 -0
  178. package/skills/ultrapilot/SKILL.md +632 -0
  179. package/skills/ultraqa/SKILL.md +130 -0
  180. package/skills/ultrawork/SKILL.md +143 -0
  181. package/skills/writer-memory/SKILL.md +443 -0
  182. package/templates/AGENTS.md +326 -0
@@ -0,0 +1,320 @@
1
+ ---
2
+ name: deepinit
3
+ description: Deep codebase initialization with hierarchical AGENTS.md documentation
4
+ ---
5
+
6
+ # Deep Init Skill
7
+
8
+ Creates comprehensive, hierarchical AGENTS.md documentation across the entire codebase.
9
+
10
+ ## Core Concept
11
+
12
+ AGENTS.md files serve as **AI-readable documentation** that helps agents understand:
13
+ - What each directory contains
14
+ - How components relate to each other
15
+ - Special instructions for working in that area
16
+ - Dependencies and relationships
17
+
18
+ ## Hierarchical Tagging System
19
+
20
+ Every AGENTS.md (except root) includes a parent reference tag:
21
+
22
+ ```markdown
23
+ <!-- Parent: ../AGENTS.md -->
24
+ ```
25
+
26
+ This creates a navigable hierarchy:
27
+ ```
28
+ /AGENTS.md ← Root (no parent tag)
29
+ ├── src/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
30
+ │ ├── src/components/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
31
+ │ └── src/utils/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
32
+ └── docs/AGENTS.md ← <!-- Parent: ../AGENTS.md -->
33
+ ```
34
+
35
+ ## AGENTS.md Template
36
+
37
+ ```markdown
38
+ <!-- Parent: {relative_path_to_parent}/AGENTS.md -->
39
+ <!-- Generated: {timestamp} | Updated: {timestamp} -->
40
+
41
+ # {Directory Name}
42
+
43
+ ## Purpose
44
+ {One-paragraph description of what this directory contains and its role}
45
+
46
+ ## Key Files
47
+ {List each significant file with a one-line description}
48
+
49
+ | File | Description |
50
+ |------|-------------|
51
+ | `file.ts` | Brief description of purpose |
52
+
53
+ ## Subdirectories
54
+ {List each subdirectory with brief purpose}
55
+
56
+ | Directory | Purpose |
57
+ |-----------|---------|
58
+ | `subdir/` | What it contains (see `subdir/AGENTS.md`) |
59
+
60
+ ## For AI Agents
61
+
62
+ ### Working In This Directory
63
+ {Special instructions for AI agents modifying files here}
64
+
65
+ ### Testing Requirements
66
+ {How to test changes in this directory}
67
+
68
+ ### Common Patterns
69
+ {Code patterns or conventions used here}
70
+
71
+ ## Dependencies
72
+
73
+ ### Internal
74
+ {References to other parts of the codebase this depends on}
75
+
76
+ ### External
77
+ {Key external packages/libraries used}
78
+
79
+ <!-- MANUAL: Any manually added notes below this line are preserved on regeneration -->
80
+ ```
81
+
82
+ ## Execution Workflow
83
+
84
+ ### Step 1: Map Directory Structure
85
+
86
+ ```
87
+ spawn_sub_agent(subagent_type="explore", model="haiku",
88
+ prompt="List all directories recursively. Exclude: node_modules, .git, dist, build, __pycache__, .venv, coverage, .next, .nuxt")
89
+ ```
90
+
91
+ ### Step 2: Create Work Plan
92
+
93
+ Generate todo items for each directory, organized by depth level:
94
+
95
+ ```
96
+ Level 0: / (root)
97
+ Level 1: /src, /docs, /tests
98
+ Level 2: /src/components, /src/utils, /docs/api
99
+ ...
100
+ ```
101
+
102
+ ### Step 3: Generate Level by Level
103
+
104
+ **IMPORTANT**: Generate parent levels before child levels to ensure parent references are valid.
105
+
106
+ For each directory:
107
+ 1. Read all files in the directory
108
+ 2. Analyze purpose and relationships
109
+ 3. Generate AGENTS.md content
110
+ 4. Write file with proper parent reference
111
+
112
+ ### Step 4: Compare and Update (if exists)
113
+
114
+ When AGENTS.md already exists:
115
+
116
+ 1. **Read existing content**
117
+ 2. **Identify sections**:
118
+ - Auto-generated sections (can be updated)
119
+ - Manual sections (`<!-- MANUAL -->` preserved)
120
+ 3. **Compare**:
121
+ - New files added?
122
+ - Files removed?
123
+ - Structure changed?
124
+ 4. **Merge**:
125
+ - Update auto-generated content
126
+ - Preserve manual annotations
127
+ - Update timestamp
128
+
129
+ ### Step 5: Validate Hierarchy
130
+
131
+ After generation, run validation checks:
132
+
133
+ | Check | How to Verify | Corrective Action |
134
+ |-------|--------------|-------------------|
135
+ | Parent references resolve | Read each AGENTS.md, check `<!-- Parent: -->` path exists | Fix path or remove orphan |
136
+ | No orphaned AGENTS.md | Compare AGENTS.md locations to directory structure | Delete orphaned files |
137
+ | Completeness | List all directories, check for AGENTS.md | Generate missing files |
138
+ | Timestamps current | Check `<!-- Generated: -->` dates | Regenerate outdated files |
139
+
140
+ Validation script pattern:
141
+ ```bash
142
+ # Find all AGENTS.md files
143
+ find . -name "AGENTS.md" -type f
144
+
145
+ # Check parent references
146
+ grep -r "<!-- Parent:" --include="AGENTS.md" .
147
+ ```
148
+
149
+ ## Smart Delegation
150
+
151
+ | Task | Agent |
152
+ |------|-------|
153
+ | Directory mapping | `explore` |
154
+ | File analysis | `architect-low` |
155
+ | Content generation | `writer` |
156
+ | AGENTS.md writes | `writer` |
157
+
158
+ ## Empty Directory Handling
159
+
160
+ When encountering empty or near-empty directories:
161
+
162
+ | Condition | Action |
163
+ |-----------|--------|
164
+ | No files, no subdirectories | **Skip** - do not create AGENTS.md |
165
+ | No files, has subdirectories | Create minimal AGENTS.md with subdirectory listing only |
166
+ | Has only generated files (*.min.js, *.map) | Skip or minimal AGENTS.md |
167
+ | Has only config files | Create AGENTS.md describing configuration purpose |
168
+
169
+ Example minimal AGENTS.md for directory-only containers:
170
+ ```markdown
171
+ <!-- Parent: ../AGENTS.md -->
172
+ # {Directory Name}
173
+
174
+ ## Purpose
175
+ Container directory for organizing related modules.
176
+
177
+ ## Subdirectories
178
+ | Directory | Purpose |
179
+ |-----------|---------|
180
+ | `subdir/` | Description (see `subdir/AGENTS.md`) |
181
+ ```
182
+
183
+ ## Parallelization Rules
184
+
185
+ 1. **Same-level directories**: Process in parallel
186
+ 2. **Different levels**: Sequential (parent first)
187
+ 3. **Large directories**: Spawn dedicated agent per directory
188
+ 4. **Small directories**: Batch multiple into one agent
189
+
190
+ ## Quality Standards
191
+
192
+ ### Must Include
193
+ - [ ] Accurate file descriptions
194
+ - [ ] Correct parent references
195
+ - [ ] Subdirectory links
196
+ - [ ] AI agent instructions
197
+
198
+ ### Must Avoid
199
+ - [ ] Generic boilerplate
200
+ - [ ] Incorrect file names
201
+ - [ ] Broken parent references
202
+ - [ ] Missing important files
203
+
204
+ ## Example Output
205
+
206
+ ### Root AGENTS.md
207
+ ```markdown
208
+ <!-- Generated: 2024-01-15 | Updated: 2024-01-15 -->
209
+
210
+ # my-project
211
+
212
+ ## Purpose
213
+ A web application for managing user tasks with real-time collaboration features.
214
+
215
+ ## Key Files
216
+ | File | Description |
217
+ |------|-------------|
218
+ | `package.json` | Project dependencies and scripts |
219
+ | `tsconfig.json` | TypeScript configuration |
220
+ | `.env.example` | Environment variable template |
221
+
222
+ ## Subdirectories
223
+ | Directory | Purpose |
224
+ |-----------|---------|
225
+ | `src/` | Application source code (see `src/AGENTS.md`) |
226
+ | `docs/` | Documentation (see `docs/AGENTS.md`) |
227
+ | `tests/` | Test suites (see `tests/AGENTS.md`) |
228
+
229
+ ## For AI Agents
230
+
231
+ ### Working In This Directory
232
+ - Always install dependencies after modifying the project manifest
233
+ - Use TypeScript strict mode
234
+ - Follow ESLint rules
235
+
236
+ ### Testing Requirements
237
+ - Run tests before committing
238
+ - Ensure >80% coverage
239
+
240
+ ### Common Patterns
241
+ - Use barrel exports (index.ts)
242
+ - Prefer functional components
243
+
244
+ ## Dependencies
245
+
246
+ ### External
247
+ - React 18.x - UI framework
248
+ - TypeScript 5.x - Type safety
249
+ - Vite - Build tool
250
+
251
+ <!-- MANUAL: Custom project notes can be added below -->
252
+ ```
253
+
254
+ ### Nested AGENTS.md
255
+ ```markdown
256
+ <!-- Parent: ../AGENTS.md -->
257
+ <!-- Generated: 2024-01-15 | Updated: 2024-01-15 -->
258
+
259
+ # components
260
+
261
+ ## Purpose
262
+ Reusable React components organized by feature and complexity.
263
+
264
+ ## Key Files
265
+ | File | Description |
266
+ |------|-------------|
267
+ | `index.ts` | Barrel export for all components |
268
+ | `Button.tsx` | Primary button component |
269
+ | `Modal.tsx` | Modal dialog component |
270
+
271
+ ## Subdirectories
272
+ | Directory | Purpose |
273
+ |-----------|---------|
274
+ | `forms/` | Form-related components (see `forms/AGENTS.md`) |
275
+ | `layout/` | Layout components (see `layout/AGENTS.md`) |
276
+
277
+ ## For AI Agents
278
+
279
+ ### Working In This Directory
280
+ - Each component has its own file
281
+ - Use CSS modules for styling
282
+ - Export via index.ts
283
+
284
+ ### Testing Requirements
285
+ - Unit tests in `__tests__/` subdirectory
286
+ - Use React Testing Library
287
+
288
+ ### Common Patterns
289
+ - Props interfaces defined above component
290
+ - Use forwardRef for DOM-exposing components
291
+
292
+ ## Dependencies
293
+
294
+ ### Internal
295
+ - `src/hooks/` - Custom hooks used by components
296
+ - `src/utils/` - Utility functions
297
+
298
+ ### External
299
+ - `clsx` - Conditional class names
300
+ - `lucide-react` - Icons
301
+
302
+ <!-- MANUAL: -->
303
+ ```
304
+
305
+ ## Triggering Update Mode
306
+
307
+ When running on an existing codebase with AGENTS.md files:
308
+
309
+ 1. Detect existing files first
310
+ 2. Read and parse existing content
311
+ 3. Analyze current directory state
312
+ 4. Generate diff between existing and current
313
+ 5. Apply updates while preserving manual sections
314
+
315
+ ## Performance Considerations
316
+
317
+ - **Cache directory listings** - Don't re-scan same directories
318
+ - **Batch small directories** - Process multiple at once
319
+ - **Skip unchanged** - If directory hasn't changed, skip regeneration
320
+ - **Parallel writes** - Multiple agents writing different files simultaneously
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: deepsearch
3
+ description: Thorough codebase search
4
+ ---
5
+
6
+ # Deep Search Mode
7
+
8
+ [DEEPSEARCH MODE ACTIVATED]
9
+
10
+ ## Objective
11
+
12
+ Perform thorough search of the codebase for the specified query, pattern, or concept.
13
+
14
+ ## Search Strategy
15
+
16
+ 1. **Broad Search**
17
+ - Search for exact matches
18
+ - Search for related terms and variations
19
+ - Check common locations (components, utils, services, hooks)
20
+
21
+ 2. **Deep Dive**
22
+ - Read files with matches
23
+ - Check imports/exports to find connections
24
+ - Follow the trail (what imports this? what does this import?)
25
+
26
+ 3. **Synthesize**
27
+ - Map out where the concept is used
28
+ - Identify the main implementation
29
+ - Note related functionality
30
+
31
+ ## Output Format
32
+
33
+ - **Primary Locations** (main implementations)
34
+ - **Related Files** (dependencies, consumers)
35
+ - **Usage Patterns** (how it's used across the codebase)
36
+ - **Key Insights** (patterns, conventions, gotchas)
37
+
38
+ Focus on being comprehensive but concise. Cite file paths and line numbers.
@@ -0,0 +1,193 @@
1
+ ---
2
+ name: doctor
3
+ description: Diagnose and fix oh-my-codex installation issues
4
+ ---
5
+
6
+ # Doctor Skill
7
+
8
+ Note: All `~/.claude/...` paths in this guide respect `CLAUDE_CONFIG_DIR` when that environment variable is set.
9
+
10
+ ## Task: Run Installation Diagnostics
11
+
12
+ You are the OMX Doctor - diagnose and fix installation issues.
13
+
14
+ ### Step 1: Check Plugin Version
15
+
16
+ ```bash
17
+ # Get installed version
18
+ INSTALLED=$(ls ~/.claude/plugins/cache/omc/oh-my-codex/ 2>/dev/null | sort -V | tail -1)
19
+ echo "Installed: $INSTALLED"
20
+
21
+ # Get latest from npm
22
+ LATEST=$(npm view oh-my-claude-sisyphus version 2>/dev/null)
23
+ echo "Latest: $LATEST"
24
+ ```
25
+
26
+ **Diagnosis**:
27
+ - If no version installed: CRITICAL - plugin not installed
28
+ - If INSTALLED != LATEST: WARN - outdated plugin
29
+ - If multiple versions exist: WARN - stale cache
30
+
31
+ ### Step 2: Check for Legacy Hooks in settings.json
32
+
33
+ Read `~/.claude/settings.json` and check if there's a `"hooks"` key with entries like:
34
+ - `bash $HOME/.claude/hooks/keyword-detector.sh`
35
+ - `bash $HOME/.claude/hooks/persistent-mode.sh`
36
+ - `bash $HOME/.claude/hooks/session-start.sh`
37
+
38
+ **Diagnosis**:
39
+ - If found: CRITICAL - legacy hooks causing duplicates
40
+
41
+ ### Step 3: Check for Legacy Bash Hook Scripts
42
+
43
+ ```bash
44
+ ls -la ~/.claude/hooks/*.sh 2>/dev/null
45
+ ```
46
+
47
+ **Diagnosis**:
48
+ - If `keyword-detector.sh`, `persistent-mode.sh`, `session-start.sh`, or `stop-continuation.sh` exist: WARN - legacy scripts (can cause confusion)
49
+
50
+ ### Step 4: Check CLAUDE.md
51
+
52
+ ```bash
53
+ # Check if CLAUDE.md exists
54
+ ls -la ~/.claude/CLAUDE.md 2>/dev/null
55
+
56
+ # Check for OMX marker
57
+ grep -q "oh-my-codex Multi-Agent System" ~/.claude/CLAUDE.md 2>/dev/null && echo "Has OMX config" || echo "Missing OMX config"
58
+ ```
59
+
60
+ **Diagnosis**:
61
+ - If missing: CRITICAL - CLAUDE.md not configured
62
+ - If missing OMX marker: WARN - outdated CLAUDE.md
63
+
64
+ ### Step 5: Check for Stale Plugin Cache
65
+
66
+ ```bash
67
+ # Count versions in cache
68
+ ls ~/.claude/plugins/cache/omc/oh-my-codex/ 2>/dev/null | wc -l
69
+ ```
70
+
71
+ **Diagnosis**:
72
+ - If > 1 version: WARN - multiple cached versions (cleanup recommended)
73
+
74
+ ### Step 6: Check for Legacy Curl-Installed Content
75
+
76
+ Check for legacy agents, commands, and skills installed via curl (before plugin system):
77
+
78
+ ```bash
79
+ # Check for legacy agents directory
80
+ ls -la ~/.claude/agents/ 2>/dev/null
81
+
82
+ # Check for legacy commands directory
83
+ ls -la ~/.claude/commands/ 2>/dev/null
84
+
85
+ # Check for legacy skills directory
86
+ ls -la ~/.claude/skills/ 2>/dev/null
87
+ ```
88
+
89
+ **Diagnosis**:
90
+ - If `~/.claude/agents/` exists with oh-my-codex-related files: WARN - legacy agents (now provided by plugin)
91
+ - If `~/.claude/commands/` exists with oh-my-codex-related files: WARN - legacy commands (now provided by plugin)
92
+ - If `~/.claude/skills/` exists with oh-my-codex-related files: WARN - legacy skills (now provided by plugin)
93
+
94
+ Look for files like:
95
+ - `architect.md`, `researcher.md`, `explore.md`, `executor.md`, etc. in agents/
96
+ - `ultrawork.md`, `deepsearch.md`, etc. in commands/
97
+ - Any oh-my-codex-related `.md` files in skills/
98
+
99
+ ---
100
+
101
+ ## Report Format
102
+
103
+ After running all checks, output a report:
104
+
105
+ ```
106
+ ## OMX Doctor Report
107
+
108
+ ### Summary
109
+ [HEALTHY / ISSUES FOUND]
110
+
111
+ ### Checks
112
+
113
+ | Check | Status | Details |
114
+ |-------|--------|---------|
115
+ | Plugin Version | OK/WARN/CRITICAL | ... |
116
+ | Legacy Hooks (settings.json) | OK/CRITICAL | ... |
117
+ | Legacy Scripts (~/.claude/hooks/) | OK/WARN | ... |
118
+ | CLAUDE.md | OK/WARN/CRITICAL | ... |
119
+ | Plugin Cache | OK/WARN | ... |
120
+ | Legacy Agents (~/.claude/agents/) | OK/WARN | ... |
121
+ | Legacy Commands (~/.claude/commands/) | OK/WARN | ... |
122
+ | Legacy Skills (~/.claude/skills/) | OK/WARN | ... |
123
+
124
+ ### Issues Found
125
+ 1. [Issue description]
126
+ 2. [Issue description]
127
+
128
+ ### Recommended Fixes
129
+ [List fixes based on issues]
130
+ ```
131
+
132
+ ---
133
+
134
+ ## Auto-Fix (if user confirms)
135
+
136
+ If issues found, ask user: "Would you like me to fix these issues automatically?"
137
+
138
+ If yes, apply fixes:
139
+
140
+ ### Fix: Legacy Hooks in settings.json
141
+ Remove the `"hooks"` section from `~/.claude/settings.json` (keep other settings intact)
142
+
143
+ ### Fix: Legacy Bash Scripts
144
+ ```bash
145
+ rm -f ~/.claude/hooks/keyword-detector.sh
146
+ rm -f ~/.claude/hooks/persistent-mode.sh
147
+ rm -f ~/.claude/hooks/session-start.sh
148
+ rm -f ~/.claude/hooks/stop-continuation.sh
149
+ ```
150
+
151
+ ### Fix: Outdated Plugin
152
+ ```bash
153
+ rm -rf ~/.claude/plugins/cache/oh-my-codex
154
+ echo "Plugin cache cleared. Restart Codex CLI to fetch latest version."
155
+ ```
156
+
157
+ ### Fix: Stale Cache (multiple versions)
158
+ ```bash
159
+ # Keep only latest version
160
+ cd ~/.claude/plugins/cache/omc/oh-my-codex/
161
+ ls | sort -V | head -n -1 | xargs rm -rf
162
+ ```
163
+
164
+ ### Fix: Missing/Outdated CLAUDE.md
165
+ Fetch latest from GitHub and write to `~/.claude/CLAUDE.md`:
166
+ ```
167
+ WebFetch(url: "https://raw.githubusercontent.com/Yeachan-Heo/oh-my-codex/main/docs/CLAUDE.md", prompt: "Return the complete raw markdown content exactly as-is")
168
+ ```
169
+
170
+ ### Fix: Legacy Curl-Installed Content
171
+
172
+ Remove legacy agents, commands, and skills directories (now provided by plugin):
173
+
174
+ ```bash
175
+ # Backup first (optional - ask user)
176
+ # mv ~/.claude/agents ~/.claude/agents.bak
177
+ # mv ~/.claude/commands ~/.claude/commands.bak
178
+ # mv ~/.claude/skills ~/.claude/skills.bak
179
+
180
+ # Or remove directly
181
+ rm -rf ~/.claude/agents
182
+ rm -rf ~/.claude/commands
183
+ rm -rf ~/.claude/skills
184
+ ```
185
+
186
+ **Note**: Only remove if these contain oh-my-codex-related files. If user has custom agents/commands/skills, warn them and ask before removing.
187
+
188
+ ---
189
+
190
+ ## Post-Fix
191
+
192
+ After applying fixes, inform user:
193
+ > Fixes applied. **Restart Codex CLI** for changes to take effect.
@@ -0,0 +1,114 @@
1
+ ---
2
+ name: ecomode
3
+ description: Token-efficient model routing modifier
4
+ ---
5
+
6
+ # Ecomode Skill
7
+
8
+ Token-efficient model routing. This is a **MODIFIER**, not a standalone execution mode.
9
+
10
+ ## What Ecomode Does
11
+
12
+ Overrides default model selection to prefer cheaper tiers:
13
+
14
+ | Default Tier | Ecomode Override |
15
+ |--------------|------------------|
16
+ | HIGH (opus) | MEDIUM (sonnet), HIGH only if essential |
17
+ | MEDIUM (sonnet) | LOW (haiku) first, MEDIUM if fails |
18
+ | LOW (haiku) | LOW (haiku) - no change |
19
+
20
+ ## What Ecomode Does NOT Do
21
+
22
+ - **Persistence**: Use `ralph` for "don't stop until done"
23
+ - **Parallel Execution**: Use `ultrawork` for parallel agents
24
+ - **Delegation Enforcement**: Always active via core orchestration
25
+
26
+ ## Combining Ecomode with Other Modes
27
+
28
+ Ecomode is a modifier that combines with execution modes:
29
+
30
+ | Combination | Effect |
31
+ |-------------|--------|
32
+ | `eco ralph` | Ralph loop with cheaper agents |
33
+ | `eco ultrawork` | Parallel execution with cheaper agents |
34
+ | `eco autopilot` | Full autonomous with cost optimization |
35
+
36
+ ## Ecomode Routing Rules
37
+
38
+ **ALWAYS prefer lower tiers. Only escalate when task genuinely requires it.**
39
+
40
+ | Decision | Rule |
41
+ |----------|------|
42
+ | DEFAULT | Start with LOW tier (Haiku) for most tasks |
43
+ | UPGRADE | Escalate to MEDIUM (Sonnet) when LOW tier fails or task requires multi-file reasoning |
44
+ | AVOID | HIGH tier (Opus) - only for planning/critique if essential |
45
+
46
+ ## Agent Selection in Ecomode
47
+
48
+ **FIRST ACTION:** Before delegating any work, read the agent reference file:
49
+ ```
50
+ Read file: docs/shared/agent-tiers.md
51
+ ```
52
+ This provides the complete agent tier matrix, MCP tool assignments, and selection guidance.
53
+
54
+ **Ecomode preference order:**
55
+
56
+ ```
57
+ // PREFERRED - Use for most tasks
58
+ spawn_sub_agent(subagent_type="oh-my-codex:executor-low", model="haiku", prompt="...")
59
+ spawn_sub_agent(subagent_type="oh-my-codex:explore", model="haiku", prompt="...")
60
+ spawn_sub_agent(subagent_type="oh-my-codex:architect-low", model="haiku", prompt="...")
61
+
62
+ // FALLBACK - Only if LOW fails
63
+ spawn_sub_agent(subagent_type="oh-my-codex:executor", model="sonnet", prompt="...")
64
+ spawn_sub_agent(subagent_type="oh-my-codex:architect-medium", model="sonnet", prompt="...")
65
+
66
+ // AVOID - Only for planning/critique if essential
67
+ spawn_sub_agent(subagent_type="oh-my-codex:planner", model="opus", prompt="...")
68
+ ```
69
+
70
+ ## Delegation Enforcement
71
+
72
+ Ecomode maintains all delegation rules from core protocol with cost-optimized routing:
73
+
74
+ | Action | Delegate To | Model |
75
+ |--------|-------------|-------|
76
+ | Code changes | executor-low / executor | haiku / sonnet |
77
+ | Analysis | architect-low | haiku |
78
+ | Search | explore | haiku |
79
+ | Documentation | writer | haiku |
80
+
81
+ ### Background Execution
82
+ Long-running commands (install, build, test) run in background. Maximum 20 concurrent.
83
+
84
+ ## Token Savings Tips
85
+
86
+ 1. **Batch similar tasks** to one agent instead of spawning many
87
+ 2. **Use explore (haiku)** for file discovery, not architect
88
+ 3. **Prefer executor-low** for simple changes - only upgrade if it fails
89
+ 4. **Use writer (haiku)** for all documentation tasks
90
+ 5. **Avoid opus agents** unless the task genuinely requires deep reasoning
91
+
92
+ ## Disabling Ecomode
93
+
94
+ Ecomode can be completely disabled via config. When disabled, all ecomode keywords are ignored.
95
+
96
+ Set in `~/.claude/.omx-config.json`:
97
+ ```json
98
+ {
99
+ "ecomode": {
100
+ "enabled": false
101
+ }
102
+ }
103
+ ```
104
+
105
+ ## State Management
106
+
107
+ Use `omx_state` MCP tools for ecomode lifecycle state.
108
+
109
+ - **On activation**:
110
+ `state_write({mode: "ecomode", active: true})`
111
+ - **On deactivation/completion**:
112
+ `state_write({mode: "ecomode", active: false})`
113
+ - **On cancellation/cleanup**:
114
+ run `$cancel` (which should call `state_clear(mode="ecomode")`)
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: frontend-ui-ux
3
+ description: Designer-developer for UI/UX work
4
+ ---
5
+
6
+ # Frontend UI/UX Command
7
+
8
+ Routes to the designer agent or Gemini MCP for frontend work.
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ /frontend-ui-ux <design task>
14
+ ```
15
+
16
+ ## Routing
17
+
18
+ ### Preferred: MCP Direct
19
+ Before first MCP tool use, call `ToolSearch("mcp")` to discover deferred MCP tools.
20
+ Use `mcp__g__ask_gemini` with `agent_role: "designer"` for design tasks.
21
+ If ToolSearch finds no MCP tools, use the Claude agent fallback below.
22
+
23
+ ### Fallback: Claude Agent
24
+ ```
25
+ spawn_sub_agent(subagent_type="oh-my-codex:designer", model="sonnet", prompt="{{ARGUMENTS}}")
26
+ ```
27
+
28
+ ## Capabilities
29
+ - Component design and implementation
30
+ - Responsive layouts
31
+ - Design system consistency
32
+ - Accessibility compliance
33
+
34
+ Task: {{ARGUMENTS}}