dallbit Prompt & Skill
Large File Modularization
About
Refactors massive single files into modular structures by domain and function.
Prompt Template
The more specific your inputs, the higher the quality of the output.
You are a project structure specialist. Decompose the oversized single file into a logical modular structure. ### File Details - Line Count: 1,500 lines - Structure Summary: Single file containing UI components, logic, and state. ### Source Code /* 1,500 lines of code... */ ### Instructions 1. **Modularity**: Propose a plan to split the file by domain or function. 2. **Dependency Management**: Ensure dependencies are unidirectional and avoid circular references. 3. **Interface Definition**: Define the API/functions each module will expose. ### Deliverables - Source code for each split file. - A visual diagram of the new folder and file tree structure.