xlsx

Create, edit, and analyze spreadsheets with formulas and formatting.

23|9|Updated May 24, 2025
One-click install
npx skills add https://github.com/xiehust/strands_demos --skill xlsx-xiehust
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xlsx
Source: https://github.com/xiehust/strands_demos/tree/main/strands_skills_demo/skills/xlsx
Command: npx skills add https://github.com/xiehust/strands_demos --skill xlsx-xiehust

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Streamlines complex spreadsheet operations, eliminating manual data entry, formula creation, and formatting. It ensures accuracy and consistency in financial models, data analysis, and reporting, saving significant time and reducing errors.

Core Features & Use Cases

  • Dynamic Spreadsheet Creation: Build new Excel files with formulas, formatting, and data validation, ensuring they remain dynamic and updateable.
  • Advanced Data Analysis: Read, analyze, and visualize data using powerful libraries like pandas for insights and reporting.
  • Formula Recalculation & Error Checking: Automatically recalculate formulas and identify errors to ensure data integrity and model accuracy.
  • Use Case: Generate a weekly financial report from raw data, including complex formulas and conditional formatting, and ensure all calculations are correct before delivery, all without manual intervention.

Quick Start

Example: Read, analyze, and create a spreadsheet

import pandas as pd from openpyxl import Workbook

Read and analyze data

df = pd.read_excel('input.xlsx') print(df.describe())

Create new spreadsheet with a formula

wb = Workbook() sheet = wb.active sheet['A1'] = 'Sales' sheet['B1'] = '=SUM(A2:A10)' wb.save('output.xlsx')

Recalculate formulas (MANDATORY)

python recalc.py output.xlsx

Frequently Asked Questions about xlsx

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

FAQPage Schema
How do I automate spreadsheet creation with formulas and formatting?

Automate spreadsheet creation by using openpyxl to build Excel files with formulas, data validation, and formatting, then run recalc.py to ensure formulas recalculate correctly and maintain dynamic integrity without manual intervention.

Can I read and analyze Excel data with pandas and then modify the spreadsheet?

Yes. Use pandas to read and analyze .xlsx, .csv, or .tsv files, then modify the original spreadsheet with openpyxl while preserving existing formulas, templates, and formatting conventions.

How do I ensure financial models and spreadsheets have zero formula errors?

Build spreadsheets using Excel formulas instead of hardcoded Python values, then run recalc.py to automatically recalculate and validate formulas, catching errors before delivery and ensuring model accuracy.

What's the best way to generate dynamic financial reports from raw data?

Extract and analyze raw data with pandas, create new spreadsheets with complex formulas and conditional formatting using openpyxl, then recalculate via recalc.py to produce accurate, updateable reports without manual steps.

Can I work with .xlsm, .xlsx, .csv, and .tsv files in the same workflow?

Yes. The Skill supports multiple spreadsheet formats—.xlsx, .xlsm, .csv, and .tsv—allowing you to read, analyze, create, and modify files across formats while maintaining formula integrity and formatting.

What limitations should I know about when automating spreadsheet tasks?

Formulas must be valid Excel syntax; recalc.py is required after modifications to enforce formula recalculation; templates and color-coding are preserved during updates, but complex VBA macros and unsupported formats fall outside scope.