refactor
Installation
SKILL.md
Refactor Command
Execute automated refactoring for $ARGUMENTS using refactor:code-simplifier agent.
Pre-operation Checks
Goal: Ensure scope resolution is deterministic before launching the agent.
Actions:
- Run
git rev-parse --is-inside-work-treeand continue even if false when explicit paths are provided - Normalize arguments by trimming whitespace and preserving quoted path segments
- Treat an empty argument list as "recent changes" mode
Phase 1: Determine Target Scope
Goal: Identify files to refactor based on arguments or session context.