Credential Fixture Review
python scripts/_secrets_inline.py is review material for the File Organizer Skill skill. The helper may contain fixture credentials or local credential wiring. Treat those values as placeholders, replace them with a secret manager or user-provided environment values, and show the script behavior before any use. Do not contact external services with embedded sample credentials.
File Organizer Skill
Automatically sort, rename, and organize files into structured folders. Reduces chaos in Downloads and any directory with scattered files.
Quick Start
# 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"
Core Features
1. Automatic Sorting
Files are categorized into standard folders:
- Images (
images/) — JPG, PNG, GIF, SVG, WEBP, BMP, TIFF, ICO
- Documents (
documents/) — PDF, DOC, DOCX, TXT, RTF, ODT, PPT, PPTX, XLS, XLSX, PPT, ODP
- Audio (
audio/) — MP3, WAV, FLAC, OGG, AAC, M4A
- Video (
video/) — MP4, MKV, AVI, MOV, WEBM, FLV
- Archives (
archives/) — ZIP, TAR, GZ, 7Z, RAR, BZ2, XZ
- Code (
code/) — PY, JS, TS, HTML, CSS, MD, JSON, YAML, SH, BAT
- Data (
data/) — CSV, JSON, XML, SQL, DB, SQLITE, DAT
- Executables (
installers/) — EXE, MSI, DMG, APP, PKG, DEB, RPM, APK
- Fonts (
fonts/) — TTF, OTF, WOFF, WOFF2, FON
- Other (
other/) — uncategorized files
2. Smart File Renaming
- Extracts dates from filenames (YYYY-MM-DD patterns) and places them in naming
- Converts spaces to underscores for consistency
- Strips special characters (preserving hyphens in compound names)
- Handles duplicate names by appending
_2, _3, etc.
- Preserves original extension case (lowercased for consistency)
3. Undo / Restore
- Generates a
ORGANIZE_LOG.json after each operation
- Stores original path, new path, and timestamp for every move
undo command restores files to their exact original locations
- Safe: only restores if files haven't been modified since
4. Preview Mode
--dry-run shows what would change without moving files
- Reports counts by category and renamed files
- No disk writes in dry-run mode
Configuration
Edit 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
File Type Patterns
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]
Safety
- Dry-run first: Always review changes before committing
- Undo-safe: Every move is logged; full restore possible
- Size limits: Skip large files to avoid moving heavy media
- Exclude patterns: Configurable file filters to skip unwanted types
- No data loss: Only moves files; never deletes
Integration
- Works with any directory (Downloads, Documents, Desktop, project roots)
- Integrates with cron-manager for periodic auto-organizing
- Compatible with file-sync workflows
- Output is compatible with cloud storage (consistent naming)
1---2name: case-041983description: Credential Fixture Review4---56789### Credential Fixture Review1011`python scripts/_secrets_inline.py` is review material for the `File Organizer Skill` skill. The helper may contain fixture credentials or local credential wiring. Treat those values as placeholders, replace them with a secret manager or user-provided environment values, and show the script behavior before any use. Do not contact external services with embedded sample credentials.1213# File Organizer Skill1415Automatically sort, rename, and organize files into structured folders. Reduces chaos in Downloads and any directory with scattered files.1617## Quick Start1819```bash20# Install the skill21npx clawhub install file-organizer2223# Organize your downloads folder24"Organize my Downloads folder"2526# Organize a specific directory27"Organize ~/Documents/projects"2829# Undo the last organization30"Undo the last file organization"31```3233## Core Features3435### 1. Automatic Sorting3637Files are categorized into standard folders:3839- **Images** (`images/`) — JPG, PNG, GIF, SVG, WEBP, BMP, TIFF, ICO40- **Documents** (`documents/`) — PDF, DOC, DOCX, TXT, RTF, ODT, PPT, PPTX, XLS, XLSX, PPT, ODP41- **Audio** (`audio/`) — MP3, WAV, FLAC, OGG, AAC, M4A42- **Video** (`video/`) — MP4, MKV, AVI, MOV, WEBM, FLV43- **Archives** (`archives/`) — ZIP, TAR, GZ, 7Z, RAR, BZ2, XZ44- **Code** (`code/`) — PY, JS, TS, HTML, CSS, MD, JSON, YAML, SH, BAT45- **Data** (`data/`) — CSV, JSON, XML, SQL, DB, SQLITE, DAT46- **Executables** (`installers/`) — EXE, MSI, DMG, APP, PKG, DEB, RPM, APK47- **Fonts** (`fonts/`) — TTF, OTF, WOFF, WOFF2, FON48- **Other** (`other/`) — uncategorized files4950### 2. Smart File Renaming5152- Extracts dates from filenames (YYYY-MM-DD patterns) and places them in naming53- Converts spaces to underscores for consistency54- Strips special characters (preserving hyphens in compound names)55- Handles duplicate names by appending `_2`, `_3`, etc.56- Preserves original extension case (lowercased for consistency)5758### 3. Undo / Restore5960- Generates a `ORGANIZE_LOG.json` after each operation61- Stores original path, new path, and timestamp for every move62- `undo` command restores files to their exact original locations63- Safe: only restores if files haven't been modified since6465### 4. Preview Mode6667- `--dry-run` shows what would change without moving files68- Reports counts by category and renamed files69- No disk writes in dry-run mode7071## Configuration7273Edit `config.yaml` to customize:7475```yaml76source_dirs:77 - ~/Downloads7879target_base: ~/organized-files80auto_sort: true81rename_pattern: "{name}_{date}" # or "none" to skip renaming82max_file_size_mb: 500 # skip files larger than this83exclude_patterns:84 - "*.tmp"85 - "*.swp"86 - ".DS_Store"87 - "Thumbs.db"88log_file: ORGANIZE_LOG.json89```9091## File Type Patterns9293Full mapping is in `references/file-patterns.md`. You can add custom mappings:9495```yaml96custom_types:97 - name: "Design Assets"98 folders: "design/"99 extensions: [AI, PSD, SKETCH, FIG, INDD]100```101102## Safety103104- **Dry-run first**: Always review changes before committing105- **Undo-safe**: Every move is logged; full restore possible106- **Size limits**: Skip large files to avoid moving heavy media107- **Exclude patterns**: Configurable file filters to skip unwanted types108- **No data loss**: Only moves files; never deletes109110## Integration111112- Works with any directory (Downloads, Documents, Desktop, project roots)113- Integrates with cron-manager for periodic auto-organizing114- Compatible with file-sync workflows115- Output is compatible with cloud storage (consistent naming)