med-paper-assistant: Skill for Claude Code

.claude/skills/pdf-asset-extractor/SKILL.md

pdf-asset-extractor is a skill for Claude Code from u9401066/med-paper-assistant. It costs 84 tokens per session (3,390 once invoked), scanned A, original, Apache-2.0.

A set of MCP tools that turns PDF research papers into searchable text, images, tables, sections, and links between documents.

In plain words
What is it for?
Use it to ingest PDFs, extract figures and Markdown tables, navigate section trees, compare documents, query a cross-document knowledge graph, and export Mermaid diagrams.
Why use it?
It removes much of the manual work of locating figures, tables, document sections, and related information across PDFs.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is u9401066/med-paper-assistant's own configuration. It tells Claude Code how to work on med-paper-assistant itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything med-paper-assistant configures →

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/med-paper-assistant. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/u9401066/med-paper-assistant/master/.claude/skills/pdf-asset-extractor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/med-paper-assistant

Made for: Claude Code.

Wrote 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.

agentmods badge for pdf-asset-extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/u9401066/med-paper-assistant/pdf-asset-extractor/github.svg)](https://agentmods.dev/skills/u9401066/med-paper-assistant/pdf-asset-extractor)
Your own site
<a href="https://agentmods.dev/skills/u9401066/med-paper-assistant/pdf-asset-extractor"><img src="https://agentmods.dev/badge/skills/u9401066/med-paper-assistant/pdf-asset-extractor/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.

agentmods 80×15 button for pdf-asset-extractor

Your own site · 80×15
<a href="https://agentmods.dev/skills/u9401066/med-paper-assistant/pdf-asset-extractor"><img src="https://agentmods.dev/badge/skills/u9401066/med-paper-assistant/pdf-asset-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,390 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.03390
Opus 5 $0.00042 $0.01695
Sonnet 5 $0.00017 $0.00678
Haiku 4.5 $0.00008 $0.00339

Measured 11d ago against content hash a13fff95f85c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pdf-asset-extractor 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 11d 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.

Origin

Copies of this mod

4 near-identical copies found in the catalogue:

.claude/skills/pdf-asset-extractor/SKILL.md · 391 lines

How it starts

The opening of the file, as written. The whole thing — 391 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PDF Asset Extractor (MCP Tools)

描述

將 PDF 文件分解為可查詢的資產(圖片、表格、章節),並建立跨文獻知識圖譜。

核心能力

  • 📄 PDF 匯入 → 雙引擎(PyMuPDF 快速 / Marker 高精度)自動提取圖片、表格、文字
  • 🖼️ 圖片提取 → 以 base64 返回,支援 Vision AI 分析
  • 📊 表格提取 → 轉換為 Markdown 格式
  • 🧭 章節導航 → 動態層級 Section Tree(支援任意深度)
  • 🔍 知識圖譜 → 跨文獻關係查詢 (LightRAG)
  • 📈 圖譜視覺化 → 導出 Mermaid 圖表

觸發條件

  • 「ingest PDF」、「匯入 PDF」、「解析文件」、「分析論文」
  • 「看 manifest」、「文件結構」、「有什麼圖表」
  • 「取得圖片」、「fetch figure」、「拿表格」、「extract」
  • 「知識圖譜」、「cross-document」、「比較文獻」、「RAG」
  • 「視覺化圖譜」、「export graph」、「mermaid」
  • 「章節」、「section」、「導航」、「樹狀結構」

🔧 雙引擎策略

引擎 強項 弱項 觸發方式
PyMuPDF (預設) 快速、輕量 (~50MB) 版面分析精度較低 ingest_documents()
Marker (高精度) 精確 bbox、section hierarchy 重模型 (~1GB)、較慢 ingest_documents(use_marker=True)parse_pdf_structure()

Marker 產出額外資料

  • blocks.json — 結構化區塊(含 bbox、polygon、section_hierarchy)
  • 支援 Section Navigation 動態層級導航

⚠️ 重要警告

🖼️ 圖片 Context 限制

Base64 圖片非常大,一次只處理一張!

  • 一張圖片 ≈ 200KB base64 ≈ ~270K tokens
  • 對話 context 有限,多張圖片會快速耗盡
  • 建議流程:先 inspect_document_manifest → 選定目標圖 → 一次 fetch 一張

👁️ 視覺能力提醒

如果 AI 有視覺能力(Vision),可直接分析返回的圖片 如果是純文字 AI,應誠實告知無法分析圖片內容

📸 圖片 ID 命名規則

系統以 fig_{page}_{index} 命名,非解析圖說文字 需手動對照 manifest 頁碼與實際 Figure 編號


🔧 可用 MCP Tools

文件處理

Tool 用途 參數
ingest_documents 匯入 PDF(ETL 流程) file_paths: list[str], async_mode: bool, use_marker: bool
parse_pdf_structure Marker 結構化解析(單檔) file_path: str
get_job_status 查詢 ETL 進度 job_id: str
list_jobs 列出所有工作 active_only: bool
cancel_job 取消 ETL 工作 job_id: str

Read the full file on GitHub · 391 lines

Changes

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.

  1. 11d ago First seen · 391 lines · 84 tokens per session scan A a13fff95f85c

Subscribe to this mod's changes

pdf-asset-extractor is a skill published in the GitHub repository u9401066/med-paper-assistant (12 stars, last pushed 10d ago), licensed Apache-2.0. It adds 84 tokens to every session and 3,390 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories

read

Read PDF page by page with structured output — key arguments, terms glossary, thesis connections. Use when reading academic papers, books, or articles.

yha9806/academic-writing-toolkit · 31 tokens

release-governance

Use when preparing, auditing, releasing, PDF-hardening, or rebuttal-hardening academic manuscripts, datasets, artifacts, reviewer packets, or claim registers involving multiple refs, local assets, human labels, agent-assisted drafts, wide tables, figure provenance, submission PDFs, or evidence-boundary checks.

yha9806/academic-writing-toolkit · 64 tokens

proposal-import

Import an existing proposal (usually PDF) into the standard single-file format — extract text and references, strip personal data, mark gaps. Use when the user has a draft from Word, LaTeX, Overleaf or another tool, pastes the text of an older proposal, or wants to carry existing work over and continue it here.

hutzelmann/thesis-proposal-skills · 71 tokens

proposal-publish

Build a PDF (or docx fallback) from a proposal file via pandoc — compact layout, typst-first, with install guidance when tools are missing. Also offers a stripped hand-in export, and hands over to a workspace build script where one exists. Use when the user wants a PDF or something to email, print or hand to their…

hutzelmann/thesis-proposal-skills · 100 tokens

book-to-skill

Book-to-skill takes technical books, documentation, or other long-form sources and converts them into a skill made of a core definition plus per-chapter files, a glossary, and cheatsheets, so an agent can load only the relevant section instead of the whole document. It supports PDF, EPUB, DOCX, HTML, and several other…

best-of-ai/best-of-ai · 75 tokens

tikz-figure-review

Review and fix alignment, label collision, clipping, legend-over-data, overlap, and layout issues in TikZ and pgfplots figures inside LaTeX documents. Use when the user wants to review figures in a paper, tutorial, lecture notes, or thesis before submission; when a reviewer flags figure problems; when a rendered…

shubham0704/claude-skills · 177 tokens