File Organizer
/install legend-file-organizer
File Organizer
Manages file organization through safe, predictable batch operations.
Core Workflows
Directory Structure
Create standard project layouts:
project/
├── src/ - Source code
├── docs/ - Documentation
├── tests/ - Test files
├── assets/ - Images, fonts, media
├── scripts/ - Build scripts, utilities
└── config/ - Configuration files
Moving Files
mv \x3Csource> \x3Cdest>- Single filefind . -name "*.ext" -exec mv {} \x3Cdest>/ \;- Batch by extension- Always confirm destination exists
Batch Renaming
Patterns:
- Sequential numbering:
file_{001..100}.txt - Date-based:
YYYY-MM-DD_description - Type-based: Group by extension
Safe approach:
echocommands first (dry run)- Review output
- Remove
echo, execute
Organizing by Type
Group files by extension into folders:
mkdir -p images docs code
find . -name "*.png" -o -name "*.jpg" | xargs -I {} mv {} images/
find . -name "*.md" -o -name "*.txt" | xargs -I {} mv {} docs/
find . -name "*.py" -o -name "*.js" | xargs -I {} mv {} code/
Finding Scattered Files
find . -type f -name "*.ext" # Find by extension
find . -type f -mtime -7 # Modified in last 7 days
find . -type f -size +100M # Large files
Dry Runs First
Always preview batch operations:
echo "Would move these files:"
find . -name "*.ext"
# Review, then execute
Safety Rules
- Never delete without explicit permission (use
trashif available) - Dry run first - Always echo/preview batch operations
- Check destinations - Confirm target directories exist
- Backup before restructure - Snapshot before major moves
- Respect workspace boundaries - Only touch ~/openclaw
When to Read references/patterns.md
Load when:
- Complex rename patterns needed
- Project structure templates required
- Advanced find commands for filtering
- Edge cases (symlinks, special characters)
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install legend-file-organizer - After installation, invoke the skill by name or use
/legend-file-organizer - Provide required inputs per the skill's parameter spec and get structured output
What is File Organizer?
File organization and batch operations for workspace management. Use when organizing files for: (1) Moving files to correct directories, (2) Batch renaming (... It is an AI Agent Skill for Claude Code / OpenClaw, with 349 downloads so far.
How do I install File Organizer?
Run "/install legend-file-organizer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is File Organizer free?
Yes, File Organizer is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does File Organizer support?
File Organizer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created File Organizer?
It is built and maintained by dougchambers (@dougchambes); the current version is v1.0.0.