Polishes changed code with simplification and risk-profiled review. Useful after implementation to clean up and verify changes.
Ships in paulrberg-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Resolve scope once. Make only high-confidence simplifications. Fix defects supported by evidence according to their risk. Verify the final state.
--simplify: simplify only.--review: review and fix only.--with-profile <name> / --skip-profile <name>: add or suppress review profiles. Skip wins.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.Preserve public contracts, inputs, outputs, side effects, error behavior, performance-sensitive characteristics, telemetry, and operational guards. Apply only changes with a concrete comprehension or defect-risk benefit:
Do not split by line count, perform architecture cleanup, convert sync/async APIs, add speculative configurability, or replace readable duplication with a one-use abstraction. A no-op is a valid result.
Judge the diff against the user's request. Prioritize CRITICAL → HIGH → MEDIUM → LOW:
Every finding must cite a verified location, triggering input/state, failure mode, blast radius, and evidence in the changed code. Merge duplicates and apply the smallest defensible fix. Resolve ambiguous intent from the request and repository first. State routine assumptions. Ask only when the answer changes behavior or scope. While that item waits, continue independent in-scope fixes.
Select every applicable profile and read it once. Read all selected profiles together in one parallel turn:
| Surface | Profile |
|---|---|
| auth, secrets, crypto, external input/network, unsafe parsing | security |
| env, config, timeouts, retries, pools, limits | configuration |
| Go behavior, concurrency, context, errors | go |
| Rust, Cargo/workspaces, async/concurrency, unsafe/FFI | rust |
| Swift, iOS/macOS, SwiftUI/UIKit/AppKit, SwiftPM/Xcode targets | swift |
| Kotlin, Android, coroutines/Flow, Compose, Gradle/manifest | kotlin |
| TypeScript types, modules, packages, async behavior | typescript |
| Python services, scripts, async, packaging, data IO | python |
| shell, CI, deploy, installers, quoting | shell |
| CSV/JSON/YAML/binary, schemas, migrations, generated data | data-formats |
| human-facing numbers, money, percentages, rates, units | number-formatting |
| naming and intent clarity | naming unless skipped |
Profiles live at references/profiles/<name>.md. Missing selected profiles are a stop condition.
Run the narrowest formatter/lint, targeted tests, typecheck, and invariant checks that prove the final touched behavior. Broaden only for shared contracts. Name skipped checks and why.
Summarize scope with the file count and smallest useful repository-relative roots, globs, ranges, or user-supplied targets. Do not enumerate every file merely to prove scope. Name individual paths only for a small explicit scope or to clarify exceptions and findings.
Findings include severity, location, impact, evidence, fix, and confidence. A residual risk states the assumption, consequence if wrong, and how to check it.
Under Issues and caveats, group verified fixes with evidence as Resolved, and remaining problems, limitations, or
unverified assumptions as Open, with their impact and next step. Omit empty groups. Report each item once. Put neutral
context and agreed decisions under changes or scope.
Reserve blocker for something preventing required work and risk for a specific potential adverse outcome. A
workaround leaves an item open when the underlying issue still affects the result. Completion requires fixed scope,
traceable edits/findings, and validation evidence.
Lead a successful report with ### ✨ Code polish — ✅ complete, then summarize scope, meaningful changes, and
verification. For small results, use short prose. Add tables or sections only when they clarify multiple changes or
findings. Honor the user's requested format.
When review ran and found no defects, state ✅ No verified review findings. If a stop condition below prevents
completion, lead with ### ✨ Code polish — ⛔ blocked and report the evidence and required decision. Keep severity
tokens, profile IDs, commands, locations, reproduction inputs, and security evidence exact and undecorated.
Stop when behavior parity or required high-risk validation cannot be established, or a fix requires an unrequested public-contract change or larger redesign.
agents/openai.yaml (opens in a new tab)references/profiles/configuration.md (opens in a new tab)references/profiles/data-formats.md (opens in a new tab)references/profiles/go.md (opens in a new tab)references/profiles/kotlin.md (opens in a new tab)references/profiles/naming.md (opens in a new tab)references/profiles/number-formatting.md (opens in a new tab)references/profiles/python.md (opens in a new tab)references/profiles/rust.md (opens in a new tab)references/profiles/security.md (opens in a new tab)references/profiles/shell.md (opens in a new tab)references/profiles/swift.md (opens in a new tab)references/profiles/typescript.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-review, refactoring, simplification, post-implementation
/paulrberg-agent-skills:code-polish [paths] [--simplify] [--review] [--with-profile <name>] [--skip-profile <name>]from paulrberg-agent-skills
paulrberg-agent-skills@cascade-code-general-misc-1 is listed by joshuarweaver/cascade-code-general-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin paulrberg-agent-skills45 skills in this plugin
/agents-brainMaintain README.md, AGENTS.md/CLAUDE.md, skills, and repo context. Create, scaffold, or initialize AGENTS.md files and project-local agent skills. Use task evidence to delete obsolete skills, merge overlapping skills, and capture recurring workflows./agents-docsUse for current official documentation about Codex, Codex CLI, or Claude Code behavior, configuration, prompting, skills, permissions, tools, surfaces, capabilities, troubleshooting, hooks, app-server, or hook trust. Consult the relevant official source before answering./agents-introspectionUse local Codex/Claude Code transcripts to assess recurrence risk for agent behavior. Recommend durable fixes to AGENTS.md or skills from that evidence. Not for routine post-success skill-evolution or agent self-improvement reviews.Other plugins' skills for the same job