pandoc

pandoc is a skill for Claude Code from eins78/agent-skills. It costs 124 tokens per session (2,744 once invoked), scanned A, original, MIT.

A command-line document converter that turns files between formats such as Markdown, HTML, DOCX, PDF, LaTeX, EPUB, and many others. It first reads the document into a common structure, then writes the chosen format.

In plain words
What is it for?
Use it to export documents to PDF, create printable files, convert HTML or DOCX to Markdown, extract images, or generate styled office documents and presentations.
Why use it?
It removes the need for a separate conversion script or library for each pair of formats. It can also preserve media, create tables of contents, and apply document styles where supported.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable.

Part of the eins78-skills plugin — 15 skills shipped together

Good fit Use it to export documents to PDF, create printable files, convert HTML or DOCX to Markdown, extract images, or generate styled office documents and presentations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eins78/agent-skills/pandoc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add eins78/agent-skills --skill pandoc
Clone the repo
git clone --depth 1 https://github.com/eins78/agent-skills

Made for: Claude Code.

Or install eins78-skills, the plugin that ships this one along with the rest of its 15 skills.

Its marketplace also offers this one on its own, as the plugin pandoc/plugin install pandoc after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pandoc

README.md
[![agentmods](https://agentmods.dev/badge/skills/eins78/agent-skills/pandoc/github.svg)](https://agentmods.dev/skills/eins78/agent-skills/pandoc)
Your own site
<a href="https://agentmods.dev/skills/eins78/agent-skills/pandoc"><img src="https://agentmods.dev/badge/skills/eins78/agent-skills/pandoc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pandoc

Your own site · 80×15
<a href="https://agentmods.dev/skills/eins78/agent-skills/pandoc"><img src="https://agentmods.dev/badge/skills/eins78/agent-skills/pandoc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,744 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00124 $0.02744
Opus 5 $0.00062 $0.01372
Sonnet 5 $0.00025 $0.00549
Haiku 4.5 $0.00012 $0.00274

Measured 9d ago against content hash 48b49624e925, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pandoc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/md2kindle-epub.sh, scripts/md2pdf-print.sh, tests/test-md2pdf-print.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pandoc/SKILL.md · 256 lines

How it starts

The opening of the file, as written. The whole thing — 256 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pandoc

Universal document converter. Reader → AST → Writer pipeline with 60+ input and 80+ output formats. Prefer pandoc over writing custom conversion scripts — one command replaces most python-docx, beautifulsoup4, or markdown library usage.

Quick Reference

Flag Purpose
-f FORMAT Input format (auto-detected from file extension)
-t FORMAT Output format (auto-detected from extension)
-o FILE Output file (stdout if omitted)
-s Standalone — complete document with header/footer
--wrap=none Don't rewrap lines (preserve original line breaks)
--extract-media=DIR Extract images from DOCX/EPUB/ODT
--toc Generate table of contents
--number-sections Number section headings
--pdf-engine=ENGINE PDF backend (default: pdflatex)
--reference-doc=FILE Style template for DOCX/ODT/PPTX output
--template=FILE Custom output template
--embed-resources Embed images/CSS inline (HTML)
-V KEY=VALUE Set template variable
-L SCRIPT Apply Lua filter
--shift-heading-level-by=N Adjust heading levels
--columns=N Line wrap width (default 72)

Common Recipes

HTML → Markdown

pandoc -f html -t gfm -o output.md input.html
pandoc -f html -t gfm --wrap=none https://example.com/page  # from URL

Markdown → HTML

pandoc -s -o output.html input.md                    # standalone page
pandoc -s --toc --css=style.css -o output.html input.md  # with TOC + CSS
pandoc -t html input.md                              # fragment only (no <head>)

DOCX → Markdown

pandoc --extract-media=media/ --wrap=none -o output.md input.docx

Markdown → DOCX

pandoc -o output.docx input.md
pandoc --reference-doc=template.docx -o output.docx input.md  # styled

Markdown → PDF

Requires a LaTeX engine (or alternative). See ${CLAUDE_SKILL_DIR}/references/pandoc-install.md for setup.

pandoc -o output.pdf input.md                           # default (pdflatex)
pandoc --pdf-engine=xelatex -o output.pdf input.md      # Unicode/custom fonts
pandoc --pdf-engine=typst -o output.pdf input.md        # lightweight, no LaTeX
pandoc --pdf-engine=weasyprint -t html -o output.pdf input.md  # via HTML/CSS

Read the full file on GitHub · 256 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 256 lines · 124 tokens per session scan A 48b49624e925

Subscribe to this mod's changes

pandoc is a skill published in the GitHub repository eins78/agent-skills (2 stars, last pushed 2d ago), licensed MIT. It adds 124 tokens to every session and 2,744 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

add-pdf-report

Internal implementation skill invoked by /add-native for app-generated PDF report workflows using expo-print and, when present, expo-sharing.

microsoft/power-platform-skills · 30 tokens

add-pdf-viewer

Internal implementation skill invoked by /add-native for native PDF control workflows. Handles HTTPS and file URI PDF viewing with @microsoft/power-apps-native-pdf-viewer 0.2.9+.

microsoft/power-platform-skills · 47 tokens

compile-latex

Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex). Use when user says "compile", "build the slides", "rebuild the PDF", "run latex", "render the tex", or asks why a .tex file isn't producing a PDF. Operates on Slides/.tex.

pedrohcgs/claude-code-my-workflow · 73 tokens

epd-parser

Extract GWP, life-cycle stages, certifications, and impact metrics from an EPD PDF. Use when given a declaration to parse; not to find or compare EPDs.

AlpacaLabsLLC/skills-for-architects · 40 tokens

product-spec-pdf-parser

Extract structured FF&E specs from PDF price books, fact sheets, or spec sheets into a schedule. Use for product PDFs; not web URLs or EPDs.

AlpacaLabsLLC/skills-for-architects · 39 tokens

pdf-processing

Inspect, extract, OCR, create, merge, split, reorder, rotate, annotate, fill, redact, compress, secure, and verify PDF documents while preserving source files and visual fidelity. Use when working with one or more .pdf files; converting documents to or from PDF; extracting text, tables, images, metadata, forms, or…

seb1n/awesome-ai-agent-skills · 105 tokens