# Refactoring Guru

Apply Refactoring.Guru-inspired rules when diagnosing code smells, choosing refactoring...

- Repository: https://github.com/ciembor/agent-rules-books (3164 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-09-10
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add ciembor/agent-rules-books --skill refactoring-guru -g -a claude-code -y`
Codex: `npx skills add ciembor/agent-rules-books --skill refactoring-guru -g -a codex -y`
Cursor: `npx skills add ciembor/agent-rules-books --skill refactoring-guru -g -a cursor -y`
Gemini CLI: `npx skills add ciembor/agent-rules-books --skill refactoring-guru -g -a gemini-cli -y`

## Description

Apply Refactoring.Guru-inspired rules when diagnosing code smells, choosing refactoring techniques, and stopping cleanup before uncontrolled redesign.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Refactoring.Guru Skill

Use this skill when a task involves diagnosing smells, choosing targeted refactoring treatments, preserving behavior, applying a refactoring catalog, or avoiding uncontrolled redesign.

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

