refactoring

Improves how your code is organized using proven patterns without changing what it does.

Installation
Run `npx skills add "https://github.com/ciembor/agent-rules-books" --skill "refactoring"` to install this skill, then follow its SKILL.md instructions for my next request.

Paste this into Claude Code, Cursor, or any agent that can run commands.

SKILL.mdShow the author's original SKILL.md
---
name: refactoring
description: Apply Martin Fowler-inspired refactoring rules when improving existing code structure while preserving observable behavior.
license: MIT
---

# 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.

Ships with 3 supporting files:

  • refactoring.md
  • refactoring.mini.md
  • refactoring.nano.md

Mirrored from the author's public source. Install counts from the open skills registry.

The systems behind these skills get built for partners every week.

Partner with us