作者:互联网 时间: 2026-08-07 16:10:01
Openclaw Skills 的 Excel / XLSX 技能提供了一个处理 Microsoft Excel 文件(包括 .xlsx、.xls 和 .xlsm 格式)的稳健框架。它超越了简单的文件读取,解决了电子表格数据的复杂细微差别,例如 Excel 特定的日期序列化系统和数值的 15 位精度限制。 该技能确保了 Windows、macOS 和 Linux 环境之间的跨平台兼容性。通过实施内存管理和数据完整性的最佳实践,它允许 AI 代理通过流式传输处理大型数据集,同时保持正确的单元格格式和公式计算。
下载入口:https://github.com/openclaw/skills/tree/main/skills/ivangdavila/excel-xlsx
从源直接安装技能的最快方式。
npx clawhub@latest install excel-xlsx
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 excel-xlsx。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
要将此功能集成到您的工作流中,请通过 CLI 安装该技能。确保您拥有在本地创建内存存储目录所需的权限。
bash
clawhub install excel-xlsx
首次使用时,该技能将初始化其配置。您可以通过编辑内存文件或在涉及 Openclaw Skills 的首次对话中提供偏好设置来自定义行为。
该技能使用标准化的本地目录结构组织其持久性内存和配置,以确保隐私和本地优先的数据处理:
| 文件 | 用途 |
|------|---------|
| ~/excel-xlsx/memory.md | 存储特定的用户偏好、首选工具和已识别的痛点。 |
| memory-template.md | 为初始化新内存文件提供蓝图。 |
处理工作簿时,该技能遵循以下格式限制:
- XLSX: 1,048,576 行和 16,384 列(现代标准)。
- XLS: 65,536 行和 256 列(旧版支持)。
name: Excel / XLSX
slug: excel-xlsx
version: 1.0.1
homepage: https://clawic.com/skills/excel-xlsx
description: Read, write, and generate Excel files with correct types, dates, formulas, and cross-platform compatibility.
changelog: Added Core Rules and modern skill structure
metadata: {"clawdbot":{"emoji":"??","requires":{"bins":[]},"os":["linux","darwin","win32"]}}
On first use, read setup.md for integration guidelines. Ask user preferences naturally during conversation.
User needs to read, write, or generate Excel files (.xlsx, .xls, .xlsm). Agent handles type coercion, date serialization, formula evaluation, and cross-platform quirks.
Memory lives in ~/excel-xlsx/. See memory-template.md for structure.
~/excel-xlsx/
└── memory.md # Preferences, tools, pain points
| Topic | File |
|---|---|
| Setup | setup.md |
| Memory template | memory-template.md |
Excel stores dates as days since 1900-01-01 (Windows) or 1904-01-01 (Mac legacy). Check workbook date system before converting. Time is fractional: 0.5 = noon, 0.25 = 6 AM.
Excel incorrectly treats 1900 as a leap year. Serial 60 represents Feb 29, 1900 (invalid date). Account for this when calculating dates before March 1, 1900.
Numbers beyond 15 digits silently truncate. Use TEXT format for: phone numbers, IDs, credit cards, any long numeric identifiers. Leading zeros also require TEXT.
Cells may contain both formula and cached result. Some readers return formula string, others return cached value. Force recalculation if cached values might be stale.
Only the top-left cell of a merged range holds the value. Reading other cells in the merge returns empty. Hidden rows/columns still contain data.
Windows vs Mac Excel can differ in date system. LibreOffice/Google Sheets may not support all features. Always test roundtrip compatibility when generating files for unknown consumers.
Loading large files fully into RAM causes memory issues. Use streaming readers (row-by-row) for files with 100K+ rows. Empty rows at end may be padded by some writers.
works but cell needs "wrap text" format to display[Book.xlsx]Sheet!A1 breaks when source file moves| Format | Rows | Columns | Notes |
|---|---|---|---|
| XLSX | 1,048,576 | 16,384 (XFD) | Modern default |
| XLS | 65,536 | 256 | Legacy, avoid |
| CSV | Unlimited | Unlimited | No formatting |
Data that stays local:
~/excel-xlsx/memory.md with consentThis skill does NOT:
Install with clawhub install <slug> if user confirms:
csv — CSV parsing and generationdata — Data processing patternsdata-analysis — Analysis workflowsclawhub star excel-xlsxclawhub sync