Skip to content
Development
Skill

/deslop

Remove AI-generated code slop from code changes in the current branch

From plugin
claude-code
2164 skills4 commands

Claude Code

$ npx -y skills add fumiya-kume/claude-code --skill deslop --agent claude-code

SKILL.md

deslop.SKILL.md
name: deslop
description: "Remove AI-generated code slop from code changes in the current branch"
version: "1.0.1"
allowed-tools:
  - Read
  - Edit
  - Write
  - Bash
  - Grep
  - Glob
  - Task
context: fork
agent: General-purpose
model: sonnet

Remove AI code slop

Check the diff against the default branch and remove all AI-generated slop introduced in this branch.

Workflow

Step 1: Decide the base branch

Pick the most appropriate base ref in this order:

1. `origin/main` (if it exists) 2. `origin/master` (if it exists) 3. `main` (local) 4. `master` (local)

Use a base like `<base>` in the rest of the steps.

Step 2: Inspect the diff

  • View the file list:
  • `git diff --name-only <base>...HEAD`
  • View the full diff:
  • `git diff <base>...HEAD`

Step 3: Remove AI-generated slop

Edit the changed files to remove slop while preserving intended behavior.

This includes:

  • Extra comments that a human wouldn't add or is inconsistent with the rest of the file
  • Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
  • Unnecessary indirection/wrappers, over-abstraction, or noisy helper functions introduced without clear value
  • Any other style that is inconsistent with the file or project conventions

Guidelines:

  • Keep the change scope minimal: only touch what is necessary to remove slop.
  • Do not rewrite or reformat code unless required for the cleanup.
  • Prefer deleting unnecessary code over adding new abstractions.
  • If uncertain about intent, infer it from surrounding code and keep behavior compatible.

Step 4: Final report

Report at the end with only a **1-3 sentence** summary of what you changed.

Read more
@fumiya-kume
Ships withclaude-code

A collection of personal Claude Code utilities and custom slash commands.

Stars on GitHub

Momentum

stars in total
216
Star history of fumiya-kume/claude-code on GitHub, a chart by star-history.com

Other skills on claude-code.

decomposition

decomposition

This skill should be used when the user asks to "decompose", "break down task", "create detailed todos", "split into todos". Also…

dig

dig

This skill should be used when the user asks to "dig", "challenge assumptions", "stress test plan", "find risks in plan". Also…

fix-ci

fix-ci

This skill should be used when the user asks to "fix CI", "fix failed checks", "PR is red", "diagnose CI failure". Also triggers…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react10d252k
@facebook@facebookInstall Skill

Questions about deslop.

Which coding agents can use deslop?
deslop installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.