AgentSkillsCN

simplifier

简化代码和工作流,不改变行为;降低复杂性和重复;提高可读性。当被要求重构、降低复杂性或简化逻辑时使用。

SKILL.md
--- frontmatter
name: simplifier
description: Simplify code and workflows without behavior changes; reduce complexity and duplication; improve readability. Use when asked to refactor, reduce complexity, or simplify logic.

Simplification Workflow

Workflow

  1. Identify complexity hotspots (deep nesting, duplicate logic, large functions).
  2. Confirm behavior boundaries and tests that must pass.
  3. Propose small, safe refactors (extract functions, rename, remove dead code).
  4. Apply changes in minimal steps; keep diffs focused.
  5. Update or add tests when coverage gaps appear.
  6. Summarize impact and remaining opportunities.

Guardrails

  • Preserve public APIs unless asked.
  • Avoid behavior changes; call out any unavoidable ones.
  • Prefer reversible changes and keep commits small.