ai-slop-cleaner

Reduces AI-generated code clutter through disciplined cleanup with regression tests.

2|Updated May 11, 2026
One-click install
npx skills add https://github.com/xz1220/oh-my-kimi --skill ai-slop-cleaner-xz1220
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-slop-cleaner
Source: https://github.com/xz1220/oh-my-kimi/tree/main/skills/ai-slop-cleaner
Command: npx skills add https://github.com/xz1220/oh-my-kimi --skill ai-slop-cleaner-xz1220

SYSTEM DOCUMENTATION & REQUIREMENTS

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,并先补齐缺失的回归测试。”

Frequently Asked Questions about ai-slop-cleaner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up AI-generated code slop without breaking existing behavior?

To clean up AI-generated code slop safely, you must lock existing behavior with regression tests before refactoring. This Skill enforces a tests-first workflow that identifies non-negotiable behavior and strengthens coverage before applying any code changes.

What is fallback masking in code refactoring and how do I fix it?

Fallback masking occurs when silent defaults, swallowed errors, or bypass branches hide true failures during code refactoring. This Skill detects these patterns, classifies them, and routes fixes to root-cause remediation or explicit escalation via consensus.

How to refactor dead code and duplication in a constrained file scope?

To refactor dead code and duplication in a constrained file scope, use a smell-scoped cleanup plan that applies small, reversible steps. This Skill restricts changes strictly to a provided list of changed files rather than sweeping across whole feature areas.

Can I use this tests-first cleanup workflow for Ralph workflow changes?

Yes, you can use this tests-first cleanup workflow for Ralph workflow changes. The Skill specifically supports scope control via file lists, allowing you to apply smell-based refactoring and fallback detection strictly to the changed files within that workflow.

What validation gates are required for a minimal diff code refactor?

Required validation gates for a minimal diff code refactor include iterative tests, lint, and typecheck. This Skill enforces these quality gates throughout the staged cleanup plan to ensure minimal diffs and generate an information-dense completion report.

When should I not use an automated smell-based plan for code cleanup?

You should avoid using an automated smell-based plan for code cleanup when regression test coverage is missing and cannot be established first. This Skill requires non-negotiable behavior to be locked with tests before attempting any deslop or refactoring actions.