Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sample multiple paths, select most consistent - +17.9% on GSM8K
.claude/skills/miosa-osa-self-consistency/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 95% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -64% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -71% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -27% | 0% |
Sample multiple reasoning paths and select the most consistent answer. Achieved +17.9% on GSM8K, +12.2% on AQuA.
Use for:
Generate N (typically 5-10) reasoning paths with higher temperature.
Parse the conclusive answer from each path.
Select the most frequent answer across all paths.
pythondef self_consistency(prompt, question, num_samples=5): answers = [] for _ in range(num_samples): response = reason_with_cot(prompt, question) answer = extract_final_answer(response) answers.append(answer) # Majority vote from collections import Counter return Counter(answers).most_common(1)[0][0]
For open-ended tasks without fixed answers:
"Here are several responses to the same question:
[Response 1]
[Response 2]
[Response 3]
Determine which elements are most consistent across these responses
and synthesize the most reliable answer."Based on Google Research - arXiv:2203.11171
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 4,813 | 6,165 | +28% | 1 | 1 | 0% | 811 | 1,581 | +95% | 0 | 0 | — |
case-02 | pass→pass | 8,202 | 6,660 | -19% | 1 | 1 | 0% | 1,153 | 1,423 | +23% | 0 | 0 | — |
case-03 | pass→pass | 14,742 | 10,857 | -26% | 1 | 1 | 0% | 2,351 | 2,124 | -10% | 0 | 0 | — |
case-04 | pass→pass | 9,514 | 5,958 | -37% | 1 | 1 | 0% | 1,564 | 1,402 | -10% | 0 | 0 | — |
case-05 | pass→pass | 8,669 | 7,783 | -10% | 1 | 1 | 0% | 1,905 | 1,891 | -1% | 0 | 0 | — |
case-06 | fail→fail | 13,479 | 13,991 | +4% | 1 | 1 | 0% | 2,208 | 2,690 | +22% | 0 | 0 | — |
case-07 | fail→fail | 7,313 | 6,723 | -8% | 1 | 1 | 0% | 1,440 | 1,802 | +25% | 0 | 0 | — |
case-08 | fail→pass | 18,283 | 4,113 | -78% | 1 | 1 | 0% | 930 | 1,092 | +17% | 0 | 0 | — |
case-09 | pass→pass | 13,827 | 9,051 | -35% | 1 | 1 | 0% | 2,609 | 1,990 | -24% | 0 | 0 | — |
case-10 | pass→pass | 18,174 | 14,634 | -19% | 1 | 1 | 0% | 3,102 | 3,143 | +1% | 0 | 0 | — |
case-11 | pass→pass | 4,619 | 2,985 | -35% | 1 | 1 | 0% | 806 | 1,003 | +24% | 0 | 0 | — |
case-12 | pass→pass | 7,307 | 3,992 | -45% | 1 | 1 | 0% | 1,488 | 991 | -33% | 0 | 0 | — |
case-13 | fail→pass | 9,494 | 1,792 | -81% | 1 | 1 | 0% | 2,049 | 736 | -64% | 0 | 0 | — |
case-14 | pass→pass | 15,763 | 13,355 | -15% | 1 | 1 | 0% | 2,524 | 2,714 | +8% | 0 | 0 | — |
case-15 | fail→pass | 15,237 | 1,784 | -88% | 1 | 1 | 0% | 2,494 | 711 | -71% | 0 | 0 | — |
case-16 | pass→pass | 13,169 | 11,065 | -16% | 1 | 1 | 0% | 2,185 | 2,286 | +5% | 0 | 0 | — |
case-17 | fail→pass | 13,547 | 7,158 | -47% | 1 | 1 | 0% | 2,130 | 1,557 | -27% | 0 | 0 | — |
case-18 | pass→pass | 4,525 | 4,852 | +7% | 1 | 1 | 0% | 757 | 1,297 | +71% | 0 | 0 | — |
case-19 | pass→pass | 14,627 | 14,717 | +1% | 1 | 1 | 0% | 2,227 | 2,811 | +26% | 0 | 0 | — |
case-20 | pass→pass | 13,929 | 23,863 | +71% | 1 | 1 | 0% | 3,144 | 3,125 | -1% | 0 | 0 | — |
case-21 | pass→pass | 10,779 | 6,889 | -36% | 1 | 1 | 0% | 1,867 | 1,578 | -15% | 0 | 0 | — |
case-22 | pass→pass | 14,233 | 15,725 | +10% | 1 | 1 | 0% | 2,373 | 2,953 | +24% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +23 percentage points is the difference between those two pass rates over the 21 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.