pdf-tools

pdf-tools is a skill for Claude Code, Codex from eigenweltlabs/legalwork. It costs 122 tokens per session (1,548 once invoked), scanned A, original, MIT.

A PDF tool for reading text, adding annotations, filling form fields, and signing documents in an in-app viewer.

In plain words
What is it for?
Use it to extract text for quotes, summaries, or comparisons; add sticky notes or highlights; inspect and fill forms; and add a typed or image signature.
Why use it?
It lets you work with PDF contents and forms without manually editing PDF data or relying on separate command-line tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it to extract text for quotes, summaries, or comparisons; add sticky notes or highlights; inspect and fill forms; and add a typed or image signature.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/eigenweltlabs/legalwork/pdf-tools"><img src="https://agentmods.dev/badge/skills/eigenweltlabs/legalwork/pdf-tools.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,548 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.00122 $0.01548
Opus 5 $0.00061 $0.00774
Sonnet 5 $0.00024 $0.00310
Haiku 4.5 $0.00012 $0.00155

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

Security

Grade A, and why

pdf-tools 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 10d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (assets/pdf-agent.mjs, assets/pdf-ops.mjs, assets/pdf-text.mjs, …), 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.

apps/server/resources/core-opencode/skills/pdf-tools/SKILL.md · 113 lines

How it starts

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

PDF reading + actions (text / annotate / fill-form / sign)

This skill is how this firm reads, annotates, fills, and signs PDFs with AI. It is self-contained: assets/pdf-agent.mjs imports vendored engines (pdf-lib for actions, pdf.js for text — pure JS, no native deps), so it runs in any workspace with no install. Do not hand-edit PDF bytes or reach for python or pdftotext (they may not exist on the machine) — use this tool. Every editing command writes a new file next to the source; the original PDF is never touched.

The tool

# ALWAYS FIRST: page count, page sizes (points), and every form field
# (name / type / current value / options) as JSON.
node .opencode/skills/pdf-tools/assets/pdf-agent.mjs inspect "<file.pdf>"

# READ the PDF: its text content per page as JSON ({ pageCount, pages: [{page, text}] }).
# All pages by default; --pages limits it ("3", "1-4", "1,3,7-9").
node .opencode/skills/pdf-tools/assets/pdf-agent.mjs text "<file.pdf>" --pages 1-4

# Sticky notes + highlight rectangles (plan JSON on stdin). Writes <base>.annotated.pdf.
echo '<plan-json>' | node .opencode/skills/pdf-tools/assets/pdf-agent.mjs annotate "<file.pdf>" --plan -

# Fill AcroForm fields from JSON key/values (stdin). Writes <base>.filled.pdf.
echo '{"Field Name":"value","Agree":true}' | node .opencode/skills/pdf-tools/assets/pdf-agent.mjs fill "<file.pdf>" --data -

# Stamp a signature block. Writes <base>.signed.pdf.
node .opencode/skills/pdf-tools/assets/pdf-agent.mjs sign "<file.pdf>" --name "Jane Doe" --date 2026-07-01
node .opencode/skills/pdf-tools/assets/pdf-agent.mjs sign "<file.pdf>" --name "Jane Doe" --image signature.png --page 3 --x 320 --y 90

Coordinates: pages are 1-based; x/y are PDF points (1/72 inch, US Letter is 612×792) with the origin at the BOTTOM-LEFT of the page; (x, y) is the bottom-left corner of the note/highlight/signature. Get each page's size from inspect before placing anything.

Annotate — the plan

Read the full file on GitHub · 113 lines

Files

What ships with it

4 files 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 · 113 lines · 122 tokens per session scan A a2502b6f0325

Subscribe to this mod's changes

pdf-tools is a skill published in the GitHub repository eigenweltlabs/legalwork (104 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 1,548 once invoked, about $0.0006 per session on Opus 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.

Related

Other skills, from other repositories