home / skills / aidotnet / moyucode / excel-handler
This skill helps you read, write, and manipulate Excel files programmatically, exporting data and applying formulas and styling.
npx playbooks add skill aidotnet/moyucode --skill excel-handlerReview the files below or copy the command above to add this skill to your agents.
---
name: excel-handler
description: 读取、写入和操作Excel文件(.xlsx、.xls)。创建电子表格、读取数据并导出为各种格式。
metadata:
short-description: 读写Excel文件
source:
repository: https://github.com/python-excel/xlrd
license: BSD
---
# Excel Handler Tool
## Description
Read, write, and manipulate Excel spreadsheets with support for formulas, styling, and data export.
## Trigger
- `/excel` command
- User requests Excel file operations
- User needs to read or create spreadsheets
## Usage
```bash
# Read Excel to JSON
python scripts/excel_handler.py read --input data.xlsx --output data.json
# Create Excel from JSON/CSV
python scripts/excel_handler.py create --input data.json --output report.xlsx
# Convert Excel to CSV
python scripts/excel_handler.py convert --input data.xlsx --output data.csv
# Merge multiple Excel files
python scripts/excel_handler.py merge --inputs file1.xlsx,file2.xlsx --output merged.xlsx
```
## Tags
`excel`, `spreadsheet`, `xlsx`, `csv`, `data`
## Compatibility
- Codex: ✅
- Claude Code: ✅
This skill reads, writes, and manipulates Excel spreadsheets (.xlsx, .xls) with support for formulas, styling, and data export. It lets you create workbooks, extract sheet data, convert between formats, and merge or transform files programmatically. Designed for TypeScript/Node environments, it exposes commands for common Excel workflows.
The skill inspects Excel files to parse sheets, cell values, formulas, and styling metadata, then converts those structures into in-memory objects. It can generate new workbooks from JSON or CSV sources, apply cell styles and formulas, and export to formats like CSV or JSON. Batch operations such as merging multiple workbooks or converting multiple files are supported via command triggers.
Which Excel formats are supported?
The skill supports common Excel formats (.xlsx and .xls) and can export to CSV and JSON.
Can it preserve formulas and cell styles?
Yes — formulas and basic styling metadata are preserved when reading and writing workbooks, though advanced formatting may vary by exporter.