deslop
БесплатноБез исполняемых скриптовНе проверенIdentify and remove AI-generated code patterns (slop). Use when asked to clean up AI-generated code, remove unnecessary comments, or deslop.
от spences10★ 37 звёзд на GitHubОб этом скилле
Deslop
Identify and remove AI-generated verbosity patterns from code.
Trigger Patterns
- "/deslop"
- "clean up AI-generated code"
- "remove slop"
- "too much AI verbosity"
- "remove unnecessary comments"
What This Is NOT
- Not techdebt-finder — techdebt finds structural issues to refactor. Deslop finds AI verbosity to delete.
- Not simplify — simplify reviews code for reuse/quality. Deslop targets specific AI generation patterns.
Scope
Target recent or staged changes only, not the whole codebase:
# Check staged changes
git diff --cached --name-only
# Check recent commits (default: last commit)
git diff HEAD~1 --name-only
If the user doesn't specify scope, ask: staged changes or last N commits?
Workflow
1. Determine Scope
Identify which files to scan:
- Staged files (
git diff --cached) - Recent commits (
git diff HEAD~N) - Specific files if user provides them
Only scan code files. Skip markdown, docs, and config files.
2. Scan for Slop Patterns
Read each file in scope. Apply the 10 detection patterns from slop-patterns.md.
For each match, record:
- File and line number
- Pattern type
- The offending code
- Suggested removal/replacement
3. Classify Findings
Group by severity:
| Severity | Description | Examples |
|---|---|---|
| High | Pure noise, safe to remove | Obvious comments, filler summaries |
| Medium | Likely unnecessary, review | Over-engineered error handling, verbose docstrings |
| Low | Possibly intentional, confirm | Extra validation, type annotations |
4. Present Findings
Show each finding one at a time for user review. Follow the workflow in review-workflow.md.
Format:
## Finding 1/N — [pattern-type] (severity)
File: src/utils.ts:23-25
Current:
// This function adds two numbers together and returns the result
function add(a: number, b: number): number {
Suggested:
function add(a: number, b: number): number {
Remove? [y/n/skip-all-of-type]
5. Apply Approved Removals
Only apply changes the user explicitly approves. Never auto-fix.
After all findings reviewed, show summary:
## Deslop Summary
- Reviewed: 15 findings
- Removed: 10
- Skipped: 5
- Lines removed: 34
Anti-patterns
- Never auto-fix without user approval
- Never scan entire codebase unprompted
- Never remove comments that explain non-obvious logic
- Never touch markdown or documentation files
- Never remove license headers or legal comments
References
- slop-patterns.md - The 10 AI slop detection patterns
- review-workflow.md - Interactive review workflow
Установить deslop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл deslop?
Identify and remove AI-generated code patterns (slop). Use when asked to clean up AI-generated code, remove unnecessary comments, or deslop.
Как установить скилл deslop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл deslop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic