Fowler Refactor Skill — Code Quality skill for Claude Code
Martin Fowler refactoring patterns agent skill for Claude Code / OpenCode.
How to install Fowler Refactor Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dopeboy0608/fowler-refactor-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Fowler Refactor Skill does
Martin Fowler refactoring patterns agent skill for Claude Code / OpenCode.
Alternatives in Code Quality
- Refactor — We are about to refactor code 1.6k ★
- Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
- Sentry Code Review — Perform code reviews with Sentry patterns 438 ★
README
fowler-refactor-skill
🇰🇷 [한국어 README](./README.ko.md) | [한국어 패턴 카탈로그](./references/fowler-patterns.ko.md)
An agent skill that applies **Martin Fowler's refactoring catalog** to your codebase.
It conducts a focused `grill-me`-style interview to understand what you want to improve, maps the relevant smells to Fowler's patterns, proposes a Before/After plan, and applies changes only after your approval — **guaranteeing zero breaking changes** to existing callers.
Requirements
- Node.js >= 22.20.0
TheskillsCLI requires Node 22+. Check your version withnode --version.
If you need to upgrade, use nvm:nvm install 22 && nvm use 22
Install
Claude Code
npx skills@latest add dopeboy0608/fowler-refactor-skill --agent claude-code
After installing, restart Claude Code (or run `/reload-skills` in the session) so the skill is picked up.
OpenCode
npx skills@latest add dopeboy0608/fowler-refactor-skill --agent opencode
All supported agents at once
npx skills@latest add dopeboy0608/fowler-refactor-skill
The interactive installer will ask which agent(s) to install to. Works with **Claude Code**, **OpenCode**, **Cursor**, **Codex**, **Windsurf**, and any other agent that supports the [skills.sh](https://skills.sh) format.
Uninstall
# Interactive — select from a menu
npx skills@latest remove
# Remove this skill directly
npx skills@latest remove fowler-refactor-skill
# Remove from global scope
npx skills@latest remove --global fowler-refactor-skill
# Remove from a specific agent only
npx skills@latest remove --agent claude-code fowler-refactor-skill
Usage
Invoke explicitly in your agent:
/fowler-refactor-skill
The skill will **not** auto-trigger on casual requests like "clean this up" or "refactor this". Explicit invocation is required.
What it does
- Interview (
grill-mestyle) — one f
Related Skills
Kestrel Coder
Delegate an engineering task to Kestrel-Coder. Code review, implementation, refactoring, debugging. Reads the
Refactor Simple
Quick refactoring check for Python code focusing on:
Refactor Safely
Plan and execute safe refactoring using dependency analysis
Refactor Verified
Refactoring analysis for code no human reads — think like a god-tier programmer who trusts nothing but the che
iOS Clean Code Skills
Clean Code skills for Swift / iOS projects based on Robert Martin's Clean Code and G. Ann Campbell's Cognitive
Agent Skills Lint
Cross-agent skill validator and installer — Claude Code, Codex, OpenCode, Aider, Copilot, Cursor, Gemini, Droi
Related Agents
Fowler
SPECIALIST — Maintainability gate. Ensures changes are incremental, reversible, and don't add debt. Owns refac
Refactor Clean
You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and... - wshob
TDD Refactoring Agent
Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring p