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

|
|
446
|
+
*Caption: Description of what the figure shows*
|
|
447
|
+
|
|
448
|
+

|
|
449
|
+
*Caption: Description of what the figure shows*
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
### Figure Types
|
|
453
|
+
|
|
454
|
+
| Type | Use For | Generated By |
|
|
455
|
+
|------|---------|--------------|
|
|
456
|
+
| Architecture diagram | System structure | scientist-high |
|
|
457
|
+
| Flow chart | Process flows | scientist |
|
|
458
|
+
| Dependency graph | Module relationships | scientist |
|
|
459
|
+
| Timeline | Sequence of events | scientist |
|
|
460
|
+
| Comparison table | A vs B analysis | scientist |
|
|
461
|
+
|
|
462
|
+
## Configuration
|
|
463
|
+
|
|
464
|
+
Optional settings in `.claude/settings.json`:
|
|
465
|
+
|
|
466
|
+
```json
|
|
467
|
+
{
|
|
468
|
+
"omc": {
|
|
469
|
+
"research": {
|
|
470
|
+
"maxIterations": 10,
|
|
471
|
+
"maxConcurrentScientists": 5,
|
|
472
|
+
"defaultTier": "MEDIUM",
|
|
473
|
+
"autoVerify": true,
|
|
474
|
+
"generateFigures": true,
|
|
475
|
+
"evidenceContextLines": 5
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
## Cancellation
|
|
482
|
+
|
|
483
|
+
```
|
|
484
|
+
/oh-my-claudecode:cancel-research
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
Or say: "stop research", "cancel research", "abort"
|
|
488
|
+
|
|
489
|
+
Progress is preserved in `.omc/research/{session-id}/` for resume.
|
|
490
|
+
|
|
491
|
+
## Troubleshooting
|
|
492
|
+
|
|
493
|
+
**Stuck in verification loop?**
|
|
494
|
+
- Check for conflicting findings between stages
|
|
495
|
+
- Review state.json for specific conflicts
|
|
496
|
+
- May need to re-run specific stages with different approach
|
|
497
|
+
|
|
498
|
+
**Scientists returning low-quality findings?**
|
|
499
|
+
- Check tier assignment - complex analysis needs HIGH tier
|
|
500
|
+
- Ensure prompts include clear scope and expected output format
|
|
501
|
+
- Review if research goal is too broad
|
|
502
|
+
|
|
503
|
+
**AUTO mode exhausted iterations?**
|
|
504
|
+
- Review state to see where it's stuck
|
|
505
|
+
- Check if goal is achievable with available data
|
|
506
|
+
- Consider breaking into smaller research sessions
|
|
507
|
+
|
|
508
|
+
**Missing figures in report?**
|
|
509
|
+
- Verify figures/ directory exists
|
|
510
|
+
- Check [FIGURE:] tags in findings
|
|
511
|
+
- Ensure paths are relative to session directory
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: review
|
|
3
|
+
description: Review a plan with Critic
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Review Skill
|
|
8
|
+
|
|
9
|
+
[PLAN REVIEW MODE ACTIVATED]
|
|
10
|
+
|
|
11
|
+
## Role
|
|
12
|
+
|
|
13
|
+
Critically evaluate plans using Critic. No plan passes without meeting rigorous standards.
|
|
14
|
+
|
|
15
|
+
## Review Criteria
|
|
16
|
+
|
|
17
|
+
| Criterion | Standard |
|
|
18
|
+
|-----------|----------|
|
|
19
|
+
| Clarity | 80%+ claims cite file/line |
|
|
20
|
+
| Testability | 90%+ criteria are concrete |
|
|
21
|
+
| Verification | All file refs exist |
|
|
22
|
+
| Specificity | No vague terms |
|
|
23
|
+
|
|
24
|
+
## Verdicts
|
|
25
|
+
|
|
26
|
+
**APPROVED** - Plan meets all criteria, ready for execution
|
|
27
|
+
**REVISE** - Plan has issues needing fixes (with specific feedback)
|
|
28
|
+
**REJECT** - Fundamental problems require replanning
|
|
29
|
+
|
|
30
|
+
## What Gets Checked
|
|
31
|
+
|
|
32
|
+
1. Are requirements clear and unambiguous?
|
|
33
|
+
2. Are acceptance criteria concrete and testable?
|
|
34
|
+
3. Do file references actually exist?
|
|
35
|
+
4. Are implementation steps specific?
|
|
36
|
+
5. Are risks identified with mitigations?
|
|
37
|
+
6. Are verification steps defined?
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tdd
|
|
3
|
+
description: Test-Driven Development enforcement skill - write tests first, always
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# TDD Mode
|
|
8
|
+
|
|
9
|
+
[TDD MODE ACTIVATED]
|
|
10
|
+
|
|
11
|
+
## The Iron Law
|
|
12
|
+
|
|
13
|
+
**NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST**
|
|
14
|
+
|
|
15
|
+
Write code before test? DELETE IT. Start over. No exceptions.
|
|
16
|
+
|
|
17
|
+
## Red-Green-Refactor Cycle
|
|
18
|
+
|
|
19
|
+
### 1. RED: Write Failing Test
|
|
20
|
+
- Write test for the NEXT piece of functionality
|
|
21
|
+
- Run test - MUST FAIL
|
|
22
|
+
- If it passes, your test is wrong
|
|
23
|
+
|
|
24
|
+
### 2. GREEN: Minimal Implementation
|
|
25
|
+
- Write ONLY enough code to pass the test
|
|
26
|
+
- No extras. No "while I'm here."
|
|
27
|
+
- Run test - MUST PASS
|
|
28
|
+
|
|
29
|
+
### 3. REFACTOR: Clean Up
|
|
30
|
+
- Improve code quality
|
|
31
|
+
- Run tests after EVERY change
|
|
32
|
+
- Must stay green
|
|
33
|
+
|
|
34
|
+
### 4. REPEAT
|
|
35
|
+
- Next failing test
|
|
36
|
+
- Continue cycle
|
|
37
|
+
|
|
38
|
+
## Enforcement Rules
|
|
39
|
+
|
|
40
|
+
| If You See | Action |
|
|
41
|
+
|------------|--------|
|
|
42
|
+
| Code written before test | STOP. Delete code. Write test first. |
|
|
43
|
+
| Test passes on first run | Test is wrong. Fix it to fail first. |
|
|
44
|
+
| Multiple features in one cycle | STOP. One test, one feature. |
|
|
45
|
+
| Skipping refactor | Go back. Clean up before next feature. |
|
|
46
|
+
|
|
47
|
+
## Commands
|
|
48
|
+
|
|
49
|
+
Before each implementation:
|
|
50
|
+
```bash
|
|
51
|
+
npm test # Should have ONE new failure
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
After implementation:
|
|
55
|
+
```bash
|
|
56
|
+
npm test # New test should pass, all others still pass
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Output Format
|
|
60
|
+
|
|
61
|
+
When guiding TDD:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
## TDD Cycle: [Feature Name]
|
|
65
|
+
|
|
66
|
+
### RED Phase
|
|
67
|
+
Test: [test code]
|
|
68
|
+
Expected failure: [what error you expect]
|
|
69
|
+
Actual: [run result showing failure]
|
|
70
|
+
|
|
71
|
+
### GREEN Phase
|
|
72
|
+
Implementation: [minimal code]
|
|
73
|
+
Result: [run result showing pass]
|
|
74
|
+
|
|
75
|
+
### REFACTOR Phase
|
|
76
|
+
Changes: [what was cleaned up]
|
|
77
|
+
Result: [tests still pass]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Remember:** The discipline IS the value. Shortcuts destroy the benefit.
|