Skip to main content

refactoring

Estrellas3
Forks1
Actualizado30 de marzo de 2026 a las 18:31

Apply specific behavior-preserving refactoring moves to improve code structure without changing observable behavior. Trigger when: code has long methods (more than ~20 lines), a user says "this is getting complicated" or "how do I clean this up safely", someone is preparing to apply a design pattern, a method is doing more than one thing, you see Feature Envy or a conditional dispatching on type. Also triggers on: "extract this method", "move this field", "replace this conditional", "inline this variable", "introduce a parameter object", "pull up this method", "push down this field", "how do I refactor this safely?", or any named refactoring from Fowler's catalog. Trigger this skill before applying any design pattern — refactoring prepares the ground. Distinct from refactoring-plan (which plans the overall strategy) — this skill executes specific moves.

Instalación

Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.

Explorador de archivos
2 archivos
SKILL.md
readonly