deslop

Scan Python source and configuration files to detect AI-generated code bloat across six weighted categories.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/zaffnet/deslop.it --skill deslop-zaffnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/zaffnet/deslop.it/tree/main/skills/deslop
Command: npx skills add https://github.com/zaffnet/deslop.it --skill deslop-zaffnet

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AI-generated Python code frequently contains unnecessary bloat ("slop") including over-defensive checks, unused code, verbose patterns, and redundant documentation that increases technical debt and reduces code maintainability. This Skill automates the detection and cleanup of this slop across entire Python codebases.

Core Features & Use Cases

  • 6-Category Slop Detection: Identifies over-defensive code, premature abstractions, dead weight, verbose patterns, structural bloat, and documentation/logging noise with weighted scoring to prioritize high-impact issues.
  • Systematic Verification: Uses caller count checks, data tracing, and call chain analysis to eliminate false positives before flagging findings.
  • Automated Fixes: Offers to apply idiomatic, behavior-preserving fixes to reduce code size and improve readability.
  • Use Case: For a Python project with messy AI-generated utility modules, run the skill to identify and remove unreachable guards, unused parameters, and unnecessary delegation chains to cut code bloat by 20% or more.

Quick Start

Use the deslop skill to scan your Python project directory for AI-generated code bloat and get a prioritized list of automated fix suggestions with a weighted slop density score.

Frequently Asked Questions about deslop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect and clean up AI-generated code bloat in a Python project?

To detect AI-generated code bloat in a Python project, scan your source files to identify over-defensive code, premature abstractions, and dead weight across six weighted categories. The scan calculates a slop density score and ranks findings by impact to guide cleanup.

What is AI slop in Python codebases?

AI slop in Python codebases refers to unnecessary bloat generated by AI, including over-defensive checks, unused code, verbose patterns, and redundant documentation. This bloat increases technical debt and reduces code maintainability.

How do I automatically refactor verbose Python patterns and unused parameters?

To automatically refactor verbose Python patterns and unused parameters, apply behavior-preserving fixes to reduce code size and improve readability. The process identifies unnecessary delegation chains and unreachable guards before offering idiomatic automated fixes.

Does AI slop detection use static analysis to eliminate false positives?

Yes, AI slop detection uses static analysis to eliminate false positives by performing systematic verification. It uses caller count checks, data tracing, and call chain analysis to ensure findings are accurate before flagging issues.

Can I use automated refactoring to reduce technical debt in large Python codebases?

Yes, you can use automated refactoring to reduce technical debt in Python codebases of any size. The process identifies structural bloat and documentation noise, generating a weighted slop density score to prioritize high-impact automated fixes.

What are the limitations of using static analysis for AI code cleanup?

A limitation of using static analysis for AI code cleanup is the potential for false positives when detecting dead weight and premature abstractions. Systematic verification via caller count checks and data tracing is required to validate findings before applying automated fixes.