Install any skill in seconds. Free to start, no credit card required.
Get Started Free →tobihagemann/polish-code
Stage, format, lint, test, review, smoke test, and re-run itself until stable.
Passed 11 of 17 test cases with the skill, and 5 of 17 without it.
and 7 more in the full report
7 fixed7 passed either way8 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
During Steps 5 and 6, we modified control flow logic and updated two function signatures in `src/api.ts`. Can we classify this as an in-place edit and end the polish loop now?
| Checked | Without skill | With skill |
|---|---|---|
| Classifies function signature changes as structural edits | Missed | Passed |
| Triggers a fresh invocation of $polish-code for structural edits | Missed | Passed |
The instructions your model reads when the skill loads.
At the start of every invocation (including re-runs from Step 7), use update_plan to track each step, restating any remaining steps of a parent workflow alongside them:
$stage skill$review-code skill$evaluate-findings skill$apply-findings skill$smoke-test skill$polish-code skill if changedLoop state lives at .turbo/loops/<slug>.md — slug from the governing plan when one is in context, otherwise the current branch name with non-alphanumerics replaced by hyphens. At the start of every invocation, read the ledger if it exists.
Status: line is closed): write a fresh ledger with Status: active, then attempt create_goal with the objective: "Run the $polish-code loop on until converged: a run with no changes, an in-place-only round, or remaining findings that do not justify another re-run. Loop state: .turbo/loops/<slug>.md; re-read it after any context compaction and do not re-adjudicate findings it records as rejected. Mark this goal complete when the loop converges." If an unfinished goal already exists, an outer workflow owns it; continue without creating one.Status: active): this invocation is the iteration after the last one the ledger records, whether a Step 7 re-run or a resumption after an interruption. Continue from the recorded state. A Pending smoke-test baseline entry means a previous iteration was interrupted between delegating the smoke test and verifying the tree: reconcile the tree against that entry and clear it before Step 1, so Step 1 does not stage what the interrupted sub-agent left behind. If no unfinished goal exists, attempt create_goal with the same objective as a fresh loop.Status: closed; if this loop created the goal, mark it complete with update_goal. An inherited goal stays active for the outer workflow. A halt on an unresolved failure leaves Status: active and the goal untouched, so the next invocation resumes the recorded state.$stage SkillRun the $stage skill.
Run the project's full verification gate: every check it defines as a pass/fail condition. The goal is that passing this step means the project's own checks (and CI, where it exists) pass. Build the gate by combining every source below that the project declares (sources 1-3); run the baseline (source 4) only when the project declares none of them:
check, verify, lint, typecheck), Makefile or Taskfile targets, or a combined format+lint script.$find-dead-code.Run the formatter first so later checks see formatted code, then the rest. Fix any failure the tools do not auto-resolve. For test failures, run the $investigate skill to diagnose the root cause, apply the suggested fix, and re-run; if investigation finds no root cause, stop and report with its findings.
Stage all changes made in this step before continuing.
test cases passed, vs 5 / 17 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.