Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Pdf To Markdown

ASecurity

Converting PDFs to clean Markdown — layout-aware extraction for docs and RAG pipelines.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgogitdocumentation

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill pdf-to-markdown --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pdf To Markdown?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Pdf To Markdown
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-pdf-to-markdown/badge)](https://www.skillsdirectory.com/skills/aicodedecode-pdf-to-markdown)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: pdf-to-markdown
description: Converting PDFs to clean Markdown — layout-aware extraction for docs and RAG pipelines.
category: document-processing
---

## Overview

Turning PDFs into Markdown powers documentation migration, content repurposing,
and RAG ingestion. The challenge: PDFs store positioned glyphs, not semantic
structure — headings, tables, and reading order must be reconstructed. This
skill covers the conversion pipeline from layout analysis to clean Markdown
output.

## When to use

- Migrating PDF documentation to Markdown-based docs sites
- Building RAG ingestion that needs structured Markdown from PDFs
- Converting reports, papers, or ebooks to editable Markdown
- Choosing between rule-based extractors and vision/ML converters
- Post-processing converted Markdown for quality

## Core concepts

**Layout analysis comes first.** Before any text is emitted, the converter must
determine reading order, detect headings (by font size/weight patterns), find
tables, and separate multi-column flows. Quality differences between converters
live almost entirely here — the Markdown serialization is the easy part.

**Two converter families.** Rule-based tools analyze fonts, positions, and
lines (fast, local, good for born-digital PDFs with clean structure).
Vision/ML-based converters render pages as images and understand layout
visually (better for complex layouts, scanned pages, and messy real-world
PDFs; slower and often cloud-based). Match the tool to the document class.

**Tables are the hard part.** Good converters emit Markdown or HTML tables
preserving rows/columns; poor ones emit tab-separated text soup. For critical
tables, verify cell alignment manually — merged cells and multi-line cells are
where converters fail most.

**Markdown is lossy — decide what's expendable.** Precise positioning,
complex multi-column magazine layouts, and intricate styling don't survive.
Define the target: semantic structure (headings, lists, tables, code, math)
usually matters; pixel fidelity doesn't. Documents needing fidelity should
stay PDF.

**Reading order ≠ visual order.** Two-column papers, sidebars, and floating
figures confuse naive extractors, interleaving unrelated text. Layout-aware
converters handle this; always spot-check multi-column documents.

## Practical workflow

1. **Classify the corpus:** born-digital vs scanned (scans need OCR first),
   simple vs complex layout, math-heavy (needs LaTeX math preservation),
   table density.
2. **Pick the converter class** accordingly; run a representative sample
   (10–20 diverse pages) through candidates and compare.
3. **Convert with structure preservation:** headings hierarchy, tables as
   Markdown/HTML tables, lists, code blocks, image extraction with
   references, math as LaTeX where supported.
4. **Post-process programmatically:** fix hyphenation across line breaks,
   normalize heading levels, repair table alignment, strip repeated
   headers/footers and page numbers, reassemble split paragraphs.
5. **Quality-gate the output:** automated checks (heading hierarchy validity,
   table column consistency, no empty sections where content existed) plus
   human spot-checks on the hardest pages.
6. **Preserve provenance:** keep page-number mapping and source references so
   converted content stays citable and debuggable.

## Common pitfalls

- **Running a text extractor and calling it Markdown** — raw text dumps lose
  all structure; conversion means reconstructing semantics.
- **Ignoring scanned PDFs** — image-only pages convert to empty Markdown;
  route through OCR first (see ocr-pro).
- **Tables silently mangled** — always verify table output cell-by-cell on
  samples; merged cells are the top failure mode.
- **Math as garbage** — equations need LaTeX-aware conversion; plain text
  extraction turns formulas into unreadable symbol soup.
- **Losing figures and captions** — images extracted without captions or
  ordering become meaningless; keep figure-caption association.
- **No quality gates** — converting 10,000 pages without sampling and checks
  produces 10,000 pages of unverified output; measure before scaling.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →