pdf-official

pdf-official is a skill for Claude Code, Codex from XiaomiMiMo/MiMo-Code. It costs 135 tokens per session (1,755 once invoked), scanned A, original, MIT.

A toolkit for reading, creating, filling, and changing PDF files. PDFs are fixed-layout documents commonly used for reports, invoices, forms, and scanned pages.

In plain words
What is it for?
Use it to extract text, tables, metadata, or images; combine or rotate pages; crop, watermark, encrypt, or compress files; create PDFs; fill forms; and handle scanned documents with OCR.
Why use it?
It provides separate workflows for extracting content, transforming pages, composing documents, and filling forms. This makes it easier to choose the right process and validate the result.

Skill for Claude CodeCodex

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

Good fit Use it to extract text, tables, metadata, or images; combine or rotate pages; crop, watermark, encrypt, or compress files; create PDFs; fill forms; and handle scanned documents with OCR.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaomimimo/mimo-code/pdf-official
About the project

MiMoCode is a terminal-based AI coding assistant that reads and writes code, runs commands, manages Git, and remembers project context across sessions. Developers use it to work with software projects through a command-line interface and connect it to language-model providers; the catalogue includes skills and instructions for it.

XiaomiMiMo/MiMo-Code · 13,681 stars · on GitHub · mimo.xiaomi.com

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 XiaomiMiMo/MiMo-Code --skill pdf-official
Clone the repo
git clone --depth 1 https://github.com/XiaomiMiMo/MiMo-Code

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 pdf-official

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/pdf-official/github.svg)](https://agentmods.dev/skills/xiaomimimo/mimo-code/pdf-official)
Your own site
<a href="https://agentmods.dev/skills/xiaomimimo/mimo-code/pdf-official"><img src="https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/pdf-official/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 pdf-official

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaomimimo/mimo-code/pdf-official"><img src="https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/pdf-official.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,755 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.00135 $0.01755
Opus 5.5 $0.00054 $0.00702
Sonnet 5.5 $0.00027 $0.00351
Haiku 4.5 $0.00014 $0.00176

Measured 1mo ago against content hash 77288f070c6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdf-official 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.

The scan reads SKILL.md. This mod also ships 11 executable files (scripts/apply_values.py, scripts/carve.py, scripts/combine.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

packages/cli/src/skill/builtin/.bundle/pdf-official/SKILL.md · 139 lines

How it starts

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

PDF skill

An Apache-2.0 toolkit for reading, composing, transforming, and filling PDF files. Written from scratch on top of permissively-licensed open-source libraries (pypdf, pdfplumber, pypdfium2, reportlab, pdf-lib, qpdf) so this can be embedded in commercial projects without special agreement.

Route the task

Pick the sub-guide by the verb of the request.

Task Path Read
Pull text / tables / metadata / images out of an existing PDF Extract extract.md
Combine, carve, rotate, crop, watermark, encrypt, or shrink Transform transform.md
Build a PDF that doesn't exist yet (report, invoice, certificate) Compose compose.md
Fill a form (AcroForm or scanned) Interactive interactive.md
Scanned / image-only PDF (no selectable text) Extract → OCR extract.md §5

If a task mixes several of these, follow the order: probe → plan → extract or compose → validate.

Every path starts with a probe. scripts/survey.py returns page count, whether the file is encrypted, whether it has an AcroForm, and whether page 1 looks like a scan.

First install

Bundled runtime: when the MIMO_PYTHON environment variable is set, skip the installs below — run every command with python3/uv run replaced by "$MIMO_PYTHON" (pypdf/pypdfium2/reportlab/Pillow preinstalled; pip console scripts unavailable, use "$MIMO_PYTHON" -m <module>). A bundled qpdf is exposed as MIMO_QPDF (picked up automatically by the scripts here); invoke it directly as "$MIMO_QPDF" --check file.pdf.

Python-only path (all BSD / MIT / Apache) — covers 95% of tasks:

python3 -m pip install --upgrade pypdf pdfplumber pypdfium2 reportlab Pillow

Add these external binaries only when you actually need them:

# qpdf — merge/split/encrypt/repair, Apache-2.0
brew install qpdf                # macOS
apt-get install -y qpdf          # Debian / Ubuntu

# Tesseract — OCR for scanned PDFs, Apache-2.0
brew install tesseract
python3 -m pip install pytesseract pdf2image
apt-get install -y tesseract-ocr

# Poppler — pdftotext / pdftoppm / pdfimages, GPL-2.0
# Optional. Only install if you accept a GPL dependency at CLI level.
brew install poppler
apt-get install -y poppler-utils

Read the full file on GitHub · 139 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 · 139 lines · 135 tokens per session scan A 77288f070c6d

Subscribe to this mod's changes

pdf-official is a skill published in the GitHub repository XiaomiMiMo/MiMo-Code (13,681 stars, last pushed today), licensed MIT. It adds 135 tokens to every session and 1,755 once invoked, about $0.0005 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.