Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Upgrade any skill to v5 Hybrid format using decision theory + modal logic
.claude/skills/skill-upgrader/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 104% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 66% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 40% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 89% | 0% |
Meta-skill that upgrades any SKILL.md to Decision Theory v5 Hybrid format using 4 parallel Ragie-backed agents.
Ragie RAG with indexed books:
bashSESSION=$(date +%Y%m%d-%H%M%S)-upgrade-{skill_name} mkdir -p thoughts/skill-builds/${SESSION}
Create thoughts/skill-builds/{session}/00-blackboard.md:
markdown# Skill Upgrade: {skill_name} Started: {timestamp} ## Input Skill {path_to_skill} ## Target Format Decision Theory v5 Hybrid ## Agent Findings (Agents append below) ---
Use Task tool to spawn all 4 agents simultaneously. Each agent:
Book: LaValle's "Planning Algorithms" (decision-theory partition) Focus: States, Actions, Transitions
Task(
subagent_type="general-purpose",
prompt="""
INPUT SKILL: {path}
BLACKBOARD: thoughts/skill-builds/{session}/00-blackboard.md
YOUR BOOK: LaValle's "Planning Algorithms" in Ragie partition 'decision-theory'
TASK: Identify MDP structure in the skill.
Query Ragie:uv run python scripts/ragie_query.py -q "MDP state space definition" -p decision-theory uv run python scripts/ragie_query.py -q "action space sequential decisions" -p decision-theory uv run python scripts/ragie_query.py -q "POMDP partial observability" -p decision-theory
Read the input skill and answer:
1. What are the STATES? (phases, modes, tracked info)
2. What are the ACTIONS? (what can agent do in each state)
3. How do TRANSITIONS work? (deterministic or stochastic)
4. Is this POMDP or fully observable?
WRITE to blackboard section: ## Agent 1: States, Actions & Transitions
Format as plain English with LaValle chapter citations.
"""
)Book: Sutton & Barto's "Reinforcement Learning" (decision-theory partition) Focus: Policy, Termination, Value Depends on: Agent 1
Task(
subagent_type="general-purpose",
prompt="""
INPUT SKILL: {path}
BLACKBOARD: thoughts/skill-builds/{session}/00-blackboard.md
YOUR BOOK: Sutton & Barto's "Reinforcement Learning" in Ragie partition 'decision-theory'
WAIT: Read Agent 1's findings from blackboard first.
TASK: Design policy and termination conditions.
Query Ragie:uv run python scripts/ragie_query.py -q "policy deterministic stochastic" -p decision-theory uv run python scripts/ragie_query.py -q "episodic termination conditions" -p decision-theory uv run python scripts/ragie_query.py -q "reward function design" -p decision-theory
Using Agent 1's states and actions, answer:
1. What's the POLICY? (state → action rules)
2. When does it END? (terminal states, success/failure)
3. What are REWARDS? (goals +, costs -)
4. Which states are HIGH/LOW value?
WRITE to blackboard section: ## Agent 2: Policy & Values
Format as plain English with Sutton & Barto section citations.
"""
)Book: Blackburn's "Modal Logic" (modal-logic partition) Focus: Constraints (temporal, epistemic, deontic)
Task(
subagent_type="general-purpose",
prompt="""
INPUT SKILL: {path}
BLACKBOARD: thoughts/skill-builds/{session}/00-blackboard.md
YOUR BOOK: Blackburn's "Modal Logic" in Ragie partition 'modal-logic'
TASK: Extract constraints from the skill.
Query Ragie:uv run python scripts/ragie_query.py -q "temporal logic LTL operators" -p modal-logic uv run python scripts/ragie_query.py -q "epistemic logic knowledge" -p modal-logic uv run python scripts/ragie_query.py -q "deontic logic obligations" -p modal-logic
Read the input skill and identify:
1. TEMPORAL: "must do X before Y" → □, ◇, U
2. EPISTEMIC: "must know X" → K operator
3. DEONTIC: "must/forbidden/may" → O, F, P
4. DYNAMIC: "action causes effect" → [action]
WRITE to blackboard section: ## Agent 3: Constraints
For each constraint:
- Plain English description
- Modal logic notation
- Why it matters
- Blackburn chapter citation
"""
)Book: Huth & Ryan's "Logic in Computer Science" (modal-logic partition) Focus: Validation, Safety, Liveness Depends on: Agents 1-3
Task(
subagent_type="general-purpose",
prompt="""
INPUT SKILL: {path}
BLACKBOARD: thoughts/skill-builds/{session}/00-blackboard.md
YOUR BOOK: Huth & Ryan's "Logic in Computer Science" in Ragie partition 'modal-logic'
WAIT: Read Agents 1-3 findings from blackboard first.
TASK: Verify consistency and completeness.
Query Ragie:uv run python scripts/ragie_query.py -q "safety properties verification" -p modal-logic uv run python scripts/ragie_query.py -q "liveness properties eventually" -p modal-logic uv run python scripts/ragie_query.py -q "model checking CTL" -p modal-logic
Check:
1. SAFETY: What bad things never happen? □¬(bad)
2. LIVENESS: What good things eventually happen? ◇(good)
3. CONSISTENCY: Any contradictions between agents?
4. COMPLETENESS: Any gaps in coverage?
WRITE to blackboard section: ## Agent 4: Verification
Report with ✓/✗ for each property.
Overall verdict: PASS or NEEDS_WORK
Huth & Ryan section citations.
"""
)After all agents complete, read the blackboard and create:
Output: thoughts/skill-builds/{session}/SKILL-upgraded.md
Use v5 Hybrid template:
yaml--- name: {original_name} description: {original_description} version: 5.1-hybrid --- # Option: {name} ## Initiation (I) [From original + Agent 1 state analysis] ## Observation Space (Y) [From Agent 1 POMDP analysis] ## Action Space (U) [From Agent 1 actions] ## Policy (pi) [From Agent 2 state→action rules] ## Termination (beta) [From Agent 2 episode structure] ## Q-Heuristics [From Agent 2 value guidance] ## Constraints [From Agent 3 modal logic] ## Verification [From Agent 4 safety/liveness]
User: "Upgrade .claude/skills/implement_plan/SKILL.md to v5 Hybrid"
Claude:
1. Creates session directory
2. Initializes blackboard
3. Launches 4 agents in parallel (Task tool)
4. Waits for completion
5. Reads blackboard
6. Synthesizes upgraded skill
7. Reports: "Upgraded skill at thoughts/skill-builds/.../SKILL-upgraded.md"bash# Decision theory partition uv run python scripts/ragie_query.py -q "your question" -p decision-theory # Modal logic partition uv run python scripts/ragie_query.py -q "your question" -p modal-logic # With reranking for better results uv run python scripts/ragie_query.py -q "your question" -p decision-theory --rerank
After upgrade:
thoughts/skill-builds/{session}/
├── 00-blackboard.md # Agent collaboration
├── SKILL-upgraded.md # Final v5 Hybrid skill
└── validation-report.md # Agent 4 verification| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 23,096 | 4,683 | -80% | 1 | 1 | 0% | 4,277 | 2,361 | -45% | 0 | 0 | — |
case-02 | fail→fail | 24,217 | 4,330 | -82% | 1 | 1 | 0% | 4,606 | 2,302 | -50% | 0 | 0 | — |
case-03 | fail→fail | 29,842 | 4,394 | -85% | 1 | 1 | 0% | 5,582 | 2,308 | -59% | 0 | 0 | — |
case-04 | pass→pass | 13,296 | 19,824 | +49% | 1 | 1 | 0% | 2,207 | 4,907 | +122% | 0 | 0 | — |
case-05 | pass→fail | 9,654 | 4,683 | -51% | 1 | 1 | 0% | 1,899 | 2,290 | +21% | 0 | 0 | — |
case-06 | pass→fail | 7,413 | 3,788 | -49% | 1 | 1 | 0% | 1,383 | 2,307 | +67% | 0 | 0 | — |
case-07 | fail→fail | 10,368 | 2,852 | -72% | 1 | 1 | 0% | 1,825 | 2,654 | +45% | 0 | 0 | — |
case-08 | fail→pass | 11,443 | 2,282 | -80% | 1 | 1 | 0% | 1,893 | 2,455 | +30% | 0 | 0 | — |
case-09 | fail→pass | 8,156 | 3,584 | -56% | 1 | 1 | 0% | 1,333 | 2,722 | +104% | 0 | 0 | — |
case-10 | fail→pass | 8,754 | 2,516 | -71% | 1 | 1 | 0% | 1,518 | 2,515 | +66% | 0 | 0 | — |
case-11 | fail→pass | 10,614 | 3,739 | -65% | 1 | 1 | 0% | 1,928 | 2,695 | +40% | 0 | 0 | — |
case-12 | fail→pass | 19,433 | 3,162 | -84% | 1 | 1 | 0% | 1,401 | 2,644 | +89% | 0 | 0 | — |
case-13 | fail→pass | 14,332 | 1,704 | -88% | 1 | 1 | 0% | 1,105 | 2,373 | +115% | 0 | 0 | — |
case-14 | fail→pass | 7,168 | 1,900 | -73% | 1 | 1 | 0% | 1,280 | 2,482 | +94% | 0 | 0 | — |
case-15 | fail→pass | 5,632 | 2,540 | -55% | 1 | 1 | 0% | 952 | 2,573 | +170% | 0 | 0 | — |
case-16 | fail→pass | 10,964 | 5,092 | -54% | 1 | 1 | 0% | 2,013 | 2,981 | +48% | 0 | 0 | — |
case-17 | fail→pass | 6,799 | 2,819 | -59% | 1 | 1 | 0% | 1,115 | 2,596 | +133% | 0 | 0 | — |
case-18 | fail→pass | 8,603 | 2,553 | -70% | 1 | 1 | 0% | 1,307 | 2,564 | +96% | 0 | 0 | — |
case-19 | fail→fail | 11,198 | 1,783 | -84% | 1 | 1 | 0% | 2,046 | 2,438 | +19% | 0 | 0 | — |
case-20 | pass→pass | 9,565 | 2,651 | -72% | 1 | 1 | 0% | 1,702 | 2,539 | +49% | 0 | 0 | — |
case-21 | fail→pass | 11,533 | 4,323 | -63% | 1 | 1 | 0% | 2,120 | 2,858 | +35% | 0 | 0 | — |
case-22 | fail→pass | 6,866 | 2,730 | -60% | 1 | 1 | 0% | 1,156 | 2,538 | +120% | 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 16 counted toward the lift figure. The other 6 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 +50 percentage points is the difference between those two pass rates over the 16 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
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.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 7/29/2026 | +45% |
Other measured skills in the registry, with their headline benchmark lift.