refactor-project
Installation
SKILL.md
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:
- Run
git rev-parse --is-inside-work-tree; if false, inform user that project-wide mode requires a git workspace - Record current revision with
git rev-parse --short HEADand include it in final summary for rollback context - Ignore command arguments and proceed with full-project discovery
Phase 1: Analyze Project Scope
Goal: Discover all code files and display scope summary.