Polish changed code on request, simplifying safely and reviewing fixed scope by risk profile.

CCM score
61 of 100
skills.sh installs
2.8K
GitHub stars
107
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the workflow in order: resolve a fixed file scope, simplify without behavior change, review and fix verified defects, then verify
  • Enforces that simplifications keep public contracts, error behavior, and performance-sensitive characteristics intact, and that review findings cite verified evidence
  • Supports --simplify and --review modes, plus --with-profile and --skip-profile to select language and risk profiles such as security, go, and typescript
  • Designed for changes in Git repositories that need a verified, scoped cleanup pass before completion

Install

$ npx -y skills add paulrberg/agent-skills --skill code-polish -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Code Polish

Resolve scope once. Make only high-confidence simplifications. Fix defects supported by evidence according to their risk. Verify the final state.

Modes

  • --simplify: simplify only.
  • --review: review and fix only.
  • Neither or both: simplify, then review the simplified result.
  • --with-profile <name> / --skip-profile <name>: add or suppress review profiles. Skip wins.

Fixed Scope

  1. Require a Git repository.
  2. Use explicit paths, patterns, ranges, natural-language targets, or a supplied resolved-scope block when present. Otherwise, use only files modified in this session. If session history is unavailable, use all uncommitted tracked and untracked files.
  3. Exclude lockfiles, generated outputs, vendored code, minified bundles, and large data snapshots from manual review unless explicitly requested. Validate relevant excluded outputs through their generator, schema, or invariants.
  4. Resolve and retain one authoritative scope set and optional exclusions for execution. Do not broaden or recompute scope later. Stop if it is empty.

Simplify

Details

Repository
github.com/paulrberg/agent-skills
Category
Code Review & Quality
First seen
May 16, 2026

More from paulrberg/agent-skills

All 8

Similar to Code Polish

More Code Review & Quality