deslop

Remove AI-generated comments, defensive constructs, and disallowed casts from the current directory.

11|2|Updated May 29, 2025
One-click install
npx skills add https://github.com/yulonglin/dotfiles --skill deslop-yulonglin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/yulonglin/dotfiles/tree/main/claude/local-marketplace/plugins/code-toolkit/skills/deslop
Command: npx skills add https://github.com/yulonglin/dotfiles --skill deslop-yulonglin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remove AI-generated code slop from the current working directory, helping teams keep clean, readable code.

Core Features & Use Cases

  • Detect and remove extraneous AI-generated comments and inconsistent code blocks.
  • Eliminate defensive checks and casts to any that degrade code quality.
  • Produce a concise summary of changes for auditability.

Quick Start

Run the deslop operation on the current directory to remove AI-generated slop and generate a brief summary of changes.

Frequently Asked Questions about deslop

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

FAQPage Schema
How do I automatically remove AI-generated code comments and defensive checks from my repository?

You can automatically remove AI-generated code comments and defensive checks by running a deslop operation on your working directory, which cleans extraneous constructs in-place and returns a summary of changes for auditability.

What is AI code slop and how does it affect source code quality?

AI code slop refers to extraneous AI-generated comments, unnecessary defensive constructs, and disallowed casts that degrade code quality. Removing this slop helps teams keep clean, readable source code in their projects.

How do I clean up inconsistent AI-generated code blocks in my current project?

To clean up inconsistent AI-generated code blocks, apply the deslop process to your current project or repository scope, which detects and eliminates extraneous blocks while confining modifications to the specified path.

Does deslop support in-place modifications for code cleaning without breaking my repository?

Yes, deslop supports in-place modifications for code cleaning within your repository scope. It confines changes to the specified path and produces a concise summary of changes to ensure auditability without breaking your project.

Can I audit the changes after removing AI code slop from my working directory?

Yes, you can audit the changes after removing AI code slop because the process produces a brief summary of all modifications made, ensuring that the removal of extraneous comments and casts remains fully auditable.

When should I avoid using automated tools to remove AI-generated code slop?

You should avoid using automated removal for AI-generated code slop if your project requires retaining specific defensive constructs or if you need manual review before applying in-place modifications to your source code.