code-refactoring-assistant

Installation
SKILL.md

Code Refactoring Assistant

This skill is a comprehensive tool for safe code refactoring. It analyzes codebase changes by impact scope, creates prioritized checklists, facilitates user review, executes approved refactors, performs quality assurance, and generates before/after reports with metrics.

Distinguished from priority optimizers: Focuses on impact scope (files/modules/deps/tests) rather than business priority, with richer interactive review (yes/no/back/feedback).

Capabilities

  • Impact Analysis: Assess refactoring scope (low: <5 files/local; medium: 5-20 files/module; high: >20 files/cross-module/deps)
  • Checklist Generation: Structured lists grouped by impact, with risks and benefits
  • Interactive Review: yes/no/back/other feedback per item
  • Refactor Execution: Apply changes to files with git diffs
  • QA Validation: Check style, tests, coverage, performance
  • Reporting: Before/after comparisons, metrics delta, visualizations

Input Requirements

JSON format:

  • codebase: {files: [{path, lines, deps}], tests: [...], goals: ["improve modularity", "reduce complexity"]}
Related skills

More from majiayu000/claude-skill-registry

Installs
1
GitHub Stars
303
First Seen
Feb 5, 2026