← 返回列表
全部 Skill›生活方式 Lifestyle›xlsx

xlsx

作者 @mudler · 语言 en
Use when the user wants to read, change or create an Excel workbook (.xlsx) in their files. Works with the Simple Office add-on tools, with no command runner.
生活方式 Lifestyle艺术与手工通用待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
50,456
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Excel workbooks with the Simple Office tools

Use the tools of the Simple Office add-on: addon__office__read-xlsx,

addon__office__edit-xlsx and addon__office__create-xlsx. A file is a

path in the user's files, such as /reports/plan.xlsx.

Read first

  1. Call read-xlsx with the path only. You get the sheet names and the

cell values of each sheet, row by row.

  1. For a large workbook, call read-xlsx again with sheet to read one

sheet.

  1. Answer from what you read. Do not guess a value you did not read.

Change cells

  1. Read the sheet first, so that you know the cell addresses.
  2. Call edit-xlsx with path, sheet and cells. Each cell has a ref

such as B3 and exactly one of text, number, formula or clear.

  1. Change only the cells that must change. Do not create the workbook again

to change a cell.

  1. A formula is a string that starts with =, such as =SUM(B2:B9). The

file is not recalculated: say that the value shows when the file is

opened in a spreadsheet program.

  1. To add a sheet, give addSheet with its name in the same call.
  2. Tell the user the sheet and the range you changed.

Create a workbook

Use create-xlsx with path and a comma-separated csv string, only when

no file exists. It creates exactly one sheet; optional sheet defaults to

Sheet1, and optional title is metadata. All arguments are strings. The

former sheets/rows creation structure is no longer accepted.

Example: {"path":"/reports/status.xlsx","csv":"Name,Status\nWorker,Ready\n","sheet":"Status"}.

Standard CSV quoting, escaped quotes, multiline cells and LF/CRLF are supported.

Every nonempty field stays text, including leading zeros and values beginning

with =, +, - or @; no formulas or numbers are inferred. Empty cells

stay blank in place. The first row is ordinary data, not a styled header.

Use edit-xlsx afterwards for explicit numbers or formulas. Ragged rows,

malformed quoting, empty content and invalid sheet names are refused.

Limits: 5000 rows, 200 columns and 100000 grid cells, including empty fields.

If the path is taken, the old file stays and the new one is saved next to it:

give the user the new path.

When the tools cannot do it

The tools do not make charts, pivot tables, macros, conditional formats or

cell styles. Say so before you start, and offer what the tools can do. Do

not describe a manual method instead.

评论
Mmudler
mudler
mudler/localai
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@mudler
所属大类生活方式 Lifestyle / 艺术与手工
国内可用性通用
最近源活动—
风险提示无
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。