Unified private PDF-to-Markdown parser over LiteParse, Marker and MinerU. Inspects page text density, chooses the engine for narrative, laboratory tables…
от hyper-code-harness★ 22 звезды на GitHub
Установить pdf в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
PDF Parser
This is the preferred entry point for local PDF parsing. It wraps the marker and mineru plugins rather than duplicating their runtimes, and adds a LiteParse fast path for born-digital documents.
Optional local dependencies: LiteParse (uv tool install liteparse) for the fast path, marker-pdf and mineru for OCR/VLM parsing. Each engine degrades to a reported error instead of throwing when it is missing.
Workflow
pdf.status({})— which engines are installed and what the routing policy is.pdf.needsOcr({ input })— the cheap LiteParse text-layer probe (~20-200 ms for a whole document). ASIMPLEverdict means the embedded text is worth trusting;COMPLEXnames the pages that need OCR.pdf.convert({ input })— converts through the fast path or a heavy engine and returns one normalized result with provenance, quality analysis andreviewStatus.
For explicit control, pdf.inspect recommends an engine without converting, pdf.parseLite runs the
LiteParse-only extraction (also DOCX/XLSX/PPTX), and pdf.compare runs Marker and MinerU on the same PDF.
Auto-routing
- Fast path first:
pdf.convertrunspdf.needsOcr; if no page needs OCR and no page has a complex layout, LiteParse produces the Markdown directly (milliseconds instead of minutes). Disable withskipLiteFastPath: true, force withengine: "lite". - Born-digital narrative, reports, prescriptions, ECG text: Marker
auto/fast. - Laboratory/pathology result tables: MinerU
vlm-engine, because HTML tables preserve rowspan/colspan and units better. - Fully scanned documents: MinerU
vlm-engineby default; use comparison for high-stakes extraction. - Mixed PDFs: MinerU when most pages are scanned, otherwise Marker balanced.
Routing is heuristic. reviewStatus: manual-verification-required means no extracted clinical number should become canonical without checking the source PDF. MinerU VLM figure descriptions may be generated rather than clinician-authored and must retain that provenance.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- package.json
- src/pdf/compare.ts
- src/pdf/convert.ts
- src/pdf/inspect.ts
- src/pdf/litBin.ts
- src/pdf/needsOcr.ts
- src/pdf/parseLite.ts
- src/pdf/pdf.test.ts
- src/pdf/status.ts
- src/pdf/statusMissing.test.ts
FAQ
Что делает скилл pdf?
Unified private PDF-to-Markdown parser over LiteParse, Marker and MinerU. Inspects page text density, chooses the engine for narrative, laboratory tables, mixed documents, or scans, preserves provenance, reports clinical extraction risk, and can compare both engines. Use whenever the user asks to parse, OCR, convert, inspect, benchmark, or compare a local PDF.
Как установить скилл pdf?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pdf запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…