Excel / XLSX

Automates creation, inspection, and editing of Excel/XLSX files with formulas and templates.

1|1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/penghang1223/niannian-workspace --skill excel-xlsx-penghang1223
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Excel / XLSX
Source: https://github.com/penghang1223/niannian-workspace/tree/main/skills/excel-xlsx
Command: npx skills add https://github.com/penghang1223/niannian-workspace --skill excel-xlsx-penghang1223

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Excel workbook creation, inspection, and editing with reliable formulas, formatting, and template preservation, reducing manual effort and errors.

Core Features & Use Cases

  • Create and modify workbooks across .xlsx, .xlsm, .xls, preserving structure and data types.
  • Use openpyxl for formulas, styles, sheets, and template preservation; use pandas for analysis and data manipulation.
  • Real-world scenario: automate monthly reports by generating templates, filling data, and ensuring formulas recalculate correctly.

Quick Start

Create an Excel workbook from a template, populate it with data, and ensure formulas stay live and accurate.

Frequently Asked Questions about Excel / XLSX

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

FAQPage Schema
How do I automate Excel workbook creation while preserving formulas and formatting?

Automate Excel workbook creation using openpyxl to preserve formulas, styles, and template structure while populating data. This ensures formulas recalculate accurately and workbook formatting remains intact throughout automated reporting workflows.

What's the best way to edit XLSX files with pandas without breaking existing formulas?

Edit XLSX files by combining pandas for data manipulation with openpyxl for formula integrity. This approach applies validations and guardrails to prevent formula errors and preserve workbook structure during data pipeline operations.

Can I use openpyxl and pandas together for template-driven Excel reporting?

Yes, openpyxl and pandas work together for template-driven Excel reporting. Use pandas for data analysis and manipulation, then openpyxl to fill templates, apply styles, and ensure formulas stay live and accurate across .xlsx and .xlsm files.

Does this approach support inspecting and editing older .xls and .csv file formats?

Inspecting and editing supports .xlsx, .xlsm, .xls, .csv, and .tsv file formats. The process automates data type and date handling across these formats, preserving structure and ensuring reliable formula integrity during workbook modifications.

Why do Excel formulas break when writing data and how do I prevent it?

Excel formulas break when writing data due to lost cell references or formatting. Prevent this by using openpyxl with built-in validations and guardrails that maintain formula integrity and preserve template structure during automated workbook editing.

When do I need template preservation for Excel workflows in data pipelines?

Template preservation for Excel workflows is needed when generating monthly reports or automating data pipelines. It ensures workbook structure, styles, and formulas remain reliable while filling templates with new data across multiple file formats.