refine-plan
БесплатноБез исполняемых скриптовНе проверенIteratively review and revise a plan until no new findings survive evaluation. Use when the user asks to "refine the plan", "iterate on the plan", "tighten…
от tobihagemann★ 428 звёзд на GitHubОб этом скилле
Refine Plan
Loop the review pipeline over a plan until no new findings are accepted. Writes back to the plan file in place.
Task Tracking
At the start of every invocation (including re-runs from Step 5), use TaskCreate to create a task for each step:
- Resolve the plan
- Run
/review-planskill - Run
/evaluate-findingsskill - Run
/apply-findingsskill - Re-run
/refine-planskill if changed
Step 1: Resolve the Plan
- Explicit path — use it
- Explicit slug — resolve to
.turbo/plans/<slug>.md - Single file — Glob
.turbo/plans/*.md. If exactly one file exists, use it - Most recent — most recently modified file
- Legacy fallback —
.turbo/plan.mdif.turbo/plans/does not exist - Nothing found — tell the user to run
/turbo:planand stop
If multiple candidates exist and the choice is non-obvious, use AskUserQuestion.
State the resolved path before continuing.
Unless an explicit path or slug was passed, 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 AskUserQuestion to offer:
- Refine anyway — the marker is stale
- Pick another plan — resolve to a different file under
.turbo/plans/, then confirm that plan against this same signal - Leave the plan alone — skip refining
On Leave the plan alone, mark the remaining refine steps deleted, then use the TaskList tool and proceed to any remaining task.
Once the plan is settled, resolve the ledger as Loop State describes.
Loop State
Loop state lives in a ledger at .turbo/loops/refine-plan-<label>-<tag>.md. The label is the resolved plan's slug, or the file's basename for a legacy single-file fallback. The tag is the output of head -c 4 /dev/urandom | xxd -p, minted once when the loop starts. The ledger records Branch: (the unmodified branch name, or (detached)), Plan: (the resolved plan path), a one-line purpose, and per iteration an Iteration <N>: <state> line, its verdicts, and Step 5's classification. A ledger that exists belongs to an active loop.
Resolve the ledger:
- Carried path: this invocation was passed a ledger path, by the re-run Step 5 starts or by a handoff. Continue that ledger. A carried path whose file no longer exists falls through to discovery. Take a carried path only from those two sources, never from a task another invocation left behind.
- Discovery: with nothing carried, list the ledgers in
.turbo/loops/that git does not track whose name starts withrefine-plan-and whosePlan:is the resolved plan, on any branch. Output each one's purpose, last iteration and its state, and file modification time as text. When any are listed, useAskUserQuestionto offer resuming a ledger, discarding a ledger, or starting fresh, naming the ledger in each resume and discard option; when more ledgers are listed than options fit, first ask which ledger to act on, offering the most recently modified ones and leaving the rest to the free-text answer. Starting fresh mints a new path and deletes nothing. Discarding deletes the named ledger, then discovery runs again. - Fresh: mint a new path and write the ledger with
Iteration 1: open.
Once the ledger resolves, use TaskUpdate to write its path into this invocation's Step 5 task description. After a compaction, this invocation reads its ledger path back from that task.
Iteration state. The current iteration's state line reads open until Step 5 reaches a gate, awaiting <gate> while Step 5 waits on the user at one (the prose-only round, the skip permission, the hard cap, the context-signal question recorded with the gate it wraps, or a hands-on check), and classified once Step 5 has settled whether another iteration runs. On a continued ledger, read the last iteration's state:
classified: carry out the decision recorded with the classification. On another iteration, this invocation is the next one: appendIteration <N+1>: open. On an escalation to/consult-oracle, resume that escalation, and once the oracle answers, record the decision its answer leads to (another iteration, or a stop that deletes the ledger) in place of the escalation.awaiting <gate>: the interrupted iteration already ran Steps 2-4, so mark this invocation's Step 2-4 tasks completed. Ask that gate again before anything else; for the context-signal question, ask only the gate it wraps, since this session starts with fresh context. When it wrapped an automatic re-run, offer run another iteration, marked recommended, or stop iterating; when it wrapped a run that left the plan unchanged, the loop has ended, so delete the ledger. Forawaiting hands-on check, ask for the check's result, or read the log the ledger names. Then proceed by the answer as Step 5 does.open: the iteration was interrupted. Rerun it under its own number from Step 2. The verdicts it already recorded
Установить refine-plan в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл refine-plan?
Iteratively review and revise a plan until no new findings survive evaluation. Use when the user asks to "refine the plan", "iterate on the plan", "tighten the plan", or "improve the plan".
Как установить скилл refine-plan?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл refine-plan запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic