pick-next-prompt
Pick Next Prompt
Read the prompt plan at .turbo/prompts.md, pick the next prompt, and plan its implementation. This skill runs in plan mode — it produces an implementation plan for the selected prompt, ready for the user to approve and execute.
Step 1: Read the Prompt Plan
Read .turbo/prompts.md. Parse all prompts extracting:
- Prompt number and title
- Status (
pending,in-progress,done) - Dependencies (
Depends onfield) - The prompt text block
Also read .turbo/spec.md (or the spec path referenced in the prompt plan header) for full context.
Step 2: Pick the Next Prompt
Find the first pending prompt whose dependencies are all done.
- If found: proceed to Step 4
- If all prompts are
done: report completion to the user — the plan is finished - If remaining prompts are blocked: report which prompts are blocked and by what
Step 3: Adapt the Prompt
Re-read the spec and compare against the current project state. Adjust the prompt if implementation has diverged:
- File paths changed — update references to match actual structure
- Architecture evolved — adjust the prompt to work with what was actually built
- Scope shifted — add or remove items based on what prior work produced
- New information — incorporate discoveries from previous sessions
Update .turbo/prompts.md with adjustments to the selected prompt. For affected future prompts, update their Context and Depends-on fields if the adaptation changes what they can assume.
Mark the selected prompt in-progress in .turbo/prompts.md.
Step 4: Discover Skills
Identify currently available skills from the skill list in the system prompt. Determine which skills are relevant for this prompt's work:
- Compare the prompt's work type against each skill's trigger description
- Skills may have been installed or removed since the plan was created
Step 5: Plan and Enhance
Run /enhance-plan first to add task tracking, a skills line, and a finalize step to the plan.
Then, using the selected prompt as the requirements, explore the codebase, design the implementation, and write a detailed plan (exact file paths, function signatures, data flow, test cases).
The plan's final step must instruct: "Mark prompt N as done in .turbo/prompts.md."
Rules
- Never modify the spec file — only
.turbo/prompts.mdis writable (besides the plan file) - If the prompt plan file does not exist, tell the user to run
/create-prompt-planfirst - Keep adaptations minimal — adjust only what diverged, do not rewrite prompts unnecessarily