refine-plan

refine-plan is a skill for Claude Code from tobihagemann/turbo. It costs 49 tokens per session (4,157 once invoked), scanned A, original, MIT.

A workflow for repeatedly reviewing and updating a written implementation plan. It applies accepted findings and continues until the review produces no further changes.

In plain words
What is it for?
Use it to refine a plan file, evaluate review findings, apply approved changes, and confirm the plan is ready.
Why use it?
It helps expose and resolve gaps in a plan before implementation, rather than relying on the first draft.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Part of the turbo plugin — 71 skills shipped together

Good fit Use it to refine a plan file, evaluate review findings, apply approved changes, and confirm the plan is ready.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tobihagemann/turbo/refine-plan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tobihagemann/turbo --skill refine-plan
Clone the repo
git clone --depth 1 https://github.com/tobihagemann/turbo

Made for: Claude Code.

Or install turbo, the plugin that ships this one along with the rest of its 71 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for refine-plan

README.md
[![agentmods](https://agentmods.dev/badge/skills/tobihagemann/turbo/refine-plan/github.svg)](https://agentmods.dev/skills/tobihagemann/turbo/refine-plan)
Your own site
<a href="https://agentmods.dev/skills/tobihagemann/turbo/refine-plan"><img src="https://agentmods.dev/badge/skills/tobihagemann/turbo/refine-plan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for refine-plan

Your own site · 80×15
<a href="https://agentmods.dev/skills/tobihagemann/turbo/refine-plan"><img src="https://agentmods.dev/badge/skills/tobihagemann/turbo/refine-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,157 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 12
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.04157
Opus 5.5 $0.00020 $0.01663
Sonnet 5.5 $0.00010 $0.00831
Haiku 4.5 $0.00005 $0.00416

Measured 2d ago against content hash 9ce02a5d926f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

refine-plan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude/skills/refine-plan/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on 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:

  1. Resolve the plan
  2. Run /review-plan skill
  3. Run /evaluate-findings skill
  4. Run /apply-findings skill
  5. Re-run /refine-plan skill if changed

Step 1: Resolve the Plan

  1. Explicit path — use it
  2. Explicit slug — resolve to .turbo/plans/<slug>.md
  3. Single file — Glob .turbo/plans/*.md. If exactly one file exists, use it
  4. Most recent — most recently modified file
  5. Legacy fallback — .turbo/plan.md if .turbo/plans/ does not exist
  6. Nothing found — tell the user to run /turbo:plan and 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.

Read the full file on GitHub · 136 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +29 lines 9ce02a5d926f
  2. 3d ago Changed 43a9fc32cffd
  3. 4d ago Changed 9b63a8c9df3d
  4. 20d ago Changed ee21bea0c2a0
  5. 26d ago Changed cd7ae6dd72a3
  6. 1mo ago Changed 01b1775166fd
  7. 1mo ago Changed 796d651de610
  8. 1mo ago Changed 182b8a68fd3b
  9. 1mo ago Changed 0b6cbeaa7a6f
  10. 1mo ago First seen · 107 lines · 49 tokens per session scan A 96a66bfc5af9

Subscribe to this mod's changes

refine-plan is a skill published in the GitHub repository tobihagemann/turbo (420 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 4,157 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

refine-plan compared with skills from other repositories

refine-plan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refine-plantobihagemann/turboSkill420todayMITA49Claude Code
offensive-c2-frameworksSnailSploit/Claude-RedSkill11kyesterdayMITA250Claude Code, Codex
offensive-crypto-attacksSnailSploit/Claude-RedSkill11kyesterdayMITA261Claude Code, Codex
offensive-parameter-pollutionSnailSploit/Claude-RedSkill11kyesterdayMITA0Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill11kyesterdayMITA113Claude Code, Codex
fiscalisteromainsimon/paperasseSkill2.6ktodayMITA306Claude Code
comptableromainsimon/paperasseSkill2.6ktodayMITA248Claude Code