Token导航 LogoToken导航

Agent Skill · 研究检索

document-parsers(文档解析器)

document-parsers 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

document-parsers 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 47,825。

总安装 717周安装 29GitHub Stars 10下载 225核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:document-parsers(文档解析器)
来源仓库:https://github.com/vanman2024/ai-dev-marketplace
仓库路径:skills/document-parsers
安装命令:
npx skills add https://github.com/vanman2024/ai-dev-marketplace --skill document-parsers
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/vanman2024/ai-dev-marketplace --skill document-parsers

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

统一解析多种文档格式的 AI 驱动工具集。支持 PDF、DOCX、HTML 等格式的结构化内容提取。集成 LlamaParse 等专业解析器提升复杂布局处理能力。适用于构建 RAG 管道与文档向量化检索系统。document-parsers 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/document-parsers

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/vanman2024/ai-dev-marketplace --skill document…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

document-parsers 怎么安装?

在终端执行 npx skills add https://github.com/vanman2024/ai-dev-marketplace --skill document-parsers。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

document-parsers 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

document-parsers 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

document-parsers 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

document-parsers 用的人多吗?

公开数据是累计安装 717 次,近一周安装 29 次,下载 225 次,GitHub 10 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

document-parsers 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
document-parsers

文档解析器 · 本页

71710接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Document Parsers

Purpose: Autonomously parse and extract content from multiple document formats (PDF, DOCX, HTML, Markdown) using industry-standard libraries and AI-powered parsing tools.

Activation Triggers:

  • Building RAG (Retrieval-Augmented Generation) pipelines
  • Extracting text, tables, or metadata from documents
  • Processing large document collections
  • Converting documents to structured formats
  • Handling complex PDFs with tables and layouts
  • OCR for scanned documents
  • Chunking documents for vector embeddings
  • Building document search systems

Key Resources:

  • scripts/setup-llamaparse.sh - Install and configure LlamaParse (AI-powered parsing)
  • scripts/setup-unstructured.sh - Install Unstructured.io library
  • scripts/parse-pdf.py - Functional PDF parser with multiple backend options
  • scripts/parse-docx.py - DOCX document parser
  • scripts/parse-html.py - HTML to structured text parser
  • templates/multi-format-parser.py - Universal document parser template
  • templates/table-extraction.py - Specialized table extraction template
  • examples/parse-research-paper.py - Research paper parsing with citations
  • examples/parse-legal-document.py - Legal document parsing with sections

Parser Comparison & Selection Guide

1. LlamaParse (AI-Powered Premium)

Best For:

  • Complex PDFs with tables, charts, and mixed layouts
  • Scanned documents requiring OCR
  • Documents where accuracy is critical
  • Multi-column layouts and scientific papers
  • Financial reports and invoices

Pros:

  • AI-powered layout understanding
  • Excellent table extraction accuracy
  • Built-in OCR support
  • Handles complex formatting
  • Structured output (Markdown/JSON)

Cons:

  • Requires API key (paid service)
  • API rate limits
  • Network dependency
  • Slower than local parsers

Documentation: https://docs.cloud.llamaindex.ai/llamaparse

Setup:

./scripts/setup-llamaparse.sh

Usage Pattern:

from llama_parse import LlamaParse

parser = LlamaParse(
    api_key="llx-...",
    result_type="markdown",  # or "text"
    language="en",
    verbose=True
)

documents = parser.load_data("document.pdf")
for doc in documents:
    print(doc.text)

2. Unstructured.io (Local Processing)

Best For:

  • Batch processing many documents
  • Multiple format support (PDF, DOCX, HTML, PPTX, Images)
  • Local processing without API dependencies
  • Structured element extraction
  • Production RAG pipelines

Pros:

  • Open-source and free
  • Multi-format support
  • Runs locally (no API keys)
  • Good table detection
  • Element-based chunking

Cons:

  • Requires system dependencies (poppler, tesseract)
  • Complex installation
  • Less accurate than LlamaParse for complex layouts

Documentation: https://unstructured-io.github.io/unstructured/

Setup:

./scripts/setup-unstructured.sh

Usage Pattern:

from unstructured.partition.auto import partition

elements = partition("document.pdf")
for element in elements:
    print(f"{element.category}: {element.text}")

3. PyPDF2 (Simple PDF Text Extraction)

Best For:

  • Simple text-based PDFs
  • Quick prototyping
  • Metadata extraction
  • PDF manipulation (merge, split)

Pros:

  • Pure Python (no dependencies)
  • Fast and lightweight
  • Good for simple PDFs
  • Active maintenance

Cons:

  • Poor table extraction
  • Struggles with complex layouts
  • No OCR support
  • Limited formatting preservation

Documentation: https://github.com/py-pdf/pypdf2

Setup:

pip install pypdf2

Usage Pattern:

