antinet-doc-parse

Parse PDF, Word, and Excel documents into structured Markdown with three-level parser fallback.

6.0k|578|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/anbeime/skill --skill antinet-doc-parse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: antinet-doc-parse
Source: https://github.com/anbeime/skill/tree/main/skills/antinet-doc-parse
Command: npx skills add https://github.com/anbeime/skill --skill antinet-doc-parse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires MinerU, PyMuPDF, pdfplumber, python-magic, and includes scripts (resource) components.

What problem does it solve?

Converting heterogeneous documents (PDF, Word, Excel) into clean, machine-readable text for RAG pipelines and knowledge bases usually requires juggling multiple parsers and handling failures manually. This Skill automates multi-format document parsing with a three-level fallback chain, outputting structured Markdown, metadata, and a confidence score.

Core Features & Use Cases

  • Three-Level Parser Fallback: Tries MinerU first for layout fidelity, falls back to PyMuPDF for fast PDF parsing, then pdfplumber for table and text extraction.
  • Structured Output: Returns Markdown body, metadata (title, page count, table count, author), a 0-1 confidence score, and the name of the parser that succeeded.
  • Failure Handling: Marks unparseable files for manual review instead of returning partial results, and chunks oversized pages to avoid memory overflow.
  • Use Case: When building an enterprise knowledge base, feed scanned contracts and reports through this Skill to obtain confidence-scored Markdown that downstream retrieval and extraction stages can consume directly.

Quick Start

Run the script with python skills/doc-parse/scripts/run_doc_parse.py to parse the input documents and write the structured results to examples/snse_survey/skill_outputs/doc_parse.json.

Frequently Asked Questions about antinet-doc-parse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse PDF and Word documents into Markdown for a RAG pipeline?

Run the run_doc_parse.py script, which invokes a three-level parsing chain and outputs structured Markdown plus metadata as JSON. The result includes a confidence score so downstream retrieval stages can decide whether manual review is needed.

MinerU vs PyMuPDF vs pdfplumber for PDF parsing?

MinerU provides the strongest layout reconstruction and is tried first. PyMuPDF offers fast general PDF parsing as the second tier, while pdfplumber handles table and text extraction as the final fallback.

What happens when document parsing fails completely?

If all three parsers fail, the file is marked for manual intervention and no partial result is returned. For oversized single pages, the document is parsed in chunks and only failed chunks receive a low confidence flag.

What output does the document parsing script produce?

It writes a JSON file containing the Markdown body, metadata such as title, page count, table count, and author, a 0-1 confidence score, and the name of the parser that ultimately succeeded.

Can I restrict which document formats are accepted for parsing?

Yes, the Skill accepts an optional formats whitelist parameter to limit supported input types. By default all formats are accepted, and python-magic is used for file type detection.