Fowler Refactor Skill
Description
Martin Fowler refactoring patterns agent skill for Claude Code / OpenCode
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Import Drawio
Redraw a draw.io file as an editorial diagram at a chosen format, size, and detail level
Code Quality Import Mermaid
Redraw Mermaid as an editorial diagram at a chosen format, size, and detail level
Code Quality Open Code Review
/open-code-review
Code Quality Job Stories
- Create job stories with acceptance criteria in JTBD format
Code Quality Wwas
- Create backlog items in Why-What-Acceptance format
Code Quality Code Quality Review
Review code quality in: $ARGUMENTS
Code Quality