Install
openclaw skills install claw-file-organizerAutomatically sort and rename files by type into structured folders with undo support, configurable filters, and dry-run preview for safe batch organization.
openclaw skills install claw-file-organizerAutomatically sort, rename, and organize files into structured folders. Reduces chaos in Downloads and any directory with scattered files.
# Install the skill
npx clawhub install file-organizer
# Organize your downloads folder
"Organize my Downloads folder"
# Organize a specific directory
"Organize ~/Documents/projects"
# Undo the last organization
"Undo the last file organization"
Files are categorized into standard folders:
images/) — JPG, PNG, GIF, SVG, WEBP, BMP, TIFF, ICOdocuments/) — PDF, DOC, DOCX, TXT, RTF, ODT, PPT, PPTX, XLS, XLSX, PPT, ODPaudio/) — MP3, WAV, FLAC, OGG, AAC, M4Avideo/) — MP4, MKV, AVI, MOV, WEBM, FLVarchives/) — ZIP, TAR, GZ, 7Z, RAR, BZ2, XZcode/) — PY, JS, TS, HTML, CSS, MD, JSON, YAML, SH, BATdata/) — CSV, JSON, XML, SQL, DB, SQLITE, DATinstallers/) — EXE, MSI, DMG, APP, PKG, DEB, RPM, APKfonts/) — TTF, OTF, WOFF, WOFF2, FONother/) — uncategorized files_2, _3, etc.ORGANIZE_LOG.json after each operationundo command restores files to their exact original locations--dry-run shows what would change without moving filesEdit config.yaml to customize:
source_dirs:
- ~/Downloads
target_base: ~/organized-files
auto_sort: true
rename_pattern: "{name}_{date}" # or "none" to skip renaming
max_file_size_mb: 500 # skip files larger than this
exclude_patterns:
- "*.tmp"
- "*.swp"
- ".DS_Store"
- "Thumbs.db"
log_file: ORGANIZE_LOG.json
Full mapping is in references/file-patterns.md. You can add custom mappings:
custom_types:
- name: "Design Assets"
folders: "design/"
extensions: [AI, PSD, SKETCH, FIG, INDD]