From devops-skills
Identifies and interactively removes AI-generated slop like unnecessary comments and verbosity from staged or recent git changes.
npx claudepluginhub spences10/claude-code-toolkit --plugin devops-skillsThis skill uses the workspace's default tool permissions.
Identify and remove AI-generated verbosity patterns from code.
Detects and strips AI-generated slop from code: simplifies unnecessary complexity, removes rotten comments, checks design patterns. Runs on git changes or paths before PRs.
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.
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.
Share bugs, ideas, or general feedback.
Identify and remove AI-generated verbosity patterns from code.
Target recent or staged changes only, not the whole codebase:
# Check staged changes
git diff --cached --name-only
# Check recent commits (default: last commit)
git diff HEAD~1 --name-only
If the user doesn't specify scope, ask: staged changes or last N commits?
Identify which files to scan:
git diff --cached)git diff HEAD~N)Only scan code files. Skip markdown, docs, and config files.
Read each file in scope. Apply the 10 detection patterns from slop-patterns.md.
For each match, record:
Group by severity:
| Severity | Description | Examples |
|---|---|---|
| High | Pure noise, safe to remove | Obvious comments, filler summaries |
| Medium | Likely unnecessary, review | Over-engineered error handling, verbose docstrings |
| Low | Possibly intentional, confirm | Extra validation, type annotations |
Show each finding one at a time for user review. Follow the workflow in review-workflow.md.
Format:
## Finding 1/N — [pattern-type] (severity)
File: src/utils.ts:23-25
Current:
// This function adds two numbers together and returns the result
function add(a: number, b: number): number {
Suggested:
function add(a: number, b: number): number {
Remove? [y/n/skip-all-of-type]
Only apply changes the user explicitly approves. Never auto-fix.
After all findings reviewed, show summary:
## Deslop Summary
- Reviewed: 15 findings
- Removed: 10
- Skipped: 5
- Lines removed: 34