skills/code-polish/SKILL.md
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.
npx skillsauth add paulrberg/agent-skills code-polishInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Combined simplification and review pipeline. This skill orchestrates two sub-skills in sequence:
code-simplify — simplify for readability and maintainabilitycode-review --fix — review for correctness, security, and quality, auto-applying all fixesOptimize for one scope resolution, one user-facing report, and no redundant simplify verification.
git rev-parse --git-dir. If this fails, stop and tell the user to run from a git repository.Resolved scope fenced block with one repo-relative path per line, scope is exactly those targets.git diff --name-only --diff-filter=ACMRgit ls-files --others --exclude-standardResolved scope fenced block with one repo-relative path per line. Reuse that exact block for both sub-skills instead of asking them to rediscover scope.Resolved scope block as authoritative for all downstream work.code-simplifyInvoke the code-simplify skill with:
Resolved scope block--no-verify--no-reportTell code-simplify not to broaden or rediscover scope.
code-review --fixInvoke the code-review skill with:
Resolved scope block--fixIf the user explicitly asks for a speed-first pass over maintainability coverage, you may also append --skip-profile naming. Do not skip the naming profile by default.
code-review's post-fix verification as the final verification summary when it already covers the final touched scope.Combine the final state into one summary:
code-simplify, derived from the actual diff when needed because --no-report was used.code-review.development
This skill should be used when the user asks to "debrief", "debrief this task", "debrief the session", "save findings", "save analysis", "save this as a report", "create an HTML report from the transcript", or wants to persist the current task's findings as a self-contained interactive HTML playground at `./.ai/reports/<slug>/index.html`. Flag: --md emits a plain Markdown report at `./.ai/reports/<slug>/index.md` and skips the playground dependency.
documentation
This skill should be used when the user asks to create or update a GitHub PR, file or update an issue, post a comment, or start a discussion. Trigger phrases include "create PR", "open PR", "file an issue", "update issue", "yeet a PR/issue/discussion", "comment on an issue".
development
This skill should be used when the user asks to resolve an EVM chain name or chain ID; find chain metadata such as a default public RPC, native currency symbol, or block explorer URL; determine whether a chain is supported by RouteMesh; or read on-chain account data for any EVM chain — "check ETH balance", "query ERC-20 balance", "get wallet balance", "check token holdings", "fetch NFT transfers", "ERC-721 or ERC-1155 transfer history", "transaction history", "find first funding transaction", "trace fund origin", "who funded this address", "query Etherscan", "query Blockscout", or "look up a chain on Chainscout". It routes each data query through Etherscan API V2 (preferred) or the Blockscout/Chainscout APIs (fallback for chains Etherscan doesn't serve), with direct JSON-RPC as a last resort. Also use it for chain resolution before fetching data from or interacting with an EVM chain.
development
This skill should be used when the user asks to commit changes, craft a commit message, or run a commit workflow. Creates atomic git commits with conventional-commit formatting and optional deep analysis or push. Flags: --all, --deep, --close, --push.