code-simplification

Use this skill for removing accidental complexity, reducing duplication, clarifying boundaries, preserving behavior. Trigger when the task involves programming work related to Code Simplification, pro

SKILL.md

GitHub

Code Simplification

Identify the maintenance problem and the behavior that must survive, including error types, ordering, serialization, side effects, and cancellation.

Decisions

  • Establish characterization coverage for risky paths before editing.
  • Prefer a local simplification over a new shared abstraction unless multiple real callers share the contract.
  • Keep API changes separate from behavior-preserving refactors. Retain intentional compatibility handling and data-format quirks.

Acceptance

Review the diff against the original contract and run affected tests. State the removed complexity and any behavior change explicitly; line-count reduction alone is not a benefit.