deslop
Agent skill frommichael-denyer/pstack-claude
Remove AI-generated code slop and clean up code style
How to install deslop
install deslop
# install the pstack-claude pack with the skills CLI
npx skills add michael-denyer/pstack-claude# or add only this skill to Claude Code: copy the folder
plugins/pstack/skills/deslop/
# into
~/.claude/skills/deslop/ (all projects)
.claude/skills/deslop/ (one project)
1# Remove AI code slop23Check the diff against the branch's base and remove AI-generated slop introduced in the branch. The base is the PR's base branch, else the branch this one was cut from, else the repository's default branch. Include uncommitted changes.45## Focus Areas67- Extra comments that are unnecessary or inconsistent with local style8- Defensive checks or try/catch blocks that are abnormal for trusted code paths9- Casts to `any` used only to bypass type issues10- Deeply nested code that should be simplified with early returns11- Other patterns inconsistent with the file and surrounding codebase1213## Guardrails1415- Keep behavior unchanged unless fixing a clear bug.16- Prefer minimal, focused edits over broad rewrites.17- After editing, rerun the checks that verified the change (tests, type check, and the driver skill for UI work) and report their results.18- Revert any edit whose check fails.19- Keep the final summary concise (1-3 sentences).
Excerpt shown under the repository's MIT license.
