Implement plan

From tobihagemann/turbo · View interactive version

Implement plan is an AI agent skill from the GitHub repository tobihagemann/turbo. Execute an implementation plan file from .turbo/plans/. Use when the user asks to \"implement the plan\", \"execute the plan\", \"implement plans/[slug].md\", or starts a fresh session to implement one.

How to use this skill

Skill file

Implement Plan

Execute an implementation plan file.

Open or continue this chat’s workflow checkpoint.

Task Tracking

At the start, use update_plan to track each step, restating any remaining steps of a parent workflow alongside them:

  1. Resolve and read the plan file
  2. Read context files
  3. Run $implement skill
  4. Update plan status

Step 1: Resolve and Read the Plan File

Determine which plan file to implement using these rules in order:

  1. Explicit path — If an absolute or relative path was passed and that file exists, use it
  2. Explicit slug — If a slug was passed (e.g., add-image-cache), resolve to .turbo/plans/<slug>.md if that file exists
  3. Single file — Glob .turbo/plans/*.md. If exactly one plan exists, use it
  4. Most recent — If multiple plans exist, use the most recently modified
  5. Legacy fallback — If .turbo/plans/ does not exist but .turbo/plan.md exists, use it
  6. Nothing found — If no rule above resolved to an existing file, tell the user to run $turbo:plan and stop. When a slug or path was passed but no file matched it, say which one was tried

If multiple plans exist and the most-recent choice is non-obvious (e.g., several plans were modified within the same minute), use request_user_input to let the user pick from the candidates.

State the resolved plan path before continuing, then read the file.

Unless an explicit path or slug was passed, confirm the resolved plan still describes work that remains to be done:

When you check whether a gate has passed, check each condition it names at its source of record, such as the remote's tags for another repository's release, rather than a local copy.

When a signal fires, output it as text. Then use request_user_input to offer:

On Leave it unimplemented, tell the user to bring the plan current with $turbo:refine-plan and run this skill again, or, for a plan whose gate has not passed, to run this skill again once it has. Call update_plan to drop the remaining implement steps, restating any remaining steps of a parent workflow, then continue with the next step of the active workflow.

Step 2: Read Context Files

Read in full:

Step 3: Run `$implement` Skill

Run the $implement skill. The plan file, its file references, and its Verification section are already in conversation context from Step 1.

Step 4: Update Plan Status

After $implement completes, set the plan's frontmatter status: to done. If the plan is the legacy .turbo/plan.md without frontmatter, skip the status update.

When the plan's Context names a larger source it implements part of (an assessment, a backlog, an issue), report the plan's completion separately from that source's: name the source's items the plan left out, and say whether another plan under .turbo/plans/ covers them.

Then call update_plan to mark this step completed and continue with the next step of the active workflow.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.