plan-loop
БесплатноБез исполняемых скриптовНе проверенPlan work with the user in a PLAN.md, then implement it step by step, with /clear once the context fills up. Use before creating a plan, when the user…
от fredrikaverpil★ 261 звезда на GitHubОб этом скилле
Plan loop
We discuss the work, write it down in PLAN.md, then implement it step by
step, with /clear once the context fills up. This keeps the context small:
cheaper, and you stay sharper.
Recommended: Opus at high effort. If you are not running on Opus, say so and ask whether to proceed anyway. You cannot see the effort level (no need to remind me about it).
Gather information
Work back and forth with me, starting with your open questions and outline before writing the plan.
PLAN.md
When I mention a PLAN.md, ask whether to use a git worktree or work directly.
Keep the plan in PLAN.md at the root of the worktree
(./.claude/worktrees/<tree-name>/PLAN.md), or at the repo root when working
directly. It is the source of truth that survives /clear:
- Goal, decisions made (with a short why), open questions.
- Steps as a checklist.
- Key files to re-read when resuming.
Update it as soon as a decision is made, not only after a step.
Step loop
Keep the context under the limit: 200k tokens or 20% of the window, whichever
comes first, and never past 25%. The context-meter plugin
(~/.claude/local-plugins/context-meter) reports usage on demand through
mcp__context-meter__usage (load it with ToolSearch), and adds a
Context window: ... warning to a tool result once the context passes the
limit.
- After
/clear, readPLAN.mdand the files it lists before doing anything else. If noPLAN.mdis at the root of the current checkout, list.claude/worktrees/*/PLAN.mdand ask which one. - Call
mcp__context-meter__usageand estimate what the first unticked step will add. If that would take the context well past the limit, stop and ask me to run/clear, then/plan-loop; if the step alone would, propose splitting it. Otherwise implement the step. - Update
PLAN.md: tick the step once its commits land, record decisions and findings, name the next step. - Re-read all of
PLAN.mdfor contradictory or outdated passages and fix them. - If the step or the re-read raised a decision, a surprise or a change of course, discuss it with me. Otherwise continue with the next step (back to 2).
When the warning arrives:
- If the rest of the step and steps 3–4 fit under 25%, finish them, and add an
unticked item to
PLAN.mdahead of the next step:/self-reviewthe step, since it ran past the limit. - Otherwise pause: leave the work uncommitted, and record in
PLAN.mdwhere you are in the step and what is left of it.
Then stop and ask me to run /clear, then /plan-loop.
When every step is done, ask whether to delete PLAN.md and, if used, the
worktree. First check its branch is in the main branch
(git merge-base --is-ancestor HEAD main). Then:
- From a session inside the worktree:
ExitWorktreewithremove. It counts commits against the session's starting point, not the main branch, so once the branch is merged and I agreed, passdiscard_changes: true. - Otherwise, from the main checkout:
git worktree remove <path>, thengit branch -d <branch>(the worktree removal keeps the branch).
Установить plan-loop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл plan-loop?
Plan work with the user in a PLAN.md, then implement it step by step, with /clear once the context fills up. Use before creating a plan, when the user mentions a PLAN.md, or when resuming work after /clear.
Как установить скилл plan-loop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plan-loop запускает скрипты?
Нет, скилл состоит только из инструкций (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