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.
npx skills add eins78/agent-skills --skill pandocgit clone --depth 1 https://github.com/eins78/agent-skillsWrote 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.
[](https://agentmods.dev/skills/eins78/agent-skills/pandoc)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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
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.
- README.md 7.4 KB
- references/pandoc-advanced.md 12 KB
- references/pandoc-install.md 2.3 KB
- references/pandoc-manual.md 24 KB
- scripts/md2kindle-epub.sh 2.8 KB runs code
- scripts/md2pdf-print.sh 1.3 KB runs code
- tests/fixtures/print-test.md 1.1 KB
- tests/test-md2pdf-print.sh 3.6 KB runs code
- themes/marked-print.css 2.4 KB
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.
- 9d ago First seen · 256 lines · 124 tokens per session scan A 48b49624e925
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.
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.
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+.
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.
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.
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.
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…