
Office Automation
Python scripts that read, write, template, and convert Word and Excel files in batch.
- CCM score
- 30 of 100
- skills.sh installs
- 3K
- GitHub stars
- 8
- last updated
- Jul 14, 2026
Own this skill? Claim it
What it does
- Covers Word (.docx) commands
read,write,template,extract, andformat, plus Excel commandsread,write,merge,convert, andanalyze - Ships two scripts,
word_processor.pyandexcel_processor.py, that fill{{variables}}in templates and export tables to CSV - Supports .docx, .xlsx, and .xlsm only; legacy .doc files are not handled and files over 100MB should be split
- Requires python-docx, openpyxl, and pandas, and is intended for report generation, template filling, and spreadsheet consolidation
Install
$ npx -y skills add texiaoyao/office-automation-skill --skill office-automation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Office 自动化技能
使用 Python 脚本自动化处理 Word (.docx) 和 Excel (.xlsx/xlsm) 文件。
快速开始
1. 安装依赖
pip install python-docx openpyxl pandas
2. 基本用法
处理 Word 文档:
python scripts/word_processor.py read document.docx
python scripts/word_processor.py write output.docx --content "Hello World"
python scripts/word_processor.py template fill.docx --data '{"name": "张三", "date": "2026-02-22"}'
处理 Excel 表格:
python scripts/excel_processor.py read data.xlsx
python scripts/excel_processor.py write output.xlsx --sheet "Sheet1"
python scripts/excel_processor.py merge folder/ --output merged.xlsx
脚本说明
word_processor.py
| 命令 | 说明 | 示例 |
|---|---|---|
read | 读取 Word 文档内容 | read file.docx |
write | 创建新文档 | write out.docx --content "文本" |
template | 填充模板(替换 {{变量}}) | template doc.docx --data '{"key": "value"}' |
extract | 提取表格到 CSV | extract file.docx --table 1 |
format | 格式化文档 | format file.docx --style heading |
excel_processor.py
Details
- Repository
- github.com/texiaoyao/office-automation-skill
- Categories
- Office Files & Slides, Workflow Automation
Similar to Office Automation
More Office Files & Slides
office-to-mdSkillclaude-office-skills/skills6K installsConverts Word, Excel, PowerPoint, PDF, and other Office formats into Markdown using markitdown.
wps-officeSkilllc2panda/wps-skills2.1K installsCross-app assistant that routes WPS Office tasks across Excel, Word, and PPT, handling shared file operations.
excel-automationSkillclaude-office-skills/skills16.4K installsLive Excel automation via xlwings that controls running instances, runs VBA, and updates dashboards in real time.
document-processingSkilleyadsibai/ltk1.3K installsReference guide for working with PDF, Excel, Word, and PowerPoint files, including tool selection and common operations.
ExcelMCP servernegokaz1.1K starsReads and writes Excel workbooks: sheets, cell values, formulas, tables, and formatting.
excel-report-generatorSkillwwwzhouhui/skills_collection402 installsGenerates Excel reports from CSV, database, or pandas data using pandas and openpyxl, with formatting and charts.