document-converter

document-converter is a skill for Claude Code from ericgandrade/claude-superskills. It costs 135 tokens per session (2,304 once invoked), scanned B, original, MIT.

A local toolset for converting office documents, PDFs, and images between formats, including extracting text from scanned files with OCR.

In plain words
What is it for?
Use it to convert Office files to PDF or HTML, turn PDFs into images, merge or split PDFs, rotate or protect them, and make scans searchable.
Why use it?
It handles common document conversions and PDF tasks offline without requiring an online service.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is libreoffice --headless --convert-to pdf presentation.pptx --outdir ./output/.

Part of the claude-superskills plugin — 18 skills shipped together

Good fit Use it to convert Office files to PDF or HTML, turn PDFs into images, merge or split PDFs, rotate or protect them, and make scans searchable.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ericgandrade/claude-superskills
agentmods
npx agentmods add skills/ericgandrade/claude-superskills/document-converter

Made for: Claude Code.

Or install claude-superskills, the plugin that ships this one along with the rest of its 18 skills.

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 document-converter

README.md
[![agentmods](https://agentmods.dev/badge/skills/ericgandrade/claude-superskills/document-converter/github.svg)](https://agentmods.dev/skills/ericgandrade/claude-superskills/document-converter)
Your own site
<a href="https://agentmods.dev/skills/ericgandrade/claude-superskills/document-converter"><img src="https://agentmods.dev/badge/skills/ericgandrade/claude-superskills/document-converter/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 document-converter

Your own site · 80×15
<a href="https://agentmods.dev/skills/ericgandrade/claude-superskills/document-converter"><img src="https://agentmods.dev/badge/skills/ericgandrade/claude-superskills/document-converter.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 2,304 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.02304
Opus 5 $0.00068 $0.01152
Sonnet 5 $0.00027 $0.00461
Haiku 4.5 $0.00014 $0.00230

Measured 10d ago against content hash 12935df6612d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

document-converter 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 10d 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.

| LibreOffice | `brew install --cask libreoffice` | `sudo apt install libreoffice` | `winget install TheDocumentFoundation.LibreOffice` |
skills/document-converter/SKILL.md · 230 lines

How it starts

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

document-converter

Purpose

Convert documents between formats and perform PDF operations using local, free, offline tools. No API key, no cost, no internet required. Supports Office formats, PDF manipulation, image-to-PDF, and OCR using LibreOffice, ghostscript, pdftk, tesseract, and imagemagick.

When to Use

  • Converting Office documents (DOCX, PPTX, XLSX, ODP, ODT) to PDF or HTML
  • Converting PDF pages to images (PNG, JPG, TIFF) or images to PDF
  • PDF operations: merge multiple PDFs, split by page range, rotate pages, encrypt or decrypt
  • OCR: extract searchable text from scanned PDFs or image files
  • Any document format conversion that does not involve video or audio

Do NOT use for:

  • Video or audio format conversion (use a dedicated media skill)
  • Converting code between programming languages
  • Simple markdown → HTML (use pandoc directly)
  • Structured text extraction from PDFs (use docling-converter instead)

Step 0: Discovery — Detect Available Tools

Before any conversion, detect which tools are installed and identify the operating system:

# Detect OS
uname -s   # Darwin = macOS, Linux = Linux; on Windows use 'ver' or check $OS

# Check each tool
libreoffice --version 2>/dev/null || echo "NOT FOUND"
gs --version 2>/dev/null || echo "NOT FOUND"
pdftk --version 2>/dev/null || echo "NOT FOUND"
tesseract --version 2>/dev/null || echo "NOT FOUND"
convert -version 2>/dev/null || echo "NOT FOUND"   # ImageMagick

If a required tool is missing, show the install command for the user's OS before proceeding:

Tool macOS Linux (apt) Windows
LibreOffice brew install --cask libreoffice sudo apt install libreoffice winget install TheDocumentFoundation.LibreOffice
Ghostscript brew install ghostscript sudo apt install ghostscript winget install ArtifexSoftware.GhostScript
pdftk brew install pdftk-java sudo apt install pdftk winget install PDFTechnologies.PDFtk
Tesseract brew install tesseract sudo apt install tesseract-ocr winget install UB-Mannheim.TesseractOCR
ImageMagick brew install imagemagick sudo apt install imagemagick winget install ImageMagick.ImageMagick

Read the full file on GitHub · 230 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 230 lines · 135 tokens per session scan B 12935df6612d

Subscribe to this mod's changes

document-converter is a skill published in the GitHub repository ericgandrade/claude-superskills (74 stars, last pushed 4mo ago), licensed MIT. It adds 135 tokens to every session and 2,304 once invoked, about $0.0007 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.

Related

Other skills, from other repositories

document-skills

Professional document creation, editing, and analysis for Office formats (docx, pdf, pptx, xlsx). Use when working with Word documents, PDFs, PowerPoint presentations, or Excel spreadsheets.

travisjneuman/.claude · 44 tokens

summarize

Summarize or extract text/transcripts from URLs, podcasts, and local files (great fallback for “transcribe this YouTube/video”).

sangrokjung/claude-forge · 32 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

travisjneuman/.claude · 50 tokens

hive.pdf

Read, write, merge, split, rotate, watermark, encrypt, and OCR PDF files using Python (pypdf, pdfplumber, reportlab, pypdfium2) and command-line tools (poppler-utils, qpdf). Use when the user asks to extract text/tables/images from a PDF, create or modify a PDF, combine or split PDFs, OCR a scanned PDF…

aden-hive/hive · 98 tokens

obsidian-vault

Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.

stevesolun/ctx · 43 tokens

google-apps-script

Build Google Apps Script automation for Sheets and Workspace. Custom menus, triggers (onEdit / time-driven / form submit), dialogs, sidebars, email batches, PDF export, external API. Use whenever the user wants to automate a Google Sheet, build a Sheets menu / sidebar / dialog, hit a Sheets row from email or a…

jezweb/claude-skills · 89 tokens