refactor
A refactoring skill from the claude-howto guide to Claude Code, based on Martin Fowler's book on refactoring.
What the skill teaches
A refactoring skill from the claude-howto guide to Claude Code, based on Martin Fowler's book on refactoring. It works in six phases, each needing the user's approval: understand the code and goals, check test coverage and decide whether to write tests first, find code smells such as long methods, duplication or feature envy and rank them, plan specific refactorings in phases with rollback steps, make one small change at a time and commit only when tests pass, and finally compare complexity before and after. It lists when to stop and ask, and refuses to refactor without tests unless the user accepts the risk. Bundled Python scripts detect smells and measure complexity.
Capabilities
- Check test coverage before refactoring
- Find and rank code smells
- Plan refactorings with rollback steps
- Measure complexity before and after
About
- Publisher
- luongnv89
- Tool
- Code review
Install
The project doesn't document install steps that we could confirm. See the project's own instructions
What's inside
- references/code-smells.md
- references/refactoring-catalog.md
- scripts/analyze-complexity.py
- scripts/detect-smells.py
- templates/refactoring-plan.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
This skill includes scripts that your agent may run.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Code review | |
| Publisher | luongnv89 | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | Yes | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 3, 202646,944 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from luongnv89
4 skills
All 4 from luongnv89 →Also listed under: Code review
Sources
- Skill file (SKILL.md)github.com/luongnv89/claude-howto · Backs: Includes scriptsNov 10, 2026
- GitHub repositorygithub.com/luongnv89/claude-howto · Backs: Publisher, Activity, LicenceNov 11, 2026
- Folder in the repository (refactor)github.com/luongnv89/claude-howto · Backs: Includes scriptsNov 10, 2026