一键导入
cleanup-pdf-names
Clean up PDF filenames by removing spaces, em dashes, and special characters
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Clean up PDF filenames by removing spaces, em dashes, and special characters
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cleanup-pdf-names |
| description | Clean up PDF filenames by removing spaces, em dashes, and special characters |
| argument-hint | <path/to/directory> |
| disable-model-invocation | false |
| allowed-tools | Bash |
Clean up PDF filenames for filesystem compatibility and consistency.
$ARGUMENTS
If $ARGUMENTS empty: Ask user for path (e.g., documents/ or documents/00-background/).
If $ARGUMENTS provided: Use path; resolve relative paths from project root.
_)—) → hyphen (-)–) → hyphen (-)' ' " ") → regular quotes (' ")Example preview:
Files to be renamed:
1. Biswas - 2023 - Role of Chat GPT.pdf
→ Biswas_-_2023_-_Role_of_Chat_GPT.pdf
2. Mello — 2024 — Denial.pdf
→ Mello_-_2024_-_Denial.pdf
Total: 2 files will be renamed
Run the cleanup script:
.claude/skills/cleanup-pdf-names/scripts/cleanup_pdf_names.sh "{directory_path}"
Report the summary from the script output:
| Character | Replacement |
|---|---|
Space ( ) | Underscore (_) |
Em dash (—) | Hyphen (-) |
En dash (–) | Hyphen (-) |
Left single quote (') | Single quote (') |
Right single quote (') | Single quote (') |
Left double quote (") | Double quote (") |
Right double quote (") | Double quote (") |
| Accented chars (á, é, ñ, ü, etc.) | ASCII equivalents (a, e, n, u) |
Skip the file and report it. Do not overwrite existing files.
Report "No PDF files found in directory" and stop.
Report the specific file that failed and continue with remaining files.
Generate a cross-cutting synthesis document from all summaries in summaries/. Reads synthesis-guidance.md if present. Can trigger the full pipeline if summaries are missing.
Package the synthesis into a shareable ZIP for distribution. Use when the user wants to share, export, or distribute their synthesis to others. Creates a self-contained directory (synthesis-export/) with the HTML, CSS, JS, all source PDFs, and all summary files, then zips it. The "Ask Claude" functionality is automatically removed (button hidden via CSS) since it requires a local server to work. Invoke when the user says things like "export", "share", "package", "zip up", "distribute", or "send the synthesis to someone".
Use when the user wants to view or interact with synthesis.html after running /create-synthesis — builds the HTML, verifies Claude Code auth, starts the local server, and opens the page in the browser
Reset the cc-synthesizer pipeline by deleting all generated files so a fresh batch of PDFs can be processed from scratch. Invoke whenever the user wants to start over with new documents, clear the workspace, or clean up pipeline outputs. Trigger on phrases like "reset", "clean up", "start fresh", "new batch", "clear the pipeline", "delete generated files", "wipe the outputs", or "prepare for new PDFs". Always checks for an existing export first before deleting anything — don't skip this check.
Generate per-document markdown summaries from PDFs. Detects document type and adapts the summary structure accordingly. Updates citations.json.