# Refactoring

> Apply Martin Fowler-inspired refactoring rules when improving existing code structure while preserving observable behavior.

- Skill: `ciembor/refactoring` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add ciembor/refactoring`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ciembor/refactoring/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: ciembor (https://skillmd.com/u/ciembor)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ciembor/refactoring

---


# Refactoring Skill

Use this skill when a task involves behavior-preserving code improvement, code smells, small refactoring steps, test-backed cleanup, or separating refactoring from feature changes.

Before making design or code decisions, read and apply [refactoring.mini.md](refactoring.mini.md). Use [refactoring.md](refactoring.md) only as a deeper reference when the mini rules are not enough for the current refactoring tradeoff.

