Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

xlsx

Skill by HKUDS

Reads, creates and edits Excel .xlsx and .xlsm workbooks, plus .csv and .tsv tables, using openpyxl. It is for tasks where a spreadsheet is the input or the deliverable, such as analyzing data, adding formulas, formatting or charts.

  • Score 91
  • 66k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install xlsx

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HKUDS/DeepTutor /tmp/DeepTutor && mkdir -p ~/.claude/skills && cp -r /tmp/DeepTutor/deeptutor/skills/builtin/xlsx ~/.claude/skills/xlsx

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install xlsx in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives an assistant guidance and runnable Python for working with Excel workbooks. It covers reading sheet data, creating new workbooks, editing existing files while keeping their formatting, adding charts, and handling CSV and TSV tables. The main workflow runs through openpyxl inside an exec call. The skill explains that openpyxl writes formula strings but does not calculate them, so it offers two approaches: write computed numbers, or write live formulas and recalculate them with LibreOffice when it is available.

The skill is aimed at people and assistants who need to extract, analyze, clean or build spreadsheets. It also includes checks that scan a workbook for error values such as #REF! and #DIV/0! after writing. It does not cover the Google Sheets API or Word, PDF and script outputs.

Written from the project's SKILL.md and checked against it.

What it can do

  • Read workbooksReads sheet rows from .xlsx files, and computed formula results when cached values exist.
  • Create workbooksBuilds new workbooks with headers, styles, number formats, column widths and frozen panes.
  • Edit existing filesChanges cells in a workbook while keeping existing styles, formulas, merged cells and charts.
  • ChartsAdds bar, line, pie and scatter charts from worksheet ranges using openpyxl.
  • Formula handlingWrites static computed values or live formulas, with optional LibreOffice recalculation.
  • Error scanReloads a written workbook and reports cached values that begin with # as possible broken formulas.
  • CSV and TSVReads and writes delimited tables and normalizes messy input when asked.
  • Large exportsUses openpyxl write-only mode to append rows without holding every cell in memory.

What you need

  • Python with the openpyxl package
  • A sandbox shell runtime
  • LibreOffice (soffice) for optional formula recalculation

Try asking

  • Summarize the sales totals by region in this Excel file.
  • Add a total row with SUM formulas to my workbook and keep the formatting.
  • Turn this messy CSV into a clean .xlsx with a bar chart of monthly revenue.

Good to know

  • openpyxl does not calculate formulas, so cached values stay blank until recalculated or opened in Excel.
  • Never save a workbook loaded with data_only=True, because this discards all formulas.
  • Inserting or deleting rows does not rewrite formulas that reference shifted cells.
  • pandas is not assumed to be installed in every setup.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: deeptutor/skills/builtin/xlsx/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB

Alternatives to xlsx

All alternatives →

Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr

xlsx: common questions

Why do formulas show empty values after openpyxl writes them?

openpyxl stores the formula text but has no formula engine, so cached values are empty until Excel or LibreOffice recalculates the file.

Can this skill keep the formatting of an existing workbook?

Yes. The skill says to edit with load_workbook rather than round-tripping through pandas, because pandas rewrites the sheet and loses styles.

Does this skill work with Google Sheets?

No. The source says it is not for Google Sheets API work or for Word, PDF or script outputs.

How do I install xlsx?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is xlsx free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is xlsx safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to xlsx?

Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.

Add to stack

Loading.