Claude skill · Documents · Anthropic
Excel (XLSX) skill for Claude
The XLSX skill is Anthropic’s skill for Excel spreadsheets. Claude loads it when a workbook or CSV file is the main input or output, writes real formulas rather than pasted totals, then recalculates the file in LibreOffice to catch errors. It is built into claude.ai and the API; Claude Code gets it from the document-skills plugin. Copies aren’t allowed.
- Command
- /xlsx
- Licence
- Proprietary: no copies, link only
- Folder
- 53 files, 1.1 MB
- Runs code
- 12 scripts
Overview
What does the Excel (XLSX) skill do?
The XLSX skill is about producing spreadsheets that still work when someone opens them. It uses openpyxl and pandas, and insists on real formulas rather than totals computed in Python, so the sheet recalculates when its inputs change. After writing, LibreOffice recalculates the workbook so formula errors show up before the file is handed over.
One section explains which formulas survive that check and which don’t, since LibreOffice supports fewer functions than Excel. There is also a section of conventions for financial models, such as colour-coding inputs and documenting assumptions.
Triggers
When does Claude use it?
- A spreadsheet is the main input or output: .xlsx, .xlsm, .xltx, .csv or .tsv.
- Adding columns, formulas, formatting or charts; cleaning messy tabular data.
- Not when the deliverable is a Word document, HTML report or database pipeline.
What it needs
- Python with openpyxl, pandas and markitdown; LibreOffice for recalculation.
- Proprietary licence: use it through Claude or the official plugin only.
Install
How do I install it in Claude Code?
From the plugin marketplace
/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skillsThe document-skills plugin brings 4 skills, including this one; it runs as /document-skills:xlsx.
Anthropic’s managed version isn’t part of Claude Code. The plugin installs the published folder instead, and its scripts run on your machine, so install the tools listed under “What it needs” first.
As a personal or project skill
Its licence doesn’t allow copies, so we don’t give a copy command. Install it with the plugin instead.
claude.ai and API
How do I use it in claude.ai and the API?
claude.ai
It’s built in. Turn on Code execution and file creation in Settings > Capabilities and Claude uses it whenever a task needs it. You can switch individual skills on or off in Customize > Skills.
Claude API
Anthropic runs this skill for you. Reference it as xlsx in the container, together with the code execution tool:
{
"container": {
"skills": [
{
"type": "anthropic",
"skill_id": "xlsx",
"version": "latest"
}
]
},
"tools": [
{
"type": "code_execution_20250825",
"name": "code_execution"
}
]
}API containers have no network access, so its scripts can’t download anything there.
Checks
SKILL.md validator results
Its SKILL.md (99 lines) run through our SKILL.md validator, with the folder’s file list, for both targets. These check the file’s format, not whether the skill works well.
Claude Code
0 errors, 1 warning, 1 tip
- warningClaude Code reads
$0,$1and so on as argument placeholders, so text like$B$2(a price or a spreadsheet reference) can be replaced when the skill runs. Put a backslash before the$, such as\$5.00, to keep it as written. - tipSKILL.md doesn’t mention
scripts/office/helpers/__init__.py,scripts/office/helpers/pptx_chart.py,scripts/office/helpers/pptx_slide.py,scripts/office/helpers/pptx_theme.py,scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsdand 44 more. Say what each file is for and when to read or run it, or Claude won’t know to use it.
claude.ai and the API
0 errors, 0 warnings, 2 tips
- tipThe Claude Help Center’s upload guide gives a 200-character description limit for claude.ai, though the platform docs say 1,024. Keep it under 200 if you’ll upload it there.
- tipSKILL.md doesn’t mention
scripts/office/helpers/__init__.py,scripts/office/helpers/pptx_chart.py,scripts/office/helpers/pptx_slide.py,scripts/office/helpers/pptx_theme.py,scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsdand 44 more. Say what each file is for and when to read or run it, or Claude won’t know to use it.
Folder
What’s in the folder?
- LICENSE.txt1.4 KB
- SKILL.md8.4 KB
- scripts/51 files, 1.0 MB
Source
Licence and source
- Published by Anthropic in anthropics/skills/skills/xlsx, last changed 2026-07-16.
- Licence: Proprietary: no copies, link only. Its terms forbid copying it, so this page describes it in our own words.
- Read from commit
ca45fc4; write-up checked 2026-10-14. - Before installing, read the SKILL.md on GitHub and its scripts. Anthropic advises using skills only from sources you trust (security considerations).
FAQ
Questions people ask
Can Claude create Excel files with working formulas?
Yes. The XLSX skill tells Claude to write formulas into the cells instead of computing totals in Python and pasting the numbers, so the sheet updates when you change an input. After writing, LibreOffice recalculates the workbook and any formula errors are reported back to Claude to fix before you get the file.
Why does a formula fail the recalculation check?
LibreOffice, which does the recalculation, supports fewer functions than Excel. A formula that works in Excel can still fail the check, so the skill includes guidance on which functions are safe. If one keeps failing, ask Claude for an equivalent built from common functions, or accept the warning and test that cell in Excel yourself.
Does the Excel skill work in Claude Code?
Yes, through the plugin. Run /plugin marketplace add anthropics/skills and then /plugin install document-skills@anthropic-agent-skills. Claude Code runs the work on your machine, so install Python with openpyxl, pandas and markitdown, and LibreOffice for the recalculation step. On claude.ai and the API the skill is already there.
Related
Related skills
All Claude skillsWrite your own skillSlash command builderGuide: subagents, skills and commands
Keep exploring