code-refactoring plugin
Code cleanup, refactoring automation, and technical debt management with context restoration
How to install the code-refactoring plugin
Run both commands inside Claude Code. The first adds the marketplace once; the second installs the plugin.
/plugin marketplace add wshobson/agents
/plugin install code-refactoring@claude-code-workflowsWhat's inside code-refactoring
5 parts read from the plugin's own files.
Commands 3
Run as /code-refactoring:name- /code-refactoring:context-restore
No description in the file.
- /code-refactoring:refactor-clean
No description in the file.
- /code-refactoring:tech-debt
No description in the file.
Agents 2
Call as @agent-code-refactoring:name- @agent-code-refactoring:code-reviewer
No description in the file.
- @agent-code-refactoring:legacy-modernizer
No description in the file.
Using code-refactoring in Claude Code
Type a command in a Claude Code session:
/code-refactoring:context-restore
/code-refactoring:refactor-clean
/code-refactoring:tech-debtAsk for an agent by name:
@agent-code-refactoring:code-reviewer
@agent-code-refactoring:legacy-modernizerUpdate, turn off or remove
- Update the plugin (shell)
- claude plugin update code-refactoring@claude-code-workflows
- Refresh the marketplace
- /plugin marketplace update claude-code-workflows
- Turn it off for now
- /plugin disable code-refactoring@claude-code-workflows
- Remove it
- /plugin uninstall code-refactoring@claude-code-workflows
code-refactoring plugin questions
How do I install the code-refactoring plugin?
In Claude Code run /plugin marketplace add wshobson/agents, then /plugin install code-refactoring@claude-code-workflows.
What does the code-refactoring plugin include?
code-refactoring bundles 3 commands, 2 agents.
What commands does the code-refactoring plugin add?
It adds /code-refactoring:context-restore, /code-refactoring:refactor-clean, /code-refactoring:tech-debt. Run them in Claude Code with the plugin prefix, for example /code-refactoring:context-restore.
Which agents come with code-refactoring?
code-reviewer, legacy-modernizer. Call one with @agent-code-refactoring:code-reviewer.
How do I update or remove the code-refactoring plugin?
Update it with claude plugin update code-refactoring@claude-code-workflows in your shell, or from the Installed tab of /plugin. Remove it with /plugin uninstall code-refactoring@claude-code-workflows.