Skills deslop
Remove AI-style code slop from a branch by reviewing diffs, deleting inconsistent defensive noise, and preserving behavior and local style.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/brennerspear/deslop" ~/.claude/skills/openclaw-skills-deslop && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/brennerspear/deslop" ~/.openclaw/skills/openclaw-skills-deslop && rm -rf "$T"
manifest:
skills/brennerspear/deslop/SKILL.mdsource content
When to use this skill
Use when asked to:
- "remove AI slop"
- "clean up generated code style"
- "review branch diff for weird comments/defensive checks/casts"
Workflow
- Set comparison base (default
) and inspectmain
.git diff <base>...HEAD - Build a candidate list using
over added lines (comments, catches, casts, lint ignores, placeholders, debug leftovers).rg - Review each candidate in full file context and compare with nearby local patterns.
- Remove only inconsistent slop; keep behavior and domain-valid guards.
- Re-run project checks (
,bun check
) and fix regressions.bun typecheck - Report exact files changed and what slop was removed vs intentionally kept.
Slop checklist
Read and apply: references/slop-heuristics.md
Guardrails
- Do not remove protections at trust boundaries (user input, auth, network, db, file I/O).
- Do not replace real typing with weaker typing.
- Prefer minimal edits over broad rewrites.
- Keep project conventions (hooks/query style, component patterns, naming).