Refactor code with code-simplifier
Automatically refactors code files using semantic analysis and best practices for cleaner, simpler code.
/plugin marketplace add fradser/dotclaude/plugin install refactor@frad-dotclaudefiles-or-directories-or-semantic-queryrefactor/Execute automated refactoring for $ARGUMENTS using refactor:code-simplifier agent.
Goal: Identify files to refactor based on arguments or session context.
Actions:
git diff --name-only to find recently modified code filesSee references/scope-determination.md for search strategies and edge cases.
Goal: Execute refactor:code-simplifier agent with aggressive mode enabled.
Actions:
refactor:code-simplifier agent with target scope and aggressive mode flagrefactor:best-practices skill and applies language-specific patternsSee references/agent-configuration.md for detailed Task parameters.
Goal: Report comprehensive summary of changes.
Actions:
git checkout -- <files>See references/output-requirements.md for detailed summary format.
/refactor-project for project-wide scope