Guide · Agent skill
How to use the Excel workbook helper agent skill (xlsx)
Updated · written with AI from the project's own documentation and checked against our catalogue data
The xlsx skill, part of the DeepTutor project's builtin skills (deeptutor/skills/builtin/xlsx, Apache-2.0), gives an AI agent the instructions and Python approach it needs to work with Excel files. Agent skills are folders of instructions that an agent loads when a task matches them; this one is triggered when a spreadsheet is the input or the deliverable. After reading this guide you will know how to install it, how to phrase requests so the agent uses it, and what to check in the output.
Quick start
- 1Download the ZIP. Get the xlsx skill ZIP from the page where you found this guide.
- 2Unzip into a skills folder. Extract it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder.
- 3Or upload in the Claude apps. In the Claude apps, go to Settings → Capabilities → Skills and upload the skill.
- 4Confirm the requirements. Make sure a Python runtime with openpyxl and a sandbox shell capability are available. LibreOffice is optional.
- 5Make a natural request. Name your .xlsx, .xlsm or CSV/TSV file and describe the change, the analysis or the workbook you want.
- 6Decide static or live. Use computed numbers for fixed results, or ask for live formulas if the sheet must recalculate later.
- 7Check the result. Open the output in Excel, look for error values, and keep a backup of any file you are changing.
What the xlsx skill makes the agent do
Once installed, the agent can open, read, create and modify Excel workbooks (.xlsx and .xlsm) and bulk CSV or TSV tables. It writes Python code to do this, working with sheets, formulas, styles, charts and multi-sheet workbooks.
The skill uses openpyxl for cells, formulas, styles, charts, merged cells and number formats. It also includes guidance on common pitfalls so the output is more trustworthy.
- Read sheet data and analyze or summarize it
- Add columns, formulas, formatting and charts to an existing workbook
- Clean messy tables such as junk rows or a header that is not on row 1
- Build a new workbook from scratch, including summary sheets
Install the xlsx skill
Download the ZIP for this skill from the page where you found this guide. Unzip it so the skill folder ends up in your personal skills directory ~/.claude/skills/, or in a project's .claude/skills/ folder if you want it limited to one project.
If you use the Claude apps instead, upload the skill under Settings → Capabilities → Skills.
The skill's package contains a single file, SKILL.md, which holds the instructions the agent reads.
- Personal install: ~/.claude/skills/ (unzip here)
- Project install: .claude/skills/ inside your project folder
- Claude apps: Settings → Capabilities → Skills, then upload
What you need before it works
The skill needs a Python runtime with openpyxl. The source says every supported DeepTutor installation declares openpyxl, but pandas is not guaranteed, so the skill avoids depending on it. It also needs a sandbox shell capability, because the agent runs Python code to do the work.
LibreOffice (soffice) is optional. If it is on your path, the agent can recalculate live formulas. Without it, the agent warns you that formulas will populate when you open the file in Excel.
- Python with openpyxl
- A sandbox shell capability for running code
- Optional: LibreOffice (soffice) on the path, for recalculating live formulas
Trigger the skill with natural requests
You do not need special syntax. Name the spreadsheet and say what you want done with it. The skill is meant to be used whenever a spreadsheet is the input or the deliverable, so requests that mention an Excel or CSV file usually trigger it.
Be specific about the input file, the change you want and where the result should go. The agent will create or revise a file under a relative filename, so state the name you want if it matters to you.
- "Open sales.xlsx and total the Amount column by Region on a new Summary sheet."
- "Clean up contacts.csv: the header is on row 3, drop empty rows, and save the result as contacts_clean.csv."
- "Build a workbook from this table with a bar chart of monthly revenue."
- "Add a formula column to budget.xlsx that calculates the variance against the plan column."
Choose static numbers or live formulas
The most important thing to understand is that openpyxl writes formulas but does not calculate them. A formula is stored as text, so anything that reads cached values before Excel opens the file will see blanks or stale data.
For most jobs the skill computes the result in Python and writes the number, which is correct immediately. Ask for a live model only when the sheet must keep recalculating as someone edits inputs. In that case the agent writes real cell-referenced formulas and, if LibreOffice is available, recalculates them before saving.
- Static numbers: the default choice when correct values are all you need
- Live formulas: use when the user will change inputs later; expect blank cached values unless LibreOffice recalculates or Excel opens the file
- The agent checks output for error values such as #REF!, #DIV/0!, #VALUE!, #NAME? and #N/A
Review the output and avoid common mistakes
The agent writes new files and may overwrite outputs under the same name, so keep a backup of any important or sensitive file before you edit it. The skill also warns that inserting or deleting rows does not update formulas that point at shifted cells, so check formula-heavy sheets after structural changes.
Reading a workbook with data_only=True returns the last values Excel cached, and saving that loaded copy discards its formulas. The skill is written to avoid that trap, but verify the file opens in Excel without a repair prompt.
- Keep a backup of financial or other sensitive files
- Check formula-heavy sheets after inserting or deleting rows or columns
- Open the result in Excel to confirm values and that there is no repair prompt
What people use it for
- Clean a messy CSV export by removing junk rows and normalizing the requested columns.
- Summarize a sales workbook into a Summary sheet with totals by region.
- Generate a formatted workbook with frozen headers, number formats and a bar chart from a description.
- Add a calculated column to an existing budget workbook while preserving its styles.
- Produce large data exports in write-only mode so the file is built without holding every cell in memory.
Frequently asked questions
How do I install the xlsx agent skill?
Download the skill ZIP from the page, then unzip it into ~/.claude/skills/ for personal use or into a project's .claude/skills/ folder. In the Claude apps, you can instead upload it under Settings → Capabilities → Skills.
What does the xlsx skill need to run?
It needs a Python runtime with openpyxl and a sandbox shell capability. LibreOffice (soffice) is optional and is used only to recalculate live formulas. Pandas is not guaranteed to be present.
Is the xlsx skill free to use?
The source identifies the licence as Apache-2.0, which is the licence for the DeepTutor project this skill comes from. Check the licence file in the project for the full terms.
Why do my formulas show blank values?
openpyxl writes formulas as text and does not calculate them, so cached values stay empty until Excel or LibreOffice recalculates the file. Open the file in Excel to see the values, or ask the agent to write computed numbers instead.
Does the xlsx skill work with Google Sheets?
No. The skill explicitly excludes Google Sheets API work and uses different tooling. It covers .xlsx, .xlsm and CSV/TSV files.
Does the skill send my data over the network?
The source says the skill does not use the network, but it does run scripts. Review what the agent runs and keep backups of important files, since it may overwrite outputs under the same name.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you regularly need an agent to clean, analyze or build Excel and CSV files, or to produce formatted workbooks with charts, and you can run it in a sandbox with Python and openpyxl. Pick something else if you work mainly in Google Sheets, need formulas that recalculate in a non-Excel tool without LibreOffice, or are editing sensitive financial files and cannot keep backups.
Download the skill