This is a two-stage pipeline that runs code-simplify then code-review with auto-fix on your recent changes. The smart part is scope resolution: it figures out what "polish this" means once, whether that's session-modified files, uncommitted changes, or an explicit list, then feeds the same file list to both passes so you're not answering the same question twice. You get one combined report covering simplifications, review findings, fixes applied, and verification results. It skips the usual simplify verification step since review runs afterward anyway. Useful when you want a full cleanup pass without babysitting two separate tools or reconciling overlapping diffs.

skills.sh installs
2.8K
GitHub stars
104
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/paulrberg/agent-skills
Categories
Git & Pull Requests, Code Review & Quality, AI & Agent Building, Automation & Workflows
First seen
May 16, 2026

More from paulrberg/agent-skills

All 19
1phuryn avatardraft-ndaphuryn/pm-skillsDraft a detailed Non-Disclosure Agreement between two parties covering information types, jurisdiction, and clauses needing legal review. Use when creating conf2.8Kskills.sh installs
2agricidaniel avatarblog-analyzeagricidaniel/claude-blogAudit and score blog posts on a 5-category 100-point scoring system covering content quality, SEO optimization, E-E-A-T signals, technical elements, and AI cita2.7Kskills.sh installs
3juliusbrussee avatarjunior-to-seniorjuliusbrussee/skillsAdversarial senior-engineer review for agent-generated plans, designs, and architectures. Treats the current output as junior work, constructs a senior reviewer2.7Kskills.sh installs
4hustcer avatarnushell-prohustcer/nushell-proComprehensive Nushell scripting best practices, idioms, security, and code review. Use when writing, reviewing, auditing, debugging, or refactoring Nushell (.nu2.7Kskills.sh installs
5minimax-ai avatarvision-analysisminimax-ai/skillsAnalyze, describe, and extract information from images using the MiniMax vision MCP tool. Use when: user shares an image file path or URL (any message containin2.7Kskills.sh installs
6agricidaniel avatarblog-cannibalizationagricidaniel/claude-blogDetect keyword cannibalization across blog posts by extracting primary keywords from titles and headings, clustering semantically similar targets, and flagging 2.7Kskills.sh installs