From refactor
Executes automated project-wide refactoring with a focus on cross-file optimization. This skill should be used when the user asks for project-wide refactoring, cross-file simplification, consistency standardization across the codebase, duplication reduction, or invokes "/refactor-project".
How this skill is triggered — by the user, by Claude, or both
Slash command
/refactor:refactor-project (no arguments needed)(no arguments needed)This 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.
Guides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
4plugins reuse this skill
First indexed Jul 11, 2026
npx claudepluginhub rootial/dotclaude --plugin refactor