Agent Skillszereight/gitlab-mcp › ai-slop-cleaner

ai-slop-cleaner

GitHub

用于清理AI生成的冗余、重复或过度抽象的代码,采用先删除后重构的工作流,确保行为不变且回归安全。适用于代码膨胀、死码及边界泄漏等场景,通过运行测试验证变更安全性。

.github/skills/ai-slop-cleaner/SKILL.md zereight/gitlab-mcp

Trigger Scenarios

deslop anti-slop AI slop cleanup slop clean up this code remove bloat

Install

npx skills add zereight/gitlab-mcp --skill ai-slop-cleaner -g -y
More Options

Non-standard path

npx skills add https://github.com/zereight/gitlab-mcp/tree/main/.github/skills/ai-slop-cleaner -g -y

Use without installing

npx skills use zereight/gitlab-mcp@ai-slop-cleaner

指定 Agent (Claude Code)

npx skills add zereight/gitlab-mcp --skill ai-slop-cleaner -a claude-code -g -y

安装 repo 全部 skill

npx skills add zereight/gitlab-mcp --all -g -y

预览 repo 内 skill

npx skills add zereight/gitlab-mcp --list

SKILL.md

Frontmatter
{
    "name": "ai-slop-cleaner",
    "description": "Clean AI-generated code slop with regression-safe workflow. Activate when user says: deslop, anti-slop, AI slop, cleanup slop, clean up this code, remove bloat.\n",
    "argument-hint": "[--review] [files or scope]"
}

AI Slop Cleaner

Clean AI-generated code slop without changing behavior. Deletion-first workflow with regression safety.

When to Use

  • Code that works but feels bloated, repetitive, or over-abstracted
  • Duplicate logic, dead code, wrapper layers, boundary leaks
  • --review for reviewer-only mode (no changes, just findings)

When NOT to Use

  • New feature build or product change
  • Broad redesign
  • Behavior is unclear and untestable

Principles

  • Preserve behavior unless explicitly asked for changes
  • Delete before refactoring — removal is safest
  • Scope-bounded: only clean what was specified
  • Regression-safe: verify tests pass after every change

Slop Signals

  • Unnecessary wrapper functions
  • Duplicated logic across files
  • Over-abstracted single-use helpers
  • Dead code / unreachable branches
  • Excessive comments restating obvious code
  • Premature abstractions (used only once)

Workflow

  1. Identify target files/scope
  2. Run existing tests (baseline)
  3. Apply deletions first (dead code, unused imports)
  4. Simplify remaining code (reduce nesting, merge duplicates)
  5. Re-run tests after each change
  6. Report what was cleaned and verification results

Version History

  • a8f5d4f Current 2026-07-25 10:03

Same Skill Collection

.github/skills/cancel/SKILL.md
.github/skills/ccg/SKILL.md
.github/skills/coding-standards/SKILL.md
.github/skills/deep-dive/SKILL.md
.github/skills/deep-interview/SKILL.md
.github/skills/omg-autopilot/SKILL.md
.github/skills/plan/SKILL.md
.github/skills/ralph/SKILL.md
.github/skills/ralplan/SKILL.md
.github/skills/remember/SKILL.md
.github/skills/review/SKILL.md
.github/skills/security-scan/SKILL.md
.github/skills/self-improve/SKILL.md
.github/skills/skill-stocktake/SKILL.md
.github/skills/status/SKILL.md
.github/skills/tdd/SKILL.md
.github/skills/team/SKILL.md
.github/skills/trace/SKILL.md
.github/skills/ultraqa/SKILL.md
.github/skills/ultrawork/SKILL.md
.github/skills/verify/SKILL.md
skills/gitlab-mcp/SKILL.md

Metadata

Files
0
Version
dc58dc0
Hash
430910f1
Indexed
2026-07-25 10:03

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 01:28
浙ICP备14020137号-1 $mapa de visitantes$