export

A command for converting a PR/FAQ LaTeX document into a Word .docx file using pandoc. LaTeX is a text format often used for structured technical documents, while pandoc converts documents between formats.

In plain words
What is it for?
Use it to find a PR/FAQ .tex file, check whether pandoc is installed, export the document, and report where the Word file was saved.
Why use it?
It provides a Word export without requiring a large TeX installation or PDF compilation.

Command

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 commands/punt-labs/prfaq/export
Clone the repo
git clone --depth 1 https://github.com/punt-labs/prfaq
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 394 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00022 $0.00394
Opus 5 $0.00011 $0.00197
Sonnet 5 $0.00004 $0.00079
Haiku 4.5 $0.00002 $0.00039

Measured 2d ago against content hash 84777166f046, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

export scanned grade B with 1 finding 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 2d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Ubuntu: sudo apt install pandoc
plugin/commands/export.md · 30 lines

What it actually says

Export PR/FAQ to Word (.docx)

Convert the PR/FAQ LaTeX document into a Word file using pandoc. This provides a lightweight alternative to PDF compilation that does not require a ~4 GB TeX distribution.

Steps

  1. Locate the .tex file. Use $ARGUMENTS if provided, otherwise look for prfaq.tex or *prfaq*.tex in the current directory. If no .tex file is found, tell the user and stop.

  2. Check pandoc. Run pandoc --version to confirm it's available. If not, tell the user:

    pandoc is required for DOCX export. Install it:
      macOS:  brew install pandoc
      Ubuntu: sudo apt install pandoc
      Other:  https://pandoc.org/installing.html
    
  3. Export. Run:

    bash ${CLAUDE_PLUGIN_ROOT}/scripts/export_prfaq_docx.sh <file.tex>
    

    This preprocesses custom LaTeX environments, converts via pandoc, and produces a .docx file next to the original .tex.

  4. Report result. Tell the user where the .docx file was written. Note that the Word output covers ~80% of the PDF's visual quality — styled headings, numbered FAQs and features, and clean body text — but does not include colored risk ratings, custom quote boxes, or the full typographic treatment of the LaTeX PDF.

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. 2d ago First seen · 30 lines · 22 tokens per session scan B 84777166f046

Subscribe to this mod's changes

export is a command published in the GitHub repository punt-labs/prfaq (25 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 394 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.