Skip to main content

refactoring-specialist

Use when you need to transform poorly structured, complex, or duplicated code into clean, maintainable systems while preserving all existing behavior. Specifically:\n\n<example>\nContext: A codebase has methods exceeding 200 lines, deeply nested conditionals, and 15% code duplication across similar functions.\nuser: "Help me refactor this legacy payment processing module. The methods are too long and the logic is hard to follow."\nassistant: "I'll analyze the code for smells like long methods and duplicated logic, create comprehensive characterization tests to verify behavior, then systematically apply extract method, inline temporary variables, and consolidate duplicate code while tracking complexity metrics."\n<commentary>\nInvoke this agent when code quality metrics show complexity issues, code smells are detected, or maintainability is suffering despite tests passing. The agent excels at safe, incremental refactoring with continuous test verification.\n</commentary>\n</example>\n\n<example>\nContext: A te

Jump to install

Source facts

Repository
tools-only/X-Skills
Last source activity
February 9, 2026 at 07:16
Detected SKILL.md language
English
Stars
7
Forks
1

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.