xlsx
它能做什么
这项技能帮助智能体处理 Excel 电子表格和 CSV 数据文件。适合需要制作、整理或转换表格的人。
适用场景
- ✓当你想根据列表或其他数据制作一个新的 Excel 工作簿时。
- ✓当你想编辑现有表格的公式、格式或行数据时。
- ✓当你有杂乱的 CSV 数据,需要整理成干净的电子表格的时候。
技能链接
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/xlsx/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我整理这份客户订单 CSV,并转换成带有总计列的 Excel 文件。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先检查工作簿,然后借助辅助脚本把修改写入新文件。当 LibreOffice 可用时,它可以通过 LibreOffice 重新计算公式。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Excel workbooks
Use this Skill for .xlsx and CSV creation, analysis, editing, restructuring, formula work, and export.
Start here
Call skill_view for this Skill and use its baseDirectory; helpers live under <baseDirectory>/scripts.
Default to a new output file. Inspect workbook sheets, dimensions, formulas, merged cells, names, tables, charts, validations, hidden content, and external links before modifying an existing file.
Core dependency:
python3 -m pip install openpyxl
Formula recalculation and visual rendering may require LibreOffice. Check first and do not silently install dependencies.
Helpers
- xlsx_read.py: inspect workbook values, formulas, styles, structure, and metadata.
- xlsx_create.py: create a workbook from structured JSON.
- xlsx_edit.py: perform targeted cell, range, formula, style, row, column, and sheet edits.
- xlsx_restructure.py: split, merge, normalize, pivot, or reshape tabular data.
- xlsx_recalc.py: recalculate through LibreOffice when available.
- csv_to_xlsx.py and xlsx_to_csv.py: convert formats.
Run helpers through terminal_exec with python3 and an argument array. Use --help for exact options.
python3 <baseDirectory>/scripts/xlsx_read.py input.xlsx --json
python3 <baseDirectory>/scripts/xlsx_create.py spec.json -o output.xlsx
python3 <baseDirectory>/scripts/xlsx_edit.py input.xlsx edits.json -o output.xlsx
python3 <baseDirectory>/scripts/xlsx_recalc.py output.xlsx
For non-trivial data reshaping, read references/restructuring.md through skill_view.
Workflow
- Inspect the workbook and identify the authoritative sheets, headers, formulas, and units.
- Validate source data types and row counts before transforming data.
- Apply the smallest requested edit into a new workbook.
- Re-read formulas and values. Recalculate when the output depends on formula results.
- For visible formatting or charts, export relevant sheets to PDF with LibreOffice, render the pages with the bundled pdf Skill, and inspect them using view_image.
- Return the absolute path plus any assumptions about formulas, locale, dates, or missing recalculation.
Data integrity
- Never invent missing values. Mark unknown data explicitly.
- Preserve formulas unless the user asks to replace them with values.
- Treat hidden sheets, filters, named ranges, validations, macros, and external links as meaningful.
- .xlsx sheet protection is not encryption; do not represent it as secure access control.
- Do not execute workbook macros or refresh untrusted external data sources.
常见问题
它会修改我的原始表格吗?
不会。默认会写入一个新的输出文件,只有在你要求时才会编辑原文件。
它能处理公式吗?
可以。在 LibreOffice 可用的情况下,它可以读取、编辑并重新计算公式。
它能把电子表格转换成 CSV 吗?
可以。它支持 Excel 与 CSV 格式之间的双向转换。
详情
作者的原始描述
Create, inspect, edit, restructure, recalculate, convert, and visually verify Excel .xlsx workbooks and CSV data.
repo: EKKOLearnAI/ekko-studio
热度
- GitHub 星标
- 12k
- 排名
- #11581
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
1password
12k帮你的智能体使用 1Password CLI 为命令和配置文件获取机密信息,同时不在聊天、日志或已保存的文件中显示这些信息。
apple-notes
12k帮你的智能体在 Mac 上使用 memo 命令行工具创建、搜索、阅读、编辑、移动或删除 Apple 备忘录。
apple-reminders
12k帮你的智能体在 Mac 上使用 remindctl 工具列出、创建、编辑、完成或删除 Apple 提醒事项及提醒列表。
document-to-action-items
12k帮你的智能体把文档、会议记录或一组笔记,整理成一张清晰的任务、负责人、截止日期和决定的表格。