Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add L-LesterYu/OpenClaw-hot-skills-zh --skill excel-xlsx-zhgit clone --depth 1 https://github.com/L-LesterYu/OpenClaw-hot-skills-zhWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/excel-xlsx-zh)<a href="https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/excel-xlsx-zh"><img src="https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/excel-xlsx-zh/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/excel-xlsx-zh"><img src="https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/excel-xlsx-zh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00114 | $0.01702 |
| Opus 5 | $0.00057 | $0.00851 |
| Sonnet 5 | $0.00023 | $0.00340 |
| Haiku 4.5 | $0.00011 | $0.00170 |
Grade A, and why
Excel / XLSX scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
适用场景
当主要处理对象是 Microsoft Excel 工作簿或电子表格文件时使用,尤其涉及公式、日期、格式、合并单元格、工作簿结构或跨平台行为时。
核心规则
1. 根据任务选择工作流,而非凭习惯
- 数据分析、重塑和类似 CSV 的任务使用 pandas。
- 涉及公式、样式、多工作表、批注、合并单元格或需要保留工作簿完整性时使用 openpyxl。
- 将 CSV 视为纯数据交换格式,而非功能完整的 Excel 替代品。
- 读取数值、保留活跃工作簿和从头构建模型是三种不同的电子表格任务。
2. 日期是带有历史遗留问题的序列号
- Excel 将日期存储为序列号,而非真正的日期对象。
- 1900 日期系统包含虚假的闰日 bug,部分工作簿使用 1904 系统。
- 时间是分数天数的数据,因此格式和转换都同样重要。
- 仅日期正确还不够,如果数字格式仍然向用户显示错误信息,那就不算完成。
3. 工作簿需要保持活跃时,将计算保留在 Excel 中
- 将公式写入单元格,而不是用 Python 硬编码派生结果。
- 使用对假设单元格的引用,而不是在公式中使用魔法数字。
- 缓存的公式值可能已过时,编辑后不要盲目信任它们。
- 交付前检查复制公式是否存在错误范围、错误工作表和静默的偏移漂移。
- 绝对引用和相对引用是逻辑的一部分,因此即使复制的公式仍然"能运行",也可能是错误的。
- 在将新公式填充到整个区块之前,先在几个代表性单元格上进行测试。
- 交付依赖分母、命名范围和前置单元格的公式之前,务必验证它们。
- 工作簿交付时应零公式错误,不应留有已知的 #REF!、#DIV/0!、#VALUE!、#NAME? 或循环引用遗留问题让用户自行修复。
- 对于模型类工作,在批注或附近备注中记录非显而易见的硬编码、假设或源数据输入。
4. 在 Excel 破坏数据类型之前先做好保护
- 长标识符、电话号码、邮政编码和前导零值通常应以文本格式存储。
- Excel 会在超过 15 位数字时静默截断数值精度。
- 混合文本-数字列在读取和写入时都需要显式处理。
- 科学计数法、自动解析的日期和被去除的前导零是常见的数据损坏,而非外观问题。
5. 修改内容之前先保护工作簿结构
- 现有模板优先于通用样式建议。
- 合并范围中只有左上角单元格存储值。
- 隐藏行、隐藏列、命名范围和外部引用仍然可能影响公式和输出。
- 共享字符串、定义名称和工作表级别的约定即使可见单元格看起来很简单也可能很重要。
- 为新填充的单元格匹配样式,而不是悄悄引入新的视觉系统。
- 如果工作簿是模板,除非任务明确要求更改,否则应保留工作表顺序、列宽、冻结窗格、筛选器、打印设置、数据验证和视觉约定。
- 条件格式、筛选器、打印区域和数据验证通常承载业务含义,即使用户只提到了数字。
- 如果没有现有的样式指南且文件是模型,请保持可编辑输入与公式在视觉上可区分,但绝不要为了强制通用风格而覆盖已建立的模板。
6. 交付前重新计算并审查
- 如果接收者需要当前值,仅公式字符串是不够的。
- openpyxl 保留公式但不计算它们。
- 验证不存在残留的 #REF!、#DIV/0!、#VALUE!、#NAME? 或循环引用问题。
- 如果布局重要,在完成任务前渲染或视觉审查工作簿。
- 注意读取模式:以仅值模式打开工作簿然后保存可能会将公式展平为静态值。
- 如果假设或硬编码覆盖必须保留,请使其足够明显,以便下一位编辑者能够审计工作簿。
7. 根据文件大小调整工作流
- 大型工作簿可能因为无聊的原因失败:内存激增、空行填充和全工作表读取缓慢。
- 当文件大到一次性加载变得脆弱时,使用流式或分块读取。
- 大文件工作流还需要更窄的读取范围、显式的数据类型和工作表定位,以避免意外损坏。
常见陷阱
- 读取时的类型推断可能会将数字保留为文本或将 ID 转换为损坏的数值。
- 不同工具之间的列索引方式不同,因此生成的公式中偏移错误很常见。
- 单元格中的换行需要启用自动换行才能正确显示。
- 源文件移动时外部引用容易断裂。
- 旧版 Excel 工作流中的密码保护并不是真正的安全措施。
- .xlsm 可以包含宏,.xls 仍然是更受限的旧版格式。
- 大文件可能需要流式读取或更谨慎的内存处理。
- Google Sheets 和 LibreOffice 可能会以不同于 Excel 的方式重新解释日期、公式或样式。
- FILTER、XLOOKUP、SORT 或 SEQUENCE 等动态数组或较新的 Excel 函数在旧版查看器中可能会失败或降级。
- 工作簿可能看起来正常,但仍然携带着上一次重新计算的过时缓存值。
- 保存错误的工作簿视图可能会用缓存值替换公式,从而悄无声息地破坏活跃模型。
- 不检查相对引用就复制公式可能会将一个错误范围推送到整个区块。
- 隐藏工作表、命名范围、数据验证和合并区域经常包含在快速浏览中不可见的业务逻辑。
- 工作簿可能在数值上看起来正确,但因为筛选器、条件格式、打印设置或数据验证被去除而仍然不合格。
- 工作簿可能在数值上正确,但因为自动换行文本、被截断的标签或过窄的列从未被审查而仍然在视觉上失败。
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 93 lines · 114 tokens per session scan A 1f926a7910f4
Excel / XLSX is a skill published in the GitHub repository L-LesterYu/OpenClaw-hot-skills-zh (54 stars, last pushed 5mo ago), licensed MIT. It adds 114 tokens to every session and 1,702 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
dcf-model
Build discounted cash flow valuation workbooks in Excel.
audit-xls
Audit a spreadsheet for formula accuracy, errors, and common mistakes. Scopes to a selected range, a single sheet, or the entire model (including financial-model integrity checks like BS balance, cash tie-out, and logic sanity). Triggers on "audit this sheet", "check my formulas", "find formula errors", "QA this…
google-drive-sheets
Find, read, export, edit, and manage the user's Google Drive, Docs, Sheets, and Slides through per-user OAuth.
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
large-file-parquet-analysis-and-highlight
A workflow for processing large Excel workbooks by counting their rows, converting them to Parquet when needed, and finding maximum values. Parquet is a data-file format designed for efficient reading.
excel-basic-statistics-and-routing
An Excel workflow for filtering grouped data, calculating averages, extracting row ranges, removing duplicates, and adding totals.