tobihagemann/pick-next-shell
Pick the next shell whose dependencies are satisfied and carry it through planning: expand, refine, self-improve, halt. Use when the user asks to \"pick next shell\", \"next shell\", \"continue project\", \"what's next\", \"next implementation step\", or \"continue with the plan\".
npx skills add https://github.com/tobihagemann/turbo --skill pick-next-shell
Pick the next shell from .turbo/shells/ whose dependencies are satisfied, then carry it through the planning pipeline: expand → refine → self-improve → halt.
At the start, use TaskCreate to create a task for each step:
/expand-shell skill/refine-plan skill/self-improve skillCheck terminal conditions first:
status: done for all — the project is complete; stopdone status — there are unfinished plans; stopIf shells exist in .turbo/shells/, glob .turbo/shells/*.md and read each file's YAML frontmatter. A shell's depends_on entry is satisfied when .turbo/plans/<dep-slug>.md exists with status: done in its frontmatter.
depends_on are all satisfieddepends_onIf there are no candidates (everything is blocked), report which shells are blocked and which dependencies they're waiting on, then stop.
If multiple candidates exist, pick the one with the lowest shell number (from the NN- prefix /draft-shells gives each file). If ambiguous, use AskUserQuestion to let the user choose.
State the picked shell path and its dependencies before continuing.
/expand-shell SkillRun the /expand-shell skill, passing the shell file path. Capture the resulting plan path for Step 3.
/refine-plan SkillRun the /refine-plan skill with the plan path from Step 2.
/self-improve SkillRun the /self-improve skill to compound planning learnings.
Update the plan's YAML frontmatter to status: ready.
Present a brief summary of the finished plan: the essence of what it builds and the key decisions behind it, short enough to read at a glance so the user does not have to open the full plan file. When the plan delivers value to a user, developer, or operator, also present a short list of stories capturing what that person gains, in the form "As a <persona>, I want <capability> so that <outcome>". Skip the stories only when no beneficiary or outcome can be named, such as a purely mechanical refactor. Fit both to the plan rather than a fixed template.
Then halt with this message:
> Plan ready at <plan path>.
>
> Planning context is likely full, and the plan is comprehensive enough to continue fresh. Run /clear, then /implement-plan <slug> to implement. After that, run /pick-next-shell again for the next shell.
/refine-plan./implement-plan in a fresh session.Take tobihagemann/pick-next-shell from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.