跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 Excel / XLSX OpenClaw

Excel / XLSX 系统

创建,检查,并编辑Microsoft Excel工作手册和XLSX文件,并使用可靠的公式,日期,类型,格式化,重新计算,以及模板保存. (1)任务涉及Excel,`.xlsx',`.xlsm',`.xls',`.csv',或`.tsv'时使用;(2)公式,格式,工作手册结构,或兼容性事项;(3)文件在编辑后必须保持可靠.

2721 安装量 · 297 星标

官方网址:作者主页

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

创建、检查和编辑 Microsoft Excel 工作簿和 XLSX 文件,其中包含可靠的公式、日期、类型、格式、重新计算和模板保存

何时用

当主要文物是Microsoft Excel工作手册或电子表格文件时使用,特别是当公式、日期、格式化、合并单元格、工作手册结构或跨平台行为事项时使用

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:When to Use、Core Rules、1. Choose the workflow by job, not by habit、2. Dates are serial numbers with legacy quirks、3. Keep calculations in Excel when the workbook should stay live、4. Protect data types before Excel mangles them。 其中含规范建议的小节:分步指令。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation. Use when (1) the task is about Excel, `.xlsx`, `.xlsm`, `.xls`, `.csv`, or `.tsv`; (2) formulas, formatting, workbook structure, or compatibility matter; (3) the file must stay reliable after edits.

When to UseCore Rules1. Choose the workflow by job, not by habit2. Dates are serial numbers with legacy quirks3. Keep calculations in Excel when the workbook should stay live4. Protect data types before Excel mangles them5. Preserve workbook structure before changing content6. Recalculate and review before delivery7. Scale the workflow to the file sizeCommon TrapsRelated SkillsFeedback

来源分类:ClawHub CSV

SKILL.md 与 Agent 调用

官方规范 ↗
name
Excel / XLSX
description
Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation. Use when (1) the task is about Excel, `.xlsx`, `.xlsm`, `.xls`, `.csv`, or `.tsv`; (2) formulas, formatting, workbook structure, or compatibility matter; (3) the file must stay reliable after edits.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「Excel / XLSX」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-a4c0b1e43a7a17c2-Excel-XLSX-%E7%B3%BB%E7%BB%9F.html
请存为 .cursor/skills/excel-xlsx/SKILL.md 或 .claude/skills/excel-xlsx/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

当前没有明确的 GitHub 技能包地址,请按来源页面的安装器说明操作。

ClawHub ↗

