微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📗

精准掌控 Excel 公式与格式的专业工具

Excel Xlsx 1.0.2 · v1.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
办公 安全 A 级 作者 duncanunderwood 公开目录收录
1.1k 下载 0 安装 4.9k 收藏 34 浏览

简介

专业级 Excel/XLSX 文件处理工具,支持公式、格式、日期计算与工作簿结构完整保留,适用于需要精确控制电子表格的财务建模与数据分析场景。

原始描述

Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation...

通过你的 Agent 添加

安装目录:excel-xlsx-1-0-2/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/excel-xlsx-1-0-2/
Codex CLI~/.codex/skills/excel-xlsx-1-0-2/
DeepSeek Harness~/.agents/skills/excel-xlsx-1-0-2/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心能力

该技能专注于 Microsoft Excel 工作簿的创建、检查与编辑,核心能力包括:

  • 公式管理:支持写入动态公式而非静态值,确保工作簿保持"活性";严格验证公式引用(绝对/相对引用)、范围偏移与跨表引用,杜绝 #REF!、#DIV/0! 等常见错误
  • 日期与时间处理:正确处理 Excel 日期序列号(1900/1904 系统)、虚假闰年 bug 及小数时间表示
  • 数据类型保护:防止长数字 ID、邮编、电话号码被截断或转为科学计数法;强制文本存储保留前导零
  • 格式与结构保全:保留合并单元格、隐藏行列、命名区域、条件格式、数据验证、打印设置等元数据;尊重现有模板样式
  • 跨平台兼容:区分 .xlsx、.xlsm、.xls、.csv 等格式的能力边界,识别 Google Sheets/LibreOffice 的渲染差异

显著优点

  1. 工程严谨性:明确区分 "pandas 分析流" 与 "openpyxl 保留流",避免工具误用导致公式丢失
  2. 审计友好:强制要求交付前重新计算、检查缓存值新鲜度、标注假设与硬编码
  3. 大规模支持:提供流式读取与分块处理策略,应对内存敏感场景
  4. 版本适配意识:警示动态数组函数(FILTER、XLOOKUP 等)在老版本中的降级风险

潜在局限

  • 无内置计算引擎:openpyxl 保存后需 Excel 重新计算,无法直接输出计算后数值
  • 宏文件受限:.xlsm 可保留但无法安全执行宏内容;密码保护仅作兼容性处理,非真正安全
  • 复杂图表有限:主要聚焦数据与公式层面,高级图表对象操作非核心目标
  • 外部依赖:公式中外部引用易因文件移动断裂,需人工维护

适用人群

  • 财务分析师与精算师(需保留可审计的公式链路)
  • 数据工程师(构建企业级报表模板)
  • 合规与审计岗位(要求工作簿结构完整可追溯)
  • 需批量处理大型 XLSX 文件的运维人员

常规风险

风险类型 说明
公式静默损坏 复制公式时相对引用漂移,或保存时误将公式转为缓存值
日期显示错误 底层数值正确但数字格式不匹配,用户所见非所得
数据类型污染 长 ID 被截断至 15 位精度,或 CSV 导入时自动类型推断失误
结构元数据丢失 忽略隐藏工作表、命名区域、条件格式等"隐形"业务逻辑
跨软件兼容故障 使用新版动态数组函数导致旧版 Excel 用户无法打开

来源评估

技能由 clawic.com 维护,版本迭代体现对财务审计场景的响应("stricter external spreadsheet audit"),属于专业工具链生态中的垂直领域技能。

技能正文


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 <slug> 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

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

excelxlsxspreadsheetformulaopenpyxldata-exportfinancial-modelingdata-integrity

同类 Skill