一键导入
rename-pdfs
[Dev] Rename PDF files using AI (Python, requires venv). For development and cross-platform (macOS/Linux) use.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
[Dev] Rename PDF files using AI (Python, requires venv). For development and cross-platform (macOS/Linux) use.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build the EXE and distribution package. Use when the user wants to create a release build.
[Production] Rename PDF files using the compiled autorename-pdf-cli.exe. Windows only.
Run the test suite with coverage report. Use when tests need to be executed or verified.
| name | rename-pdfs |
| description | [Dev] Rename PDF files using AI (Python, requires venv). For development and cross-platform (macOS/Linux) use. |
| user-invocable | true |
| argument-hint | [path_to_pdfs] |
| allowed-tools | ["Bash(python *)","Bash(source *)"] |
Rename PDF files using autorename-pdf from source. Requires the Python venv to be active.
Activate the venv before running any commands:
source venv/Scripts/activate # Windows
source venv/bin/activate # macOS / Linux
Always dry-run first to preview changes:
python autorename-pdf.py rename $ARGUMENTS --dry-run --output json
Review the output — check that company names, dates, and document types look correct.
If the user confirms, run without dry-run:
python autorename-pdf.py rename $ARGUMENTS --output json
Report results — show renamed count, any failures, and new filenames.
Pass these after the path:
--recursive or -r — process subfolders--provider <name> — override AI provider (openai/anthropic/gemini/xai/ollama)--model <name> — override AI model--vision — force vision mode (send page images to LLM)--text-only — text extraction only, no OCR/vision--ocr — force PaddleOCRpython autorename-pdf.py undo --output json
python autorename-pdf.py config show --output json
harmonized-company-names.yaml maps company name variations to standardized names (e.g., "MSFT", "Microsoft Corp." → "Microsoft"). Uses fuzzy matching (Jaro-Winkler) so OCR typos are handled automatically.
If the dry-run output shows inconsistent or wrong company names, suggest the user add mappings:
StandardName:
- "Variation 1"
- "Variation 2"
config.yaml in project root (never commit — contains API keys)harmonized-company-names.yaml in project root (copy from .example)YYYYMMDD COMPANY DOCTYPE.pdf