polish-code

Featured

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".

Code & Development 402 stars 30 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
87
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Polish Code ## Task Tracking 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 ## Step 1: Run `/stage` Skill Run the `/stage` skill. ## Step 2: Run `/run-checks` Skill Run the `/run-checks` skill. Stage all changes made in this step before continuing. ## Step 3: Run `/review-code` Skill Run the `/review-code` skill on the staged changes. The diff command is `git diff --cached`. ## Step 4: Run `/evaluate-findings` Skill Run the `/evaluate-findings` skill on the results from Step 3. ## Step 5: Run `/apply-findings` Skill Run the `/apply-findings` skill on the evaluated results. Record any fix whose remedy you deliberately narrowed as you make it, naming what the remedy covered and what it left, so Step 7 carries it forward without reconstructing the decision later. When a fix ships with a regression test, confirm the test fails with the fix reverted, then restore the fix. Stage the fix immediately before mutating it (`git add <file>`), so `git checkout -- <file>` restores it exactly from the index. A file staged in an earlier step has an index copy older than the current edits, and restoring reverts them. Stage only the files about to be mutated, and reach for `git add -p <file>` when one...

Details

Author
tobihagemann
Repository
tobihagemann/turbo
Created
6 months ago
Last Updated
2 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

rite-polish

Polish the active feature's code and any touched UI before review. Use for finish or normalization requests; not for repository-wide refactors.

1 Updated yesterday
ViktorsBaikers
Code & Development Listed

polish

Use after a work product or code change is complete when someone asks to polish, simplify, clean up, deduplicate, consolidate, refactor, or improve efficiency without changing settled behavior, meaning, or public contracts. Review a named target or the current repository change set with independent cleanup scouts, let a fresh finisher apply one bounded local improvement pass by default, and verify it. Do not use for initial implementation, requested feature changes, bug hunting, architecture migrations, or broad maintenance sweeps.

8 Updated yesterday
dkstm95
Code & Development Listed

polish-before-commit

Auto-fixes convention and pattern-consistency issues, runs lint, and aggregates remaining judgment calls before stopping for the user (or, when explicitly delegated in orchestrated mode, escalating to a ledger and returning instead of waiting). Ingests leftover findings from the built-in `/code-review` skill run by the user just before this skill (this skill never invokes `/code-review` itself — its disable-model-invocation setting rejects Skill-tool launches). Use when finalizing a branch, just before `git commit` or `/create-pr`, when reviewing someone else's PR without editing files (review-only mode), or whenever the user says "仕上げて" / "polish" / "コミット前チェック" / "レビューのみで見て".

0 Updated 3 days ago
YasuakiOmokawa