code-refactoring — Claude Code plugin: cleanup and tech debt
A plugin that automates refactoring and helps manage technical debt. Useful when a codebase needs cleaning up.
/plugin marketplace add wshobson/agents
/plugin install code-refactoring@claude-code-workflowsWhat code-refactoring does
The plugin covers three things: code cleanup, refactoring automation and technical debt management. Context restoration is part of the set too, which helps when you return to a section you have not touched in a while.
Install it from the wshobson/agents marketplace as code-refactoring@claude-code-workflows. The author is Seth Hobson, the license is MIT. Besides Claude, the plugin is listed for Claude and Cursor.
Technical debt piles up quietly, so automation here is not a luxury. If a project is already buried in dead code and duplicates, the plugin gives your agent a ready workflow instead of hand-holding.
What it helps with
- work through accumulated technical debt
- strip dead code and duplicates
- refactor a section without rewriting it by hand
- restore context on a module you have not touched in months
Example prompts for the agent
- clean this module of dead code
- refactor
src/legacy/parser.js - help me work through the technical debt in this project
How to install code-refactoring
Plugin marketplace
/plugin marketplace add wshobson/agents/plugin install code-refactoring@claude-code-workflowsStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about code-refactoring
How do I install code-refactoring in Claude?
Add the marketplace with /plugin marketplace add wshobson/agents, then install the plugin: /plugin install code-refactoring@claude-code-workflows.
What does code-refactoring do?
It automates code cleanup and refactoring, helps manage technical debt and restores context.
Which platforms does the plugin support?
Claude, Claude and Cursor are listed.
Source text
code-refactoring · MIT
Code cleanup, refactoring automation, and technical debt management with context restoration
© Seth Hobson · MIT · wshobson/agents