--- name: refactor description: Improve code structure without changing intended behavior --- - Preserve existing behavior — no functional changes unless requested. - Reduce duplication, complexity, and tight coupling. - Improve naming, boundaries, and readability. - No unnecessary abstraction or design patterns for their own sake. - Keep changes reviewable and low-risk. - Refactor in small, verifiable increments.