Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Iteratively review and revise a planning artifact until no new findings survive evaluation. Supports plans, shells, and specs. Use when the user asks to "refine the plan", "refine the shells", "refine this spec", "iterate on the plan", "iterate on the shells", "tighten the plan", "tighten the shells", "tighten the spec", "improve the plan", "improve the shells", or "improve the spec".
.claude/skills/tobihagemann-refine-plan/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 131% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 116% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 503% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 106% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 51% | 0% |
Loop the review pipeline over a plan until no new findings are accepted. Writes back to the plan file in place.
At the start of every invocation (including re-runs from Step 5), use update_plan to track each step, restating any remaining steps of a parent workflow alongside them:
$review-plan skill$evaluate-findings skill$apply-findings skill$refine-plan skill if changed.turbo/plans/<slug>.md.turbo/plans/*.md. If exactly one file exists, use it.turbo/plan.md if .turbo/plans/ does not exist$turboplan and stopIf multiple candidates exist and the choice is non-obvious, use request_user_input.
State the resolved path before continuing.
Unless an explicit path or slug was passed, or .turbo/loops/<slug>.md exists with Status: active, confirm the resolved plan still describes work that remains to be done. The signal is a frontmatter status: of done.
When the signal fires, output it as text. Then use request_user_input to offer:
.turbo/plans/, then confirm that plan against this same signalOn Leave the plan alone, call update_plan to drop the remaining refine steps, restating any remaining steps of a parent workflow, then continue with the next step of the active workflow.
Loop state lives at .turbo/loops/<slug>.md — slug from the resolved plan; for a legacy single-file fallback, use the file's basename. At the start of every invocation, read the ledger if it exists.
Status: line is closed): write a fresh ledger with Status: active, then attempt create_goal with the objective: "Run the $refine-plan loop on <plan path> until converged: a run with no changes, a prose-only round, or remaining findings that do not justify another re-run. Loop state: .turbo/loops/<slug>.md; re-read it after any context compaction and do not re-adjudicate findings it records as rejected. Mark this goal complete when the loop converges." If an unfinished goal already exists, an outer workflow owns it; continue without creating one.Status: active): this invocation is the iteration after the last one the ledger records, whether a Step 5 re-run or a resumption after an interruption. Continue from the recorded state. If no unfinished goal exists, attempt create_goal with the same objective as a fresh loop.Status: closed; if this loop created the goal, mark it complete with update_goal. An inherited goal stays active for the outer workflow. A halt on an unresolved failure leaves Status: active and the goal untouched, so the next invocation resumes the recorded state.$review-plan SkillRun the $review-plan skill on the resolved plan.
Always run this step even if the plan looks polished.
$evaluate-findings SkillRun the $evaluate-findings skill on the review findings from Step 2.
$apply-findings SkillRun the $apply-findings skill on the evaluated results.
$refine-plan Skill if ChangedCheck whether the plan file was edited during Step 4. Any edit counts.
Iteration 1 is the initial run; iteration 2 is the first auto-re-run; and so on. The loop is not capped; it terminates on its own: when a run makes no changes, when a round makes only prose-only edits, or when you judge a further re-run pointless.
If changes were made, classify what Step 4 edited:
$refine-plan again by reading and following the installed skill instructions, passing the resolved path. If the round contains both structural and prose-only edits, treat it as structural and re-run automatically.If changes were made but you judge a re-run unnecessary, output a summary of what changed and your reasoning for stopping, then stop instead of re-running.
Judge convergence by the trend across iterations: when rounds have stopped surfacing defects (contradictions, infeasible steps, missing requirements) and keep surfacing improvements of kinds earlier rounds already applied, a further re-run is pointless even though the edits were structural. A round that surfaces no defects is the termination signal; never add a confirmation round, an extra reviewer, or review steps beyond this skill's own.
Judge the kind of surviving defect as well as the trend. Once earlier rounds have drained the design- and requirement-level defects and a round's findings are dominated by claims that a named identifier does not exist or does not match its declaration, the plan has passed the point where reviewing it as text pays, even when the count is rising and every finding is genuine. Implementation surfaces that class immediately; a further re-run is pointless. Expect any round that adds mechanism to seed defects at the seams it creates.
When a round's findings turn on how a platform, framework, or dependency behaves and nobody has observed that behavior, prefer a cheap instrumented experiment to another review round. Run it in a temp directory outside the repo, and record what it shows in the plan before judging whether another round is warranted.
When the same class of defect recurs across iterations, stop patching the individual instance and instead write the root-cause invariant into the plan itself, enumerating the worked failures it must prevent. In the same pass, re-read the whole plan against the new invariant and fix every instance it catches, including text written before the invariant existed. Treat recurrence on a new axis of the same invariant as a signal that the invariant is incomplete: widen it to cover the new axis rather than assuming the latest fix failed. When the recurring defect turns on how a platform, framework, or dependency behaves and nobody has observed that behavior, run the instrumented experiment before writing the invariant: an invariant derived from reasoning can be wrong in exactly the way the mechanism it replaces was wrong, and every later round is measured against it.
When successive rounds move away from each alternative in turn on a different ground and the loop arrives back at a design an earlier round left behind, treat that as evidence the first finding's severity was misjudged against the alternatives' failure modes. Re-examine that finding rather than inventing another mechanism: when the earlier design survives the comparison, adopt it and record that finding as Skip, citing the alternatives' failure modes; when the user chose the direction that displaced it, surface it as Escalate, naming the original decision and this evidence beside it.
When a round has adopted a scope narrowing to limit blast radius, check that the narrowing is derivable. The narrow case is implementable only when the fact distinguishing it from the broad case is available to the implementation at the point the rule runs, whether from persisted state, the request, configuration, or data already at hand; when nothing supplies that fact, the two cases are indistinguishable at runtime and the rule silently strands whatever it excludes. Widen back to the broad case rather than carrying a rule nothing can evaluate, unless the user chose the narrowing: then surface it as Escalate, naming the original decision and this evidence beside it.
The re-invocation is a full, fresh run of this skill. Every step (1-5) executes with its own task tracking and skill invocations. When the classification above sends the run into another iteration, supply that iteration with every rejected and escalated verdict the ledger records, across this run and earlier iterations, as the already-adjudicated list for $review-plan, one line each: the finding, its verdict, and the recorded reason. Source it from the ledger rather than from in-context state, which compaction drops. A finding that re-proposes a design an earlier round left behind stays in scope regardless of the list: the alternatives having since failed on their own grounds is evidence the earlier reason did not account for, and it is the signal the rule above depends on.
Then call update_plan to mark this step completed and continue with the next step of the active workflow.
Added or removed steps, new or removed design decisions, rewired dependencies between steps, changed acceptance criteria, changed the deployment's stated bounds, changed testing strategy.
$evaluate-findings is a judgment gate that must run before $apply-findings touches the plan. Each step must invoke its designated skill by reading and following the installed skill instructions..turbo/, the plan file is the only file that should change.| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 4,728 | 32,961 | +597% | 1 | 1 | 0% | 318 | 2,479 | +680% | 0 | 0 | — |
case-02 | fail→fail | 5,252 | 12,770 | +143% | 1 | 1 | 0% | 301 | 2,526 | +739% | 0 | 0 | — |
case-03 | fail→fail | 4,662 | 6,696 | +44% | 1 | 1 | 0% | 275 | 2,498 | +808% | 0 | 0 | — |
case-04 | pass→fail | 12,286 | 9,433 | -23% | 1 | 1 | 0% | 2,201 | 2,787 | +27% | 0 | 0 | — |
case-05 | fail→fail | 8,196 | 21,724 | +165% | 1 | 1 | 0% | 1,360 | 3,961 | +191% | 0 | 0 | — |
case-06 | fail→fail | 3,351 | 19,720 | +488% | 1 | 1 | 0% | 452 | 3,123 | +591% | 0 | 0 | — |
case-07 | fail→fail | 9,240 | 19,289 | +109% | 1 | 1 | 0% | 1,772 | 2,815 | +59% | 0 | 0 | — |
case-08 | fail→pass | 5,949 | 4,404 | -26% | 1 | 1 | 0% | 1,099 | 2,541 | +131% | 0 | 0 | — |
case-09 | fail→fail | 4,787 | 18,536 | +287% | 1 | 1 | 0% | 878 | 4,839 | +451% | 0 | 0 | — |
case-10 | fail→pass | 8,092 | 3,953 | -51% | 1 | 1 | 0% | 1,423 | 3,067 | +116% | 0 | 0 | — |
case-11 | fail→fail | 6,668 | 7,140 | +7% | 1 | 1 | 0% | 1,250 | 2,939 | +135% | 0 | 0 | — |
case-12 | fail→pass | 5,959 | 26,737 | +349% | 1 | 1 | 0% | 1,114 | 6,712 | +503% | 0 | 0 | — |
case-13 | pass→fail | 3,566 | 2,895 | -19% | 1 | 1 | 0% | 582 | 2,707 | +365% | 0 | 0 | — |
case-14 | fail→pass | 8,228 | 3,919 | -52% | 1 | 1 | 0% | 1,402 | 2,888 | +106% | 0 | 0 | — |
case-15 | fail→pass | 11,500 | 4,942 | -57% | 1 | 1 | 0% | 2,048 | 3,093 | +51% | 0 | 0 | — |
case-16 | pass→pass | 10,451 | 9,772 | -6% | 1 | 1 | 0% | 1,532 | 3,345 | +118% | 0 | 0 | — |
case-17 | fail→fail | 9,334 | 6,749 | -28% | 1 | 1 | 0% | 1,573 | 2,617 | +66% | 0 | 0 | — |
case-18 | fail→fail | 11,960 | 5,001 | -58% | 1 | 1 | 0% | 1,866 | 3,067 | +64% | 0 | 0 | — |
case-19 | fail→pass | 11,406 | 5,807 | -49% | 1 | 1 | 0% | 1,901 | 3,197 | +68% | 0 | 0 | — |
case-20 | fail→pass | 7,315 | 2,594 | -65% | 1 | 1 | 0% | 1,177 | 2,579 | +119% | 0 | 0 | — |
case-21 | fail→fail | 5,268 | 6,818 | +29% | 1 | 1 | 0% | 864 | 2,591 | +200% | 0 | 0 | — |
case-22 | fail→pass | 8,165 | 2,795 | -66% | 1 | 1 | 0% | 1,321 | 2,622 | +98% | 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 14 counted toward the lift figure. The other 8 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 +27 percentage points is the difference between those two pass rates over the 14 comparable cases. 5 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 | 8/21/2026 | +14% |
Other measured skills in the registry, with their headline benchmark lift.