From refactor
Executes automated refactoring across all project code files, optimizing cross-file duplication, consistency, and patterns via code-simplifier agent. Requires git repo; use for full codebase cleanups.
How this skill is triggered — by the user, by Claude, or both
Slash command
/refactor:refactor-projectThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute automated project-wide refactoring using `refactor:code-simplifier` agent with cross-file optimization focus.
Execute automated project-wide refactoring using refactor:code-simplifier agent with cross-file optimization focus.
Goal: Ensure project-wide execution is explicit and reproducible.
Actions:
git rev-parse --is-inside-work-tree; if false, inform user that project-wide mode requires a git workspacegit rev-parse --short HEAD and include it in final summary for rollback contextGoal: Discover all code files and display scope summary.
Actions:
node_modules/, .git/, dist/, build/, vendor/, .venv/See references/scope-analysis.md for exclusion patterns and edge cases.
Goal: Execute refactor:code-simplifier agent with project-wide scope and cross-file focus.
Actions:
refactor:code-simplifier agent with all discovered code filesrefactor:best-practices skill and applies language-specific patternsSee references/agent-configuration.md for detailed Task parameters.
Goal: Report comprehensive summary of project-wide changes.
Actions:
git restore --worktree --staged .)See references/output-requirements.md for detailed summary format.
npx claudepluginhub fradser/dotclaude --plugin refactorAutomates refactoring of files, directories, semantic queries, or recent git changes using code-simplifier agent. Applies best practices and removes dead code in limited scopes.
Orchestrates multi-target refactoring across code and docs with auto-detection, scoring, and incremental loops. Use for cleanup, simplification, and restructuring.
Refactors existing code for guideline compliance and testability using 4 parallel analysis agents. Use after /optimus:init to align code or before /optimus:unit-test to remove testability barriers.