surfsense-data

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

A spreadsheet and CSV analysis skill that uses pandas, a Python library for working with tables, to calculate and visualize data.

In plain words
What is it for?
It is for computing totals, averages, trends, rankings, and comparisons; cleaning table data; and creating charts for documents.
Why use it?
It turns requests for figures from spreadsheet or CSV files into reproducible calculations instead of manual checking.

Skill for Claude CodeCodex

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

Good fit It is for computing totals, averages, trends, rankings, and comparisons; cleaning table data; and creating charts for documents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/modsetter/surfsense/surfsense-data"><img src="https://agentmods.dev/badge/skills/modsetter/surfsense/surfsense-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,647 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.00000 $0.01647
Opus 5.5 $0.00000 $0.00659
Sonnet 5.5 $0.00000 $0.00329
Haiku 4.5 $0.00000 $0.00165

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

Security

Grade A, and why

surfsense-data 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-data/SKILL.md · 117 lines

How it starts

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

Analysing spreadsheets and CSVs

You answer a question about a table by writing a Python script and passing it to surfsense_analyze_data with the sources it reads. SurfSense runs the script on copies of those files and returns what it printed, the tables it saved and the charts it drew. You then answer from those results, or place a chart in a document.

Analyse or read

  • Analyse when the answer needs arithmetic over rows: sums, counts, averages, growth, shares, rankings, grouping, joining two tables, finding gaps or outliers, or a chart.
  • Read the source's text in sources/ instead when the question is what a table says, a handful of cells, or the prose around it.
  • Do not add up a long column yourself from the text: run the analysis. The text in sources/ is an extract made for reading; the script reads the file itself.
  • Only spreadsheet and CSV sources the user selected can be analysed. A PDF or Word table is read from its text.

The contract

  • os.environ["INPUT_DIR"] holds a read-only copy of each source you named, under its own file name. manifest.json in the same folder lists each file with its document_id and title, so you can say which source a number came from. Nothing the script does reaches the user's files.
  • Save what you make in os.environ["OUTPUT_DIR"]: tables as .csv, charts as .png. Only .csv, .tsv, .png, .jpg, .svg, .xlsx, .json and .txt files at the top of that folder are kept, at most 20. Spaces and other characters in a file name become _.
  • Use pandas, numpy, matplotlib, openpyxl and Python's standard library. Do not use the network.
  • The script runs alone, from an empty folder, for at most 120 seconds. Each run starts fresh: nothing from an earlier run is in INPUT_DIR.

Loading each format

  • .csv: pd.read_csv(path). If everything lands in one column, the file uses semicolons: pass sep=";". Numbers written as 1,234 need thousands=",". A file that will not decode needs encoding="latin-1".
  • .tsv: pd.read_csv(path, sep="\t").
  • .xlsx: pd.read_excel(path, sheet_name=None) gives every sheet as a dict of frames; look at the names before you pick one. When the header is not on the first row, pass header=<row index> or skiprows.
  • When you do not know the layout yet, make the first run a look: print df.shape, df.columns.tolist() and df.head().to_string(), then write the real analysis.
  • Clean before you compute: df.columns = df.columns.str.strip(), pd.to_numeric(df[col], errors="coerce") for numbers stored as text, pd.to_datetime(df[col], errors="coerce") for dates, and drop a total row the sheet already has so it is not counted twice.

Read the full file on GitHub · 117 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 Changed · +2 lines cba5fbd93d61
  2. 1mo ago First seen · 115 lines · 0 tokens per session scan A 58282a09c015

Subscribe to this mod's changes

surfsense-data is a skill published in the GitHub repository MODSetter/SurfSense (17,247 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,647 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-10-10.

Related

surfsense-data compared with skills from other repositories

surfsense-data next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
surfsense-dataMODSetter/SurfSenseSkill17k3d agoApache-2.0A0Claude Code, Codex
xlsxHKUDS/DeepTutorSkill64kyesterdayApache-2.0A88Claude Code, Codex
xberg-extracting-tablesxberg-io/xbergSkill9.6ktodayMITA36Claude Code
potpie-resource-spreadsheetpotpie-ai/potpieSkill5.8k5d agoApache-2.0A106Claude Code, Codex
tencent-docsUnicomAI/wanwuSkill2.4k5d agoApache-2.0A209Claude Code, Codex
smart-data-collectionUnicomAI/wanwuSkill2.4k5d agoApache-2.0A115Claude Code
standardize-health-datathetahealth/mirobodySkill1.9k3d agoApache-2.0A133Claude Code