File size: 1,312 Bytes
292d92c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
Organize and restructure files in the current directory or repository.
Your task:
1. Analyze current structure:
- Identify file types and purposes
- Note organization issues
- Find misplaced files
- Detect duplicates or unused files
2. Create logical folder structure:
- Group related files together
- Separate by function (src, docs, tests, config, etc.)
- Create clear hierarchy
- Follow project conventions
3. Example structures:
**For code projects:**
```
project/
├── src/ # Source code
├── tests/ # Test files
├── docs/ # Documentation
├── config/ # Configuration files
├── scripts/ # Utility scripts
└── assets/ # Static assets
```
**For documents:**
```
project/
├── drafts/
├── final/
├── archive/
├── templates/
└── resources/
```
4. Move files to appropriate locations:
- Preserve git history if in repository
- Update import/require paths in code
- Fix broken references
- Update documentation
5. Clean up:
- Remove redundant files
- Archive old versions
- Delete temporary files
- Update .gitignore if needed
Implement clear separation of concerns and logical file organization.
|