What problem does it solve?
Thousand-line Python modules like logic.py or models.py force every change to read the entire file, inflating review cost and token usage. This Skill mechanically splits such a module into a package of one module per concern while proving the move changed no behavior.
Core Features & Use Cases
- Layout planning: Generates a JSON skeleton of every top-level symbol so you can assign symbols to concern-named modules with an acyclic dependency graph.
- Verbatim code move: The split_module.py script copies each symbol by AST line range, deepens relative imports, and requalifies cross-module references via tokenize without touching strings or docstrings.
- Pure-move verification: verify_pure_move.py compares every definition before and after the split, reporting missing, unexpected, changed, or duplicated symbols.
- Use Case: A 3000-line logic.py with a matching 3000-line test file is split into a logic/ package and mirrored test package, landed as its own PR, with the verifier confirming every definition is identical modulo module qualification.
Quick Start
Ask the AI to split the oversized module products/foo/backend/logic.py into a package of one module per concern and verify the result is a pure move.