implement-improvements
Validate improvements from .turbo/improvements.md, recommend a working set tailored to what's in the backlog, and run one lane: direct fixes, investigation, or planned work. One lane per session. Use when the user asks to \"implement improvements\", \"work on improvements\", \"address improvements\", \"process improvement backlog\", \"tackle improvements\", or \"implement noted improvements\".
tobihagemann · Static checks on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add tobihagemann/turbo --skill implement-improvementsAbout this skill
name: implement-improvements description: "Validate improvements from .turbo/improvements.md, recommend a working set tailored to what's in the backlog, and run one lane: direct fixes, investigation, or planned work. One lane per session. Use when the user asks to "implement improvements", "work on improvements", "address improvements", "process improvement backlog", "tackle improvements", or "implement noted improvements"."
Implement Improvements
Validate improvements from .turbo/improvements.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.
Task Tracking
At the start, use TaskCreate to create a task for each step:
- Read the backlog
- Validate and classify
- Recommend, confirm, and update the backlog
- Run the chosen lane
- Prune working-set entries from the backlog
Step 1: Read the Backlog
Read .turbo/improvements.md, relative to the repo root resolved 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. If the file does not exist, there are no improvements to implement; stop.
Parse all entries, extracting for each:
- Summary (the
###heading) - Type (
direct,investigate, orplan; may be missing in older entries —trivialandstandardare accepted as legacy aliases fordirectandplan) - Category
- Where (file paths or areas)
- Why (rationale)
- Ceiling and Revisit (present when the entry records a deliberate simplification)
- Noted (date)
Step 2: Validate and Classify
Improvements drift: files get renamed, code gets refactored, issues get fixed as side effects of other work. Before routing, validate each improvement and classify any entry missing a Type.
Validate
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:
- Files exist — Do the referenced files/paths still exist? When one was renamed or its code moved, validate the entry at the current location instead. This check marks the entry stale only when the code it names is gone.
- Problem persists — Read the relevant code sections. Is the exact issue or opportunity described in the entry still present? Check the specific claims: if the entry says a function is uncalled, verify it has no callers; if it says error handling is missing, check whether it was added.
- Revisit condition met — For an entry carrying a Revisit field, check whether the recorded condition now holds. The shipped simplification is present by construction, so its presence alone says nothing about whether the fuller version is worth building yet.
- Stated scope matches the real gap — For an entry claiming missing coverage, read what existing tests already pin before accepting its scope: a test that substitutes a test double at a boundary pins the behavior on one side of it and leaves the boundary itself unpinned, so a request to cover several variants often reduces to the single boundary they share. Restate such an entry at its real scope, classify it Active, and use the restatement as its summary in Step 3.
- Claimed consequence holds — For an entry claiming that two paths behave differently, or that a change would alter observable behavior, verify the claimed difference itself by reading what each path actually returns, exercising both when reading cannot settle it, rather than confirming only that the code it points at exists. When the claim is that nothing but the case it names reaches or relies on the named code, read that code's own tests: they surface dependents an entry written from a single path routinely omits, and turning up none leaves the claim unproven. When the named code is present but its stated consequence is false, restate the entry at the benefit it actually delivers, classify it Active, and use the restatement as its summary in Step 3; classify it Stale when no benefit survives.
Classify each entry as:
- Active — The described problem or opportunity is confirmed present in the current code
- Deferred — The entry carries a Revisit condition that does not yet hold; the shipped approach remains the right one
- Stale — The code the entry names no longer exists, the specific issue has been resolved, or the entry's premise never held (cite evidence: what changed and where, or why the claim is false)
- Unclear — Cannot determine from code alone, needs user input
When in doubt, classify as Active. The cost of re-examining a resolved issue is low; dismissing a valid improvement is high.
Classify type if missing
For any Active entry without a Type field, infer one on the fly. Base the classification on the code you just read during validation, not just the entry's one-line summary.
- direct — Clear scope and a known approach, ready to apply via
/implement. - investigate — A symptom that needs root-cause analysis first: unclear root cause, performance question, intermittent bug, "something feels off".
- plan — Everything else: the approach warrants writing down before implementing (multi-file refactor, test additions, feature work). Dispatched to
/turboplan, which routes the work itself.
Pick the type without asking the user. Default to plan when genuinely ambiguous.
Step 3: Recommend, Confirm, and Update the Backlog
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:
## Improvement Backlog Status
###
Read the complete source ↗