File Organizer
CautionProject file structure optimization agent that analyzes directory layouts, suggests reorganization, and refactors file hierarchies following best practices.
Install
Claude Code
Copy the SKILL.md file to your project's .claude/skills/ directory About This Skill
File Organizer analyzes your project's file structure and suggests improvements based on framework conventions and organizational best practices. It can identify misplaced files, inconsistent naming, and suboptimal directory hierarchies, then execute a reorganization plan with proper import path updates.
How It Works
- Structure scanning — Maps the entire project directory tree, identifying file types, naming patterns, and size distribution
- Convention detection — Identifies the project's framework (Next.js, Django, Rails, etc.) and checks adherence to its recommended file structure
- Issue identification — Flags problems: deeply nested directories, files in wrong locations, inconsistent naming (camelCase vs kebab-case), orphaned files
- Reorganization plan — Generates a detailed move plan showing current vs. proposed locations with reasoning for each change
- Execution — After plan approval, moves files and updates all affected import paths, references, and configuration entries
Best For
- Projects that have grown organically and need structural cleanup
- Teams adopting new framework conventions mid-project
- Codebases being prepared for open-source release
- Developers taking over legacy projects
Use Cases
- Restructuring monorepo project directories
- Organizing downloads and document folders
- Migrating from flat to modular file structure
- Cleaning up legacy project layouts
Pros & Cons
Pros
- + Detects framework-specific conventions and enforces them
- + Generates a review-before-execute plan to avoid mistakes
- + Updates import paths and references automatically after moves
Cons
- - File moves can break builds if import updates are incomplete
- - Should be used on a clean git branch to allow easy rollback
- - Dynamic imports and string-based file references may be missed
Related AI Tools
ChatGPT
Freemium
The AI assistant that started the generative AI revolution
- GPT-4o multimodal model with text, vision, and audio
- DALL-E 3 image generation
- Code Interpreter for data analysis and visualization
Claude
Freemium
Anthropic's AI assistant built for thoughtful analysis and safe, nuanced conversations
- 200K token context window for massive document processing
- Artifacts — interactive side-panel for code, docs, and visualizations
- Projects with persistent context and custom instructions
Related Skills
Context Builder
CautionCodebase context aggregation agent for LLMs that scans project files, identifies key modules, and builds optimized context windows for AI-assisted development.
README Generator
CautionREADME.md creation agent that analyzes codebases, detects frameworks and dependencies, and generates comprehensive project documentation.
Workflow Automator
CautionRepetitive task automation agent that identifies manual workflow patterns, creates shell scripts or automation configs, and sets up recurring processes.
Stay Updated on Agent Skills
Get weekly curated skills + safety alerts
每周精选 Skills + 安全预警