From doc-skills
Intelligently rename research paper PDFs from generic filenames (DOIs, serial numbers) to descriptive names based on extracted titles and metadata. This skill should be used when the user has downloaded research articles with non-descriptive filenames and wants to organize them with meaningful names based on the document content.
How this skill is triggered — by the user, by Claude, or both
Slash command
/doc-skills:paper-renameThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Rename research paper PDFs from generic filenames to descriptive, meaningful names by extracting title and metadata from the document content. This skill uses `pdftotext` for efficient text extraction (first 50 lines only) without loading entire PDFs into context.
Rename research paper PDFs from generic filenames to descriptive, meaningful names by extracting title and metadata from the document content. This skill uses pdftotext for efficient text extraction (first 50 lines only) without loading entire PDFs into context.
Use this skill when the user needs to:
Determine which PDF files need renaming:
ls or find to list PDFs)For each PDF, extract the first 50 lines using pdftotext:
pdftotext -f 1 -l 1 "input.pdf" - | head -50
Command breakdown:
-f 1 -l 1: Extract only first page-: Output to stdout (not a file)| head -50: Limit to first 50 linesFrom the extracted text, identify:
Title (primary focus)
Authors (if requested by user)
Keywords/Topic (if requested by user)
Create a descriptive filename following these principles:
Default format (title only):
Clean_Title_Here.pdf
Name with prefix
Prefix_Clean_Title_Here.pdf
Filename cleaning rules:
/ \ : * ? " < > |Examples:
Original: s41586-023-06824-w.pdf
New: Quantum_Error_Correction_Using_Surface_Codes.pdf
Original: 10.1038_nature12345.pdf
New: 001_Neural_Networks_for_Protein_Folding.pdf
Original: download_8472839.pdf
New: Machine_Learning_in_Climate_Modeling.pdf
Execute the rename using mv command:
mv "original_filename.pdf" "New_Descriptive_Filename.pdf"
Safety checks before renaming:
ls or test [ -f "filename" ])_2.pdf, _3.pdf, etc.For multiple PDFs in a directory:
find . -name "*.pdf" -type fUser: "Rename this PDF to something meaningful"
Action: Extract title, clean filename, rename
User: "Organize my downloaded papers in the Downloads folder"
Action: List PDFs, extract titles for each, rename all with progress updates
User: "Rename this to include the first author and year"
Action: Extract title, author, year; construct filename with requested format
User: "Rename these PDFs but keep the filenames short, just the main topic"
Action: Extract title, identify core topic/subject, create concise filename
Handle these common issues gracefully:
pdftotext not installed
which pdftotextbrew install poppler (macOS) or apt-get install poppler-utils (Linux)Title not clearly identifiable
npx claudepluginhub aeghnnsw/cc-toolkit --plugin doc-skillsReads, analyzes, and summarizes academic PDF papers — extracting metadata, research questions, methodology, results, and generating structured literature notes. Supports single paper deep dives, batch literature reviews, and cross-paper comparison.
Retrieves scientific paper PDFs from arXiv URLs, DOIs, titles, or other identifiers, saving to papers/ directory. Uses direct arXiv downloads or sci-hub with Chrome for paywalled papers.
Batch downloads open-access PDFs from a DOI list using Unpaywall, PMC, OpenAlex, and Crossref APIs. Converts PDFs to Markdown for LLM analysis.