xlsx

Create, edit, and audit Excel workbooks using pandas and openpyxl.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/sarfraznawaz2005/my_opencode_agent --skill xlsx-sarfraznawaz2005
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/sarfraznawaz2005/my_opencode_agent/tree/main/skill/xlsx
Command: npx skills add https://github.com/sarfraznawaz2005/my_opencode_agent --skill xlsx-sarfraznawaz2005

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the time-consuming tasks of creating, editing, and validating complex Excel workbooks. It helps maintain formulas, preserve formatting, and ensure data integrity across diverse spreadsheet projects.

Core Features & Use Cases

  • Create new workbooks with formulas and formatting
  • Update existing templates without breaking formulas
  • Recalculate and validate data integrity using a LibreOffice-based workflow

Quick Start

Use the skill to create a new workbook, add a simple formula, and run the recalculation workflow:

  • Create a new workbook and set A1=10, A2=20, A3=A1+A2
  • Recalculate: python recalc.py sample.xlsx 30

Frequently Asked Questions about xlsx

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

FAQPage Schema
How do I create Excel workbooks with formulas and formatting using Python?

You can create Excel workbooks with formulas and formatting using Python by leveraging the openpyxl library to programmatically define cell values, formulas, and layout styles. This approach generates structured .xlsx files while preserving formula integrity and ensuring consistent data formatting across new spreadsheets.

How do I update existing Excel templates without breaking formulas?

Updating existing Excel templates without breaking formulas is achieved by programmatically modifying cell values while preserving the original formula structures. Using the openpyxl library allows targeted data injections into .xlsx or .xlsm files, maintaining dependent calculations and preventing structural corruption during template updates.

What is the best way to recalculate and validate data integrity in xlsx files?

The best way to recalculate and validate data integrity in xlsx files is using a LibreOffice-based recalculation workflow. This method executes dynamic formula updates and audits existing workbooks, ensuring error-free spreadsheet outputs without requiring manual Excel application interactions.

Can I use pandas for spreadsheet data analysis on existing Excel files?

Yes, you can use pandas for spreadsheet data analysis on existing Excel files to parse tabular data into DataFrames. This enables efficient data manipulation, filtering, and aggregation on .xlsx workbook contents before exporting the analyzed results back to structured spreadsheet formats.

Does this approach support auditing and editing .xlsm files?

Yes, this approach supports auditing and editing .xlsm files by utilizing openpyxl to read and modify macro-enabled spreadsheets. It handles workbook auditing across .xlsx, .xlsm, and related formats to validate data integrity and update templates without disrupting existing macro structures.

Why do my spreadsheet formulas not recalculate after editing with Python?

Your spreadsheet formulas may not recalculate after editing with Python because standard libraries do not natively execute formula computations. A LibreOffice-based recalculation workflow must be invoked post-editing to trigger dynamic formula updates and ensure the cached values reflect the new data accurately.