From refactor
Refactors the entire project automatically — analyzes scope, reduces duplication, enforces consistent patterns, and removes legacy code across all code files.
How this command is triggered — by the user, by Claude, or both
Slash command
/refactor:SKILL (no arguments needed)refactor-project/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Refactor Project Command Execute automated project-wide refactoring using `refactor:code-simplifier` agent with cross-file optimization focus. ## Pre-operation Checks **Goal**: Ensure project-wide execution is explicit and reproducible. **Actions**: 1. Run `git rev-parse --is-inside-work-tree`; if false, inform user that project-wide mode requires a git workspace 2. Record current revision with `git rev-parse --short HEAD` and include it in final summary for rollback context 3. Ignore command arguments and proceed with full-project discovery ## Phase 1: Analyze Project Scope **Goal**:...
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 rootial/dotclaude --plugin refactor5plugins reuse this command
First indexed Feb 16, 2026
/SKILLRefactors the entire project automatically — analyzes scope, reduces duplication, enforces consistent patterns, and removes legacy code across all code files.
/SKILLEnables work verification for a task. Claude completes the work, verifies it, and appends a verified tag before session exit.
/SKILLResolves a GitHub issue by creating an isolated worktree, implementing a TDD fix, and opening a PR with auto-closing keywords.
/SKILLSurfaces the current session task from a state file and evaluates its clarity and completeness. Reports completion status or identifies remaining steps.