skills/sciomc/SKILL.md
Orchestrate parallel scientist agents for comprehensive analysis with AUTO mode
npx skillsauth add Thomashighbaugh/opencode sciomcInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Orchestrate parallel scientist agents for comprehensive research workflows with optional AUTO mode for fully autonomous execution.
/sciomc <goal> # Standard research with user checkpoints
/sciomc AUTO: <goal> # Fully autonomous until complete
/sciomc status # Check current research session status
/sciomc resume # Resume interrupted research session
/sciomc list # List all research sessions
/sciomc report <session-id> # Generate report for session
Decompose research goals into 3-7 independent stages. Each stage has: Focus, Hypothesis (optional), Scope, Tier (LOW|MEDIUM|HIGH).
Fire independent stages in parallel via Task tool. Always pass model parameter explicitly:
| Task Complexity | Agent | Model | Use For |
|-----------------|-------|-------|---------|
| Data gathering | scientist (model=haiku) | haiku | File enumeration, pattern counting, simple lookups |
| Standard analysis | scientist | sonnet | Code analysis, pattern detection, documentation review |
| Complex reasoning | scientist | opus | Architecture analysis, cross-cutting concerns, hypothesis validation |
@scientist(model="haiku", prompt="[RESEARCH_STAGE:1] Investigate...")
@scientist(model="sonnet", prompt="[RESEARCH_STAGE:2] Analyze...")
@scientist(model="opus", prompt="[RESEARCH_STAGE:3] Deep analysis of...")
After parallel execution, cross-validate findings:
@scientist(model="sonnet", prompt="[RESEARCH_VERIFICATION] Cross-validate these findings for consistency. Check: 1) Contradictions between stages 2) Missing connections 3) Gaps in coverage 4) Evidence quality. Output: [VERIFIED] or [CONFLICTS:<list>]")
Runs complete research workflow autonomously with loop control. Max 10 iterations. Continues until [PROMISE:RESEARCH_COMPLETE] emitted or max iterations reached. Cancel via /cancel.
[PROMISE:RESEARCH_COMPLETE] — All stages done, verified, report generated[PROMISE:RESEARCH_BLOCKED] — Cannot proceed (missing data, access issues)[RESEARCH + AUTO - ITERATION {{ITERATION}}/{{MAX}}]
Current state: {{STATE}} | Completed: {{COMPLETED_STAGES}} | Pending: {{PENDING_STAGES}}
Independent stages — fire simultaneously:
@scientist(model="haiku", prompt="[STAGE:1] Analyze src/api/...")
@scientist(model="haiku", prompt="[STAGE:2] Analyze src/utils/...")
Hypothesis battery — test multiple hypotheses in parallel:
@scientist(model="sonnet", prompt="[HYPOTHESIS:A] Test if caching improves...")
@scientist(model="sonnet", prompt="[HYPOTHESIS:B] Test if batching reduces...")
Cross-validation — sequential after all parallel stages complete:
@scientist(model="opus", prompt="[CROSS_VALIDATION] Validate consistency across all findings...")
Concurrency limit: Max 20 concurrent scientists. Batch if more.
.opencode/state/research/{session-id}/
state.json # Session state and progress
stages/ # Stage findings
findings/raw/ # Raw findings from scientists
findings/verified/ # Post-verification findings
report.md # Final synthesized report
State file: { id, goal, status, mode, iteration, maxIterations, stages: [{ id, name, tier, status, findingsFile }], verification: { status, conflicts }, createdAt, updatedAt }
Scientists use structured tags. Extract with regex:
[FINDING:<id>] <title> ... [/FINDING]
[EVIDENCE:<finding-id>] File: <path>, Lines: <range> [/EVIDENCE]
[CONFIDENCE:HIGH|MEDIUM|LOW] <reasoning>
[STAGE_COMPLETE:<id>]
[VERIFIED|CONFLICTS:<list>]
Quality threshold: Each [FINDING] needs ≥1 [EVIDENCE], a [CONFIDENCE], absolute file paths, and must be reproducible.
Template: Executive Summary → Methodology (stages table) → Key Findings (with evidence) → Cross-Validation Results → Limitations → Recommendations → Appendix (raw data links, state.json).
Figures embedded via [FIGURE:path] Caption [/FIGURE] markers. Types: architecture diagrams, flow charts, dependency graphs, timelines, comparison tables.
{ "hubs": { "research": { "maxIterations": 10, "maxConcurrentScientists": 5, "defaultTier": "MEDIUM", "autoVerify": true, "generateFigures": true, "evidenceContextLines": 5 } } }
tools
Create valid, type-safe TypeScript tools for OpenCode — generates correct boilerplate, typed interfaces, and handler stubs. Use when building new tools for global config or per-project .opencode/tools/.
testing
Explore multiple solution branches in parallel, evaluate each, and recommend the best path. Use when the user explicitly invokes /ideation tree-of-thoughts or asks for "tree of thought" / "branching exploration".
testing
Run multiple independent reasoning passes and find consensus. Use when the decision is critically important, the stakes are high, or the user explicitly requests "run it multiple times" / "check consistency" / "self-consistency".
testing
Optimization by PROmpting — generate candidate prompt variations, test each against a benchmark, and report the best performer. Use when the user invokes /ideation opro or asks for "prompt optimization" / "OPRO".