跳到正文
Skillpedia
PDF、Word 与幻灯片12k · #11581

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/xlsx/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Inspect the workbook and identify the authoritative sheets, headers, formulas, and units.
  2. Validate source data types and row counts before transforming data.
  3. Apply the smallest requested edit into a new workbook.
  4. Re-read formulas and values. Recalculate when the output depends on formula results.
  5. 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.
  6. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能