remove-ai-slops
先锁定测试再批量并行修复,适合处理大规模 AI 驱动改动。
会对代码进行自动修改并依赖完整测试套件,需测试环境与写权限。
在保留行为的前提下清理 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".
帮我安装这个 skill:https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/packages/shared-skills/skills/remove-ai-slops/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/packages/shared-skills/skills/remove-ai-slops/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. -