surfsense-documents

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

A document-creation and editing skill that uses Python scripts to make or change Word documents, PDFs, PowerPoint presentations, and Excel workbooks.

In plain words
What is it for?
It is for creating or editing .docx, .pdf, .pptx, and .xlsx files through rendered Python scripts.
Why use it?
It provides a repeatable way to generate or modify common office files, including files based on an existing Word or PowerPoint source.

Skill for Claude CodeCodex

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

Good fit It is for creating or editing .docx, .pdf, .pptx, and .xlsx files through rendered Python scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/modsetter/surfsense/surfsense-documents
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-documents
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-documents

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/modsetter/surfsense/surfsense-documents"><img src="https://agentmods.dev/badge/skills/modsetter/surfsense/surfsense-documents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,786 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.00089 $0.01786
Opus 5.5 $0.00036 $0.00714
Sonnet 5.5 $0.00018 $0.00357
Haiku 4.5 $0.00009 $0.00179

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

Security

Grade A, and why

surfsense-documents 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 5d 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-documents/SKILL.md · 74 lines

How it starts

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

Documents, decks and workbooks

Make a file with surfsense_render_document: give it a title, a format (pdf, docx, pptx or xlsx) and a short Python script. SurfSense runs the script, keeps the file as a version in Studio and keeps the script beside it. Then look at every page the result shows before you go on. To change the file later you change the script and render it again, which makes the next version.

For a PDF, a Word document or a deck, write the script with the surfsense_docs helper: it lays out headings, text, lists, tables, images, charts and speaker notes, so the script stays short.

The files in this skill

File Read it
workbooks.md Before you write any Excel workbook: numbers and formats, totals as formulas, native charts, and how to check one.
by-hand.md Before a script that writes python-docx, ReportLab or python-pptx itself: the user's own Word or PowerPoint file as a template, a PowerPoint chart they can edit, the look of a source you can only see, or a layout the helper cannot make.

A whole PDF with the helper

A Word document or a deck is the same script with another format.

from surfsense_docs import Doc

doc = Doc("Spring plan: Elm Road community garden", subtitle="For the garden committee")
doc.heading("What changes this spring")
doc.paragraph("The garden opens to members on **12 April**, two weeks earlier than last year.")
doc.bullets(["Members water their own plots", "Shared tools stay in the shed"])
doc.heading("Budget")
doc.table(["Item", "Cost (USD)"],
          [["Raised beds", 1200], ["Soil and compost", 450], ["Hand tools", 300]],
          total=["Total", 1950],
          after=[["Water, each month", 40]])
doc.chart("bar", ["Raised beds", "Soil and compost", "Hand tools"], [1200, 450, 300],
          title="Where the money goes", ylabel="USD")
doc.save()
  • Doc(title, subtitle=None, letter=False), then its parts in reading order, then save(). Pages are A4; letter=True makes US Letter pages, for a reader in the US or Canada or when the user asks for Letter.
  • heading(text, level=1), paragraph(text), bullets(items), numbered(items). **bold** and *italic* work inside any text.
  • table(header, rows, total=None, bold_total=False, after=None). Put numbers in as numbers. total is the total row as you write it: add up only the rows it covers. A row that is not part of the total, such as a monthly fee below one-off costs, goes in after, below it. bold_total=True sets the total row in bold. total="Total" instead adds a row that sums every number column of rows: use it only when each of those columns is an amount to add up.
  • image(name, width_cm=None, caption=None) places a picture by the name surfsense_list_images or surfsense_make_image gave; list every name you use in the call's images.
  • chart(kind, labels, values, title=None, ylabel=None) draws a "bar", "line" or "pie" chart.
  • notes(text) is what the presenter says, in the speaker notes of the slide it falls on; a PDF or a Word document leaves it out. page_break() starts a new page, or a new slide under the same heading.
  • In a deck each heading starts a slide: keep each slide to a few bullets, a table or a chart.

Read the full file on GitHub · 74 lines

Files

What ships with it

2 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. 5d ago Changed · -272 lines · +9 tokens per session 10a4240d9e06
  2. 1mo ago First seen · 346 lines · 80 tokens per session scan A ba5fc705dfee

Subscribe to this mod's changes

surfsense-documents is a skill published in the GitHub repository MODSetter/SurfSense (17,247 stars, last pushed 3d ago), licensed Apache-2.0. It adds 89 tokens to every session and 1,786 once invoked, about $0.0004 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-documents compared with skills from other repositories

surfsense-documents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
surfsense-documentsMODSetter/SurfSenseSkill17k3d agoApache-2.0A89Claude Code, Codex
xberg-extracting-tablesxberg-io/xbergSkill9.6ktodayMITA36Claude Code
smart-data-collectionUnicomAI/wanwuSkill2.4k5d agoApache-2.0A115Claude Code
standardize-health-datathetahealth/mirobodySkill1.9k3d agoApache-2.0A133Claude Code
convert-documents-to-markdownkortix-ai/sunaSkill21kyesterdaynoneA86Claude Code, Codex
coff0xc-office-doc-toolsCoff0xc/coffee-skillSkill1814d agononeA77Claude Code, Codex
markitdownK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA62Claude Code, Codex