一键导入
deslop
Identify and remove AI-generated code patterns (slop). Use when asked to clean up AI-generated code, remove unnecessary comments, or deslop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Identify and remove AI-generated code patterns (slop). Use when asked to clean up AI-generated code, remove unnecessary comments, or deslop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Setup guide for essential MCP servers. Use when configuring MCP servers or when user asks about search, SQLite, or MCP management.
Query Claude Code session analytics from ccrecall database. Use when user asks about token usage, session history, or wants to analyze their Claude Code usage patterns.
High-leverage prompts that challenge Claude's defaults. Use for "grill me", "prove it works", "scrap this", "what would 10x engineer do", "find ways this fails".
Maintain CLAUDE.md files effectively. Use when adding lessons learned, updating conventions, or restructuring project instructions.
Multi-agent orchestration patterns for Claude Code team mode. Use when coordinating teammates, decomposing complex tasks, or managing shared task lists.
Enhanced Research-Plan-Implement workflow with structured phase gates. Use when tackling complex tasks that benefit from a phased approach with user checkpoints.
| name | deslop |
| description | Identify and remove AI-generated code patterns (slop). Use when asked to clean up AI-generated code, remove unnecessary comments, or deslop. |
Identify and remove AI-generated verbosity patterns from code.
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?
Identify which files to scan:
git diff --cached)git diff HEAD~N)Only scan code files. Skip markdown, docs, and config files.
Read each file in scope. Apply the 10 detection patterns from slop-patterns.md.
For each match, record:
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 |
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]
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