behavior-preserving-refactor
Installation
SKILL.md
Behavior-Preserving Refactors
Use this recipe for the specific code being refactored, not a repository-wide
audit. Read .github/copilot-instructions.md and applicable directory rules.
Preserve existing behavior, including surprising reachable cases; a bug fix or
modernization needs separate authorization and validation.
An issue-generation workflow's bounded inspection is not implementation preflight. For example, Daily File Diet inspects only the first 100 lines and up to 50 declaration lines of one file. Keep that budget when proposing work, label unverified assumptions, and include this recipe for the later implementer. Do not claim equivalence, tested behavior, or complete consumer coverage from that sample.