소개
The Python File Splitter skill automates the complex task of breaking down oversized Python modules into clean, modular package structures. Using ast-grep for precise code analysis, it identifies classes, functions, and inheritance chains to suggest logical groupings. The skill follows a safe, two-phase workflow: first, it generates a plan for user approval; second, it executes the split with an integrated retry loop that automatically rolls back changes if the new imports fail. This ensures your codebase remains functional while evolving from a single file into a professional package layout with backwards-compatible re-export stubs.