What problem does it solve?
It reduces low-signal, messy, and overly complex AI-generated code (“slop”) by enforcing a disciplined cleanup workflow that prioritizes behavior safety through regression tests.
Core Features & Use Cases
- Tests-first deslop workflow: Identifies non-negotiable behavior, adds or runs targeted regression tests before changing code, and strengthens coverage when it is missing.
- Smell-scoped refactoring: Plans and applies cleanup in small, reversible steps for specific smell categories (dead code, duplicates, naming/error handling, fallback masking, UI/design slop, missing tests).
- Fallback-aware safety gates: Detects “fallback” patterns like silent defaults, swallowed errors, and bypass branches, then routes fixes to root-cause remediation or explicit escalation via consensus when needed.
- Scope control via file lists: Can restrict cleanup strictly to a provided scope of changed files (not a whole feature area), especially during Ralph workflows.
Quick Start
Ask Kimi to run an AI slop cleanup on your changed files by using: “/skill:ai-slop-cleaner 清理这次提交中的 slop,并先补齐缺失的回归测试。”