Claude Code XLSX Skill: Working With Spreadsheets

How to select and use an XLSX skill in Claude Code, validate formulas and outputs, and keep reusable spreadsheet instructions where they can be found next time.

Updated 5 min read

An XLSX skill for Claude Code packages the instructions Claude needs to read, transform, or write Excel-format spreadsheet files without you restating the approach each session. You activate the skill, supply the file, and describe the task. The skill handles the consistent parts: how to inspect the structure, check formulas, and present what it found.

Claude Code can work with XLSX files through the file tools it has access to in your environment. The skill defines the standard approach your team uses. fenbs can hold the approved skill instructions and review tasks so the next session starts with the current version.

What to look for in an XLSX skill

Before activating an XLSX skill, read its instructions. A good skill describes what it will do (read a file, summarize structure, apply transformations) and what it will not do (write the file back without review, delete rows, change formulas silently). A skill that writes to a file should say it will produce a new file rather than overwriting the original.

Check what libraries or tools the skill uses. Python's openpyxl or pandas, for example, are common choices for XLSX work. If those libraries are not installed in your environment, the skill will fail at runtime. Confirm the dependencies before using the skill on real data.

Check the skill's scope: does it work on the whole workbook or one sheet at a time? Does it handle merged cells, named ranges, or formulas, or does it work only with plain values? A skill that silently converts formula cells to their last-computed value is different from one that preserves the formula.

How to activate and use an XLSX skill

  1. Open Claude Code in the folder that contains your spreadsheet file.
  2. Open the skill picker and select the XLSX skill, or reference the skill file directly in your prompt if it is a project skill.
  3. Supply the file name and a clear task description: "List the column headers and row count in Sheet1" or "Show every row where column D is blank."
  4. Review the output before acting on it. Confirm that the structure Claude Code describes matches what you see when you open the file yourself.
  5. If the skill will write a new file, specify a distinct output name so the original is not overwritten.

Do not pass confidential data to a skill unless you have confirmed where the data goes. Claude Code's tools operate in your local environment, but check your setup before running any skill on files that contain personal or financial records. For more on what Claude Code plugins can and cannot do, see Claude Code plugins vs. skills vs. subagents.

Validating formulas and outputs

Spreadsheet outputs are easy to mis-read. A cell that shows a rounded number in the sheet may contain a longer decimal that affects a sum. A formula that looks correct may reference a different sheet version than the one Claude Code inspected. Validate the outputs before using them for a decision.

Ask Claude Code to show a sample of its reasoning: the raw values it read from the file, not just a summary. Compare at least five rows against what the file shows when you open it. If any value disagrees, stop and identify the cause before continuing.

Checks to run on Claude Code XLSX output before using it
CheckWhat to verifyWhy it matters
Row and column countClaude Code's count matches the file's actual sheet dimensionsHidden rows or sheets can cause a count mismatch
Formula cellsThe skill preserved formulas or correctly flagged them as formulas rather than plain valuesSilently replacing a formula with its computed value can break downstream calculations
Data typesDates are dates, numbers are numbers, not text strings that look like numbersType mismatches cause sorting and calculation errors
Sample valuesAt least five cells match what you see in the file directlyEncoding and line-ending issues can corrupt values during read

If the skill produces a transformed or filtered file, open it and check a representative sample before sharing it. A summary that says "cleaned 45 rows" is only useful if those 45 rows were actually the ones that needed cleaning.

Common problems and how to fix them

A skill that fails with a library import error means the required package is not installed. Install it with pip install openpyxl or pip install pandas in your environment, then rerun.

A skill that reads empty cells where you expect data may be looking at the wrong sheet. XLSX files can have multiple sheets; check whether the skill targets the active sheet, a named sheet, or a sheet by index. Specify the sheet name explicitly in your task description.

A skill that reads .xls instead of .xlsx may need a different library: xlrd reads the older format but does not write it. If you are working with old .xls files, confirm the skill handles them before using it in a workflow that writes output.

How fenbs helps

Keep reusable spreadsheet instructions in one place

Save the approved XLSX skill instructions in fenbs Skills and prompts with the expected dependencies, scope, and any known limitations. Add review tasks for important spreadsheet outputs so there is a clear record of what was checked. Connected assistants can read the approved skill text before a session, so each run starts from the same instructions.

Create a free account

Free for one person · No credit card · Works with Claude, ChatGPT, Cursor and more

How to do this with fenbs

  1. Create a free account, free for one person with no credit card, and add a project for the spreadsheet work.
  2. Copy the approved XLSX skill instructions into Skills and prompts in fenbs, noting the required libraries and any scope limits.
  3. Add a task for each spreadsheet output that needs review, with a checklist of the validation steps from the table above.
  4. Connect Claude Code to fenbs through Integrations. Ask it to read the skill instructions and the current task before starting.
  5. Save the result and any validation notes in the task after the session, so the next run can start from a known state.

fenbs does not install Excel libraries or connect to your file system. The skill file runs in Claude Code's environment. Use fenbs for the instructions, the tasks, and the record of what was reviewed and what was not.

For related skills, see Claude Code sandbox for information on running code safely, and Claude skills examples for other reusable skill patterns.

Questions people ask.

Can Claude Code write an XLSX file, not just read one?

Yes, if the skill is set up to do so and the required library is installed. Check the skill instructions to confirm whether it writes to a new file or modifies the original. Always specify a distinct output file name to protect the source.

Why does the skill show empty data when the file has content?

The skill may be reading the wrong sheet. XLSX files can have multiple sheets; specify the sheet name in your task description. Also check that the file is not protected or password-locked, which would prevent Claude Code from reading it.

Can I use this skill on .csv files instead of .xlsx?

A skill designed for XLSX uses libraries specific to that format. For CSV files, a simpler approach using Python's built-in csv module or pandas works without the XLSX-specific library. Check the skill's stated scope before passing a CSV to it.

Does the skill handle Excel formulas?

That depends on the skill's instructions and the library it uses. Some libraries read the computed value of a formula cell without preserving the formula itself. Check what the skill does with formula cells and test on a file with known formulas before using it on important data.

More in Prompts and skills for AI work

All Prompts and skills for AI work articles

Start with one thing.

Free for one person · No credit card · Works with Claude, ChatGPT, Cursor and more

There is nothing to set up first. Write one line and you’ve started.