# Deslop

> Remove low-quality AI-generated code patterns

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

---


# Deslop -- Remove AI Slop

Detect and fix common low-quality AI-generated code patterns.

## Patterns Detected

1. **Unnecessary comments**: `// Get the user` before `GetUser()`
2. **Over-abstraction**: Single-use interfaces, unnecessary factories
3. **Verbose null checks**: Where null-conditional (`?.`) suffices
4. **Redundant try-catch**: Catching only to rethrow
5. **Magic strings**: Hardcoded values that should be constants
6. **Dead parameters**: Parameters that are never used
7. **Excessive logging**: Logging at every method entry/exit
8. **Copy-paste patterns**: Near-identical code blocks

## What To Do
1. Scan files for slop patterns using Grep
2. Generate report with file:line references
3. If --fix: Apply automated fixes where safe
4. If --report-only: Just output the report

## Arguments
- `--fix`: Auto-fix safe patterns
- `--report-only`: Report without changes
