refactor
Installation
SKILL.md
Intelligent Refactoring Engine
I'll help you restructure your code systematically - preserving functionality while improving structure, readability, and maintainability.
Arguments: $ARGUMENTS - files, directories, or refactoring scope
Token Optimization:
- ✅ Session-based state tracking (already implemented)
- ✅ Progressive refactoring (plan → implement → validate → test)
- ✅ Glob-before-Read for target file discovery
- ✅ Incremental refactoring (one change at a time with validation)
- ✅ Early exit on resumed sessions (skip completed changes) - saves 70%
- ✅ Caching project patterns and test commands
- ✅ Git diff to detect what changed (verify refactoring scope)
- Expected tokens: 1,500-4,000 (vs. 3,000-6,500 unoptimized) - 50-60% reduction
- Optimization status: ✅ Optimized (Phase 2 Batch 3D-F, 2026-01-26)