skills/refine-plan/SKILL.md
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".
npx skillsauth add tobihagemann/turbo refine-planInstall 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.
Loop the review pipeline over a planning artifact until no new findings are accepted. Writes back to the artifact file(s) in place. Supports plans, shells, and specs.
At the start of every invocation (including re-runs from Step 5), use TaskCreate to create a task for each step:
/review-plan skill/evaluate-findings skill/apply-findings skill/refine-plan skill if changed/draft-plan just ran, type is plan).turbo/ for existing artifacts. If multiple types exist, use AskUserQuestion.turbo/plans/<slug>.md.turbo/plans/*.md. If exactly one file exists, use it.turbo/plan.md if .turbo/plans/ does not exist/turboplan (for a new task) or /pick-next-shell (for existing shells) and stop.turbo/shells/<slug>-*.md.turbo/specs/*.md. If exactly one, derive slug and glob for shells/draft-shells first and stopFor shells, read each shell file and extract from its YAML frontmatter: spec (source spec path) and depends_on. Verify the source spec exists. State the spec path, number of shells, and each shell's filename.
.turbo/specs/<slug>.md.turbo/specs/*.md. If exactly one, use it.turbo/spec.md if .turbo/specs/ does not exist/draft-spec first and stopIf multiple candidates exist and the choice is non-obvious, use AskUserQuestion.
State the resolved path(s) before continuing.
/review-plan SkillRun the /review-plan skill on the resolved artifact.
Always run this step even if the artifact 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 artifact file(s) were edited during Step 4. Any edit counts.
The iteration number below refers to the /refine-plan run currently executing Step 5. It is not the iteration number of a prospective re-run. Iteration 1 is the initial run; iteration 2 is the first auto-re-run; iteration 3 is the second auto-re-run; iteration 4 and beyond exist only when the user opts in at the hard-cap ask. Iterations 1 and 2 always follow the classification gate (they never trigger the hard cap at their own Step 5, even when the auto-re-run they spawn would be iteration 3). The hard cap fires at the end of iteration 3 and every iteration thereafter.
Iterations 1 and 2, if changes were made, classify what Step 4 edited:
/refine-plan again via the Skill tool, passing the artifact type and resolved path. If the round contains both structural and prose-only edits, treat it as structural and re-run automatically.AskUserQuestion to ask whether to run one more round or stop here. Do not silently continue or silently stop.Iterations 1 and 2, if changes were made but you believe re-running is unnecessary, use AskUserQuestion to ask for skip permission. Do not skip silently.
Iteration 3 or later, if Step 4 of this run made changes, the hard cap is reached. This replaces the classification gate above for iteration 3 and every iteration after it. Output a summary of what is still changing and whether it is structural or prose-only. Then use AskUserQuestion to offer three options: continue for another iteration, stop here and accept the artifact as-is, or escalate to /consult-oracle for a different perspective on the remaining issues.
The re-invocation is a full, fresh run of this skill. Every step (1-5) executes with its own task tracking and skill invocations.
Then use the TaskList tool and proceed to any remaining task.
depends_on, added or removed spec requirement coverage/evaluate-findings is a judgment gate that must run before /apply-findings touches the artifact. Each step must invoke its designated skill via the Skill tool.tools
Teach the user to deeply understand a change through interactive tutoring: restating understanding, drilling into why/what/how, and quizzing until mastery. The active counterpart to a one-shot explanation. Use when the user asks to "understand this change", "teach me this change", "help me understand what changed", "walk me through this change", "make sure I understand this", "quiz me on this", or "teach me what we did".
tools
Teach the user to deeply understand a change through interactive tutoring: restating understanding, drilling into why/what/how, and quizzing until mastery. The active counterpart to a one-shot explanation. Use when the user asks to "understand this change", "teach me this change", "help me understand what changed", "walk me through this change", "make sure I understand this", "quiz me on this", or "teach me what we did".
tools
Update an existing GitHub pull request's title and description to reflect the current state of the branch. Use when the user asks to "update the PR", "update PR description", "update PR title", "refresh PR description", or "sync PR with changes".
tools
Execute an approved split plan by creating separate branches, commits, and PRs for each change group. Use when the user asks to "split and ship", "ship the split plan", "create separate PRs", or "split changes into branches".