surfsense-pdf

surfsense-pdf is a skill for Claude Code, Codex from MODSetter/SurfSense. It costs 70 tokens per session (1,213 once invoked), scanned A, original, Apache-2.0.

A PDF editing skill for working with existing PDF files without changing their main content. PDF is a fixed-layout document format commonly used for sharing and printing.

In plain words
What is it for?
It is for merging, removing, splitting, rotating, or reordering pages; adding watermarks, page numbers, headers, or footers; and listing or filling form fields.
Why use it?
It provides defined operations for changing page structure and form-related details while leaving the document's content otherwise untouched.

Skill for Claude CodeCodex

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

Good fit It is for merging, removing, splitting, rotating, or reordering pages; adding watermarks, page numbers, headers, or footers; and listing or filling form fields.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/modsetter/surfsense/surfsense-pdf
About the project

SurfSense is an open-source desktop application that uses an AI agent to research, transform, and edit documents while keeping their index on the user's machine. It is intended for people working with documents they cannot upload, with a choice of local or remote models and no account required.

MODSetter/SurfSense · 17,247 stars · on GitHub · surfsense.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 MODSetter/SurfSense --skill surfsense-pdf
Clone the repo
git clone --depth 1 https://github.com/MODSetter/SurfSense

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/modsetter/surfsense/surfsense-pdf"><img src="https://agentmods.dev/badge/skills/modsetter/surfsense/surfsense-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,213 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.00070 $0.01213
Opus 5.5 $0.00028 $0.00485
Sonnet 5.5 $0.00014 $0.00243
Haiku 4.5 $0.00007 $0.00121

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

Security

Grade A, and why

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

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.

surfsense_local/backend/modules/agent/skills/surfsense-pdf/SKILL.md · 66 lines

How it starts

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

Working on PDFs

Three tools work on PDFs the user selected and on PDF artifacts in Studio. None of them runs a script and none of them changes the PDF it reads: each result is a new PDF artifact in Studio, and the user's own file stays exactly as it was. Say so when the user worries about their original.

The user wants Tool Call
Several PDFs as one surfsense_pdf_pages operation: "merge", the PDFs in order
Only some pages surfsense_pdf_pages operation: "extract", pages
One file per chapter, per section, per page surfsense_pdf_pages operation: "split", a range per part in pages
A page turned the right way up surfsense_pdf_pages operation: "rotate", angle, pages
The pages in another order surfsense_pdf_pages operation: "reorder", every page once in pages
"DRAFT" or "CONFIDENTIAL" across each page surfsense_pdf_stamp kind: "watermark", text
Page numbers surfsense_pdf_stamp kind: "page_numbers", optional text with {page} and {total}
A line of text at the top or bottom of each page surfsense_pdf_stamp kind: "header" or "footer", text, optional position
What a form asks for surfsense_pdf_form action: "list"
A form filled in surfsense_pdf_form action: "list", then action: "fill" with fields

A new document written from scratch, even a PDF, is surfsense_render_document with the surfsense-documents skill, not these tools.

Naming the PDFs

  • A source by document_id (or document_ids for pages): the number in brackets at the end of its file name in sources/.
  • A PDF in Studio by artifact_id (or artifact_ids): every result names its new artifact's id. Pass it to the next tool to go on, for example extract pages, then number them.
  • A merge takes document_ids in their order, then artifact_ids in theirs. For another mix, merge in two steps.

Page ranges

pages is text: page numbers from 1 and ranges, separated by commas.

Read the full file on GitHub · 66 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 · 66 lines · 70 tokens per session scan A 8a4f397166fc

Subscribe to this mod's changes

surfsense-pdf is a skill published in the GitHub repository MODSetter/SurfSense (17,247 stars, last pushed 3d ago), licensed Apache-2.0. It adds 70 tokens to every session and 1,213 once invoked, about $0.0003 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-10-10.

Related

surfsense-pdf compared with skills from other repositories

surfsense-pdf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
surfsense-pdfMODSetter/SurfSenseSkill17k3d agoApache-2.0A70Claude Code, Codex
markitdownK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA62Claude Code, Codex
pdfHKUDS/DeepTutorSkill64kyesterdayApache-2.0A54Claude Code, Codex
xberg-extracting-tablesxberg-io/xbergSkill9.6ktodayMITA36Claude Code
potpie-resource-pdfpotpie-ai/potpieSkill5.8k5d agoApache-2.0A101Claude Code, Codex
pdf-exploreUnicomAI/wanwuSkill2.4k5d agoApache-2.0A192Claude Code, Codex
azure-aimicrosoft/skillsSkill3.3k3d agoMITA76Claude Code