# Profil: Exact Table Stats & Pivots for Excel, CSV, JSON

> Your agent understands a spreadsheet without reading every row: a short report with column types, statistics and data problems, plus exact totals per group or month. Catches total rows, typos and "n/a" before they skew the numbers. Local, deterministic, no API key.

Profil: Exact Table Stats & Pivots for Excel, CSV, JSON is a paid AI agent skill on Agensi by brainbooth, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [brainbooth](https://www.agensi.io/creators/brainbooth)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/profil-exact-table-stats-pivots-for-excel-csv-json
- Tags: database, research, productivity, excel, csv, claude-code, node-js, spreadsheet

## What it does

- Summarises any spreadsheet in a short report your AI can read cheaply
- Calculates exact totals, averages and counts per group or per month
- Finds total rows, typos, duplicates and "n/a" values before they skew results
- Leaves out total rows and footnotes so nothing is counted twice
- Lists the largest, smallest or matching rows, filtered by any column
- Keeps your files on your computer, with the same result every time

## Who it's for

- **Excel and office users:** Correct totals and averages from big spreadsheets, without copying data into the chat. Try: "What was the revenue per region in sales.xlsx, and is anything wrong with the data?"
- **Analysts and finance teams:** Exact monthly and quarterly figures with every excluded row named. Try: "Show revenue per month and product for Q4 from orders.csv."
- **Developers building AI agents:** A cheap, reliable first look at any table before the agent decides what to do. Try: "Profile customers.json and tell me which columns have problems."
- **Researchers and students:** Quick statistics and counts per group for survey or study data. Try: "Count the answers per group in survey.xlsx and give me the averages."

## About this skill

AI agents struggle with spreadsheets in two ways: reading thousands of rows costs a fortune in tokens, and adding up numbers "in their head" goes wrong more often than you think. Total rows get counted twice, "north " and "North" become two regions, an "n/a" can turn into a zero.

**profil** fixes both. It reads the file locally and gives your agent:

- **A profile in a few hundred tokens**, no matter if the table has 60 or 600,000 rows: every column's type and role, sums, means, medians, ranges, top values, date ranges, and the kind of table (records, time series, list, wide).
- **Exact totals (pivot)**: counts, sums with each group's share, means, min and max per category or per day, week, month, quarter or year, with filters and an overall total. Your agent quotes real numbers instead of estimating.
- **The right rows (rows)**: the largest orders, a ranking, or every entry matching a filter, sorted, with row numbers, and with a warning when there is a tie at the cut-off. No more guessing which orders were the biggest.
- **Data problems before they become wrong answers**: total rows and footnotes (left out automatically and reported), spelling variants, values like "n/a" in number columns, duplicate rows, title rows, several tables on one sheet, Excel errors and formulas without stored values.

**Built to be trusted**
- Runs 100% locally. Your files never leave your machine: no uploads, no network calls, no telemetry.
- Deterministic: the same file always gives the same report, byte for byte. Plain code, not an AI guess.
- Never changes your data and never guesses silently: everything it leaves out or suspects is named, with row numbers.
- No dependencies to install: one self-contained, readable script.
- Cell contents are treated as data, never as instructions to your agent.

**Requirements:** Node.js 20 or newer. Supports Excel (.xlsx/.xls), CSV (comma, semicolon or tab; UTF-8, Windows-1252 or UTF-16) and JSON arrays of flat objects. Reads numbers in both formats, 1,234.50 and 1.234,50, detected per column (or set with --decimal), and says when a value like 1.234 is ambiguous.

## Requires

- Node.js 20+

No npm install needed. In default permission mode your agent asks once before running the local node script.

## Known limitations

Requires Node.js 20+. Tabular data only: Excel, CSV and JSON files; no Markdown tables, nested JSON, PDFs, images or free text. Pivot groups by at most two columns. Spelling variants are reported and merged only on request (upper/lower case and spaces, not typos like "Nroth"). Suspected total rows are recognised by words like "Total" or "Summe" in the first filled cell. A column with only values like 1.234 (no other hint) is read with a decimal point and reported as ambiguous; use --decimal comma if the point separates thousands. Default input limit 50 MB per file (adjustable), max. 1,000,000 rows and 10,000 columns.

## Technical details

Built and tested for Claude Code; works with any agent that supports SKILL.md skills and can run shell commands. Requires Node.js 20+. No npm install, no API key, no network.

Files: SKILL.md, scripts/profil.mjs (one self-contained, unminified ES module, ~670 KB), LICENSE.txt, THIRD_PARTY_NOTICES.txt.

Usage:
profil.mjs <file...> [--sheet name] [-o report.md]
profil.mjs pivot <file> --by <col>[:day|week|month|quarter|year] [--sum|--mean|--min|--max <col>] [--where "<cond>"] [--merge-case]
profil.mjs rows <file> [--where "<cond>"] [--sort <col>[:desc]] [--limit n] [--columns "A,B"]

Input: .xlsx, .xls, .csv (comma, semicolon, tab; UTF-8, Windows-1252, UTF-16), .json (flat objects).

Output: Markdown on stdout, errors on stderr. Exit code 0 on success, 1 on error.

Profile: type, role, fill, distinct, sum/mean/median/min/max, top values, date range per column; table kind and key; duplicates, spelling variants, mixed types, outliers, total rows, footnotes, title rows, Excel errors. Decimal point/comma detected per column (--decimal to force). Size depends on columns, not rows.

Pivot: up to 2 group columns, ISO weeks, filters (= != > < >= <=), shares, optional case merge, total row. Rows: filter, sort, limit, tie warning. Total rows and footnotes are left out unless --keep-flagged.

Limits: 50 MB per file (adjustable), 1,000,000 rows, 10,000 columns. Formulas never executed. Deterministic. Bundles SheetJS xlsx 0.20.3 (Apache-2.0).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Profil: Exact Table Stats & Pivots for Excel, CSV, JSON skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does profil do?

It gives your AI agent a short, exact report about a spreadsheet, computes totals per group and lists matching rows, so the agent doesn't have to read every row or do arithmetic itself.

### Why not just let the AI read the file?

Reading large tables costs many tokens, and AI models make mistakes when adding up many numbers. profil computes the numbers with plain code and only hands over the result.

### Which AI agents support profil?

Any agent that supports SKILL.md skills and can run a command with Node.js 20+. Tested with Claude Code, where the agent picked the skill on its own for spreadsheet questions.

### Does my data leave my computer?

No. Everything runs locally in a Node.js process. No uploads, no network calls, no API keys.

### What happens with messy spreadsheets?

Total rows and footnotes are left out of calculations and reported with their row number. Spelling variants, "n/a" values, duplicates, title rows and Excel errors are named so your agent can tell you instead of guessing.

### Does it handle 1.234,50 and 1,234.50?

Yes. The decimal separator is detected per column from unambiguous values, or set with --decimal. If a value like 1.234 stays ambiguous, the report says so instead of guessing silently.

### Does it change my file?

Never. It only reads. A report is written only if your agent asks for it with -o.

### Which files does it read?

Excel (.xlsx, .xls), CSV and JSON arrays of flat objects. Markdown tables, nested JSON, PDFs and images are not supported.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
