xlsx

Convert and validate spreadsheet files into dynamic .xlsx workbooks.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/BEIRUX/agent-skills --skill xlsx-beirux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/BEIRUX/agent-skills/tree/main/xlsx
Command: npx skills add https://github.com/BEIRUX/agent-skills --skill xlsx-beirux

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill handles any user task where a spreadsheet file is the primary input or output: opening, reading, cleaning, editing, creating, converting, formatting, charting, and delivering .xlsx/.xlsm/.csv/.tsv files while ensuring spreadsheets are dynamic, well-formatted, and free of Excel formula errors.

Core Features & Use Cases

  • Robust file handling: Read and write .xlsx, .xlsm, .csv, and .tsv while preserving templates and existing formatting.
  • Data cleaning & restructuring: Fix malformed rows, detect misplaced headers, remove junk data, and reshape tabular inputs into proper sheets.
  • Formula-first workflows: Build models using Excel formulas (not hardcoded values), apply number and color-coding standards for financial models, and enforce zero formula errors before delivery.
  • Recalculation & validation: Recalculate formulas using the included LibreOffice-backed scripts/recalc.py and validate workbook integrity with unpack/pack and XML/XSD validators.
  • Use case: Convert a messy export of transactions.csv into a formatted, formula-driven financial model workbook, with assumptions separated, formatted numbers, and fully recalculated formulas.

Quick Start

Open 'downloads/sales.csv' and produce a validated, formula-driven workbook 'sales_cleaned.xlsx' with preserved templates, formulas (not hardcoded), and zero formula errors.

Frequently Asked Questions about xlsx

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

FAQPage Schema
How do I convert a CSV file into a formatted Excel workbook with formulas instead of hardcoded values?

Yes, you can convert messy CSV exports into validated, formula-driven .xlsx workbooks. The process cleans malformed rows, separates assumptions, applies formatting, and ensures formulas are entered dynamically rather than hardcoded, delivering a fully recalculated financial model.

What is the best way to clean malformed rows and fix misplaced headers in spreadsheet data?

To clean spreadsheet data, you can use a restructuring process that detects misplaced headers, fixes malformed rows, and removes junk data. This reshapes tabular inputs into proper sheets while preserving existing formatting and templates.

Can openpyxl preserve existing templates and formatting when editing an xlsx file?

Yes, openpyxl can preserve existing templates and formatting when reading and writing .xlsx and .xlsm files. This allows you to edit spreadsheets dynamically without losing the original template structure, number formats, or color-coding standards applied to the workbook.

How does LibreOffice recalculation validate Excel formulas without opening Excel?

LibreOffice recalculation validates Excel formulas by running a script that recalculates values headlessly, without needing Excel installed. This mechanism ensures formulas are entered correctly, computes the resulting values, and detects and reports any Excel formula errors for repair.

Does this spreadsheet conversion approach support .xlsm and .tsv files or only standard .xlsx formats?

This approach supports .xlsx, .xlsm, .csv, and .tsv files for reading and writing. It handles converting between these tabular formats while preserving templates, applying formatting, and ensuring zero formula errors before delivering the final workbook.

Why does my Excel formula show an error after converting a CSV file, and how do I fix it?

Excel formula errors after conversion often occur when values are hardcoded or formulas are malformed. You can fix this by enforcing a formula-first workflow that detects and reports specific formula errors, then uses LibreOffice recalculation to validate workbook integrity and ensure zero errors.