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.
npx claudepluginhub elasticdotventures/_b00t_ --plugin next-taskThis skill uses the workspace's default tool permissions.
Three-phase pipeline: deterministic first, heuristic second, AI last. Never removes without certainty grade.
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 like unnecessary comments, over-engineering, verbose error handling, premature abstractions, and filler patterns. Cleans to senior engineer standards while preserving functionality.
Cleans AI-generated code by systematically removing LLM smells like dead code, over-commenting, verbose naming while preserving exact behavior via tests. Use after generation or on 'clean up', 'deslop' requests.
Share bugs, ideas, or general feedback.
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.