desloplisted
Install: claude install-skill emaballarin/ccplugins
# /ws:deslop — clean the diff before review
Clean only the change under review. Preserve behaviour absolutely.
## 1. Scope
Take the first that applies, and state it in one line before starting:
1. What the operator named — a commit range, a branch, a set of files.
2. On a branch other than the default (`origin/HEAD`, else `main`): everything
since the merge base, `git diff $(git merge-base HEAD <default>)`.
3. Otherwise the uncommitted work: `git diff HEAD`.
Add untracked files (`git ls-files --others --exclude-standard`) to cases 2
and 3 as wholly new hunks — `git diff` never shows them. Changed hunks are the
only targets. The lines around a hunk are the standard it is judged against; the
pass never runs repo-wide.
## 2. Checklist
Inspect every changed hunk for:
1. **Comment slop** — comments a human maintainer would not write: narration of
the next line, syntax explanation, prose that merely restates the code,
history in comments ("now uses X instead of Y"). Docstrings and status
comments on unfinished work are outside this item; the project's
documentation conventions govern them.
2. **Defensive slop** — checks, `try`/`except` or `try`/`catch` blocks, `None`
guards, `getattr`/`hasattr`/`.get(key, default)` on attributes and keys that
always exist — abnormal for the surrounding module, or protecting only
imagined states. Validation at a system boundary (user input, I/O, external
APIs) and guards against silent data corruption are not slop.