remove-ai-slops

仓库创建 2025年12月3日最近提交 3 小时前SkillHot 收录 20 天前
▸ 精选理由

先锁定测试再批量并行修复,适合处理大规模 AI 驱动改动。

▸ 风险提示

会对代码进行自动修改并依赖完整测试套件,需测试环境与写权限。

这个 Skill 做什么

在保留行为的前提下清理 AI 生成的代码异味并通过回归测试验证。

把 AI 自动生成的“脏”代码整理干净,同时保证行为不变:先用回归测试锁住行为,再并行跑一批“deep”代理做有分类的重构,最后通过质量门验证。适合用在刚生成或提交的分支改动里需要去除 AI 产物异味时。特别之处是先保留行为再改结构,覆盖性能等十类常见 slop,按批次并行处理,安全又高效。

▸ 展开 SKILL.md 英文原文

Remove AI-generated code smells (slop) from branch changes or an explicit file list. Locks behavior with regression tests FIRST, then runs categorized cleanup via parallel `deep` agents in batches of 5, then verifies with quality gates. Covers 10 slop categories including performance equivalences, excessive complexity (object annotations, if/elif variant chains), and oversized modules (250+ pure LOC with mandatory modular refactoring). MUST USE when the user asks to "remove slop", "clean AI code", "deslop", "clean up AI-generated code", "remove AI slop", or wants to clean up AI-generated patterns from recent changes. Triggers - "remove ai slops", "clean ai code", "deslop", "cleanup AI generated", "remove AI slop", "clean up AI-generated code", "strip slop", "ai-slop cleanup".

开发编程清理AI代码回归测试自动修复通用
6.7w
Stars
5.4k
Forks
40
仓库内 Skill
+1.6k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/packages/shared-skills/skills/remove-ai-slops/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/packages/shared-skills/skills/remove-ai-slops/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Remove AI Slops Skill

## Inputs

- **Default scope**: branch diff vs `merge-base main` (no arguments needed)
- **Optional scope**: explicit file list passed by the caller (e.g., a Ralph workflow's changed-files set)

## What this skill does

Cleans AI-generated slop from a bounded set of changed files while strictly preserving behavior. Locks behavior with regression tests first, then runs a categorized multi-pass cleanup, then verifies with quality gates and a critical review. Reverts and direct-edits when verification fails.

The core safety invariant: **behavior is locked by green tests before a single line is removed**. A checklist alone is not safety; a passing regression test is.

-
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有