Agent skill
deslop
Remove low-quality AI-generated code patterns
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/deslop-erp-core-dev-eagles-claude-config
SKILL.md
Deslop -- Remove AI Slop
Detect and fix common low-quality AI-generated code patterns.
Patterns Detected
- Unnecessary comments:
// Get the userbeforeGetUser() - Over-abstraction: Single-use interfaces, unnecessary factories
- Verbose null checks: Where null-conditional (
?.) suffices - Redundant try-catch: Catching only to rethrow
- Magic strings: Hardcoded values that should be constants
- Dead parameters: Parameters that are never used
- Excessive logging: Logging at every method entry/exit
- Copy-paste patterns: Near-identical code blocks
What To Do
- Scan files for slop patterns using Grep
- Generate report with file:line references
- If --fix: Apply automated fixes where safe
- If --report-only: Just output the report
Arguments
--fix: Auto-fix safe patterns--report-only: Report without changes
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?