polish
Skill2 starsChanged 2 months agoMITView on GitHub
Run a fail-closed polish gate on the current branch diff: freeze scope, prove the baseline, simplify only changed files, run an independent review, verify fixes, and allow commit or push only after the reviewed candidate is still fresh and clean.
70 other projects use a version of this.
Adopted by
Most recently taken up by
- Mrbaeksang/skillstheir own version, first seen Nov 8, 2026
- Integralist/agent-skillstheir own version, first seen Nov 6, 2026
- tenequm/skillstheir own version, first seen Nov 5, 2026
- galiprandi/job-seekertheir own version, first seen Nov 5, 2026
- inkatze/planwrighttheir own version, first seen Nov 4, 2026
- angusfretwell/skillstheir own version, first seen Nov 4, 2026
Used with
Projects with it also use layout, shape and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
owshq-mecSkilllayout
Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.
Also in 8 projects that use this
HAR5HA-7663Skillshape
Plan the UX and UI for a feature before writing code. Runs a structured discovery interview, then produces a design brief that guides implementation. Use during the planning phase to establish design direction, constraints, and strategy before any code is written.
Also in 13 projects that use this
PeterCangSkilltokens
Count all historical Claude Code token usage across all local projects, broken down by model, project, date, and week. Includes cost estimation based on official Anthropic pricing.
Also in 3 projects that use this
arjunkshahSkillredesign
Redesign existing interfaces to premium quality while preserving product goals and functional behavior.
Also in 3 projects that use this
leonaaardobSkillmotion
Complete Motion.dev documentation - modern animation library for React, JavaScript, and Vue (formerly Framer Motion)
Also in 3 projects that use this
MicrosoftSkillreview-loop
Iterative review loop using any lens agent against any target (plan, code, design). Use when you want to run a focused review cycle: spawn a fresh reviewer subagent with a specific lens, present findings and remediation to the user, apply fixes with user guidance, and repeat until clean.
Also in 3 projects that use this
Other versions70 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 70
- talesofai/cohub★ 585same name
- educlopez/ui-craft★ 441same name
- nexmoe/DayBee★ 424same name
- nexmoe/eve★ 424same name
- Southclaws/storyden★ 348same name
- 10xChengTu/Mux0★ 337same name
- theexperiencecompany/gaia★ 325same name
- AkaraChen/aghub★ 271same name
- zacharyfmarion/openscad-studio★ 238same name
- jagrat7/linux-wallpaper-engine★ 227same name
60 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- access-checkSkill
- babysit-prsSkill
- browser-proofSkill
- bugfixSkill
- bug-reproSkill
- cleanupSkill
- contextSkill
- dev-flowSkill
- docs-managerSkill
- hot-reloadSkill
- jira-managerSkill
- pr-managerSkill
- release-proofSkill
- status-reportSkill
- sync-projectSkill
- watch-loopSkill
- whatsapp-meSkill
- workflowSkill
- worktreeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 22 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 62 edited versions we read keep these.
22
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
Before doing anything else, verify:
- Distinctive: line 73
Not allowed outside that list:
- Distinctive: line 79
If production scope expands, stop.
- Distinctive: line 83
Before simplifying or fixing anything, run the smallest proof that matters for this branch:
- Distinctive: line 91
If the baseline is already broken and the reason is unclear, stop.
- Distinctive: line 103
delete dead code and debug leftovers
- Distinctive: line 104
keep behavior the same
- Distinctive: line 106
If no meaningful simplification exists, that is fine.
- Distinctive: line 108
After simplification, rerun the relevant baseline proof.
- Distinctive: line 112
Run a fresh independent review against the current frozen diff.
- Distinctive: line 121
If no independent review surface is available, stop.
- Distinctive: line 136
if the same root cause survives two verified rounds, stop and escalate
- Distinctive: line 137
if a later round changes the diff, rerun review on the fresh candidate
- Distinctive: line 146
keep production edits inside the frozen file list
- Distinctive: line 147
add or update regression tests only when needed to prove the fix
- Distinctive: line 151
If there is no progress, or the round cap is reached, stop.
- Distinctive: line 155
Before commit or push, confirm the reviewed candidate is still fresh.
- Distinctive: line 168
If freshness fails, return to the review step.
- Distinctive: line 172
Commit and push are separate permissions.
- Distinctive: line 174
Commit is allowed only when:
- Distinctive: line 189
If commit or push authority is missing, stop with the verified tree and report what remains.
- Very specific: line 194
Stop with clean when:
- Distinctive: line 211
commit or push would exceed authority
“Common” is measured: kept by at least 6 in 10 of the 62 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Polish
This skill is the final cleanup and ship gate for a branch you already changed. It is strict on purpose. The cost of a false green is higher than the cost of one more review loop.
What This Skill Does
- checks that the branch is a safe place to polish
- freezes the production scope to the current branch diff
- records baseline proof before changing anything
- simplifies only the changed files
- runs an independent review
- fixes only confirmed findings
- re-verifies the result
- allows commit or push only if the reviewed candidate is still the one being shipped
Inputs
$polish
$polish --review-only
$polish --no-commit
$polish --no-push
$polish --message "<commit subject>"
$polish --max-fix-rounds <n>Rules:
--review-only: read-only. Review and report only.--no-commit: finish the polish loop but do not commit or push.--no-push: commit if clean and allowed, but do not push.--max-fix-rounds: default2, hard cap3.
Step 0: Preflight
Before doing anything else, verify:
- you are inside a git repo
HEADis on a branch, not detached- the branch is not the default branch
- the branch has a real diff against its base
- the base branch is known
Collect and freeze:
- repo root
- branch name
- base branch or base commit
- changed production files
- current diff bytes
- current tree hash or diff hash
Why freeze it now: if the allowed production scope drifts mid-run, the review you trusted is no longer reviewing the thing you ship.
Scope Freeze
Production edits are limited to the original changed files.
Allowed outside that list:
- directly related regression tests
- proof helpers used only for verification
Not allowed outside that list:
- product code
- drive-by cleanup
- opportunistic refactors in untouched areas
If production scope expands, stop.
Step 1: Baseline Proof
Before simplifying or fixing anything, run the smallest proof that matters for this branch:
- relevant tests
- lint or typecheck
- build if needed
- focused runtime or browser proof when required
If the baseline is already broken and the reason is unclear, stop. Otherwise you cannot tell whether polish made things better or worse.
Step 2: Simplify Changed Files
Simplify only the frozen changed files.
Goals:
- remove obvious clutter
- reduce nesting
- improve naming
- delete dead code and debug leftovers
- keep behavior the same
If no meaningful simplification exists, that is fine. Say so and move on.
After simplification, rerun the relevant baseline proof. If it fails, stop.
Step 3: Independent Review
Run a fresh independent review against the current frozen diff.
Requirements:
- the reviewer must be separate from the writer of the code
- the review must read the real diff, not a summary
- findings need stable ids so you can track them across rounds
- unconfirmed or malformed findings do not count as clean
If no independent review surface is available, stop. This skill is fail-closed.
Finding Lifecycle
Track findings through these states:
openfixedrecheckedclosed
Rules:
- fix only confirmed findings
- deduplicate by root cause
- if the same root cause survives two verified rounds, stop and escalate
- if a later round changes the diff, rerun review on the fresh candidate
Step 4: Fix Only What The Review Proved
Work one round at a time. Do not keep patching forever.
For each round:
- fix the confirmed findings
- keep production edits inside the frozen file list
- add or update regression tests only when needed to prove the fix
- rerun the relevant proof
- rerun the independent review on the fresh diff
If there is no progress, or the round cap is reached, stop.
Step 5: Freshness Gate
Before commit or push, confirm the reviewed candidate is still fresh.
At minimum, recheck:
- repo root is unchanged
- branch is unchanged
- base is unchanged
- production file list is unchanged
- current diff hash matches the last reviewed diff hash
Why this matters: a commit, rebase, extra edit, or auto-format step can change the candidate after review. If the hash changed, the review is stale.
If freshness fails, return to the review step. Do not ship stale review.
Step 6: Commit And Push Authority
Commit and push are separate permissions.
Commit is allowed only when:
- the latest proof passed
- the latest independent review is clean
- confirmed findings are
0 - the freshness gate passed
- the tree stayed inside the frozen production scope
Push is allowed only when:
- commit is allowed
- the task explicitly allows push
- there is something real to push
- the freshness gate still passes right before push
If commit or push authority is missing, stop with the verified tree and report what remains.
Stop Conditions
Stop with clean when:
- proof passes
- review is clean
- confirmed findings are
0 - freshness passes
- requested commit or push action, if authorized, is complete
Stop with blocked when:
- preflight fails
- baseline proof fails unexpectedly
- production scope expands
- independent review is unavailable
- review output is malformed or stale
- the same root cause survives two verified rounds
- the fix-round cap is reached
- commit or push would exceed authority
Output Contract
POLISH | branch=<name> | state=<clean|blocked|review-only>
SCOPE | files=<count> | expanded=<yes|no>
BASELINE | result=<pass|fail> | proof=<short-summary>
REVIEW | findings=<count> | round=<n> | fresh=<yes|no>
VERIFY | result=<pass|fail> | evidence=<short-summary>
SHIP | commit=<done|skipped|blocked> | push=<done|skipped|blocked>
NEXT | <none or exact blocker>Final Rule
This skill is not "make the branch look nicer." It is "prove the branch is safe to ship, or stop before it ships."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

