π¦ ClawHub
AI-powered PDF organizer with smart naming
by @yxl184
AI tool that categorizes PDFs by topic, extracts metadata, renames files smartly, and organizes them into hierarchical folders automatically.
TERMINAL
clawhub install pdf-organizer-skillπ About This Skill
PDF Organizer Skill
Description
AI-powered PDF organization tool that automatically categorizes and organizes PDF files by topic using GPT analysis.Features
Title_Author_Journal.pdf format using only underscoresRequirements
Usage
1. Configure API key inconfig.json
2. Place PDF files in input_pdfs/ folder
3. Run: python pdf_organizer.py
4. Organized files appear in organized_pdfs/ folderProject Structure
pdf_organizer.py # Main entry point
modules/
βββ pdf_reader.py # PDF text extraction
βββ content_analyzer.py # OpenAI/Kimi API integration
βββ folder_manager.py # Folder creation and management
βββ file_mover.py # File operations
config.json # Configuration file
requirements.txt # Python dependencies
README.md # Documentation
setup.py # Setup/initialization script
Configuration Options
openai_api_key: Your API key (required)input_folder: Folder containing PDFs to organizeoutput_folder: Destination folder for organized PDFsmodel: GPT model to use (gpt-3.5-turbo or moonshot-v1-8k)api_provider: API provider ("openai" or "kimi")dry_run: Preview mode without moving files (true/false)incremental: Only process new/modified files (true/false)max_chars: Maximum characters to analyze from each PDFcustom_topics: Custom topic mappingsExample Output
Organized files are named:Title_Author_Journal.pdf
Example: Visual_SLAM_What_Are_the_Current_Trends_and_What_to_Expect_Ali_Tourani,_Hriday_Bavle,_Jose_Luis_Sanchez-Lopez,_and_Holger_Voos_Sensors.pdf
π‘ Examples
1. Configure API key in config.json
2. Place PDF files in input_pdfs/ folder
3. Run: python pdf_organizer.py
4. Organized files appear in organized_pdfs/ folder