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,510 @@
1
+ ---
2
+ name: research
3
+ description: Orchestrate parallel scientist agents for comprehensive research with AUTO mode
4
+ argument-hint: <research goal>
5
+ ---
6
+
7
+ # Research Skill
8
+
9
+ Orchestrate parallel scientist agents for comprehensive research workflows with optional AUTO mode for fully autonomous execution.
10
+
11
+ ## Overview
12
+
13
+ Research is a multi-stage workflow that decomposes complex research goals into parallel investigations:
14
+
15
+ 1. **Decomposition** - Break research goal into independent stages/hypotheses
16
+ 2. **Execution** - Run parallel scientist agents on each stage
17
+ 3. **Verification** - Cross-validate findings, check consistency
18
+ 4. **Synthesis** - Aggregate results into comprehensive report
19
+
20
+ ## Usage Examples
21
+
22
+ ```
23
+ /research <goal> # Standard research with user checkpoints
24
+ /research AUTO: <goal> # Fully autonomous until complete
25
+ /research status # Check current research session status
26
+ /research resume # Resume interrupted research session
27
+ /research list # List all research sessions
28
+ /research report <session-id> # Generate report for session
29
+ ```
30
+
31
+ ### Quick Examples
32
+
33
+ ```
34
+ /research What are the performance characteristics of different sorting algorithms?
35
+ /research AUTO: Analyze authentication patterns in this codebase
36
+ /research How does the error handling work across the API layer?
37
+ ```
38
+
39
+ ## Research Protocol
40
+
41
+ ### Stage Decomposition Pattern
42
+
43
+ When given a research goal, decompose into 3-7 independent stages:
44
+
45
+ ```markdown
46
+ ## Research Decomposition
47
+
48
+ **Goal:** <original research goal>
49
+
50
+ ### Stage 1: <stage-name>
51
+ - **Focus:** What this stage investigates
52
+ - **Hypothesis:** Expected finding (if applicable)
53
+ - **Scope:** Files/areas to examine
54
+ - **Tier:** LOW | MEDIUM | HIGH
55
+
56
+ ### Stage 2: <stage-name>
57
+ ...
58
+ ```
59
+
60
+ ### Parallel Scientist Invocation
61
+
62
+ Fire independent stages in parallel via sub-agent spawning:
63
+
64
+ ```
65
+ // Stage 1 - Simple data gathering
66
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist", model="haiku", prompt="[RESEARCH_STAGE:1] Investigate...")
67
+
68
+ // Stage 2 - Standard analysis
69
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist", model="sonnet", prompt="[RESEARCH_STAGE:2] Analyze...")
70
+
71
+ // Stage 3 - Complex reasoning
72
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist-high", model="opus", prompt="[RESEARCH_STAGE:3] Deep analysis of...")
73
+ ```
74
+
75
+ ### Smart Model Routing
76
+
77
+ **CRITICAL: Always pass `model` parameter explicitly!**
78
+
79
+ | Task Complexity | Agent | Model | Use For |
80
+ |-----------------|-------|-------|---------|
81
+ | Data gathering | `scientist` (model=haiku) | haiku | File enumeration, pattern counting, simple lookups |
82
+ | Standard analysis | `scientist` | sonnet | Code analysis, pattern detection, documentation review |
83
+ | Complex reasoning | `scientist-high` | opus | Architecture analysis, cross-cutting concerns, hypothesis validation |
84
+
85
+ ### Routing Decision Guide
86
+
87
+ | Research Task | Tier | Example Prompt |
88
+ |---------------|------|----------------|
89
+ | "Count occurrences of X" | LOW | "Count all usages of useState hook" |
90
+ | "Find all files matching Y" | LOW | "List all test files in the project" |
91
+ | "Analyze pattern Z" | MEDIUM | "Analyze error handling patterns in API routes" |
92
+ | "Document how W works" | MEDIUM | "Document the authentication flow" |
93
+ | "Explain why X happens" | HIGH | "Explain why race conditions occur in the cache layer" |
94
+ | "Compare approaches A vs B" | HIGH | "Compare Redux vs Context for state management here" |
95
+
96
+ ### Verification Loop
97
+
98
+ After parallel execution completes, verify findings:
99
+
100
+ ```
101
+ // Cross-validation stage
102
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist", model="sonnet", prompt="
103
+ [RESEARCH_VERIFICATION]
104
+ Cross-validate these findings for consistency:
105
+
106
+ Stage 1 findings: <summary>
107
+ Stage 2 findings: <summary>
108
+ Stage 3 findings: <summary>
109
+
110
+ Check for:
111
+ 1. Contradictions between stages
112
+ 2. Missing connections
113
+ 3. Gaps in coverage
114
+ 4. Evidence quality
115
+
116
+ Output: [VERIFIED] or [CONFLICTS:<list>]
117
+ ")
118
+ ```
119
+
120
+ ## AUTO Mode
121
+
122
+ AUTO mode runs the complete research workflow autonomously with loop control.
123
+
124
+ ### Loop Control Protocol
125
+
126
+ ```
127
+ [RESEARCH + AUTO - ITERATION {{ITERATION}}/{{MAX}}]
128
+
129
+ Your previous attempt did not output the completion promise. Continue working.
130
+
131
+ Current state: {{STATE}}
132
+ Completed stages: {{COMPLETED_STAGES}}
133
+ Pending stages: {{PENDING_STAGES}}
134
+ ```
135
+
136
+ ### Promise Tags
137
+
138
+ | Tag | Meaning | When to Use |
139
+ |-----|---------|-------------|
140
+ | `[PROMISE:RESEARCH_COMPLETE]` | Research finished successfully | All stages done, verified, report generated |
141
+ | `[PROMISE:RESEARCH_BLOCKED]` | Cannot proceed | Missing data, access issues, circular dependency |
142
+
143
+ ### AUTO Mode Rules
144
+
145
+ 1. **Max Iterations:** 10 (configurable)
146
+ 2. **Continue until:** Promise tag emitted OR max iterations
147
+ 3. **State tracking:** Persist after each stage completion
148
+ 4. **Cancellation:** `/cancel` or "stop", "cancel"
149
+
150
+ ### AUTO Mode Example
151
+
152
+ ```
153
+ /research AUTO: Comprehensive security analysis of the authentication system
154
+
155
+ [Decomposition]
156
+ - Stage 1 (LOW): Enumerate auth-related files
157
+ - Stage 2 (MEDIUM): Analyze token handling
158
+ - Stage 3 (MEDIUM): Review session management
159
+ - Stage 4 (HIGH): Identify vulnerability patterns
160
+ - Stage 5 (MEDIUM): Document security controls
161
+
162
+ [Execution - Parallel]
163
+ Firing stages 1-3 in parallel...
164
+ Firing stages 4-5 after dependencies complete...
165
+
166
+ [Verification]
167
+ Cross-validating findings...
168
+
169
+ [Synthesis]
170
+ Generating report...
171
+
172
+ [PROMISE:RESEARCH_COMPLETE]
173
+ ```
174
+
175
+ ## Parallel Execution Patterns
176
+
177
+ ### Independent Dataset Analysis (Parallel)
178
+
179
+ When stages analyze different data sources:
180
+
181
+ ```
182
+ // All fire simultaneously
183
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist", model="haiku", prompt="[STAGE:1] Analyze src/api/...")
184
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist", model="haiku", prompt="[STAGE:2] Analyze src/utils/...")
185
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist", model="haiku", prompt="[STAGE:3] Analyze src/components/...")
186
+ ```
187
+
188
+ ### Hypothesis Battery (Parallel)
189
+
190
+ When testing multiple hypotheses:
191
+
192
+ ```
193
+ // Test hypotheses simultaneously
194
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist", model="sonnet", prompt="[HYPOTHESIS:A] Test if caching improves...")
195
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist", model="sonnet", prompt="[HYPOTHESIS:B] Test if batching reduces...")
196
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist", model="sonnet", prompt="[HYPOTHESIS:C] Test if lazy loading helps...")
197
+ ```
198
+
199
+ ### Cross-Validation (Sequential)
200
+
201
+ When verification depends on all findings:
202
+
203
+ ```
204
+ // Wait for all parallel stages
205
+ [stages complete]
206
+
207
+ // Then sequential verification
208
+ spawn_sub_agent(subagent_type="oh-my-codex:scientist-high", model="opus", prompt="
209
+ [CROSS_VALIDATION]
210
+ Validate consistency across all findings:
211
+ - Finding 1: ...
212
+ - Finding 2: ...
213
+ - Finding 3: ...
214
+ ")
215
+ ```
216
+
217
+ ### Concurrency Limit
218
+
219
+ **Maximum 20 concurrent scientist agents** to prevent resource exhaustion.
220
+
221
+ If more than 20 stages, batch them:
222
+ ```
223
+ Batch 1: Stages 1-5 (parallel)
224
+ [wait for completion]
225
+ Batch 2: Stages 6-7 (parallel)
226
+ ```
227
+
228
+ ## Session Management
229
+
230
+ ### Directory Structure
231
+
232
+ ```
233
+ .omx/research/{session-id}/
234
+ state.json # Session state and progress
235
+ stages/
236
+ stage-1.md # Stage 1 findings
237
+ stage-2.md # Stage 2 findings
238
+ ...
239
+ findings/
240
+ raw/ # Raw findings from scientists
241
+ verified/ # Post-verification findings
242
+ figures/
243
+ figure-1.png # Generated visualizations
244
+ ...
245
+ report.md # Final synthesized report
246
+ ```
247
+
248
+ ### State File Format
249
+
250
+ ```json
251
+ {
252
+ "id": "research-20240115-abc123",
253
+ "goal": "Original research goal",
254
+ "status": "in_progress | complete | blocked | cancelled",
255
+ "mode": "standard | auto",
256
+ "iteration": 3,
257
+ "maxIterations": 10,
258
+ "stages": [
259
+ {
260
+ "id": 1,
261
+ "name": "Stage name",
262
+ "tier": "LOW | MEDIUM | HIGH",
263
+ "status": "pending | running | complete | failed",
264
+ "startedAt": "ISO timestamp",
265
+ "completedAt": "ISO timestamp",
266
+ "findingsFile": "stages/stage-1.md"
267
+ }
268
+ ],
269
+ "verification": {
270
+ "status": "pending | passed | failed",
271
+ "conflicts": [],
272
+ "completedAt": "ISO timestamp"
273
+ },
274
+ "createdAt": "ISO timestamp",
275
+ "updatedAt": "ISO timestamp"
276
+ }
277
+ ```
278
+
279
+ ### Session Commands
280
+
281
+ | Command | Action |
282
+ |---------|--------|
283
+ | `/research status` | Show current session progress |
284
+ | `/research resume` | Resume most recent interrupted session |
285
+ | `/research resume <session-id>` | Resume specific session |
286
+ | `/research list` | List all sessions with status |
287
+ | `/research report <session-id>` | Generate/regenerate report |
288
+ | `/research cancel` | Cancel current session (preserves state) |
289
+
290
+ ## Tag Extraction
291
+
292
+ Scientists use structured tags for findings. Extract them with these patterns:
293
+
294
+ ### Finding Tags
295
+
296
+ ```
297
+ [FINDING:<id>] <title>
298
+ <evidence and analysis>
299
+ [/FINDING]
300
+
301
+ [EVIDENCE:<finding-id>]
302
+ - File: <path>
303
+ - Lines: <range>
304
+ - Content: <relevant code/text>
305
+ [/EVIDENCE]
306
+
307
+ [CONFIDENCE:<level>] # HIGH | MEDIUM | LOW
308
+ <reasoning for confidence level>
309
+ ```
310
+
311
+ ### Extraction Regex Patterns
312
+
313
+ ```javascript
314
+ // Finding extraction
315
+ const findingPattern = /\[FINDING:(\w+)\]\s*(.*?)\n([\s\S]*?)\[\/FINDING\]/g;
316
+
317
+ // Evidence extraction
318
+ const evidencePattern = /\[EVIDENCE:(\w+)\]([\s\S]*?)\[\/EVIDENCE\]/g;
319
+
320
+ // Confidence extraction
321
+ const confidencePattern = /\[CONFIDENCE:(HIGH|MEDIUM|LOW)\]\s*(.*)/g;
322
+
323
+ // Stage completion
324
+ const stageCompletePattern = /\[STAGE_COMPLETE:(\d+)\]/;
325
+
326
+ // Verification result
327
+ const verificationPattern = /\[(VERIFIED|CONFLICTS):?(.*?)\]/;
328
+ ```
329
+
330
+ ### Evidence Window
331
+
332
+ When extracting evidence, include context window:
333
+
334
+ ```
335
+ [EVIDENCE:F1]
336
+ - File: /src/auth/login.ts
337
+ - Lines: 45-52 (context: 40-57)
338
+ - Content:
339
+ ```typescript
340
+ // Lines 45-52 with 5 lines context above/below
341
+ ```
342
+ [/EVIDENCE]
343
+ ```
344
+
345
+ ### Quality Validation
346
+
347
+ Findings must meet quality threshold:
348
+
349
+ | Quality Check | Requirement |
350
+ |---------------|-------------|
351
+ | Evidence present | At least 1 [EVIDENCE] per [FINDING] |
352
+ | Confidence stated | Each finding has [CONFIDENCE] |
353
+ | Source cited | File paths are absolute and valid |
354
+ | Reproducible | Another agent could verify |
355
+
356
+ ## Report Generation
357
+
358
+ ### Report Template
359
+
360
+ ```markdown
361
+ # Research Report: {{GOAL}}
362
+
363
+ **Session ID:** {{SESSION_ID}}
364
+ **Date:** {{DATE}}
365
+ **Status:** {{STATUS}}
366
+
367
+ ## Executive Summary
368
+
369
+ {{2-3 paragraph summary of key findings}}
370
+
371
+ ## Methodology
372
+
373
+ ### Research Stages
374
+
375
+ | Stage | Focus | Tier | Status |
376
+ |-------|-------|------|--------|
377
+ {{STAGES_TABLE}}
378
+
379
+ ### Approach
380
+
381
+ {{Description of decomposition rationale and execution strategy}}
382
+
383
+ ## Key Findings
384
+
385
+ ### Finding 1: {{TITLE}}
386
+
387
+ **Confidence:** {{HIGH|MEDIUM|LOW}}
388
+
389
+ {{Detailed finding with evidence}}
390
+
391
+ #### Evidence
392
+
393
+ {{Embedded evidence blocks}}
394
+
395
+ ### Finding 2: {{TITLE}}
396
+ ...
397
+
398
+ ## Visualizations
399
+
400
+ {{FIGURES}}
401
+
402
+ ## Cross-Validation Results
403
+
404
+ {{Verification summary, any conflicts resolved}}
405
+
406
+ ## Limitations
407
+
408
+ - {{Limitation 1}}
409
+ - {{Limitation 2}}
410
+ - {{Areas not covered and why}}
411
+
412
+ ## Recommendations
413
+
414
+ 1. {{Actionable recommendation}}
415
+ 2. {{Actionable recommendation}}
416
+
417
+ ## Appendix
418
+
419
+ ### Raw Data
420
+
421
+ {{Links to raw findings files}}
422
+
423
+ ### Session State
424
+
425
+ {{Link to state.json}}
426
+ ```
427
+
428
+ ### Figure Embedding Protocol
429
+
430
+ Scientists generate visualizations using this marker:
431
+
432
+ ```
433
+ [FIGURE:path/to/figure.png]
434
+ Caption: Description of what the figure shows
435
+ Alt: Accessibility description
436
+ [/FIGURE]
437
+ ```
438
+
439
+ Report generator embeds figures:
440
+
441
+ ```markdown
442
+ ## Visualizations
443
+
444
+ ![Figure 1: Description](figures/figure-1.png)
445
+ *Caption: Description of what the figure shows*
446
+
447
+ ![Figure 2: Description](figures/figure-2.png)
448
+ *Caption: Description of what the figure shows*
449
+ ```
450
+
451
+ ### Figure Types
452
+
453
+ | Type | Use For | Generated By |
454
+ |------|---------|--------------|
455
+ | Architecture diagram | System structure | scientist-high |
456
+ | Flow chart | Process flows | scientist |
457
+ | Dependency graph | Module relationships | scientist |
458
+ | Timeline | Sequence of events | scientist |
459
+ | Comparison table | A vs B analysis | scientist |
460
+
461
+ ## Configuration
462
+
463
+ Optional settings in `.claude/settings.json`:
464
+
465
+ ```json
466
+ {
467
+ "omc": {
468
+ "research": {
469
+ "maxIterations": 10,
470
+ "maxConcurrentScientists": 5,
471
+ "defaultTier": "MEDIUM",
472
+ "autoVerify": true,
473
+ "generateFigures": true,
474
+ "evidenceContextLines": 5
475
+ }
476
+ }
477
+ }
478
+ ```
479
+
480
+ ## Cancellation
481
+
482
+ ```
483
+ /cancel
484
+ ```
485
+
486
+ Or say: "stop research", "cancel research", "abort"
487
+
488
+ Progress is preserved in `.omx/research/{session-id}/` for resume.
489
+
490
+ ## Troubleshooting
491
+
492
+ **Stuck in verification loop?**
493
+ - Check for conflicting findings between stages
494
+ - Review state.json for specific conflicts
495
+ - May need to re-run specific stages with different approach
496
+
497
+ **Scientists returning low-quality findings?**
498
+ - Check tier assignment - complex analysis needs HIGH tier
499
+ - Ensure prompts include clear scope and expected output format
500
+ - Review if research goal is too broad
501
+
502
+ **AUTO mode exhausted iterations?**
503
+ - Review state to see where it's stuck
504
+ - Check if goal is achievable with available data
505
+ - Consider breaking into smaller research sessions
506
+
507
+ **Missing figures in report?**
508
+ - Verify figures/ directory exists
509
+ - Check [FIGURE:] tags in findings
510
+ - Ensure paths are relative to session directory
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: review
3
+ description: Alias for /plan --review
4
+ ---
5
+
6
+ # Review (Plan Review Alias)
7
+
8
+ Review is a shorthand alias for `/plan --review`. It triggers Critic evaluation of an existing plan.
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ /review
14
+ /review "path/to/plan.md"
15
+ ```
16
+
17
+ ## Behavior
18
+
19
+ This skill invokes the Plan skill in review mode:
20
+
21
+ ```
22
+ /plan --review <arguments>
23
+ ```
24
+
25
+ The review workflow:
26
+ 1. Read plan file from `.omx/plans/` (or specified path)
27
+ 2. Evaluate via Critic agent
28
+ 3. Return verdict: APPROVED, REVISE (with specific feedback), or REJECT (replanning required)
29
+
30
+ Follow the Plan skill's full documentation for review mode details.