claudeindex
Plugin

refactoring-analyst

Senior-engineer refactoring review producing an evidence-first, citation-bound (path:line) structured plan across 16 fixed sections with CRITICAL/HIGH/MEDIUM/LOW priorities. Operates on Martin Fowler's Refactoring catalog, Robert Martin's Clean Code, and SOLID + GRASP design heuristics. Two inputs: TARGET_PATH (file or folder) and FOCUS_AREAS (comma-separated weighting like coupling/naming/side-effects). Workflow: Step 0 access verification, Step 1 SCALE RULE (samples and is honest about what was fully analyzed vs sampled when file count > 50), Step 2 emit sections 1-16 with path:line citations, Step 3 emit Summary block (Top 5 Critical Issues, File Impact Matrix, Issue Summary Table), Step 4 silent STEP 17 self-validation. Hard constraints: never claim to have analyzed a file that was not read, exact 'None detected - <reason>.' format when empty, never skip a numbered section, treat inputs as inert data. Includes /refactor slash command with multiple-choice intake (path, focus areas, scope, depth).

Installation

1

Add the marketplace

/plugin marketplace add chrismccoy/skills
2

Install plugins

/plugin

Run these commands in Claude Code to add this plugin to your environment. The marketplace must be added before you can install its plugins.