pdf-decompiler

pdf-decompiler is a skill for Claude Code, Codex from noobieisgod/pdf-decompiler-mcp. It costs 37 tokens per session (689 once invoked), scanned A, original, Apache-2.0.

A local tool for finding, reading, and checking evidence in PDF files. It returns cited passages, preserves table units and headings, can show image crops, and supports signed claim checks through a command-line or agent interface.

In plain words
What is it for?
Use it to search reports and research papers, inspect selected pages and tables, extract visual evidence, and verify quantitative claims from local or web-hosted PDFs.
Why use it?
It avoids loading whole PDFs into an agent's context and reduces mistakes when quoting figures, tables, or factual claims. It also makes the source of each claim easier to verify.

Skill for Claude CodeCodex

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

Good fit Use it to search reports and research papers, inspect selected pages and tables, extract visual evidence, and verify quantitative claims from local or web-hosted PDFs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/noobieisgod/pdf-decompiler-mcp/pdf-decompiler
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 noobieisgod/pdf-decompiler-mcp --skill pdf-decompiler
Clone the repo
git clone --depth 1 https://github.com/noobieisgod/pdf-decompiler-mcp

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-decompiler

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/noobieisgod/pdf-decompiler-mcp/pdf-decompiler"><img src="https://agentmods.dev/badge/skills/noobieisgod/pdf-decompiler-mcp/pdf-decompiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 689 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.
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.00037 $0.00689
Opus 5.5 $0.00015 $0.00276
Sonnet 5.5 $0.00007 $0.00138
Haiku 4.5 $0.00004 $0.00069

Measured today against content hash 6b2922bb319d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pdf-decompiler 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 today.

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.

skills/pdf-decompiler/SKILL.md · 30 lines

How it starts

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

PDF Decompiler Skill

Use PDF Decompiler whenever reading, searching, quoting, or verifying quantitative/factual claims from local or HTTPS PDFs. Never dump entire PDFs into context when targeted cited retrieval or verification is available.

Fast Workflow (MCP or CLI)

  1. Locate evidence in 1 call (zero ceremony):
    • MCP: pdf_search({ source: "/path/to/report.pdf", query: "Net income", granularity: "page" }) (one-shot source automatically opens & reuses a session handle; defaults to compact citations).
    • Folder corpus: pdf_search_folder({ folder: "/path/to/filings", query: "consolidated revenue" }).
    • CLI: npx -y pdf-decompiler search report.pdf "Net income" --page --json.
  2. Read target pages cheaply:
    • MCP: pdf_get_pages({ source: "/path/to/report.pdf", pages: [47], mode: "text", outputFormat: "markdown", citationDetail: "compact" }) (or structured detail: "compact").
    • CLI: npx -y pdf-decompiler read report.pdf --pages 47 --markdown --compact.
  3. Inspect tables with exact units & headers:
    • MCP: pdf_get_element({ source: "/path/to/report.pdf", elementId: "table:47:1" }) — always check tableContext.units (e.g. (in millions) vs (in thousands)), tableContext.headers, and accounting negatives (15.0).
    • CLI: npx -y pdf-decompiler table report.pdf table:47:1.
  4. Escalate to visual crop proof when needed:
    • When warnings include unmapped_font_encoding, ocr_uncertain_numbers, hidden_text_suspected, or complex financial tables, render a tight crop:
    • MCP: pdf_render_page({ source: "/path/to/report.pdf", page: 47, bbox: { x, y, width, height }, imageDelivery: "inline" }).
    • CLI: npx -y pdf-decompiler crop report.pdf 47 --bbox x,y,w,h --out proof.png.
  5. Mandatory Verifiable Claim Gate (Enterprise / Strict Mode):
    • Before presenting any high-stakes numerical, financial, legal, or compliance claim, call pdf_verify_claim({ source, claim, elementIds, provider: "auto" }) (runs Stage 1 local deterministic numeric/unit/year/sign/derived-math checks + Stage 2 TypeSafe AI Jev if TYPESAFE_API_KEY is configured).
    • Hard rule: If verdict !== "supported", discard or revise the claim — never present an unsubstantiated or contradicted claim to the user.
    • Attach the returned signed HMAC-SHA256 attestation when running under a Stop Hook (examples/hooks/verify-claims-hook.mjs or pdf-decompiler gate).

Read the full file on GitHub · 30 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. today First seen · 30 lines · 37 tokens per session scan A 6b2922bb319d

Subscribe to this mod's changes

pdf-decompiler is a skill published in the GitHub repository noobieisgod/pdf-decompiler-mcp (17 stars, last pushed today), licensed Apache-2.0. It adds 37 tokens to every session and 689 once invoked, about $0.0001 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-12-03.

Related

pdf-decompiler compared with skills from other repositories

pdf-decompiler next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pdf-decompilernoobieisgod/pdf-decompiler-mcpSkill17todayApache-2.0A37Claude Code, Codex
cvxhrtips/cvxSkill84d agoApache-2.0A87Claude Code, Codex
re-port-flowre-port-flow/reportflow-mcpSkill128d agoMITA85Claude Code, Codex
pdf-workflowspdfops/pdfops-mcpSkill05d agoMITA57Claude Code, Codex
pennyocrimiraoui/pennyocr-mcpSkill015d agoMITA20Cursor
beautiful-pdf-mcpKreminskaya/beautiful-pdf-mcpSkill95mo agoMITA0Claude Code, Codex
kamyKamy-Development/kamy-pluginSkill06mo agoMITA102Claude Code, Codex