Documents & OfficeOfficial · anthropics

Xlsx skill for Claude

The xlsx Claude skill by anthropics: Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

Xlsx SKILL.md

A preview of the skill file from anthropics/skills (Complete terms in LICENSE.txt).

XLSX creation, editing, and analysis

TaskApproach
Create or edit with formulas/formattingopenpyxl — see gotchas below
Bulk data in or outpandas (read_excel, to_excel)
Quick look at a sheetmarkitdown file.xlsx — ## SheetName per sheet; reads .xlsm too. No cell coordinates, so don't plan edits from it
Read a model (formulas and values)two load_workbook passes — see gotchas

openpyxl, pandas, and markitdown are preinstalled — do not run pip install first; write the script and import directly. Only if an import fails (or the markitdown command is missing): pip install the missing package.

Script paths below are relative to this skill's directory.

Requirements for every output

  • Professional font (Arial, Times New Roman) throughout, unless the user says otherwise.
  • Zero formula errors. Never ship while recalc.py reports errors_found; the one exception is under not_computed below. If you think an error predates you, prove it: load the original with data_only=True and look at that cell. An error you introduced looks exactly like one you inherited.
  • Use formulas, never hardcoded results. Write sheet['B10'] = '=SUM(B2:B9)', not the Python-computed total. The sheet must recalculate when its inputs change.
  • Follow the user's spec literally. Exact tab names, exact column headers, and the formula they spelled out. A redesign that computes something else fails, however elegant.
  • Document every assumption and hardcoded number where the reader will see it — a cell comment, or an adjacent cell at a table's end. Cite a real source when one exists (Source: Company 10-K, FY2024, Page 45, Revenue Note, [SEC EDGAR URL]); when the number came from the user, say so plainly.
  • A workbook you create for someone to fill in needs a short legend naming which cells to edit, and one example row of realistic values showing the expected format. Never add such a row to a file you were asked to edit.
  • Editing an existing file: match its conventions exactly. They override every guideline here. Find its designated input cells first — a distinct font color, fill, or shading marks them — write only there, and leave every existing formula untouched.

Recalculate (mandatory whenever the file contains formulas)

Read the full SKILL.md on GitHub →

How to install the xlsx Claude skill

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit anthropics/skills/skills/xlsx#main ~/.claude/skills/xlsx

Codex

npx degit anthropics/skills/skills/xlsx#main ~/.codex/skills/xlsx

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What is the xlsx Claude skill?

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

+How do I install Xlsx in Claude Code?

Copy the skill folder into ~/.claude/skills/xlsx, for example with "npx degit anthropics/skills/skills/xlsx#main ~/.claude/skills/xlsx". Claude Code loads it automatically and uses it when a task matches.

+Does Xlsx work with ChatGPT or Codex?

Yes. Xlsx uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/xlsx. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Xlsx free?

Xlsx is published on GitHub by anthropics under the Complete terms in LICENSE.txt license; check the license terms before using it.

Related documents & office skills

  1. Pdf

    Official

    Use this skill whenever the user wants to do anything with PDF files.

    anthropics/skills★ 197k
  2. Pptx

    Official

    Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both.

    anthropics/skills★ 197k
  3. Docx

    Official

    Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files).

    anthropics/skills★ 197k
  4. Liteparse

    Local document and PDF parsing that returns spatial text with bounding boxes.

    K-Dense-AI/scientific-agent-skills★ 58k
  5. Office Hours

    Founder advice after six YC-style questions. Use whenever a founder is stuck or unsure what to ask, or /c-level-agents:office-hours.

    alirezarezvani/claude-skills★ 30k
  6. Wowerpoint

    Turn one document into a kawaii NotebookLM slide deck. Use for "wowerpoint this", "make a deck about <file>", "turn this report into…

    thedotmack/claude-mem★ 118k
  7. Docx

    Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text…

    ComposioHQ/awesome-claude-skills★ 80k
  8. Pdf

    Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms.

    ComposioHQ/awesome-claude-skills★ 80k
  9. Pptx

    Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new…

    ComposioHQ/awesome-claude-skills★ 80k

See all documents & office skills →

More skills from anthropics

  1. Academy Guide

    Official

    Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching…

    anthropics/skills★ 197k
  2. Discernment Nudge

    Official

    After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans,…

    anthropics/skills★ 197k
  3. Doc Coauthoring

    Official

    Guide users through a structured workflow for co-authoring documentation.

    anthropics/skills★ 197k

All skills by anthropics →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.