polish-code

Solid

Stage, format, lint, test, simplify, review, smoke test, and re-run itself until stable. Use when the user asks to "polish code", "refine code", "iterate on code quality", "simplify and review loop", "clean up, test, and review loop", or "run the polish loop".

Code & Development 335 stars 26 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
84
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 8), use `TaskCreate` to create a task for each step: 1. Run `/stage` skill 2. Deterministic cleanup 3. Run `/simplify-code` skill 4. Run `/review-code` skill 5. Run `/evaluate-findings` skill 6. Run `/apply-findings` skill 7. Run `/smoke-test` skill 8. Re-run `/polish-code` skill if changed ## Step 1: Run `/stage` Skill Run the `/stage` skill. ## Step 2: Deterministic Cleanup Run the project's formatter first, then the linter. Fix any lint errors or warnings that the formatter did not resolve. If the project has a combined format+lint script, use that. Run the project's test suite to confirm nothing is broken. If tests fail, run the `/investigate` skill to diagnose the root cause, apply the suggested fix, and re-run tests. If investigation cannot identify a root cause, stop and report with investigation findings. Stage all changes made in this step before continuing. ## Step 3: Run `/simplify-code` Skill Run the `/simplify-code` skill. The diff command is `git diff --cached`. Stage all changes made in this step before continuing. ## Step 4: Run `/review-code` Skill Run the `/review-code` skill. The diff command is `git diff --cached`. Always run this step even if Step 3 made no changes. ## Step 5: Run `/evaluate-findings` Skill Run the `/evaluate-findings` skill on the results from Steps 3 and 4. If zero actionable findings survive evaluation, skip to Step 7. ## Ste...

Details

Author
tobihagemann
Repository
tobihagemann/turbo
Created
3 months ago
Last Updated
5 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category