File organization and batch operations for workspace management. Use when organizing files for: (1) Moving files to correct directories, (2) Batch renaming (...
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
1. Never delete without explicit permission (use trash if available)
2. Dry run first - Always echo/preview batch operations
3. Check destinations - Confirm target directories exist
4. Backup before restructure - Snapshot before major moves
5. Respect workspace boundaries - Only touch ~/openclaw