from PyPDF2 import PdfReader

reader = PdfReader("document.pdf")
for page in reader.pages:
    print(page.extract_text())

4. PDFPlumber (Advanced PDF Analysis)

Best For:

  • Table extraction from PDFs
  • PDF with tabular data
  • Financial statements and reports
  • Coordinate-based extraction

Pros:

  • Excellent table extraction
  • Visual debugging tools
  • Coordinate-level control
  • Metadata and layout info

Cons:

  • Slower than PyPDF2
  • Requires pdfminer.six dependency
  • No OCR support

Documentation: https://github.com/jsvine/pdfplumber

Setup:

pip install pdfplumber

Usage Pattern:

import pdfplumber

with pdfplumber.open("document.pdf") as pdf:
    for page in pdf.pages:
        tables = page.extract_tables()
        text = page.extract_text()

5. python-docx (Word Documents)

Best For:

  • Microsoft Word (.docx) documents
  • Extracting paragraphs, tables, headers
  • Document metadata
  • Template-based document generation

Pros:

  • Native DOCX support
  • Preserves structure (paragraphs, tables, sections)
  • Access to styles and formatting
  • Can also write/modify DOCX

Cons:

  • Only works with.docx (not.doc)
  • Limited image extraction

Documentation: https://github.com/python-openxml/python-docx

Setup:

pip install python-docx

Usage Pattern:

from docx import Document

doc = Document("document.docx")
for para in doc.paragraphs:
    print(para.text)
for table in doc.tables:
    for row in table.rows:
        print([cell.text for cell in row.cells])

Decision Matrix

Use CaseRecommended ParserAlternative
Simple PDF text extractionPyPDF2Unstructured
Complex PDFs with tablesLlamaParsePDFPlumber
Scanned documents (OCR)LlamaParseUnstructured + Tesseract
Word documents (.docx)python-docxUnstructured
HTML to textparse-html.pyUnstructured
Multi-format batch processingUnstructuredMulti-format-parser
Table extractionPDFPlumberLlamaParse
Research papersLlamaParseUnstructured
Legal documentsLlamaParsePDFPlumber
Production RAG pipelineUnstructuredLlamaParse

Functional Scripts

1. Parse PDF (scripts/parse-pdf.py)

Command-line PDF parser supporting multiple backends:

# Using PyPDF2 (default)
python scripts/parse-pdf.py document.pdf

# Using PDFPlumber (better for tables)
python scripts/parse-pdf.py document.pdf --backend pdfplumber

# Using LlamaParse (AI-powered)
python scripts/parse-pdf.py document.pdf --backend llamaparse --api-key llx-...

# Output to file
python scripts/parse-pdf.py document.pdf --output output.txt

# Extract tables as JSON
python scripts/parse-pdf.py document.pdf --backend pdfplumber --tables-only --output tables.json

Features:

  • Multiple backend support (PyPDF2, PDFPlumber, LlamaParse)
  • Table extraction
  • Metadata extraction
  • Page range selection
  • JSON/Text output formats

2. Parse DOCX (scripts/parse-docx.py)

Word document parser with structure preservation:

# Basic extraction
python scripts/parse-docx.py document.docx

# Extract with structure
python scripts/parse-docx.py document.docx --preserve-structure

# Extract tables only
python scripts/parse-docx.py document.docx --tables-only

# Output as JSON
python scripts/parse-docx.py document.docx --output output.json --format json

Features:

  • Paragraph extraction with styles
  • Table extraction
  • Header/footer extraction
  • Metadata (author, created date, etc.)
  • Structured JSON output

3. Parse HTML (scripts/parse-html.py)

HTML to clean text converter:

# Basic HTML parsing
python scripts/parse-html.py document.html

# From URL
python scripts/parse-html.py https://example.com/article

# Preserve links
python scripts/parse-html.py document.html --preserve-links

# Extract specific selector
python scripts/parse-html.py document.html --selector "article.content"

Features:

  • Clean text extraction (removes scripts, styles)
  • Link preservation
  • CSS selector support
  • URL fetching
  • Markdown output option

Templates

Multi-Format Parser (templates/multi-format-parser.py)

Universal parser handling multiple formats with automatic format detection:

from multi_format_parser import MultiFormatParser

parser = MultiFormatParser(
    llamaparse_api_key="llx-...",  # Optional
    use_ocr=True,
    chunk_size=1000
)

# Automatic format detection
result = parser.parse_file("document.pdf")
print(result.text)
print(result.metadata)
print(result.tables)

# Batch processing
results = parser.parse_directory("./documents/")
for filename, result in results.items():
    print(f"{filename}: {len(result.text)} characters")

Supports:

  • PDF, DOCX, HTML, Markdown, TXT
  • Automatic chunking for RAG
  • Metadata extraction
  • Table extraction across all formats
  • Error handling and fallbacks

