All skills
Skillintermediate
CLI Tool Example
Create a Python CLI tool for file organization:
Claude Code Knowledge Pack7/10/2026
Overview
CLI Tool Example
Create a Python CLI tool for file organization:
Requirements
-
Command-line interface using argparse
-
Commands:
organize photos- Organize photos by date takenorganize documents- Sort documents by typeorganize downloads- Clean up downloads folderorganize --custom <pattern>- Custom organization rules
-
Features:
- Dry-run mode to preview changes
- Undo functionality
- Progress bar for large operations
- Configuration file support (~/.file_organizer.yml)
- Logging to file
-
Organization rules:
- Photos: Year/Month folders based on EXIF data
- Documents: Folders by extension (pdf/, docx/, txt/)
- Downloads: Archive old files, group by type
- Custom: User-defined patterns
-
Safety:
- Never delete files
- Create backups before moving
- Handle duplicate filenames
- Preserve file permissions
Save as file_organizer.py with supporting modules:
- organizers/photo_organizer.py
- organizers/document_organizer.py
- utils/config.py
- utils/backup.py
Include requirements.txt with dependencies
The orchestrator will continue iterations until all components are implemented and tested