Deslop

Remove low-quality AI-generated code patterns

majiayu000 db24f76 2 files · 1.8 KB Updated 567 repo stars

File contents

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

majiayu000/claude-skill-registry-data/tree/main/quality/deslop-erp-core-dev-eagles-claude-config commit db24f7648b

Frequently asked questions

npx skillmds add majiayu000/deslop-4