Code Qualitycosmix/loom
refactoring
Restructures existing code to improve readability, maintainability, and performance without changing external behavior.
USE WHEN: Restructuring code without changing behavior, extracting methods/classes, removing duplication, applying design patterns, improving code organization, reducing technical debt.
DO NOT USE: For bug fixes (use /debugging), for adding tests (use /testing), for new features (implement directly).
TRIGGERS: refactor, restructure, rewrite, clean up, simplify, extract, inline, rename, move, split, merge, decompose, modularize, decouple, technical debt, code smell, DRY, SOLID, improve code, modernize, reorganize.