Skill Press

No. 353 · deslop

Remove AI code slop

A field guide from Cursor

Cursor

When to use it

Remove AI-generated code slop and clean up code style

Rank
No. 353 of 971
Installs
Not listed yet
Built for
Cursor
Runs in
Cursor
Length
103 words · 1 min
Files
2
License
MIT

Get this skill

Download the skill folder (.zip, 1 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "deslop" Agent Skill by Cursor, from https://github.com/cursor/plugins.

1. Fetch the whole folder cursor-team-kit/skills/deslop — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/cursor/plugins.git 50b3a3234bf2e0293849a48784d72030948e44ee
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "deslop":
   - Claude Code: ~/.claude/skills/deslop/ (all projects) or .claude/skills/deslop/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that deslop/SKILL.md exists and its frontmatter says name: deslop.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/cursor/plugins/tree/50b3a3234bf2e0293849a48784d72030948e44ee/cursor-team-kit/skills/deslop --skill deslop

Contents

  1. Focus Areas
  2. Guardrails

The skill, in full

Check the diff against main and remove AI-generated slop introduced in the branch.

Focus Areas

  • Extra comments that are unnecessary or inconsistent with local style
  • Defensive checks or try/catch blocks that are abnormal for trusted code paths
  • Casts to any used only to bypass type issues
  • Deeply nested code that should be simplified with early returns
  • Other patterns inconsistent with the file and surrounding codebase

Guardrails

  • Keep behavior unchanged unless fixing a clear bug.
  • Prefer minimal, focused edits over broad rewrites.
  • Keep the final summary concise (1-3 sentences).

More in Software & Web Development

All Software & Web Development skills →

More from Cursor

From cursor/plugins at 50b3a32, MIT. Install counts from skills.sh.