by agentii-ai
Lightweight Doc-to-agent-ready knowledge pipeline. Three-stage Bronze→Silver→Gold architecture extracts structured elements, page content, and AI-enriched metadata from research papers and books. Generate PRDs, workflows, topic clusters, and Claude Code skills from PDFs. No OCR required.
# Add to your Claude Code skills
git clone https://github.com/agentii-ai/DocMeldDocMeld is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by agentii-ai. Lightweight Doc-to-agent-ready knowledge pipeline. Three-stage Bronze→Silver→Gold architecture extracts structured elements, page content, and AI-enriched metadata from research papers and books. Generate PRDs, workflows, topic clusters, and Claude Code skills from PDFs. No OCR required. It has 101 GitHub stars.
DocMeld's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/agentii-ai/DocMeld" and add it to your Claude Code skills directory (see the Installation section above).
DocMeld is primarily written in Python. It is open-source under agentii-ai on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh DocMeld against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
DocMeld converts PDF, Word, and PowerPoint documents into structured, agent-consumable formats through a three-stage pipeline — without requiring expensive OCR, VLM, or multimodal models. Built for the age of AI agents, it bridges the gap between static documents and the structured knowledge that LLMs need.
Most tools stop at format conversion. DocMeld goes further: Document → Structured Elements → Page Knowledge → AI-Enriched Metadata, producing outputs ready for RAG pipelines, agent systems, and downstream AI workflows.
Supported formats: .pdf, .docx, .doc (via LibreOffice), .pptx, .ppt (via LibreOffice).
| DocMeld | MinerU | Docling | Marker | MarkItDown | |
|---|---|---|---|---|---|
| No ML models required | ✅ | ❌ | ❌ | ❌ | ✅ |
| Runs fully offline (core) | ✅ | ❌ | ✅ | ✅ | ✅ |
| Agent-ready outputs | ✅ | ❌ | ❌ | ❌ | ❌ |
| AI metadata enrichment | ✅ | ❌ | ❌ | ❌ | ❌ |
| Lightweight install | ✅ | ❌ | ❌ | ❌ | ✅ |
| MIT license | ✅ | ❌ (AGPL) | ✅ | ❌ (GPL) | ✅ |
| Swappable backends | ✅ | ❌ | N/A | ❌ | ❌ |
pip install docmeld
Optional backends for richer formats:
pip install docmeld[docling] # Docling backend (DOCX + advanced PDF)
pip install docmeld[pptx] # PowerPoint (.pptx) via python-pptx
pip install docmeld[office] # Everything: Docling + python-pptx
Legacy
.doc/.pptadditionally require LibreOffice (soffice) on your PATH.
from docmeld import DocMeldParser
parser = DocMeldParser("research_paper.pdf") # or .docx / .pptx
result = parser.process_all()
print(f"Processed {result.successful}/{result.total_files} files in {result.processing_time_seconds}s")
Or from the command line:
docmeld process research_paper.pdf
docmeld process quarterly_deck.pptx --backend auto
That's it. Your document is now structured JSON, page-by-page JSONL, and (optionally) AI-enriched metadata.
DocMeld uses a three-stage medallion architecture. Each stage is independently runnable and idempotent — re-running skips already-processed files.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ BRONZE │ │ SILVER │ │ GOLD │
│ │ │ │ │ │
│ Doc → JSON │─────▶│ JSON → JSONL│─────▶│ JSONL → AI │
│ elements │ │ pages │ │ metadata │
│ │ │ │ │ │
│ PyMuPDF / │ │ Title │ │ DeepSeek │
│ Docling / │ │ hierarchy │ │ enrichment │
│ python-pptx│ │ │ │ │
└─────────────┘ └─────────────┘ └─────────────┘
offline offline requires API key
Extracts document elements (titles, text, tables, images, charts, formulas, SmartArt, speaker notes, comments, and more) into a unified JSON format with element IDs and parent-child hierarchy. The page unit is the physical page for PDF/Word and the slide for PowerPoint.
[
{
"type": "title",
"level": 0,
"content": "Executive Summary",
"page_no": 1,
"element_id": "e_0001",
"parent_id": ""
},
{
"type": "text",
"content": "The company reported strong Q2 results...",
"page_no": 1,
"element_id": "e_0002",
"parent_id": "e_0001"
},
{
"type": "table",
"content": "| Metric | Q1 | Q2 |\n|---|---|---|\n| Revenue | 10M | 15M |",
"summary": "Items: Revenue",
"page_no": 2,
"element_id": "e_0003",
"parent_id": "e_0001",
"table_data": {
"headers": ["Metric", "Q1", "Q2"],
"rows": [["Revenue", "10M", "15M"]],
"num_rows": 1,
"num_cols": 3
}
}
]
Supported element types:
| Type | Fields | Description |
|---|---|---|
title |
level, content |
Headings with hierarchy (0–5) |
text |
content |
Paragraph content (hyperlinks preserved inline as [text](url)) |
table |
content, summary, table_data |
Markdown tables with structured data |
image |
image_name, image, bbox, image_id |
Base64-encoded images with metadata |
chart |
chart_type, content, image |
Chart data as a markdown table + image fallback |
formula |
content, formula_type |
Equations (LaTeX / OMML) |
smartart |
smartart_type, content, image |
SmartArt diagram text (PPTX) |
notes |
content |
Speaker notes (PPTX) |
group |
content, child_count |
Grouped shapes; children link via parent_id (PPTX) |
comment |
content, author |
Reviewer comments (PPTX) |
footer |
content, page_scope |
Slide/page footers |
header / footnote / endnote |
content, … |
Document margins & notes (DOCX) |
All elements include page_no, element_id, and parent_id for cross-referencing. Elements on hidden slides carry hidden: true.
Transforms flat element lists into self-contained page documents with title hierarchy tracking, markdown rendering, and global table numbering.
{
"metadata": {
"uuid": "a1b2c3d4-...",
"source": "research_paper.pdf",
"page_no": "page1",
"session_title": "# Executive Summary\n"
},
"page_content": "# Executive Summary\n\nThe company reported strong Q2 results...\n\n[[Table1]]\n| Metric | Q1 | Q2 |\n|---|---|---|\n| Revenue | 10M | 15M |\n[/Table1]"
}
Each page carries its full title context, so pages are independently meaningful — ideal for chunked retrieval in RAG systems.
Adds semantic descriptions and keywords to each page using DeepSeek-chat, with exponential backoff retry and per-page error resilience.
{
"metadata": {
"uuid": "a1b2c3d4-...",
"source": "research_paper.pdf",
"page_no": "page1",
"session_title": "# Executive Summary\n",
"description": "Company reports strong Q2 results with 50% revenue growth",
"keywords": ["revenue", "quarterly results", "growth", "financial performance"]
},
"page_content": "..."
}
The gold stage is optional — bronze and silver run fully offline with zero API calls.
Beyond per-page enrichment, DocMeld can generate structured, agent-ready artifacts from document content:
| Feature | CLI | Python API | Output |
|---|---|---|---|
| Categorize | docmeld categorize papers/ |
parser.process_categorize() |
Topic clusters + categories.json |
| PRD Generator | docmeld prd paper.pdf |
parser.process_prd() |
Product Requirements Document |
| Workflow | docmeld workflow paper.pdf |
parser.process_workflow() |
Step-by-step implementation workflow |
| Skills | docmeld skills book.pdf |
parser.process_skills() |
Claude Code skill files |
All four support swappable LLM backends via the LLMProvider Protocol (see Python API).
After processing research_paper.pdf:
research_paper.pdf # Original (untouched)
research_paper_a3f5c2/ # Output folder (name + MD5 suffix)
├── research_paper_a3f5c2.json # Bronze: structured elements
├── research_paper_a3f5c2.jsonl # Silver: page-by-page documents
└── research_paper_a3f5c2_gold.jsonl # Gold: AI-enriched (optional)
Output folder names are sanitized and include an MD5 hash suffix for uniqueness, ensuring safe cross-platform filenames even for PDFs with unicode or special characters.
from docmeld import DocMeldParser
# Single file — all three stages
parser = DocMeldParser("paper.pdf")
result = parser.process_all()
# Batch — process every PDF in a folder
parser = DocMeldParser("/path/to/papers/")
result = parser.process_all()
print(f"{result.successful}/{result.total_files} files, {result.processing_time_seconds}s")
from docmeld import DocMeldParser
parser = DocMeldParser("paper.pdf")
# Bronze only
bronze = parser.process_bronze()
print(f"{bronze.element_count} elements across {bronze.page_count} pages")
print(f"Output: {bronze.output_path}")
# Silver (requires bronze output)
silver = parser.process_silver(bronze.output_path)
print(f"{silver.page_count} page