migrate-module - Automatically migrate Python modules and update imports
Moves Python modules or symbols to new locations and rewrites import statements across the codebase.
Tags
Updated: 2026-02-14Capabilities
Typical Inputs
Typical Outputs
What this skill does
- identify move target
- analyze dependencies
- generate refactoring plan
- preview migration changes
- execute move operation
- rewrite import statements
- create __init__.py files
- generate backward-compatibility adapters
Inputs
- Python module file
- Symbol name
- New location path
- Codebase repository
Outputs
- Moved module file
- Updated import statements
- Created __init__.py files
- Backward-compatibility adapter file
- Migration plan report
Requirements
- Python codebase
- File system access
- Refactoring permissions