Table Extraction (templates/table-extraction.py)

Specialized table extraction with multiple strategies:

from table_extraction import TableExtractor

extractor = TableExtractor(
    prefer_llamaparse=True,
    fallback_to_pdfplumber=True
)

# Extract all tables from document
tables = extractor.extract_tables("financial_report.pdf")

for i, table in enumerate(tables):
    print(f"Table {i + 1}:")
    print(table.to_markdown())  # or .to_csv(), .to_json()
    print(f"Confidence: {table.confidence}")

Features:

  • Multiple extraction strategies
  • Automatic fallback
  • Table validation
  • Format conversion (CSV, JSON, Markdown, DataFrame)
  • Confidence scoring

Examples

Research Paper Parsing (examples/parse-research-paper.py)

Complete example for parsing academic papers:

# Extracts title, abstract, sections, citations, tables, figures
python examples/parse-research-paper.py paper.pdf --output paper.json

Extracts:

  • Title and authors
  • Abstract
  • Section structure (Introduction, Methods, Results, etc.)
  • Citations and references
  • Tables and figures with captions
  • Metadata (DOI, publication date, journal)

Legal Document Parsing (examples/parse-legal-document.py)

Specialized parser for legal documents:

# Extracts clauses, sections, definitions, parties
python examples/parse-legal-document.py contract.pdf --output contract.json

Extracts:

  • Document type (contract, agreement, etc.)
  • Parties involved
  • Definitions section
  • Numbered clauses and sections
  • Signature blocks
  • Dates and deadlines

RAG Pipeline Integration

Document Chunking for Embeddings

from multi_format_parser import MultiFormatParser

parser = MultiFormatParser(chunk_size=512, chunk_overlap=50)
result = parser.parse_file("document.pdf")

# Chunks ready for embedding
for chunk in result.chunks:
    print(f"Chunk {chunk.id}: {chunk.text[:100]}...")
    print(f"Metadata: {chunk.metadata}")
    # Send to embedding model

Batch Processing Pipeline

import glob
from multi_format_parser import MultiFormatParser

parser = MultiFormatParser()

# Process all documents in directory
for filepath in glob.glob("./documents/**/*", recursive=True):
    try:
        result = parser.parse_file(filepath)
        # Store in vector database
        store_embeddings(result.chunks)
        print(f"✓ Processed {filepath}")
    except Exception as e:
        print(f"✗ Failed {filepath}: {e}")

Best Practices

Parser Selection:

  • Start with PyPDF2 for simple PDFs, upgrade if needed
  • Use LlamaParse for complex layouts (budget permitting)
  • Use Unstructured for multi-format production systems
  • Use PDFPlumber specifically for table extraction

Performance:

  • Cache parsed results to avoid re-processing
  • Use batch processing for multiple documents
  • Consider async processing for large collections
  • Monitor API rate limits for LlamaParse

Accuracy:

  • Validate table extraction results
  • Implement fallback strategies
  • Log parsing errors for debugging
  • Use confidence scores when available

RAG Optimization:

  • Chunk size: 512-1024 tokens for embeddings
  • Overlap: 10-20% for context preservation
  • Preserve metadata (page numbers, sections) for retrieval
  • Clean extracted text (remove headers/footers)

Troubleshooting

PyPDF2 returns garbled text:

  • Try PDFPlumber or LlamaParse
  • PDF may have non-standard encoding
  • Check if PDF is scanned (needs OCR)

Unstructured installation fails:

  • Install system dependencies: sudo apt-get install poppler-utils tesseract-ocr
  • On macOS: brew install poppler tesseract

LlamaParse API errors:

  • Verify API key is correct
  • Check rate limits in dashboard
  • Ensure document size is within limits

Table extraction misses columns:

  • Try different parser (PDFPlumber vs LlamaParse)
  • Adjust table detection settings
  • Validate table structure manually

DOCX parsing fails:

  • Ensure file is.docx not.doc
  • Check file is not corrupted
  • Try converting to.docx with LibreOffice

Dependencies

Core:

pip install pypdf2 pdfplumber python-docx beautifulsoup4 lxml markdown

Optional (Unstructured):

pip install unstructured[local-inference]
sudo apt-get install poppler-utils tesseract-ocr  # Linux
brew install poppler tesseract  # macOS

Optional (LlamaParse):

pip install llama-parse
# Requires API key from https://cloud.llamaindex.ai

Supported Formats: PDF, DOCX, HTML, Markdown, TXT Parsers: LlamaParse, Unstructured.io, PyPDF2, PDFPlumber, python-docx Version: 1.0.0

平台分布

Codex

35.76%
按下载量换算80

Claude

32.56%
按下载量换算73

Cursor

19.37%
按下载量换算44

Gemini CLI

9.78%
按下载量换算22

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills