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.
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-execRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install spreadsheet-python-file-exec in Claude Code
git clone --depth 1 https://github.com/HKUDS/OpenSpace /tmp/OpenSpace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OpenSpace/benchmarks/gdpval/skills/spreadsheet-direct-python-enhanced ~/.gemini/antigravity-cli/skills/spreadsheet-python-file-execAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install spreadsheet-python-file-exec in Antigravity CLI
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
ANo 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 →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
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.
