Skills2026年3月29日·1 分钟阅读

Claude Official Skill: XLSX — Spreadsheet Operations

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

Agent 就绪

先审查再安装

这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。

Needs Confirmation · 66/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Community
入口
Claude Official Skill: xlsx
先审查命令
npx -y tokrepo@latest install b9536815-4d1b-449f-ab72-bee80e34a3ed --target codex

先 dry-run,确认写入项后再运行此命令。

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)

常见问题

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.

引用来源 (3)
🙏

来源与感谢

Created by Anthropic. Licensed under MIT. anthropics/skills

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产