‹ 首页

dev-ai-slop-cleaner

@evolution-foundation · 收录于 5 天前 · 上游提交 2 个月前

Post-AI-generation cleanup — remove single-use helpers, over-abstractions, generic naming, and unnecessary configurability. Use after dev-autopilot or any LLM-generated code burst.

适合你,如果经常用AI生成代码并需要保持代码整洁

/ 通过 npx 安装 校验哈希
npx oh-my-skill add evolution-foundation/evo-nexus/dev-ai-slop-cleaner
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- evolution-foundation/evo-nexus/dev-ai-slop-cleaner
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify evolution-foundation/evo-nexus/dev-ai-slop-cleaner
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
509GitHub stars
~533上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 7f5dd76 · 表述以原文为准
它做什么

装上后,Claude会扫描最近的代码变更,识别并提议清理AI生成代码中的典型臃肿(如单次辅助函数、过度抽象、通用命名、不必要的可配置性、无上下文的TODO/HACK注释)。清理建议会交由其他工具(如@bolt-executor)执行。

什么时候触发

在dev-autopilot完成功能后,或@bolt-executor产生多文件更改后,或用户说出“deslop”、“clean up the AI slop”等关键词时触发。

装好后可以这样说
Claude会扫描并提议清理。
它会识别过度抽象模式。
它会删除或转化为实际任务。
技能原文 SKILL.md作者撰写 · Apache-2.0 · 7f5dd76

Dev AI-Slop Cleaner

Derived from oh-my-claudecode (MIT, Yeachan Heo). Adapted for the EvoNexus Engineering Layer.

Cleanup pass for code generated by AI. Removes the typical bloat: single-use helpers, over-abstractions, generic names like processData(), unnecessary configurability that wasn't asked for.

Use When
  • After dev-autopilot finishes a feature
  • After @bolt-executor produces a multi-file change
  • Post-burst generation that wasn't carefully scoped
  • User says "deslop", "clean up the AI slop", "remove the bloat"
Do Not Use When
  • Hand-written code (no slop signature)
  • Code that's intentionally extensible (talk to @apex-architect first)
What to Look For
Signature 1: Single-use helpers
// SLOP
function calculateSum(a: number, b: number): number { return a + b; }
const total = calculateSum(price, tax);

// CLEANED
const total = price + tax;
Signature 2: Over-abstractions
// SLOP
class TimeoutConfigManager {
  private static instance: TimeoutConfigManager;
  static getInstance() { ... }
  setTimeout(ms: number) { ... }
  getTimeout() { ... }
}

// CLEANED
const TIMEOUT_MS = 5000;
Signature 3: Generic naming
// SLOP
function processData(data: any): any { ... }

// CLEANED
function parseCSVRow(row: string): User { ... }
Signature 4: Unrequested configurability
// SLOP
function fetchUser(id: string, options?: { retries?: number, backoff?: number, timeout?: number, cache?: boolean }) { ... }

// CLEANED (if retries/etc. weren't asked for)
function fetchUser(id: string) { ... }
Signature 5: TODO/HACK comments without context

Remove or convert to actual issues.

Workflow
  1. Scan the recent diff for the 5 signatures above
  2. For each match, propose the cleaned version
  3. Hand off to @bolt-executor to apply (or @zen-simplifier for batch cleanup)
  4. Run dev-verify to confirm behavior is unchanged
  5. Save report to workspace/development/research/[C]slop-cleanup-{component}-{date}.md
Pairs With
  • @zen-simplifier (the agent that does the actual cleanup)
  • @bolt-executor (when fixes are simple)
  • dev-verify (to confirm zero behavior change)
Anti-patterns
  • Removing abstractions that earn their keep (used in 3+ places, complex logic)
  • Removing comments that explain non-obvious decisions
  • "Improving" code that wasn't slop in the first place
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。