pdf-conversion-router
Has your agent choose the best way to convert PDFs to other formats. It ensures the text remains as similar and readable as possible.
What it does
This agent helps convert PDF files into other formats like text, Markdown, or HTML. It chooses the best method to ensure the output is as close to the original as possible and easy to read.
When to use it
- ✓I want to convert a PDF into plain text.
- ✓I need to convert a medical report PDF into a readable format.
- ✓I want to turn a slide presentation PDF into Markdown.
Example of what to ask your AI
“Convert this financial report PDF to HTML, keeping the table structure.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
First, the agent analyzes the type of PDF and the desired output format. Then, it selects the best tools and settings for the conversion, ensuring structure and data are preserved.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill pdf-conversion-routerOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/pdf-conversion-router/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
PDF Conversion Router
Route every PDF conversion through a short analysis step before choosing tools or CLI flags.
The goal is not "extract the most text". The goal is:
- preserve structure
- preserve attachment between labels and values
- choose the most faithful output shape
- avoid noisy defaults when a better route exists
When to Use
- The user wants a PDF converted into another format.
- The requested output is
.md,.html,.txt,.json,.docx, or structured notes. - The PDF may be scanned, OCR-heavy, table-heavy, slide-based, medical, academic, or multi-column.
Core Rule
Never start with one fixed default pipeline.
Always:
- classify the PDF
- classify the target output
- choose the strongest route for that combination
- validate the result on representative sections
- if needed, retry with better settings before delivering
Heuristics are starting points, not guarantees.
Do not promote one flag combination into a universal default just because it worked well on one PDF. Prefer document-specific evidence over habit.
Primary Engine Rule
Use opendataloader-pdf as the primary conversion engine for every PDF conversion task by default.
This skill should assume:
opendataloader-pdfis always the first conversion attempt- other tools are used to classify, validate, OCR, inspect, or support cleanup
- other extractors are not the default replacement for the main conversion route
Use other tools only for one of these reasons:
- quick classification of the PDF
- OCR preprocessing before conversion
- validation against layout-preserving text
- manual repair when the generated output is still noisy
- fallback only if
opendataloader-pdfcannot produce a usable result
Step 1: Classify the Source PDF
Identify the document class as quickly as possible:
- Native digital PDF with selectable text
- OCR PDF with noisy text
- Image-only/scanned PDF
- Slide deck / presentation export
- Medical or lab report
- Table-heavy business/finance document
- Narrative report / letter / article
- Mixed layout document with diagrams, tables, and prose
Useful fast checks:
pdfinfo input.pdf
pdftotext -layout input.pdf -
If text is missing or very poor, treat OCR as required.
Document-Type Heuristics
Use these as default starting points:
medical / lab report
markdown-with-html + --table-method cluster + --image-output offslide deck / PowerPoint export
markdown-with-html + --image-output offadd--table-method clusteronly if the default route under-structures important tabular content if tables are visually obvious but missing or badly fused, treat this as a detection problem, not a Markdown formatting problem if the selected route already reconstructs a real table but clips leading characters at column boundaries, treat that as a boundary-splitting defect, not a missing-table failurenarrative / article / letter start with
markdownortextusemarkdown-with-htmlonly if structure clearly matterstable-heavy business / finance PDF start with
markdown-with-htmladd--table-method clusterwhen rows or columns flattenscanned / image-heavy PDF OCR first, then convert with
opendataloader-pdfmixed-layout PDF prefer
markdown-with-htmlvalidate one easy section and one hard section before accepting output
Step 2: Choose the Output Shape
Pick the output that best matches the document and the user's goal.
markdown-with-htmlUse by default when the user wants Markdown and fidelity matters. Prefer this for tables, medical reports, slides, mixed-layout PDFs, and anything likely to break in pure Markdown.markdownUse only when clean plain Markdown matters more than layout fidelity.htmlUse when visual structure matters more than LLM readability.textUse for quick linear extraction, narrative documents, or when structure is unimportant.jsonUse when downstream machine processing matters more than human readability.docxUse when the user wants editable office output and layout reconstruction matters.
Step 3: Choose the Extraction Route
For OpenDataLoader CLI
Use OpenDataLoader as the default route.
Preferred defaults:
For Markdown output with fidelity priority:
-f markdown-with-htmlFor medical PDFs: add
--table-method clusterFor table-heavy PDFs: add
--table-method clusterFor slide decks: start without
--table-method cluster
…
FAQ
What does 'fidelity' mean?
Fidelity refers to how closely the final output matches the original document in terms of structure and information.
What is 'OCR'?
OCR (Optical Character Recognition) is a technology that extracts text from images, such as in scanned PDFs.
Why doesn't the agent always use the same settings?
Every PDF is different. Using the same settings for all might not work well. The agent chooses the best approach for each specific case.
Details
Original description by the author
Use when converting a PDF into another format such as Markdown, HTML, text, JSON, DOCX, or structured notes and the agent must choose the best extraction route, settings, and cleanup strategy for maximum fidelity and readability.
Popularity
- GitHub stars
- 48k
- Ranking position
- #3804
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
intent-driven-development
Helps your agent turn ideas into clear, testable plans. Defines criteria to ensure changes are made correctly and safely.
affaan-m/ECC
product-capability
Guides your agent in turning product ideas into clear plans. It defines what needs to be done, the limits, and decisions before development.
affaan-m/ECC
article-writing
Writes long-form content like articles, guides, and blog posts with a unique style. It's useful when you need well-written texts with a consistent voice and credibility.
affaan-m/ECC