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

Written for no agent in particular: nothing here depends on one.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atomicbot-ai/atomic-agent/pandoc
About the project

Atomic Agent is a local-first AI agent that runs its control loop and state on a user's machine while using local or cloud models. It drives browsers, edits files, runs approved commands, remembers context, schedules follow-ups, and connects to external tools, with the catalogue providing skills for its use.

AtomicBot-ai/atomic-agent · 3,431 stars · on GitHub · atomicagent.io

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 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/github.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/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/atomicbot-ai/atomic-agent/pandoc"><img src="https://agentmods.dev/badge/skills/atomicbot-ai/atomic-agent/pandoc.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00045 $0.00846
Opus 5.5 $0.00018 $0.00338
Sonnet 5.5 $0.00009 $0.00169
Haiku 4.5 $0.00005 $0.00085

Measured 1mo ago against content hash 41ea26062bb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (3,431 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.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.