Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

ai-slop-cleanerai 污水清洁剂

Agent Skill

ai-slop-cleaner 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,820

周安装

195

GitHub Stars

32,020

下载量

1,513
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ai-slop-cleaner(ai 污水清洁剂)
来源仓库:https://github.com/yeachan-heo/oh-my-claudecode
仓库路径:skills/ai-slop-cleaner
安装命令:
npx skills add https://github.com/yeachan-heo/oh-my-claudecode --skill ai-slop-cleaner
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yeachan-heo/oh-my-claudecode --skill ai-slop-cleaner

简介

ai-slop-cleaner 用于清理 AI 生成的冗余代码和重复逻辑,提升代码质量。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中进行代码重构和去噪处理。
  • 通过结构化流程识别并移除弱测试、过度抽象或边界泄漏的代码段。
  • 安装方式为 GitHub 仓库,需通过 npx 命令添加并使用。
  • 建议在使用前确认本地环境是否支持命令执行和文件读写权限。

SKILL.md

AI Slop Cleaner

Use this skill to clean AI-generated code slop without drifting scope or changing intended behavior. In OMC, this is the bounded cleanup workflow for code that works but feels bloated, repetitive, weakly tested, or over-abstracted.

When to Use

Use this skill when:

  • the user explicitly says deslop, anti-slop, or AI slop
  • the request is to clean up or refactor code that feels noisy, repetitive, or overly abstract
  • follow-up implementation left duplicate logic, dead code, wrapper layers, boundary leaks, or weak regression coverage
  • the user wants a reviewer-only anti-slop pass via --review
  • the goal is simplification and cleanup, not new feature delivery

When Not to Use

Do not use this skill when:

  • the task is mainly a new feature build or product change
  • the user wants a broad redesign instead of an incremental cleanup pass
  • the request is a generic refactor with no simplification or anti-slop intent
  • behavior is too unclear to protect with tests or a concrete verification plan

OMC Execution Posture

  • Preserve behavior unless the user explicitly asks for behavior changes.
  • Lock behavior with focused regression tests first whenever practical.
  • Write a cleanup plan before editing code.
  • Prefer deletion over addition.
  • Reuse existing utilities and patterns before introducing new ones.
  • Avoid new dependencies unless the user explicitly requests them.
  • Keep diffs small, reversible, and smell-focused.
  • Stay concise and evidence-dense: inspect, edit, verify, and report.
  • Treat new user instructions as local scope updates without dropping earlier non-conflicting constraints.

Scoped File-List Usage

This skill can be bounded to an explicit file list or changed-file scope when the caller already knows the safe cleanup surface.

  • Good fit: oh-my-claudecode:ai-slop-cleaner skills/ralph/SKILL.md skills/ai-slop-cleaner/SKILL.md
  • Good fit: a Ralph session handing off only the files changed in that session
  • Preserve the same regression-safe workflow even when the scope is a short file list
  • Do not silently expand a changed-file scope into broader cleanup work unless the user explicitly asks for it

Ralph Integration

Ralph can invoke this skill as a bounded post-review cleanup pass.

  • In that workflow, the cleaner runs in standard mode (not --review)
  • The cleanup scope is the Ralph session's changed files only
  • After the cleanup pass, Ralph re-runs regression verification before completion
  • --review remains the reviewer-only follow-up mode, not the default Ralph integration path

Review Mode (--review)

--review is a reviewer-only pass after cleanup work is drafted. It exists to preserve explicit writer/reviewer separation for anti-slop work.

  • Writer pass: make the cleanup changes with behavior locked by tests.
  • Reviewer pass: inspect the cleanup plan, changed files, and verification evidence.
  • The same pass must not both write and self-approve high-impact cleanup without a separate review step.

In review mode:

  1. Do not start by editing files.
  2. Review the cleanup plan, changed files, and regression coverage.
  3. Check specifically for:

- leftover dead code or unused exports - duplicate logic that should have been consolidated - needless wrappers or abstractions that still blur boundaries - missing tests or weak verification for preserved behavior - cleanup that appears to have changed behavior without intent

  1. Produce a reviewer verdict with required follow-ups.
  2. Hand needed changes back to a separate writer pass instead of fixing and approving in one step.

Workflow

  1. Protect current behavior first

- Identify what must stay the same. - Add or run the narrowest regression tests needed before editing. - If tests cannot come first, record the verification plan explicitly before touching code.

  1. Write a cleanup plan before code

- Bound the pass to the requested files or feature area. - List the concrete smells to remove. - Order the work from safest deletion to riskier consolidation.

  1. Classify the slop before editing

- Duplication — repeated logic, copy-paste branches, redundant helpers - Dead code — unused code, unreachable branches, stale flags, debug leftovers - Needless abstraction — pass-through wrappers, speculative indirection, single-use helper layers - Boundary violations — hidden coupling, misplaced responsibilities, wrong-layer imports or side effects - Missing tests — behavior not locked, weak regression coverage, edge-case gaps

  1. Run one smell-focused pass at a time

- Pass 1: Dead code deletion - Pass 2: Duplicate removal - Pass 3: Naming and error-handling cleanup - Pass 4: Test reinforcement - Re-run targeted verification after each pass. - Do not bundle unrelated refactors into the same edit set.

  1. Run the quality gates

- Keep regression tests green. - Run the relevant lint, typecheck, and unit/integration tests for the touched area. - Run existing static or security checks when available. - If a gate fails, fix the issue or back out the risky cleanup instead of forcing it through.

  1. Close with an evidence-dense report Always report:

- Changed files - Simplifications - Behavior lock / verification run - Remaining risks

Usage

  • /oh-my-claudecode:ai-slop-cleaner <target>
  • /oh-my-claudecode:ai-slop-cleaner <target> --review
  • /oh-my-claudecode:ai-slop-cleaner <file-a> <file-b> <file-c>
  • From Ralph: run the cleaner on the Ralph session's changed files only, then return to Ralph for post-cleanup regression verification

Good Fits

Good: deslop this module: too many wrappers, duplicate helpers, and dead code

Good: cleanup the AI slop in src/auth and tighten boundaries without changing behavior

Bad: refactor auth to support SSO

Bad: clean up formatting

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.7%
按下载量换算510

Claude

31.3%
按下载量换算474

Cursor

19.2%
按下载量换算290

Gemini CLI

10.35%
按下载量换算157

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills