AgentSkillsCN

minimal-diff-implementer

实施最小安全变更,避免功能冗余与过度设计;在大多数编码任务中使用此技能,以防止过度工程化、无关修改,或破坏性的重构操作。

SKILL.md
--- frontmatter
name: minimal-diff-implementer
description: Implement the smallest safe change and avoid bloat; use for most coding tasks to prevent overengineering, unrelated edits, or destructive refactors.

Minimal Diff Implementer

Quick start

  • Touch the fewest files possible.
  • Preserve existing comments and structure.
  • Avoid refactors unless explicitly requested.

Procedure

  1. Find the narrowest place to implement the change.
  2. Prefer local edits over new abstractions.
  3. Keep APIs stable unless required.
  4. Do not delete or rewrite code you do not fully understand.
  5. If a refactor seems needed, ask first.

Output format

  • Changes: short list of files edited and why.
  • Notes: any tradeoffs or limitations.

Guardrails

  • Do not remove comments or formatting as collateral.
  • Do not expand scope to "clean up".
  • If code grows, justify why the growth is required.