pandoc

pandoc is a skill for Claude Code, Codex from AtomicBot-ai/atomic-agent. It costs 45 tokens per session (846 once invoked), scanned A, original, MIT.

A command-line tool for converting documents between formats such as Markdown, DOCX, HTML, PDF, RST, EPUB, and LaTeX. It usually determines the input and output formats from the file extensions.

In plain words
What is it for?
Use it to export Markdown to DOCX or PDF, convert HTML or DOCX to Markdown, create EPUB or LaTeX files, or transform documents between the supported formats.
Why use it?
It avoids rewriting the same document for each publishing format. This makes it easier to keep one source document and produce different file types from it.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/atomicbot-ai/atomic-agent/pandoc
Any agent
npx skills add AtomicBot-ai/atomic-agent --skill pandoc
Clone the repo
git clone --depth 1 https://github.com/AtomicBot-ai/atomic-agent

Made for: Claude Code, Codex.

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/atomicbot-ai/atomic-agent/pandoc.svg)](https://agentmods.dev/skills/atomicbot-ai/atomic-agent/pandoc)
Your own site
<a href="https://agentmods.dev/skills/atomicbot-ai/atomic-agent/pandoc"><img src="https://agentmods.dev/badge/skills/atomicbot-ai/atomic-agent/pandoc.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 846 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00045 $0.00846
Opus 5 $0.00023 $0.00423
Sonnet 5 $0.00009 $0.00169
Haiku 4.5 $0.00005 $0.00085

Measured 4d ago against content hash 41ea26062bb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

starter-skills/pandoc/SKILL.md · 88 lines

How it starts

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

pandoc

Convert documents between formats with the universal pandoc CLI. Input/output formats are inferred from file extensions; override with -f <from> / -t <to> when needed.

PDF output requires a LaTeX engine (or --pdf-engine). Markdown/HTML/DOCX/EPUB conversions need only pandoc itself.

Setup health check (run first, every session)

Verify with one solo step:

[{ "tool": "os.shell.run", "args": { "cmd": "pandoc", "args": ["--version"] } }]

Outcome map:

  • exit 0 + version → ready, proceed.
  • command not found: pandoc → enter Setup playbook → "pandoc missing".
  • PDF target fails with pdflatex not found → enter Setup playbook → "PDF engine missing".

Setup playbook (when prerequisites are missing)

pandoc missing

Reply (solo reply step):

"pandoc is not installed. I can install it: brew install pandoc. Install it?"

On yes:

[{ "tool": "os.shell.run", "args": { "cmd": "brew", "args": ["install", "pandoc"] } }]

On Linux: apt-get install pandoc.

PDF engine missing

PDF output needs a TeX engine. Offer the lightweight option:

"PDF export needs a TeX engine. I can install: brew install --cask basictex (or the lightweight brew install tectonic). Which do you prefer?"

tectonic is simplest (pandoc in.md -o out.pdf --pdf-engine=tectonic).

When to use

  • "Convert this Markdown to DOCX / PDF / HTML", "turn this HTML into Markdown".
  • "Make an EPUB from these chapters", "export notes to a Word doc".

When NOT to use

  • Reading a document's text — use os.fs.read_document.
  • Editing PDFs structurally (merge/split) — use the pdf skill.
  • Spreadsheet conversion — use the xlsx skill.

Common operations

All examples invoke os.shell.run with cmd: "pandoc". Outputs go to the session working directory; the approval gate surfaces each write.

Goal args
Markdown → DOCX ["notes.md", "-o", "notes.docx"]
Markdown → PDF ["notes.md", "-o", "notes.pdf", "--pdf-engine=tectonic"]
Markdown → standalone HTML ["notes.md", "-s", "-o", "notes.html"]
DOCX → Markdown ["report.docx", "-o", "report.md"]
HTML → Markdown ["page.html", "-f", "html", "-t", "gfm", "-o", "page.md"]
Many MD → one EPUB ["ch1.md", "ch2.md", "-o", "book.epub", "--toc"]
With a table of contents append ["--toc", "--toc-depth=2"]

Read the full file on GitHub · 88 lines

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. 4d ago First seen · 88 lines · 45 tokens per session scan A 41ea26062bb5

Subscribe to this mod's changes

pandoc is a skill published in the GitHub repository AtomicBot-ai/atomic-agent (2,466 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 846 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

obscura

Operate and validate Obscura for JavaScript page loading, stealth browsing, anti-fingerprinting, tracker blocking, screenshots and visual comparison, CDP automation with Puppeteer or Playwright, screencasting, PDF export, MCP browser interaction, and web extraction. Use when running Obscura against deterministic…

h4ckf0r0day/obscura · 100 tokens

article-exporter

Export any web article to a local Obsidian-ready Markdown directory. Fetches page content via actionbook CLI, downloads images locally, rewrites image references to relative paths, and optionally translates the article using AI. Produces a self-contained folder with README.md, images/, and an index.md navigation file.

actionbook/actionbook · 66 tokens

excel-spreadsheets

Create, modify, and manage Excel spreadsheets.

aws-samples/sample-strands-agent-with-agentcore · 14 tokens

word-documents

Create, modify, and manage Word documents.

aws-samples/sample-strands-agent-with-agentcore · 13 tokens

powerpoint-presentations

Create, inspect, edit, and validate professional PowerPoint presentations (.pptx), including uploaded source decks and templates, with design-system extraction, OOXML-preserving edits, structural linting, and rendered visual QA.

aws-samples/sample-strands-agent-with-agentcore · 48 tokens

visual-design

Use this skill any time the user needs a visual output as an image or PDF — charts, diagrams, posters, infographics, abstract artwork, or any visual design. Trigger for: data visualization requests, poster/flyer creation, infographic design, abstract or artistic visuals, architecture/flow diagrams, or any request…

aws-samples/sample-strands-agent-with-agentcore · 95 tokens