📗 Excel/XLSX — 表格编辑
v1.0.2创建、检查和编辑 Microsoft Excel 工作簿和 XLSX 文件,支持可靠的公式、日期、类型、格式化、重新计算和模板保留。
204· 51,800·555 当前·577 累计·💬 1
安全扫描
OpenClaw
安全
high confidence该技能是一个仅指令的 Excel/XLSX 指导包,其声明目的(编辑和保留工作簿)与指令匹配,不请求额外凭证或安装——无不当之处。
评估建议
该技能内部一致,看似低风险:提供编辑 Excel 文件的最佳实践指令,不要求额外内容。安装前,确认您的代理环境拥有所需的电子表格库(openpyxl、pandas 及任何读写器)来自可信包源——SKILL.md 引用这些但不安装它们。注意该技能需要权限来读/写您提供的任何电子表格(此目的预期如此)。对 .xlsm(宏)和包含敏感数据的电子表格保持正常谨慎;除非信任运行时及其存储/传输,否则避免发送高度机密文件。...详细分析 ▾
✓ 用途与能力
名称/描述和 SKILL.md 一致聚焦于电子表格工作(公式、日期、格式化、工作簿保留)。指令引用使用 pandas/openpyxl 执行适当任务——这些对于 Excel 导向技能是预期的,无无关的环境变量、二进制文件或配置路径请求。
ℹ 指令范围
SKILL.md 提供详细的运行时指导(何时使用 pandas vs openpyxl、处理日期、保留模板、重新计算、流式处理大文件)。确实假设访问用户电子表格文件(读/写)和常见 Python 库,但不指示代理访问无关系统文件或秘密。小注:技能列出了特定库但未声明依赖或安装步骤。
✓ 安装机制
无安装规范和代码文件(仅指令)。这是最低风险的安装配置——安装程序不会下载或写入任何内容。
✓ 凭证需求
requires.env / 主凭证为空,未请求秘密或配置路径。所需权限集(对您提供的电子表格的文件读/写)与声明目的成比例。
✓ 持久化与权限
always 为 false 且技能不请求持久系统修改或访问其他技能。技能可自主调用(平台默认),这是正常的,本身不可疑。
安全有层次,运行前请审查代码。
运行时依赖
🖥️ OSLinux · macOS · Windows
版本
latestv1.0.22026/2/10
Tightened formula anchoring, recalculation, and model traceability after a stricter external spreadsheet audit.
● 无害
安装命令 点击复制
官方npx clawhub@latest install excel-xlsx
镜像加速npx clawhub@latest install excel-xlsx --registry https://www.longxiaskill.com
技能文档
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
pandasfor analysis, reshaping, and CSV-like tasks. - Use
openpyxlwhen 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.
openpyxlpreserves 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.
.xlsmcan contain macros, and.xlsremains 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, orSEQUENCEmay 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 withclawhub 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
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制