/turbo:implement-backlogfrom Turbo
Validates .turbo/backlog.md entries, recommends a working set, and runs one lane per session: direct, investigate, or plan. Use when the user asks to implement the backlog or implement improvements.
Ships in Turbo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Validate improvements from .turbo/backlog.md, propose a specific working set based on the backlog's actual contents, and run one lane per session: direct, investigate, or plan. Mixing lanes in a single run tangles commits, so the skill processes exactly one lane each time. Entries outside the confirmed working set stay in the backlog for future runs.
When a working set and a lane were passed in, by the user or in a message from another session, start at Step 5 with them and create tasks for Steps 5 and 6 alone. Resolve the repo root as Step 1 does, read each working-set entry in full from .turbo/backlog.md under it, and run the lane with each entry's full text alongside what was passed in. When an entry is not there, run the lane with what was passed in for it.
At the start, use TaskCreate to create a task for each step:
Resolve the repo root with git rev-parse --show-toplevel, except inside a linked worktree — where git rev-parse --git-dir differs from --git-common-dir — in which case use the parent of the common dir.
When that root holds the legacy .turbo/improvements.md, carry it into .turbo/backlog.md before reading, with the Write or Edit tool. When .turbo/backlog.md does not exist, write the legacy content there with its # Improvements header changed to # Backlog. Otherwise, append each legacy entry that .turbo/backlog.md does not already hold word for word. Once .turbo/backlog.md holds every legacy entry, delete the legacy file. When the write or the deletion is refused, tell the user what is left to do.
Read .turbo/backlog.md under that root. If it does not exist, there are no backlog entries to implement; stop.
Parse all entries, extracting for each:
### heading)direct, investigate, or plan; may be missing in older entries — trivial and standard are accepted as legacy aliases for direct and plan)Improvements drift: files get renamed, code gets refactored, issues get fixed as side effects of other work. Before routing, validate each improvement and settle the Type of any entry whose Type is missing or wrong.
Before validating, note the root of the checkout whose code this step reads (git rev-parse --show-toplevel). When that checkout has the default branch checked out (resolve it with gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'), run git -C <root> fetch and fast-forward that branch to its upstream with git -C <root> merge --ff-only @{upstream}. Read each command's full output and exit status, unfiltered. Note git -C <root> status --porcelain --untracked-files=all before the fast-forward and compare after a failed one: a fast-forward that fails partway through writing the working tree leaves HEAD and the index where they were and keeps the files it already wrote. Return each path the comparison adds that matches the upstream commit's copy or is absent there, with git -C <root> checkout -- <paths> for tracked ones and by deleting new untracked ones. Leave any path that does not match, and report the failure, its cause, the restore, and each path left. When a sandbox denial caused the failure, re-run the fast-forward with the sandbox disabled. When any of these commands still fails, report it and validate the checkout as it stands. Then note its commit (git -C <root> rev-parse --short HEAD). The path check for a commit and a set of repo-relative paths passes when git -C <root> diff --quiet <commit> -- <paths> exits 0 and git -C <root> ls-files --others --exclude-standard -- <paths> prints nothing.
For each entry carrying a Validated line, run the path check with its recorded commit and paths, and run each command nested under it from that root. When the path check passes and every command prints its recorded output, whatever its exit status, classify the entry with its recorded verdict and skip the rest of this step for it. Otherwise, including when a command cannot run or cannot reach its source, or when it reads a source outside the repo and would print its recorded output on a failed read too, validate the entry in full.
For each entry, verify whether the specific problem or opportunity described still exists. Do not rely on git log alone. Recent commits touching the same files do not mean the specific issue was addressed. Read the actual code and confirm:
Before using a restatement as an entry's summary in Step 3, confirm each fact it adds to the entry against the code, or against the dependency's shipped artifact when the fact concerns a dependency. When the fact is that a dependency provides a capability, also confirm that the dependency's documentation says the capability is available, since code present in the shipped artifact can be gated off, internal, or not yet public.
Classify each entry as:
When in doubt, classify as Active. The cost of re-examining a resolved issue is low; dismissing a valid improvement is high.
For any Active entry without a Type field, infer one on the fly. For an Active entry whose Type the code read contradicts, correct it. A recorded investigate is contradicted only when the code read settles the question the entry raises. Reading alone does not settle a question that turns on runtime behavior, such as ordering or timing. Base the classification on the code you just read during validation, not just the entry's one-line summary.
/implement./plan, which routes the work itself.Pick the type without asking the user. Default to plan when a missing Type is genuinely ambiguous, and keep a recorded Type the code read does not contradict.
When at least two entries are Active, use the ListAgents tool and note the local sessions it shows before outputting anything in this step.
Output the backlog status as text first, grouped by type and status. Include each entry's category inline and a category tally across active entries:
## Backlog Status
Reused earlier validations: N of M entries carrying a Validated line
### Active (N)
Categories: refactor (N), performance (N), testing (N), docs (N)
**Direct (N)**
- [summary] (category) — [one-line reason it's still relevant]
**Investigate (N)**
- [summary] (category) — [one-line reason it's still relevant]
**Plan (N)**
- [summary] (category) — [one-line reason it's still relevant]
### Deferred (N)
- [summary] — [the revisit condition, and what still has to happen]
### Stale (N)
- [summary] — [one-line reason it's stale]
### Unclear (N)
- [summary] — [what's ambiguous]
When no entry is Active, skip the recommendation: a Deferred entry is not a candidate.
Pick one specific working set tailored to the active entries. Read the entries again before recommending and weigh:
/implement run. Investigate dispatches /investigate per symptom, then shares one /implement for the concluded fixes. Plan hands a cohesive cluster to /plan, which routes the work itself.State the recommendation as: lane + concrete working set (specific entries or a category-scoped subset) + one or two sentences on why this beats the alternatives. Then list 1–3 honest alternatives, each named with the actual entry or subset (e.g., "investigate the flaky presence test", "plan lane on persist-before-send"). When only one lane has active entries, recommend that lane and skip alternatives.
Then check the active entries outside the recommended working set for parallel sets: working sets an extra session can run at the same time. A parallel set touches no file the recommended working set or another parallel set touches, and no set supersedes another. Name each parallel set with its lane after the alternatives.
Use AskUserQuestion to confirm. Combine into the same prompt:
(Recommended), with the plain recommended working set following it without that marker, and drop the weakest alternative when the options would exceed four.Skip the call when no item applies.
If the user confirmed stale removal, edit .turbo/backlog.md to delete the stale entries.
Rewrite in .turbo/backlog.md each Active or Deferred entry whose path, scope, count, consequence, or Type Step 2 corrected, changing only the fields the correction touches, and write the Type Step 2 inferred into each Active entry that lacked one. When that changes an entry's summary, update each Paired with line in its counterpart entries that names the old title.
Record the validation on each Active or Deferred entry that Step 2 validated in full, after its Noted line, replacing any Validated line it carries together with the command lines nested under it:
- **Validated**: <YYYY-MM-DD>, <Active | Deferred> at `<commit>`: `<path>`, `<path>`
- `<command>` → `<output>`
fetch-failed when a download fails.Leave the Validated line off an entry when the path check fails for its commit and paths now, when git -C <root> ls-files --error-unmatch -- <paths> fails because a path is untracked or ignored, or when a fact its verdict rests on has neither a path nor a command that pins it. A Revisit condition only a person can observe, such as a user report, is exempt and needs no command.
Compute the working set from the confirmed choice. If the working set is empty, stop.
Skip this step unless the user confirmed the parallel option.
Read references/parallel-split.md and follow its phases.
Read the reference file for the confirmed lane and follow its phases:
State the chosen lane before continuing with the reference file.
When this session runs inside a linked worktree (where git rev-parse --git-dir differs from --git-common-dir), use AskUserQuestion to offer two options: leave the worktree and prune from the main checkout, or stay in the worktree. List leaving first and label it (Recommended). While the branch's pull request is open (gh pr view <branch> --json state), list staying first and label it (Recommended) instead.
action: "keep"). When it reports that no worktree session is active, take the Stay path instead. Otherwise:
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'. Fast-forward the main checkout's local default branch to origin/<default-branch> without switching the branch the main checkout has checked out. Read the fast-forward's full output and exit status, unfiltered. When the main checkout has that branch checked out, note its git status --porcelain --untracked-files=all first and compare after a failed fast-forward: one that fails partway through writing the working tree leaves HEAD and the index where they were and keeps the files it already wrote. Return each path the comparison adds that matches the target commit's copy or is absent there, with git checkout -- <paths> for tracked ones and by deleting new untracked ones. Leave any path that does not match, and report the failure, its cause, the restore, and each path left. When a sandbox denial caused the failure, re-run the fast-forward with the sandbox disabled. When the fast-forward still fails, report it and leave that branch as it is.origin/<default-branch> (git merge-base --is-ancestor <branch> origin/<default-branch>) or its branch's pull request is merged (gh pr view <branch> --json state,headRefOid), remove the worktree with git worktree remove <path>. When git refuses over files this session copied in from the main checkout, delete those copies and remove it again. Otherwise keep the worktree, without --force.git branch -d <branch> when its commits are on origin/<default-branch>, or with git branch -D <branch> when its pull request is merged and the branch's tip is that pull request's headRefOid. Keep it otherwise, or when git refuses./backlog could not persist from the worktree, so both can be applied from a session that can write to the main checkout. Skip the rest of this step, then use the TaskList tool and proceed to any remaining task.Edit .turbo/backlog.md to delete the working-set entries that the lane processed. "Processed" means:
/plan wrote, and entries whose fixes were applied in this session. Treat planned entries as processed once the plan is written.Keep any entries the lane re-classified mid-flight (direct → investigate/plan, or investigate → plan), and any entry of which the working set took only one step of several. These stay in the backlog for a future run. Remove the Validated line, with the command lines nested under it, from each working-set entry that stays. Delete the file if no entries remain.
Rewrite in place each kept entry of which the working set took only one step: restate its summary and Where as the steps that remain. When the rewrite changes the summary, update each Paired with line in counterpart entries that names the old title.
Rewrite in place each entry the investigate lane investigated that stays in the backlog: restate its summary and Where as what remains to do, put what the investigation established in its Why (the root cause it confirmed, or the hypotheses it refuted when the cause stayed unresolved), and set the Type the remainder calls for. When the entry waits on an outside event, such as an upstream fix, record that event as its Revisit. When the rewrite changes the summary, update each Paired with line in counterpart entries that names the old title.
When the restated Where names files in another repo, delete the entry in place of rewriting it, drop each Paired with reference to it from its counterpart entries, then run the /backlog skill for the entry as restated, with its Category, Type, Why, and any Ceiling or Revisit.
When a processed entry carries a Paired with line, drop that reference from each counterpart entry it names, so no backlog is left pointing at an entry that no longer exists.
When this session left its worktree at the start of this step, run the /backlog skill for each entry /backlog could not persist from the worktree.
Then use the TaskList tool and proceed to any remaining task.
.turbo/ is gitignored. Edits to .turbo/backlog.md are local-only and do not need to be staged or committed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tobihagemann/turbo --plugin turbo74 skills in this plugin
/apply-findingsApply accepted review findings as code changes, escalating ambiguous ones to the user. Use when the user asks to "apply findings", "apply fixes", or "apply the review results"./assess-technical-debtAssess project-wide technical debt (hotspots, deprecated APIs, duplication, low-value tests) into a ranked report. Use when the user asks to "assess technical debt" or "what should we refactor"./backlogCapture an out-of-scope improvement or accepted simplification in .turbo/backlog.md. Use proactively mid-task, or when the user asks to "backlog this", "note this idea", or "track this for later".Other plugins' skills for the same job