code-polish
Original:🇺🇸 English
Translated
This skill should be used when the user asks to "polish code", "simplify and review", "clean up and review code", "full code polish", "simplify then review", "refactor and review", "simplify and fix", "clean up and fix", or wants a combined simplification and review workflow on recently changed code.
12installs
Sourcepaulrberg/agent-skills
Added on
NPX Install
npx skill4agent add paulrberg/agent-skills code-polishTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Code Polish
Combined simplification and review pipeline. This skill orchestrates two sub-skills in sequence:
- — simplify for readability and maintainability
code-simplify - — review for correctness, security, and quality, auto-applying all fixes
code-review --fix
Prerequisites
Both the and skills MUST be installed. If either skill is missing, stop immediately and report the error:
code-simplifycode-reviewERROR:requires thecode-polishandcode-simplifyskills to be installed. Missing:code-review.<skill-name>
Workflow
1) Run code-simplify
code-simplifyInvoke the skill, forwarding as-is.
code-simplify$ARGUMENTS2) Run code-review --fix
code-review --fixInvoke the skill with the flag appended to .
code-review--fix$ARGUMENTS3) Report
Combine the outputs from both skills into a single summary:
- Scope: Files and functions touched.
- Simplifications: Key changes from .
code-simplify - Review findings and fixes: Findings and applied fixes from .
code-review - Verification: Commands run and outcomes.
- Residual risks: Assumptions or items needing manual review.