Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
refactoring, code-smells, legacy-code, safe-refactoring, git-commits
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A disciplined refactoring plugin based on principles from "Refactoring" (Fowler) and "Working Effectively with Legacy Code" (Feathers).
If you're in this directory:
claude plugins install .
Or specify the scope:
claude plugins install . --scope user # Available in all your projects
claude plugins install . --scope project # Only in current project
Install from GitHub:
claude plugins install https://github.com/elifiner/refactoring
Or with SSH:
claude plugins install [email protected]:elifiner/refactoring.git
Invoke the refactoring skill with:
/refactor [file or code to analyze]
The skill follows a two-phase approach:
> /refactor src/services/orderProcessor.js
Code Smell Analysis:
🔴 HIGH IMPACT (start here):
- Line 45: processOrder() is 150 lines, does 5 different things
- Lines 67-89: Validation logic duplicated in 3 places
🟡 MEDIUM IMPACT:
- Line 120: Deep nesting (4 levels) in calculateTotal()
Recommendation: Start with extracting validation logic.
This unlocks easier testing and future changes.
Proceed with extracting validation? (y/n)
This plugin follows a strict discipline:
See the detailed guide for complete explanations and examples in multiple languages.
refactoring/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── skills/
│ └── refactor/
│ ├── SKILL.md # Main skill workflow
│ └── guide.md # Detailed refactoring guide
└── README.md # This file
The skill will help you identify when NOT to refactor:
To modify this plugin:
skills/refactor/.claude-plugin/plugin.jsonclaude --plugin-dir .claude plugins install .MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (finereli/refactoring) — no native marketplace selected
npx claudepluginhub p/elifiner-refactoringPlugins from other owners that cover similar ground