Skip to main content
skill

spreadsheet — Claude Code skill: Excel and CSV work in Python

A skill for spreadsheet tasks: build workbooks with formulas, edit existing files, compute metrics and add charts. Useful when formulas and styling must survive the edit.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill document-processing/spreadsheet
Open on GitHub

What spreadsheet does

The skill gives the agent a fixed routine for tabular work: pin down the file type and the goal first, then pick the tool. Editing .xlsx goes through openpyxl; analysis and .csv/.tsv files go through pandas. Layout matters? The agent renders the sheet to PNG so someone can look at it.

Formula rules are spelled out. Derived values stay as formulas, not pasted numbers, and cell references replace hardcoded constants. Error values such as #REF! and #DIV/0! get checked. Note the catch: openpyxl never evaluates formulas, so results appear only when the file opens in Excel or Sheets.

For visual review you need LibreOffice (soffice) and Poppler (pdftoppm) — without them rendering does not happen. Packages install with uv pip install openpyxl pandas, and matplotlib is listed for chart-heavy work.

What it helps with

  • build a workbook with formulas and formatting from scratch
  • edit an existing .xlsx without breaking references
  • aggregate a CSV and write the result back to a sheet
  • attach charts and tidy up number formats
  • render a sheet to catch layout problems before sending

Example prompts for the agent

  • Build report.xlsx with monthly revenue, totals as formulas, and a styled header row
  • Analyze sales.csv, sum revenue by region, and write the summary into summary.xlsx
  • Add a chart for the revenue column on the KPI sheet and check that no text overflows its cells

How to install spreadsheet

1claude-code-templates

npx claude-code-templates@latest --skill document-processing/spreadsheet

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill spreadsheet -a claude-code

3Manually: put the files in place

~/.claude/skills/spreadsheet/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/spreadsheet/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about spreadsheet

How do I install spreadsheet in Claude Code?

Run npx claude-code-templates@latest --skill document-processing/spreadsheet. Alternatively use npx skills add davila7/claude-code-templates --skill spreadsheet -a claude-code.

What does the spreadsheet skill do?

It guides the agent through creating, editing and analyzing spreadsheets: .xlsx with openpyxl, .csv and .tsv with pandas, with checks on formulas and formatting.

What has to be installed for it to work?

The openpyxl and pandas Python packages, plus matplotlib for chart-heavy work. Visual layout checks also need LibreOffice and Poppler.

Similar skills

All skills for Office documents →

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor