plugins/devops-skills/skills/deslop/SKILL.md
Identify and remove AI-generated code patterns (slop). Use when asked to clean up AI-generated code, remove unnecessary comments, or deslop.
npx skillsauth add spences10/claude-code-toolkit deslopInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
development
Design and create Claude Skills using progressive disclosure principles. Use when building new skills, planning skill architecture, or writing skill content.
testing
Verify sources before presenting findings. Use when asked to research links or documentation.
data-ai
Analyze session history for learnings and persist to skills. Solves "memory zero" - correct once, never again.
tools
Validate, test, and distribute Claude Code plugins and marketplaces. Use when developing plugins, debugging validation errors, or preparing for distribution.