skills/self-consistency/SKILL.md
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".
npx skillsauth add Thomashighbaugh/opencode self-consistencyInstall 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.
Run the same prompt through an agent multiple times, compare outputs, and report the consensus.
Self-Consistency runs the agent 3× (or N× if configured). Each run costs a full API call. Never auto-invoke. Always confirm with the user first.
Get user confirmation — Explain the cost (N× API calls) and ask explicitly. Do NOT proceed without confirmation.
Configure — Ask: How many runs? (default: 3). What agent? (default: the one the user is working with). What temperature? (default: 0.7).
Execute — Run the same prompt through the configured agent N times. Use temperature > 0 to get diverse outputs. Run runs in parallel when possible.
Compare outputs — For each output:
Identify consensus — How many outputs agree on the core answer?
Report — Include:
## Self-Consistency Report
**Runs:** 3
**Temperature:** 0.7
**Agent:** @architect
### Consensus
[Strong / Majority / None] — [explanation]
### Run Summaries
1. [Run 1 core answer and reasoning]
2. [Run 2 core answer and reasoning]
3. [Run 3 core answer and reasoning]
### Points of Agreement
- [What all runs agree on]
### Points of Disagreement
- [Where runs diverge]
### Recommendation
[What to do next — use the consensus, investigate the disagreement, etc.]
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
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".
development
Scan, validate, and auto-tag global OpenCode resources (skills, agents, rules, archetypes) for resource_tags filtering. Used by /init-project, config maintenance, and by stack-recommender for accurate mapping.