# pandoc

A skill that hands your agent ready pandoc commands for moving documents between Markdown, DOCX, PDF, HTML and LaTeX. Useful when text has to land in Word or come out as a PDF.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 484 installs · ★ 8
- Author: plinde
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/plinde/claude-plugins/tree/HEAD/pandoc/skills/pandoc/SKILL.md
- Updated: 2026-05-14
- HTML: https://affpapa.org/en/nevibecode/skills/pandoc

## What it does

The skill collects working pandoc invocations for the common hops: `pandoc input.md -o output.docx`, `pandoc input.md -o output.pdf`, `pandoc -f gfm -s input.md -o output.html`. It also ships tables of options (`--toc`, `--reference-doc`, `--metadata`, `--pdf-engine`) and the format identifiers you can pass to `-f` and `-t`: `markdown`, `gfm`, `docx`, `pdf`, `html`, `latex`, `rst`, `epub`, `odt`, `rtf`.

For HTML the skill is blunt: use `-f gfm`, because plain markdown merges consecutive lines and mangles lists. PDF needs LaTeX, and the engine matters — `pdflatex` handles ASCII only, `xelatex` copes with arrows and box-drawing characters, `lualatex` is for OpenType fonts and heavier typography. No LaTeX on the machine? There is a fallback: generate styled HTML and print it to PDF from the browser.

A short section covers getting Markdown into Google Docs through an intermediate `.docx`, and another covers pulling Markdown back out of Word files. Pandoc itself is not bundled. Run `pandoc --version` first and install it ahead of time, or the agent has nothing to execute.

## Requirements
- Works with: Google Workspace

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add plinde/claude-plugins --skill pandoc -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pandoc/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pandoc/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add plinde/claude-plugins --skill pandoc -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pandoc/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add plinde/claude-plugins --skill pandoc -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pandoc/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install plinde/claude-plugins pandoc
```

2. **Manually: put the files in place**
- File: `.github/skills/pandoc/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add plinde/claude-plugins --skill pandoc -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/plinde/claude-plugins --path pandoc/skills/pandoc
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pandoc/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add plinde/claude-plugins --skill pandoc -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/plinde/claude-plugins/tree/HEAD/pandoc/skills/pandoc/SKILL.md

## When to use it
- turn a Markdown file into a PDF
- export a document to Word with a table of contents
- move notes into Google Docs with headings and tables intact
- extract Markdown from a .docx someone sent you
- build a styled HTML version of a doc with code highlighting

## Example prompts
- convert README.md to docx with a table of contents
- build a PDF from the report, 1in margins, xelatex engine
- turn this .docx back into Markdown

## Similar
- [doc-to-markdown](https://affpapa.org/en/nevibecode/skills/doc-to-markdown.md) — skill · 872 installs
- [translate-book](https://affpapa.org/en/nevibecode/skills/translate-book.md) — skill · 1800 installs
- [document-processing](https://affpapa.org/en/nevibecode/skills/document-processing.md) — skill · 1300 installs
- [pdf-generation](https://affpapa.org/en/nevibecode/skills/pdf-generation.md) — skill · 482 installs
- [md-to-docx](https://affpapa.org/en/nevibecode/skills/md-to-docx.md) — skill · 353 installs
- [markitdown](https://affpapa.org/en/nevibecode/skills/julianobarbosa-markitdown.md) — skill · 1600 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
