AgentSkillsCN

cleanup-refactor

在保留原有行为的前提下,简化代码并移除遗留代码或向后兼容的适配层。适用于被要求清理或简化代码时使用。

SKILL.md
--- frontmatter
name: cleanup-refactor
description: "Simplify code and remove legacy/backcompat shims while preserving behavior. Use when asked to clean up or simplify code."

Cleanup Refactor

Workflow

  • Identify legacy shims, redundant helpers, or dead code in the target paths.
  • Simplify or remove while keeping behavior stable and the diff minimal.
  • Avoid unrelated refactors; focus on the requested cleanup.
  • Summarize what was removed and why it is safe.