structural-refactor
Installation
SKILL.md
Structural Code Refactoring
This skill covers three complementary tools for structural code transformation. Use the right one for the job — they're not competitors, they're specialists.
Pick the Right Tool
| Situation | Best tool |
|---|---|
| Cross-language pattern replace (JS, Go, SQL, HTML…) | comby |
| Rearrange/capture subexpressions across many files | comby |
| Python 2 → 3 migration (print, unicode, exec, dict…) | 2to3 |
| Modernizing Python 3 idioms (f-strings, type hints…) | pyupgrade |
| True AST analysis (dead code, call graphs, imports) | ast-code-graph skill |
| Simple string search | grep / ripgrep |