Claude resources tagged “refactoring”
11 curated Claude Code resources tagged refactoring in the HeyClaude directory — mostly commands, mcp servers, and guides.
Highlights from this set
Standout entries tagged refactoring, picked by their own metadata — trust tier, provenance, documentation, and recency.
All refactoring resources
/refactor - Code Refactoring Command for Claude
Intelligent code refactoring command that analyzes code structure and applies best practices for improved maintainability and performance
/refactor-code - Scoped Refactor Command for Claude Code
Custom slash command for behavior-preserving, scoped refactors of one file, function, or selection — stays inside a narrow ownership boundary for a reviewable, PR-sized change instead of a repo-wide pass
Checkpointing Claude Code Changes Before Risky Refactors
Use Claude Code checkpoints to rewind code and conversation with /rewind before risky refactors, and know what they do not track.
Code Quality & Review
Sets up automated review — a scoped reviewer agent, test scaffolding, and on-demand explanations of unfamiliar code.
Codebase Migration Refactoring Agent - Agents
Claude Code agent prompt that plans framework upgrades and applies catalog refactorings while preserving behavior on a branch.
Dead Code Eliminator - Hooks
SessionEnd Bash hook that reports dead code via ESLint, Knip, autoflake, and Knip. Dry-run by default; writes findings to .claude/reports.
Inspect Claude Code Context Usage with /context
Inspect what fills Claude Code's context window with the built-in /context command, and build a custom /analyze-context recipe to gather codebase context before big changes.
jscpd MCP Server
Run `jscpd-server` beside a project to expose streamable HTTP MCP tools for checking code duplication, retrieving project statistics, and detecting copy paste across more than 225 programming languages and document formats.
Large Code Migration Workflow with Claude Code
Migrate or refactor a big codebase in safe, reviewable stages with Claude Code.
Signal coverage
How these 11 resources score on the trust and safety signals HeyClaude reviews — counted from this set, not the directory as a whole.
A short, calm digest of reviewed Claude resources. Unsubscribe any time.