deslop

Remove AI-generated code slop from TypeScript and JavaScript projects.

3|1|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/cogine-ai/cogine-dev-skillset --skill deslop-cogine-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deslop
Source: https://github.com/cogine-ai/cogine-dev-skillset/tree/main/skills/deslop
Command: npx skills add https://github.com/cogine-ai/cogine-dev-skillset --skill deslop-cogine-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI-generated code slop introduces noisy diffs and inconsistent style, slowing reviews and increasing maintenance burden.

Core Features & Use Cases

  • Identify and remove unnecessary comments and defensive checks that don't align with the project style.
  • Eliminate casts to any used only to bypass type issues and simplify deeply nested code with early returns.
  • Apply focused, minimal changes that preserve behavior across changesets, especially during PR reviews and merges.

Quick Start

Run a targeted cleanup pass on touched files to remove AI-generated slop while preserving behavior.

Frequently Asked Questions about deslop

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

FAQPage Schema
How do I remove AI-generated code slop from a TypeScript project?

To remove AI-generated code slop from a TypeScript project, apply a targeted cleanup pass to touched files that prunes noisy diffs, unnecessary comments, and defensive checks while preserving behavior.

What is AI code slop and how does it affect pull request reviews?

AI code slop consists of unnecessary comments, bypassing casts to any, and inconsistent styles that introduce noisy diffs, slowing pull request reviews and increasing maintenance burden in JavaScript codebases.

How do I clean up unnecessary defensive checks without breaking behavior?

Clean up unnecessary defensive checks by applying focused, minimal edits that eliminate inconsistent code while enforcing non-breaking changes to preserve behavior across the changeset.

Can I simplify deeply nested JavaScript code during a refactor?

Yes, you can simplify deeply nested JavaScript code during a refactor by eliminating unnecessary casts to any and applying early returns to prune noise and maintain consistency.

What is the best way to clean up noisy diffs in JavaScript codebases?

The best way to clean up noisy diffs in JavaScript codebases is to run a focused cleanup pass during merges or reviews that removes AI-generated slop and highlights focus areas for safe cleanup.

When should I avoid using automated code cleanup on my changeset?

You should avoid automated code cleanup when a changeset requires breaking modifications, as this process enforces minimal, non-breaking edits designed strictly to preserve existing behavior.