Refactor
Structured refactoring guide of 43 rules across eight prioritized categories, drawn from Fowler's catalog and Clean Code.
- CCM score
- 47 of 100
- skills.sh installs
- 668
- GitHub stars
- 228
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers decomposition, coupling, naming, conditional logic, patterns, data organization, error handling, and micro-refactoring, ordered by impact
- Lists quick-reference rule IDs such as
struct-extract-methodandcond-guard-clauses, with per-rule reference files underreferences/ - Targets long methods, large classes, tangled conditionals, and code smells, and includes a checklist for maintainability reviews
- Designed for AI agents and LLMs that refactor existing code or generate maintainable code
Install
$ npx -y skills add pproenca/dot-skills --skill refactor -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Fowler/Martin Code Refactoring Best Practices
Comprehensive code refactoring guide based on Martin Fowler's catalog and Clean Code principles, designed for AI agents and LLMs. Contains 43 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
- Refactoring existing code to improve maintainability
- Decomposing long methods or large classes
- Reducing coupling between components
- Simplifying complex conditional logic
- Reviewing code for code smells and anti-patterns
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Structure & Decomposition | CRITICAL | struct- |
| 2 | Coupling & Dependencies | CRITICAL | couple- |
| 3 | Naming & Clarity | HIGH | name- |
| 4 | Conditional Logic | HIGH | cond- |
| 5 | Abstraction & Patterns | MEDIUM-HIGH | pattern- |
| 6 | Data Organization | MEDIUM | data- |
| 7 | Error Handling | MEDIUM | error- |
| 8 | Micro-Refactoring | LOW | micro- |
Quick Reference
1. Structure & Decomposition (CRITICAL)
Details
- Repository
- github.com/pproenca/dot-skills
- Category
- Code Review & Quality
- First seen
- Jun 3, 2026
Questions
What does the refactor skill do?
The refactor skill applies code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. It guides an agent through extract method, rename, decompose conditional, reducing coupling and improving readability in existing code.
How do I install the refactor skill?
Run npx -y skills add pproenca/dot-skills --skill refactor -y in a project to install the refactor skill. Once installed, the refactor skill lets the agent review code for code smells and maintainability problems.
Where does the refactor skill fit in the Code Review & Quality category?
The refactor skill sits in the Code Review & Quality category on Claude Marketplaces, alongside improve-codebase-architecture, codebase-design, code-review, setup-ts-deep-modules and caveman-review. Its 43 rules across 8 categories set it apart by covering structure, coupling, naming, conditionals and error handling.
Who is the refactor skill for?
The refactor skill is for developers who want an agent to decompose long methods, reduce coupling between components and simplify complex conditional logic. It also suits anyone reviewing existing code for code smells and anti-patterns.
More from pproenca/dot-skills
All 100- Expo575
- React513
- Tailwind Responsive Ui487
- Tailwind Ui Refactor480
- Zustand472
- Debug458
- Ios Design454
- Feature Arch445
- Feature Spec444
- React Testing Library436
- Expo React Native Coder428
- Tdd428
- Jscodeshift427
- Humanize425
- Knip Deadcode422
- React Optimise416
- Rails Hotwire395
- Ts Google390
- Nginx C Module Design387
- Audio Voice Recovery385
- Nginx C Modules384
- Vite381
- Ios Animations371
- Dockerfile Optimise370
Similar to Refactor
More Code Review & Qualitycode-simplifierpproenca/dot-skills1.7K installsConcise guide that simplifies recently modified code while preserving exact behavior across 47 rules.
ruby-refactorpproenca/dot-skills313 installsRuby refactoring guide covering 45 community rules across design, conditionals, coupling, idioms, and Ruby 3.x features.
clean-coderatacat/claude-skills361 installsCoding guide that applies Robert C. Martin's Clean Code rules to naming, functions, classes, errors, and tests.
codebase-cleanup-refactor-cleansickn33/agentic-awesome-skills978 installsStructured refactoring workflow that plans cleanup steps, prioritizes targets, and sets verification gates before changes land.