apply-turbo-handoffs
Audit the turbo skill lessons that /self-improve writes into this repo's .turbo/handoff/ from other projects, apply the ones the…
Stage, format, lint, test, review, smoke test, and re-run itself until stable. Use when the user asks to \"polish code\", \"refine code\", \"iterate on code quality\", \"review loop\", \"clean up, test, and review loop\", or \"run the polish loop\".
Claude Code
$ npx -y skills add tobihagemann/turbo --skill polish-code --agent claude-code
Codex
$ npx skills add tobihagemann/turbo --skill polish-code -a codex -y
Cursor
$ npx skills add tobihagemann/turbo --skill polish-code -a cursor -y
Gemini CLI
$ npx skills add tobihagemann/turbo --skill polish-code -a gemini-cli -y
GitHub Copilot
$ npx skills add tobihagemann/turbo --skill polish-code -a github-copilot -y
OpenCode
$ npx skills add tobihagemann/turbo --skill polish-code -a opencode -y
Windsurf
$ npx skills add tobihagemann/turbo --skill polish-code -a windsurf -y
name: polish-code description: "Stage, format, lint, test, review, smoke test, and re-run until stable. Use when the user asks to \"polish code\", \"refine code\", \"iterate on code quality\", \"review loop\", or \"run the polish loop\"."
At the start of every invocation (including re-runs from Step 7), use `TaskCreate` to create a task for each step:
1. Run `/stage` skill 2. Run `/run-checks` skill 3. Run `/review-code` skill 4. Run `/evaluate-findings` skill 5. Run `/apply-findings` skill 6. Run `/smoke-test` skill 7. Re-run `/polish-code` skill if changed
Loop state lives in a ledger at `.turbo/loops/polish-code-<label>-<tag>.md`. The label is the governing plan's slug when one is in context, otherwise the current branch name with non-alphanumerics replaced by hyphens. The tag is the output of `head -c 4 /dev/urandom | xxd -p`, minted once when the loop starts. The ledger records `Branch:` (the unmodified branch name, or `(detached)`), `Plan:` when a plan governs, a one-line purpose, and per iteration an `Iteration <N>: <state>` line, its verdicts, and Step 7's classification. A ledger that exists belongs to an active loop.
At the start of every invocation, before `/stage` runs in Step 1, resolve the ledger:
Once the ledger resolves, use `TaskUpdate` to write its path into this invocation's Step 7 task description. After a compaction, this invocation reads its ledger path back from that task.
**Iteration state.** The current iteration's state line reads `open` until Step 7 reaches a gate, `awaiting <gate>` while Step 7 waits on the user at one (the in-place round, the skip permission, the hard cap, or the context-signal question, recorded with the gate it wraps), and `classified` once Step 7 has settled whether another iteration runs. On a continued ledger, read the last iteration's state:
A compaction in flight is not a resume: this invocation continues its own iteration. A continued ledger supplies the most recent `/review-code` diff command it records, when it records one, in place of Step 3's default.
**Pending smoke-test baseline.** This entry means an iteration was interrupted between delegating the smoke test and verifying the tree. Reconcile it before Step 1 whenever a resumed or discarded ledger holds one, so Step 1 does not stage what the interrupted subagent left behind. The entry holds a state from `${CLAUDE_SKILL_DIR}/scripts/checkout-snapshot.sh`:
1. Run `checkout-snapshot.sh check` with that state. When it prints `LOST`, `git gc` has pruned the snapshot; when it prints `INVALID`, the state names a HEAD ref outside the local branches or paths git never checks out. Either way, report it, write nothing, and clear the entry once the report is out. 2. Run `checkout-snapshot.sh capture` for the current state. 3. List what differs between the two: the paths `git diff --name-only --no-renames` reports between their index trees and between their raw trees, and any difference in REF or COMMIT. 4. When nothing differs, clear the entry and continue. 5. Otherwise output the differences as text, then use `AskUserQuestion` to offer restoring the pending baseline or keeping the current state. Restoring runs `checkout-snapshot.sh restore` with the pending state; record the `UNDO` line and any `MOVED` lines it prints in the ledger as `Post-run state`, as Step 6 does. Then run `verify` and handle its result as Step 6's tree verification does. Keeping clears t
Reusable workflows for planning, building, reviewing, and shipping with Claude Code and Codex.
Audit the turbo skill lessons that /self-improve writes into this repo's .turbo/handoff/ from other projects, apply the ones the…
Apply findings by making the suggested code changes. Applies accepted verdicts, escalates ambiguous findings to the user, and…
Assess project-wide structural technical debt: complexity hotspots, deprecated API usage, duplication clusters, architecture rot,…
Shared changelog conventions and formatting rules referenced by /create-changelog and /update-changelog. Not typically invoked…
Enforce existence, reuse, mirror, and symmetry principles to keep new code minimal and consistent with surrounding code. Use when…
Run autonomous task execution using the codex CLI. Use when the user asks to \"codex exec\", \"run codex exec\", \"execute a task…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.