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.
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/xlsxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/DeepTutor /tmp/DeepTutor && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/DeepTutor/deeptutor/skills/builtin/xlsx ~/.gemini/antigravity-cli/skills/xlsxAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
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.
