From dev-toolkit
Polishes code changes before PR by recovering branch context, checking against codebase guidelines for changed files, removing AI slop like extra comments and casts, and final review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-toolkit:polishingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A comprehensive workflow for finalizing code changes before creating a PR. This skill ensures code quality, consistency with codebase patterns, and removes common AI-generated artifacts.
A comprehensive workflow for finalizing code changes before creating a PR. This skill ensures code quality, consistency with codebase patterns, and removes common AI-generated artifacts.
Use the Skill tool to invoke recover-branch-context to understand what the branch is trying to accomplish.
This provides essential context about:
Scan the .agents/skills/ directory for skills that might have guidelines relevant to the changed files.
Match skills to the technologies used in the changed files. For example, if React components were changed, look for a React patterns skill; if an ORM was used, look for a relevant ORM skill.
For each applicable skill:
Check the diff against the default branch, and remove all AI generated slop introduced in this branch.
This includes:
any to get around type issuesDo a final review of the changes — read through the diff and flag anything that looks off.
Provide a summary of:
npx claudepluginhub casper-studios/casper-marketplace --plugin dev-toolkitReviews local changes, PRs/MRs, or branch diffs against project coding guidelines using 5-7 parallel review agents (bug detection, security/logic, guideline compliance, code simplification, test coverage, contract quality). High-signal findings only.
Removes AI-generated code slop from current branch by checking git diff against main, targeting extra comments, abnormal defensive checks, try/catch blocks, and style inconsistencies. Summarizes changes.
Removes AI-generated code slop, unnecessary comments, and over-engineering from the current branch diff. Use before committing or when code feels over-engineered.