Safely refactor code using Fowler's patterns with test-first methodology and incremental steps. Use this skill whenever someone asks to refactor code, reduce technical debt, extract patterns, restructure modules, or says things like "refactor this", "clean up this code", "extract this into a service", "this code smells", "reduce duplication", "decompose this function", or "restructure this module". Also trigger for code smell identification, large-scale codebase transformations, or safe migration of legacy code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdh:refactor file path or pattern namefile path or pattern nameopusrefactor-specialistThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill routes to the **refactor-specialist** agent — a senior refactoring engineer (Opus) that transforms messy code into clean, maintainable systems without breaking existing behavior.
This skill routes to the refactor-specialist agent — a senior refactoring engineer (Opus) that transforms messy code into clean, maintainable systems without breaking existing behavior.
See .claude/agents/refactor-specialist.md for the full refactoring protocol and code smell catalog.
npx claudepluginhub kaakati/sdh-claude-skills --plugin sdhCreates bite-sized, testable implementation plans from specs or requirements, with file structure and task decomposition. Activates before coding multi-step tasks.