document-parsing

Parse PDFs and scans into Markdown with preserved headings and tables.

13|4|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/memect/kc --skill document-parsing-memect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: document-parsing
Source: https://github.com/memect/kc/tree/main/template/skills/zh/document-parsing
Command: npx skills add https://github.com/memect/kc --skill document-parsing-memect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Parse source documents into machine-readable text with maximum fidelity. Use when processing any document in Samples or Input for the first time, when parsed text quality is poor, or when tables and charts need special handling. Covers multi-level parser selection from simple text extraction to OCR and vision models. Also use when a verification rule fails due to parsing issues (garbled text, missing tables, mangled layouts) and the parser needs to be upgraded for that document type.

Core Features & Use Cases

  • Multi-level parsing: switch between Level 1 text extraction, Level 2 OCR/vision parsing, and Level 3 MineRU/local tools depending on document complexity.
  • Structured Markdown output: preserve headings, lists, and tables; produce clean, reusable markdown with page boundaries when needed.
  • Quality checks & caching: cache parsing results and apply quality-check metrics to decide when to escalate parsing levels.

Quick Start

Feed a sample document to the parser and receive a clean Markdown rendition with preserved structure and tables.

Frequently Asked Questions about document-parsing

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

FAQPage Schema
How do I extract text and tables from a PDF into clean Markdown?

To extract text and tables from a PDF into clean Markdown, the parser applies multi-level text extraction, OCR, and vision parsing to preserve headings, lists, and page boundaries. It evaluates document complexity to select the optimal parsing level for high-fidelity structured output.

What is the best way to parse scanned documents with complex layouts?

The best way to parse scanned documents with complex layouts is using Level 3 local tools like MineRU alongside VLM-based OCR. This approach handles multi-page documents and intricate structures, outputting clean machine-readable text while maintaining structural fidelity.

Why does my document text extraction result in garbled text and mangled layouts?

Document text extraction results in garbled text and mangled layouts when simple Level 1 extraction fails on complex documents. The parser applies quality checks to detect these issues and automatically escalates parsing levels to VLM-based OCR or local tools for accurate extraction.

Can I use VLM-based OCR for multi-page document processing?

Yes, you can use VLM-based OCR for multi-page document processing. The parser supports Level 2 vision parsing to handle scans and complex layouts across multiple pages, producing clean Markdown with preserved page boundaries and structural elements.

When do I need to escalate parsing levels for source documents?

You need to escalate parsing levels for source documents when quality checks detect garbled text, missing tables, or mangled layouts. The system automatically upgrades from Level 1 direct text extraction to Level 2 OCR or Level 3 local tools to ensure high-fidelity machine-readable text.