SkillsMar 29, 2026·4 min read

Claude Official Skill: XLSX — Spreadsheet Operations

Claude Code skill for Excel spreadsheets. Create workbooks, write formulas, generate charts, pivot tables, and data analysis.

TL;DR
Official Claude Code skill for creating, reading, and editing Excel spreadsheets with formulas and charts.
§01

What it is

This is an official Claude Code skill from Anthropic's skills repository for working with Excel spreadsheet files. It handles creating workbooks, writing formulas, generating charts, building pivot tables, and automating data analysis across XLSX, XLSM, and CSV formats.

The skill is designed for developers and analysts who use Claude Code and need to programmatically generate or manipulate spreadsheets without leaving the terminal.

§02

How it saves time or tokens

Instead of manually writing openpyxl or xlsxwriter code, the skill provides Claude Code with the knowledge to handle spreadsheet operations directly. It understands Excel formula syntax, chart types, and formatting conventions. The estimated token cost is around 500 tokens per invocation.

§03

How to use

  1. Install via Claude Code:
claude skill install anthropics/skills/xlsx
  1. Or manually copy the SKILL.md content to .claude/skills/xlsx/SKILL.md
  2. The skill activates automatically when you ask Claude Code to work with spreadsheet files
§04

Example

# Generated by Claude Code with xlsx skill
import openpyxl
from openpyxl.chart import BarChart, Reference

wb = openpyxl.Workbook()
ws = wb.active
ws.title = 'Sales Report'

# Headers and data
ws.append(['Month', 'Revenue', 'Costs'])
ws.append(['Jan', 50000, 30000])
ws.append(['Feb', 62000, 35000])
ws.append(['Mar', 58000, 32000])

# Add formula
ws['D1'] = 'Profit'
ws['D2'] = '=B2-C2'
ws['D3'] = '=B3-C3'
ws['D4'] = '=B4-C4'

# Add chart
chart = BarChart()
data = Reference(ws, min_col=2, max_col=4, min_row=1, max_row=4)
chart.add_data(data, titles_from_data=True)
ws.add_chart(chart, 'A6')

wb.save('sales_report.xlsx')
§05

Related on TokRepo

§06

Common pitfalls

  • Forgetting to install the openpyxl dependency in your Python environment
  • Opening large XLSX files in read-only mode to avoid memory issues
  • Not handling formula calculation mode (formulas show raw text until opened in Excel)

Frequently Asked Questions

What file formats does this skill support?+

The skill handles XLSX (standard Excel), XLSM (macro-enabled Excel), CSV (comma-separated values), and other tabular formats that openpyxl and Python's csv module can process.

Do I need Excel installed to use this skill?+

No. The skill uses Python libraries (openpyxl, xlsxwriter) to create and manipulate spreadsheet files programmatically. Excel is only needed if you want to open and view the generated files.

Can the skill create charts?+

Yes. The skill knows how to generate bar charts, line charts, pie charts, scatter plots, and other chart types supported by openpyxl. Charts are embedded directly in the XLSX file.

How does the skill handle large datasets?+

For large files, the skill uses openpyxl's read-only and write-only modes to minimize memory usage. It can process files with hundreds of thousands of rows without loading everything into memory.

Is this skill maintained by Anthropic?+

Yes. This is an official skill from Anthropic's skills repository, maintained by the Claude Code team. It follows Anthropic's skill format and is updated with new capabilities.

Citations (3)
🙏

Source & Thanks

Created by Anthropic. Licensed under MIT. anthropics/skills

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets