code-refactoring
Installation
SKILL.md
Code Refactoring
Orchestrate large structural refactors using ast-grep to discover scope and gritql to apply transformations safely.
When to Use
Use this skill for:
- Multi-file refactoring (rename classes, methods, variables)
- API migrations (framework updates, library changes)
- Pattern refactoring (inheritance → composition)
- Code modernization (language idioms, best practices)
Don't use for:
- Single-file simple changes → Use
Edittool directly - Logic changes requiring context → Manual review
- Non-code files (YAML, JSON, MD) → Use
Edittool