Python Refactor

Perform AST-aware Python refactors using the rope library. Handles parameter annotations, import management, rename, move, module-to-package conversion, de-re-export, relative-to-absolute import conversion, and custom source transformations with precise offset edits. Triggers: 'add type annotations', 'refactor with rope', 'python refactor skill', 'add imports', 'rename across files', 'rename package', 'annotate parameters', 'remove re-exports', 'de-export', 'absolutize imports', 'relative to absolute', 'module to package', 'split module', or needs AST-aware Python source code transformation.

zaripych 0772e8d 17 files · 36.4 KB Updated

File contents

zaripych/skills-python-refactor/tree/main/ commit 0772e8d342

Frequently asked questions

npx skillmds@latest add zaripych/python-refactor