What problem does it solve?
This Skill addresses the challenge of disorganized, flat code repositories by systematically restructuring them into a clean, scalable, and maintainable 5-layer module-based architecture.
Core Features & Use Cases
- Repository Reorganization: Migrates a flat project structure to a standardized module-based layout.
- Import Path Migration: Updates all import statements to reflect the new module structure.
- Git History Preservation: Ensures that all refactoring steps are performed using
git mv to maintain commit history.
- Artifact Cleanup: Removes obsolete files, temporary data, and duplicate directories.
- Hidden Folder Consolidation: Merges scattered hidden configuration and data folders into a central location.
- Use Case: You have a Python project with all its modules and tests scattered at the root. This Skill will organize it into
src/package/modules/, tests/modules/, etc., ensuring all imports are correct and git history is preserved.
Quick Start
Use the module-based-refactor skill to reorganize the current repository into a 5-layer module structure.