xlsx-cn

Create, edit, and recalculate Excel spreadsheets with formulas, formatting, and error validation.

39|1|Updated Jul 2, 2026
One-click install
npx skills add https://github.com/HKU-MMLab/UniClawBench --skill xlsx-cn-hku-mmlab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xlsx-cn
Source: https://github.com/HKU-MMLab/UniClawBench/tree/main/injection/101_skill_usage/task_101_26_arxiv_metadata_pack/skills/xlsx-cn
Command: npx skills add https://github.com/HKU-MMLab/UniClawBench --skill xlsx-cn-hku-mmlab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, pandas, defusedxml, lxml, and includes scripts (resource) components.

What problem does it solve? Building Excel workbooks programmatically often produces broken formulas, inconsistent formatting, and uncalculated values that only surface when the file is opened. This Skill provides a disciplined workflow for creating, editing, and analyzing .xlsx files so every deliverable arrives with zero formula errors and professional formatting. ## Core Features & Use Cases - Formula-First Spreadsheet Creation: Build workbooks with openpyxl using live Excel formulas instead of hardcoded Python-computed values, keeping files dynamic and updateable. - Automated Recalculation and Error Detection: Run the bundled recalc.py script to recalculate all formulas via LibreOffice and receive a JSON report locating every #REF!, #DIV/0!, #VALUE!, and #NAME? error by sheet and cell. - Financial Modeling Conventions: Apply industry-standard color coding, number formats, and assumption documentation for financial models. - Use Case: A user asks for a revenue projection model; the Skill generates the workbook with formulas, recalculates it with LibreOffice, fixes any reported errors, and delivers a verified file. ## Quick Start Ask the assistant to create an Excel workbook with your data and formulas, then have it run the recalculation script to verify the file contains no formula errors.

Frequently Asked Questions about xlsx-cn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an Excel file with formulas in Python?▼

Use openpyxl to write formula strings like '=SUM(B2:B9)' directly into cells, then save the workbook. Formulas are stored but not calculated, so run the recalc.py script with LibreOffice to compute values and verify correctness.

Should I use pandas or openpyxl for Excel files?▼

Use pandas for data analysis, bulk operations, and simple exports via read_excel and to_excel. Use openpyxl when you need formulas, cell formatting, multiple sheets, or editing existing workbooks while preserving their structure.

Why do openpyxl formulas show no values after saving?▼

openpyxl stores formulas as strings without evaluating them, so cells appear empty until opened in Excel. Run the recalc.py script, which uses LibreOffice headless to recalculate all formulas and save the computed values.

How do I find #REF! or #DIV/0! errors in an Excel file?▼

Run python scripts/recalc.py on the file; it returns JSON listing every error type with exact sheet and cell locations. Fix the referenced cells or denominators, then recalculate again until the status is success.

Does reading Excel with data_only=True lose formulas?▼

Yes. Loading with data_only=True reads cached values, and saving that workbook permanently replaces formulas with values. Only use data_only=True for reading, and keep a separate load for edits that must preserve formulas.