pdf-edit

A skill for inspecting, editing, and checking PDF files while preserving their visible content. PDF files are fixed-layout documents commonly used for reports, forms, and publications.

In plain words
What is it for?
Use it to modify PDF content, inspect document structure, verify the resulting file, and visually check layout when an edit changes how pages look.
Why use it?
It reduces the risk of changing a document without first understanding its structure or damaging its layout. It also keeps the original file intact unless replacement is explicitly requested.

Skill for Claude CodeCodex

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 skills/mathieu0905/skilllens/pdf-edit
Any agent
npx skills add mathieu0905/skilllens --skill pdf-edit
Clone the repo
git clone --depth 1 https://github.com/mathieu0905/skilllens

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 179 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.00179
Opus 5 $0.00000 $0.00089
Sonnet 5 $0.00000 $0.00036
Haiku 4.5 $0.00000 $0.00018

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

Security

Grade A, and why

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

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.

sample_data/pdf-edit/SKILL.md · 28 lines

What it actually says

PDF Editing Skill

Use this skill when the user asks you to inspect, edit, or verify a PDF artifact.

Intake

  • Read the user's requested PDF change before touching files.
  • Inspect the source document structure before editing.
  • Do not overwrite the original PDF unless the user explicitly asks for replacement.

Editing

  • Use a file edit or conversion tool that preserves the visible page content.
  • Keep a copy of the modified artifact path in the final response.
  • If the edit changes text layout, inspect the resulting page visually.

Verification

  • Run a verification command before the final response.
  • Capture a screenshot or rendered preview when the task is visual.
  • If verification fails, explain the failing evidence instead of claiming success.

Final Response

  • Summarize the exact file changed.
  • Mention the verification evidence.
  • Do not include unrelated implementation details in the final response.
Files

What ships with it

5 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. 2d ago First seen · 28 lines · 0 tokens per session scan A 986905b518c9

Subscribe to this mod's changes

pdf-edit is a skill published in the GitHub repository mathieu0905/skilllens (2 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 179 tokens. 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-31.