From next-task
Removes AI-generated code artifacts like debug logs, placeholders, TODOs, and dead code via three-phase certainty-graded cleanup. Use after AI sessions or before PRs on JS/TS, Python, Rust files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/next-task:deslopThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Three-phase pipeline: deterministic first, heuristic second, AI last. Never removes without certainty grade.
Three-phase pipeline: deterministic first, heuristic second, AI last. Never removes without certainty grade.
--dry-rungit commit -m "chore: deslop AI artifacts" # output: commit_shaconsole\.log\( → JS/TS debug output
print\( → Python debug (non-test files)
println!\( → Rust debug (non-test files)
debugger; → JS/TS breakpoint
\bpdb\.set_trace\(\) → Python debugger
# TODO(?!.*#[0-9]+) → TODO without issue reference
# FIXME(?!.*#[0-9]+) → FIXME without issue reference
# HACK → Hack marker
# XXX → Unresolved marker
"placeholder" → Literal placeholder string
"example\.com" → Placeholder domain in non-config files
\.unwrap\(\) → Rust panic-on-none (outside #[cfg(test)])
except:\s*pass → Python silent exception swallow
Respect file-level # deslop:ignore annotation to skip a file.
Skip tests/, *_test.*, *.spec.*, *_spec.*.
// or # lines that parse as valid code# increment i by 1 before i += 1import X where X never appears in file bodyreturn None / pass / throw new Error("not implemented")/deslop # Run on git diff (staged + unstaged)
/deslop --path <path> # Specific file or directory
/deslop --dry-run # Show findings only, no changes
/deslop --phase <1|2|3> # Run specific phase only
/deslop --skip-low # Skip Phase 3 (faster)
deslop report: src/
━━━━━━━━━━━━━━━
[HIGH] removed 4 artifacts automatically
✓ console.log() at src/app.ts:12
✓ TODO (no issue) at src/utils.ts:88
✓ debugger; at src/debug.ts:3
✓ .unwrap() at src/main.rs:45
[MEDIUM] 2 findings — awaiting review
⚠ commented-out block at src/parser.ts:55-62
⚠ dead import `useState` at src/foo.tsx:2
[LOW] 1 finding — human gate
? scaffold fn `processPayment()` returns None — was this implemented?
Runs automatically at IMPLEMENT phase of /next-task.
Can be invoked standalone pre-PR.
npx claudepluginhub elasticdotventures/_b00t_ --plugin next-taskDetects and auto-fixes AI slop in code (debug leftovers, placeholders, hardcoded credentials) using a three-phase certainty scan, safely applying only deterministic HIGH fixes and verifying with tests.
Identifies and interactively removes AI-generated slop like unnecessary comments and verbosity from staged or recent git changes.
Detects and removes AI-generated code slop including unnecessary comments, over-engineering, verbose error handling, premature abstractions, and documentation bloat. Cleans code to senior engineer standards.