de-slop

Removes AI artifacts and noise from changed code files before pull requests.

2|3|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/carterdea/dots --skill de-slop-carterdea
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: de-slop
Source: https://github.com/carterdea/dots/tree/main/agents/skills/de-slop
Command: npx skills add https://github.com/carterdea/dots --skill de-slop-carterdea

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Removes AI artifacts and noise from code changes before a pull request.

Core Features & Use Cases

  • Delete pointless scratch markdown (NOTES/PLAN/IDEAS/TODO) unless it's real docs
  • Remove redundant comments, filler docstrings, and comments inconsistent with local style
  • Drop defensive checks or try/catch blocks abnormal for trusted code paths
  • Remove casts to any used only to bypass type issues
  • Flatten deeply nested code with early returns
  • Replace mock-heavy tests with real assertions where possible
  • Remove fake/uncited metrics
  • Fix patterns inconsistent with the file and surrounding codebase

Quick Start

Run a dry-run to list issues, then apply the selected edits to the codebase.

Frequently Asked Questions about de-slop

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

FAQPage Schema
How do I clean AI artifacts from code diffs before a pull request?

To clean AI artifacts from code diffs before a pull request, you can run a dry-run to list issues like scratch notes and filler comments, then apply the selected edits to remove the noise while maintaining code behavior.

What is AI noise in a code diff and how do I remove it?

AI noise in a code diff includes pointless scratch markdown, redundant comments, and defensive checks abnormal for trusted paths. You remove it by running a cleanup process that targets these artifacts and flattens deeply nested code with early returns.

Can code cleanup remove AI-generated scratch notes without deleting real docs?

Yes, code cleanup removes AI-generated scratch notes like NOTES, PLAN, and TODO files while explicitly protecting essential documentation like README.md, CONTRIBUTING.md, CHANGELOG.md, and docs/** unless you provide explicit confirmation to delete them.

What is the best way to prepare PRs generated by AI tools?

The best way to prepare PRs generated by AI tools is to use a diff cleanup flow that removes mock-heavy tests, fake metrics, and type-bypassing casts, favoring small, focused edits that enforce consistency with the surrounding codebase.

Does diff cleanup modify code behavior when removing AI artifacts?

Diff cleanup maintains code behavior when removing AI artifacts unless actual fixes are required. It focuses on deleting pointless scratch markdown and inconsistent comments, favoring small, focused edits rather than altering functional logic.