deslop
Remove AI-generated code slop and clean up code style
Install
npx skills add https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/deslop
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install michael-denyer-pstack-claude@llmmart
git clone https://github.com/michael-denyer/pstack-claude.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole michael-denyer/pstack-claude collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Remove AI code slop
Check 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.
Focus Areas
- Extra comments that are unnecessary or inconsistent with local style
- Defensive checks or try/catch blocks that are abnormal for trusted code paths
- Casts to
anyused only to bypass type issues - Deeply nested code that should be simplified with early returns
- Other patterns inconsistent with the file and surrounding codebase
Guardrails
- Keep behavior unchanged unless fixing a clear bug.
- Prefer minimal, focused edits over broad rewrites.
- After editing, rerun the checks that verified the change (tests, type check, and the driver skill for UI work) and report their results.
- Revert any edit whose check fails.
- Keep the final summary concise (1-3 sentences).
Files (pstack-claude)
-
SKILL.md 1 KB
--- name: deslop description: Remove AI-generated code slop and clean up code style --- # Remove AI code slop Check 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. ## Focus Areas - Extra comments that are unnecessary or inconsistent with local style - Defensive checks or try/catch blocks that are abnormal for trusted code paths - Casts to `any` used only to bypass type issues - Deeply nested code that should be simplified with early returns - Other patterns inconsistent with the file and surrounding codebase ## Guardrails - Keep behavior unchanged unless fixing a clear bug. - Prefer minimal, focused edits over broad rewrites. - After editing, rerun the checks that verified the change (tests, type check, and the driver skill for UI work) and report their results. - Revert any edit whose check fails. - Keep the final summary concise (1-3 sentences).
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.