Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LigphiDonk/Oh-my--paper --skill literature-pdf-ocr-librarygit clone --depth 1 https://github.com/LigphiDonk/Oh-my--paperWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ligphidonk/oh-my--paper/literature-pdf-ocr-library)<a href="https://agentmods.dev/skills/ligphidonk/oh-my--paper/literature-pdf-ocr-library"><img src="https://agentmods.dev/badge/skills/ligphidonk/oh-my--paper/literature-pdf-ocr-library/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ligphidonk/oh-my--paper/literature-pdf-ocr-library"><img src="https://agentmods.dev/badge/skills/ligphidonk/oh-my--paper/literature-pdf-ocr-library.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00108 | $0.01069 |
| Opus 5.5 | $0.00043 | $0.00428 |
| Sonnet 5.5 | $0.00022 | $0.00214 |
| Haiku 4.5 | $0.00011 | $0.00107 |
Grade A, and why
literature-pdf-ocr-library scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Literature PDF OCR Library
Overview
Use this skill to build a real, traceable literature corpus instead of fabricating references or scraping arbitrary publisher pages. The default workflow is: narrow the topic, search official or stable APIs, download only legally accessible PDFs, run OCR or layout parsing, then emit a clean Markdown library with machine-readable metadata.
Canonical Directory Layout
In Oh My Paper projects, the corpus always lives under .pipeline/literature/<corpus-name>/.
In standalone projects, use research/literature/<corpus-name>/.
Never dump papers into the root or a flat directory without a corpus name.
.pipeline/
literature/
<corpus-name>/ ← one folder per topic/session, e.g. "humanoid-locomotion"
search_results.json ← raw search/ID-lookup results
library_index.json ← consolidated index for the whole corpus
library_index.jsonl
papers/
<arxiv-id>-<title-slug>/ ← one folder per paper
metadata.json
paper.pdf
ocr/ ← OCR output lives here, next to the PDF
paper/
doc_0.md ← main OCR markdown (PaddleOCR: multiple pages)
manifest.json
doc_0.md ← pdfminer fallback: single flat file
Rules:
--out-diralways points to.pipeline/literature/<corpus-name>/— never to.pipeline/literature/directly.- OCR output lives inside the paper's own folder (
papers/<slug>/ocr/), not in a top-levelocr/directory. - After OCR, record each paper's
ocr/path inliterature_bank.mdso agents can read the actual content.
Commands
# Download by arXiv IDs (recommended when IDs are known from web search)
python .claude/skills/literature-pdf-ocr-library/scripts/search_and_download_papers.py \
--arxiv-ids 2502.13817 2501.14459 \
--out-dir .pipeline/literature/my-corpus \
--download-pdfs
# Download by query
python .claude/skills/literature-pdf-ocr-library/scripts/search_and_download_papers.py \
--query "humanoid locomotion reinforcement learning" \
--out-dir .pipeline/literature/my-corpus \
--limit 20 --sources arxiv semanticscholar openalex hf_daily \
--download-pdfs
# OCR: PaddleOCR API (best quality)
export PADDLEOCR_TOKEN="<token>" # ask user, never hardcode
python .claude/skills/literature-pdf-ocr-library/scripts/paddleocr_layout_to_markdown.py \
.pipeline/literature/my-corpus/papers/*/paper.pdf \
--output-dir .pipeline/literature/my-corpus/papers \
--skip-existing
# OCR: pdfminer fallback (text-only, no layout — confirm with user first)
python .claude/skills/literature-pdf-ocr-library/scripts/paddleocr_layout_to_markdown.py \
.pipeline/literature/my-corpus/papers/*/paper.pdf \
--output-dir .pipeline/literature/my-corpus/papers \
--fallback-pdfminer
# Build index
python .claude/skills/literature-pdf-ocr-library/scripts/build_library_index.py \
--library-root .pipeline/literature/my-corpus
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 329 B
- references/source-strategy.md 1.4 KB
- scripts/__pycache__/literature_lib.cpython-313.pyc 20 KB
- scripts/build_library_index.py 2.4 KB runs code
- scripts/ingest_literature_library.py 3.1 KB runs code
- scripts/literature_lib.py 14 KB runs code
- scripts/paddleocr_layout_to_markdown.py 6.3 KB runs code
- scripts/search_and_download_papers.py 4.5 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 97 lines · 108 tokens per session scan A d5eaf1792762
literature-pdf-ocr-library is a skill published in the GitHub repository LigphiDonk/Oh-my--paper (759 stars, last pushed 7mo ago), licensed MIT. It adds 108 tokens to every session and 1,069 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
literature-pdf-ocr-library compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| literature-pdf-ocr-libraryLigphiDonk/Oh-my--paper | Skill | 759 | 7mo ago | MIT | A | 108 | Codex |
| apify-youtube-transcript-scrapersickn33/agentic-awesome-skills | Skill | 51k | yesterday | MIT | A | 48 | Claude Code |
| report-to-pdfasgeirtj/system_prompts_leaks | Skill | 74k | 2d ago | CC0-1.0 | A | 17 | Claude Code, Codex |
| skill-doc-deliverynyldn/claude-octopus | Skill | 4.5k | today | MIT | A | 29 | Claude Code |
| pdf-extract-create-workflowHKUDS/OpenSpace | Skill | 8.1k | 19d ago | MIT | A | 22 | Claude Code, Codex |
| document-direct-pythonHKUDS/OpenSpace | Skill | 8.1k | 19d ago | MIT | A | 20 | Claude Code, Codex |
| pdf-verification-cliHKUDS/OpenSpace | Skill | 8.1k | 19d ago | MIT | A | 19 | Claude Code, Codex |