Claude Official Skill: XLSX — Spreadsheet Operations
Claude Code skill for Excel spreadsheets. Create workbooks, write formulas, generate charts, pivot tables, and data analysis.
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.
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.
How to use
- Install via Claude Code:
claude skill install anthropics/skills/xlsx
- Or manually copy the SKILL.md content to
.claude/skills/xlsx/SKILL.md - The skill activates automatically when you ask Claude Code to work with spreadsheet files
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')
Related on TokRepo
- AI coding tools — development productivity skills
- Automation tools — data processing automation
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
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.
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.
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.
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.
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)
- Anthropic Skills GitHub— Official skill from Anthropic's skills repository
- openpyxl Documentation— openpyxl Python library for Excel files
- Anthropic Documentation— Claude Code skill system
Related on TokRepo
Source & Thanks
Created by Anthropic. Licensed under MIT. anthropics/skills
Discussion
Related Assets
Claude-Flow — Multi-Agent Orchestration for Claude Code
Layers swarm and hive-mind multi-agent orchestration on top of Claude Code with 64 specialized agents, SQLite memory, and parallel execution.
ccusage — Real-Time Token Cost Tracker for Claude Code
CLI that reads ~/.claude logs and breaks down Claude Code token spend by day, session, and project — pluggable into your statusline.
SuperClaude — Workflow Framework for Claude Code
Adds 16+ slash commands, 9 cognitive personas, and a smart flag system to Claude Code in one pipx install.