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

spreadsheet-python-file-exec

Skill by HKUDS

Runs spreadsheet tasks as Python scripts saved to files, using openpyxl and pandas. Aimed at complex Excel work where shell_agent heredoc parsing or step limits cause failures.

  • Score 86
  • 8.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install spreadsheet-python-file-exec

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HKUDS/OpenSpace /tmp/OpenSpace && mkdir -p ~/.claude/skills && cp -r /tmp/OpenSpace/benchmarks/gdpval/skills/spreadsheet-direct-python-enhanced ~/.claude/skills/spreadsheet-python-file-exec

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

Step-by-step: install spreadsheet-python-file-exec in Claude Code

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

About

This agent skill tells an AI assistant to run spreadsheet work as Python scripts saved to files, rather than as long inline commands. It covers reading and writing complex Excel files with multiple sheets, applying formulas and formatting, and transforming data using openpyxl, pandas and similar libraries.

The source says the shell_agent tool can hit step limits and fail to parse heredoc syntax, causing 'unknown error' failures. The skill recommends writing a script to a .py file, then running it with python3 through run_shell. It includes examples for pandas transforms, openpyxl sheet loops, header styling and error handling. It is aimed at users whose spreadsheet tasks are complex or multi-step.

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

What it can do

  • Write script to file firstSaves a multi-line Python script to a .py file, then runs it with python3.
  • Inline heredoc executionRuns short Python scripts inline when shell_agent is not the executor.
  • Read and transform Excel dataLoads a named sheet with pandas, computes new columns and saves the result.
  • Multi-sheet operationsLoops through all sheets in a workbook with openpyxl and processes cells.
  • Complex formattingApplies fills, bold fonts and alignment to header cells using openpyxl styles.
  • Error handling patternWraps spreadsheet operations in try and except and exits with an error code.

What you need

  • Python 3 with python3 command
  • openpyxl library
  • pandas library

Try asking

  • Write a Python script to clean up the Revenue sheet in input.xlsx
  • Style the header row of report.xlsx with blue fill and bold white text
  • Loop through every sheet in tour_data.xlsx and save a processed copy

Good to know

  • Inline heredoc is for simple scripts only, not when shell_agent is the executor.
  • Not suited to simple single-cell reads or writes.
  • Not suited to tasks that need interactive user input.
  • Large files may need chunked processing with pandas chunksize.

Security check

A

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

Checked automatically: benchmarks/gdpval/skills/spreadsheet-direct-python-enhanced/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to spreadsheet-python-file-exec

All alternatives →

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

spreadsheet-python-file-exec: common questions

Why write the script to a file instead of using an inline heredoc?

The source says heredoc syntax can fail with 'unknown error' when shell_agent is the executor, and a .py file avoids that parsing issue.

Which spreadsheet libraries does it cover?

The source lists openpyxl for reading, writing and formatting .xlsx files, pandas for data manipulation, xlrd for older .xls files, and xlsxwriter for new files with advanced formatting.

What should I do if a large spreadsheet causes a MemoryError?

The source suggests processing data in chunks using the chunksize parameter in pandas.

How do I install spreadsheet-python-file-exec?

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

Is spreadsheet-python-file-exec free?

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

Is spreadsheet-python-file-exec safe to use?

It scores 86 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 spreadsheet-python-file-exec?

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

spreadsheet-python-file-exec Install

Add to stack

Loading.