rootcause-mcp: Skill for Claude Code

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

pdf-asset-extractor is a skill for Claude Code from u9401066/rootcause-mcp. It costs 84 tokens per session (3,261 once invoked), scanned A, a copy of pdf-asset-extractor, Apache-2.0.

A tool that breaks PDF documents into searchable text, sections, figures, and tables, then connects information across documents. A knowledge graph is a map of relationships between pieces of information.

In plain words
What is it for?
Importing PDFs, extracting figures and Markdown tables, navigating document sections, querying relationships across papers, and exporting graph data as Mermaid diagrams.
Why use it?
It makes long research papers easier to inspect and compare without searching through every page manually.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is u9401066/rootcause-mcp's own configuration. It tells Claude Code how to work on rootcause-mcp 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 rootcause-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/rootcause-mcp. 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/rootcause-mcp/master/.claude/skills/pdf-asset-extractor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/rootcause-mcp

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/rootcause-mcp/pdf-asset-extractor/github.svg)](https://agentmods.dev/skills/u9401066/rootcause-mcp/pdf-asset-extractor)
Your own site
<a href="https://agentmods.dev/skills/u9401066/rootcause-mcp/pdf-asset-extractor"><img src="https://agentmods.dev/badge/skills/u9401066/rootcause-mcp/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/rootcause-mcp/pdf-asset-extractor"><img src="https://agentmods.dev/badge/skills/u9401066/rootcause-mcp/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,261 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.
Origin 100% copy Near-identical to another mod 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.03261
Opus 5 $0.00042 $0.01631
Sonnet 5 $0.00017 $0.00652
Haiku 4.5 $0.00008 $0.00326

Measured 9d ago against content hash a8fa62970f9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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

This is a copy

100% identical to pdf-asset-extractor — 129 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

The opening of the file, as written. The whole thing — 380 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

資產查詢

Tool 用途 參數
list_documents 列出所有已處理文件
inspect_document_manifest 查看文件結構(圖/表/章節清單) doc_id: str
fetch_document_asset 取得特定資產 doc_id, asset_type, asset_id

Section Navigation 🧭 (需 Marker blocks.json)

Tool 用途 參數
list_section_tree 顯示完整 section hierarchy 樹狀結構 doc_id: str
get_section_detail 取得特定 section 的詳細資訊 doc_id: str, section_path: str
get_section_blocks 提取特定 section 的所有 blocks doc_id: str, section_path: str
search_sections 搜尋 section 名稱 doc_id: str, query: str

Read the full file on GitHub · 380 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. 9d ago First seen · 380 lines · 84 tokens per session scan A a8fa62970f9b

Subscribe to this mod's changes

pdf-asset-extractor is a skill published in the GitHub repository u9401066/rootcause-mcp (0 stars, last pushed 6d ago), licensed Apache-2.0. It adds 84 tokens to every session and 3,261 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to pdf-asset-extractor, differing in 129 lines, and is treated as a copy.

Related

Other skills, from other repositories

markitdown

Convert heterogeneous documents and selected URIs to Markdown with Microsoft MarkItDown for text analysis, search, and LLM/RAG ingestion. Covers safe local conversion, streams, Office/PDF/data formats, batch workflows, plugins, vision OCR, Azure extraction, and the official MCP server.

K-Dense-AI/scientific-agent-skills · 61 tokens

azure-ai

Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.

microsoft/skills · 76 tokens

doc-parse

A document parser that converts PDFs, PowerPoint files, spreadsheets, and Word files into structured Markdown with metadata and a confidence score.

anbeime/skill · 43 tokens

edgeparse

Extract structured content from any PDF for AI agents, RAG pipelines, and Copilot Skills. Use this skill whenever the user wants to read, analyze, or reason about a PDF document; needs to feed document content to an LLM; mentions PDF extraction, parsing, or conversion; wants tables, headings, or bounding boxes from a…

pleaseai/claude-code-plugins · 0 tokens

ingest

Process unstructured documents into search-ready chunks. Use this skill when the user wants to process PDFs or unstructured documents into JSONL chunks using Docling. Activate even if the user says document processing, chunking, Docling, PDF processing, or chunk quality evaluation. For cloud-scale ingestion via OSIS…

opensearch-project/opensearch-agent-skills · 74 tokens

opendataloader-pdf

A tool for extracting structured content from PDF files, such as text, tables, formulas, and scanned pages. It can produce Markdown, JSON with page positions, or HTML for use in search and AI document systems.

chujianyun/skills · 137 tokens