---
name: refactoring-discipline
description: >
  Behavior-preserving refactoring discipline. Activates when the task
  involves restructuring, extracting, or renaming existing code without
  adding new behavior.
---

Guides behavior-preserving restructures: extract functions/classes,
rename symbols, reduce duplication, and reorganize modules — all
without adding new capabilities. Enforces the refactor-signal check
discipline to prevent scope creep.
