# Deslop

> Clean AI-generated code noise. Use when reviewing diffs, removing unnecessary comments, tightening verbose code, or desloping recent changes.

- Skill: `spences10/deslop-2` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add spences10/deslop-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/spences10/deslop-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: spences10 (https://skillmd.com/u/spences10)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/spences10/deslop-2

---


# Deslop

Remove AI-generated verbosity and low-value code noise from recent changes.

## Scope

Default to the smallest relevant diff:

```bash
git diff --cached --name-only
git diff HEAD~1 --name-only
```

If scope is unclear, ask whether to review staged changes, the last commit, or specific files. Skip markdown/docs unless the user asks.

## Fast Workflow

1. **Scan the diff** for patterns from [slop-patterns.md](references/slop-patterns.md).
2. **Auto-remove obvious noise** when it is mechanically safe: redundant comments, filler summaries, dead wrappers, duplicate branches.
3. **Ask before risky edits**: behavior changes, public API changes, validation removal, or unclear comments.
4. **Verify** with a targeted test/typecheck/lint when code changed.
5. **Report briefly**: files touched, noise removed, risky items left alone.

## What to Remove

- Comments that restate code
- Filler docstrings and section banners
- Over-explained temporary variables
- Defensive branches that cannot occur
- Boilerplate summaries added by generated code

## What to Keep

- Comments explaining non-obvious business logic
- Legal/license comments
- Public API documentation
- Compatibility notes
- Safety checks with real failure modes

## References

- [slop-patterns.md](references/slop-patterns.md) - AI slop detection patterns
- [review-workflow.md](references/review-workflow.md) - Interactive review for risky removals