阅读排版
--- name: Excel / XLSX slug: excel-xlsx version: 1.0.2 homepage: https://clawic.com/skills/excel-xlsx description: "Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation. Use when (1) the task is about Excel, `.xlsx`, `.xlsm`, `.xls`, `.csv`, or `.tsv`; (2) formulas, formatting, workbook structure, or compatibility matter; (3) the file must stay reliable after edits." changelog: Tightened formula anchoring, recalculation, and model traceability after a stricter external spreadsheet audit. metadata: {"clawdbot":{"emoji":"📗","requires":{"bins":[]},"os":["linux","darwin","win32"]}} --- ## When to Use Use when the main artifact is a Microsoft Excel workbook or spreadsheet file, especially when formulas, dates, formatting, merged cells, workbook structure, or cross-platform behavior matter. ## Core Rules ### 1. Choose the workflow by job, not by habit - Use `pandas` for analysis, reshaping, and CSV-like tasks. - Use `openpyxl` when formulas, styles, sheets, comments, merged cells, or workbook preservation matter. - Treat CSV as plain data exchange, not as an Excel feature-complete format. - Reading values, preserving a live workbook, and building a model from scratch are different spreadsheet jobs. ### 2. Dates are serial numbers with legacy quirks - Excel stores dates as serial numbers, not real date objects. - The 1900 date system includes the false leap-day bug, and some workbooks use the 1904 system. - Time is fractional day data, so formatting and conversion both matter. - Date correctness is not enough if the number format still displays the wrong thing to the user. ### 3. Keep calculations in Excel when the workbook should stay live - Write formulas into cells instead of hardcoding derived results from Python. - Use references to assumption cells instead of magic numbers inside formulas. - Cached formula values can be stale, so do not trust them blindly after edits. - Check copied formulas for wrong ranges, wrong sheets, and silent off-by-one drift before delivery. - Absolute and relative references are part of the logic, so copied formulas can be wrong even when they still "work". - Test new formulas on a few representative cells before filling them across a whole block. - Verify denominators, named ranges, and precedent cells before shipping formulas that depend on them. - A workbook should ship with zero formula errors, not with known `#REF!`, `#DIV/0!`, `#VALUE!`, `#NAME?`, or circular-reference fallout left for the user to fix. - For model-style work, document non-obvious hardcodes, assumptions, or source inputs in comments or nearby notes. ### 4. Protect data types before Excel mangles them - Long identifiers, phone numbers, ZIP codes, and leading-zero values should usually be stored as text. - Excel silently truncates numeric precision past 15 digits. - Mixed text-number columns need explicit handling on read and on write. - Scientific notation, auto-parsed dates, and stripped leading zeros are common corruption, not cosmetic issues. ### 5. Preserve workbook structure before changing content - Existing templates override generic styling advice. - Only the top-left cell of a merged range stores the value. - Hidden rows, hidden columns, named ranges, and external references can still affect formulas and outputs. - Shared strings, defined names, and sheet-level conventions can matter even when the visible cells look simple. - Match styles for newly filled cells instead of quietly introducing a new visual system. - If the workbook is a template, preserve sheet order, widths, freezes, filters, print settings, validations, and visual conventions unless the task explicitly changes them. - Conditional formatting, filters, print areas, and data validation often carry business meaning even when users only mention the numbers. - If there is no existing style guide and the file is a model, keep editable inputs visually distinguishable from formulas, but never override an established template to force a generic house style. ### 6. Recalculate and review before delivery - Formula strings alone are not enough if the recipient needs current values. - `openpyxl` preserves formulas but does not calculate them. - Verify no `#REF!`, `#DIV/0!`, `#VALUE!`, `#NAME?`, or circular-reference fallout remains. - If layout matters, render or visually review the workbook before calling it finished. - Be careful with read modes: opening a workbook for values only and then saving can flatten formulas into static values. - If assumptions or hardcoded overrides must stay, make them obvious enough that the next editor can audit the workbook. ### 7. Scale the workflow to the file size - Large workbooks can fail for boring reasons: memory spikes, padded empty rows, and slow full-sheet reads. - Use streaming or chunked reads when the file is big enough that loading everything at once becomes fragile. - Large-file workflows also need narrower reads, explicit dtypes, and sheet targeting to avoid accidental damage. ## Common Traps - Type inference on read can leave numbers as text or convert IDs into damaged numeric values. - Column indexing varies across tools, so off-by-one mistakes are common in generated formulas. - Newlines in cells need wrapping to display correctly. - External references break easily when source files move. - Password protection in old Excel workflows is not serious security. - `.xlsm` can contain macros, and `.xls` remains a tighter legacy format. - Large files may need streaming reads or more careful memory handling. - Google Sheets and LibreOffice can reinterpret dates, formulas, or styling differently from Excel. - Dynamic array or newer Excel functions like `FILTER`, `XLOOKUP`, `SORT`, or `SEQUENCE` may fail or degrade in older viewers. - A workbook can look fine while still carrying stale cached values from a prior recalculation. - Saving the wrong workbook view can replace formulas with cached values and quietly destroy a live model. - Copying formulas without checking relative references can push one bad range across an entire block. - Hidden sheets, named ranges, validations, and merged areas often keep business logic that is invisible in a quick skim. - A workbook can appear numerically correct while still failing because filters, conditional formats, print settings, or data validation were stripped. - A workbook can be numerically correct and still fail visually because wrapped text, clipped labels, or narrow columns were never reviewed. ## Related Skills Install with `clawhub install ` if user confirms: - `csv` — Plain-text tabular import and export workflows. - `data` — General data handling patterns before spreadsheet output. - `data-analysis` — Higher-level analysis that can feed workbook deliverables. ## Feedback - If useful: `clawhub star excel-xlsx` - Stay updated: `clawhub sync`

相关技能

文档办公

肿瘤Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

纳诺PdfNano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

单词 / DOCXWord / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

百度搜索Baidu Search

使用Baidu AI搜索引擎(BDSE)搜索网页. 用于实时信息、文件或研究专题.