← 返回 Skills 市场
linbo405

Excel XLSX处理

作者 linbo405 · GitHub ↗ · v1.0.0 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
199
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install excel-xlsx-cn
功能描述
Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation...
使用说明 (SKILL.md)

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 \x3Cslug> 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
安全使用建议
This is an instruction-only helper for working with Excel files and appears coherent. Before installing or using it, ensure the agent environment has the expected Python libraries (pandas, openpyxl or other spreadsheet engines) if you want the workflow to run; the skill itself does not install them. Be mindful when supplying files that may contain macros (.xlsm) — macros can execute code when opened by some tools, so only use trusted files or scan them before processing. Also test edits on copies of important workbooks to avoid accidental data loss, and if you require live formula recalculation, confirm the agent environment supports that (openpyxl preserves formulas but does not evaluate them). Finally, treat any uploaded workbooks as potentially sensitive data and avoid sending them to untrusted third parties.
功能分析
Type: OpenClaw Skill Name: excel-xlsx-cn Version: 1.0.0 The skill bundle provides comprehensive and legitimate instructions for an AI agent to handle Microsoft Excel files using standard libraries like pandas and openpyxl. The content in SKILL.md focuses on data integrity, formula correctness, and preserving workbook structures, with no evidence of malicious intent, data exfiltration, or prompt injection attacks.
能力评估
Purpose & Capability
The name and description match the SKILL.md content: guidance is clearly about creating, inspecting, and editing Excel files, formulas, dates, formatting, and preservation. The skill does not request unrelated credentials, binaries, or config paths.
Instruction Scope
The instructions are focused on spreadsheet handling and spreadsheet-specific pitfalls. They reference using Python libraries (pandas, openpyxl) and behaviors like recalculation and formula handling. The skill does not instruct reading unrelated system files or environment variables. Note: the SKILL.md assumes availability of Python tooling (libraries) but the skill provides no install steps or declared dependencies—this is a practical mismatch to be aware of, not a security problem by itself.
Install Mechanism
No install spec and no code files (instruction-only). This minimizes disk-write/install risk.
Credentials
The skill requests no environment variables, credentials, or config paths. There are no extra secrets requested that would be disproportionate to the stated purpose.
Persistence & Privilege
Flags are default (not always:true). The skill does not request persistent system presence or modify other skills; autonomous invocation is allowed but that is the platform default and is not, by itself, a concern here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install excel-xlsx-cn
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /excel-xlsx-cn 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Improved formula anchoring and recalculation for increased spreadsheet reliability. - Enhanced traceability of Excel model edits following a stricter external audit. - Updated documentation to clarify best practices for handling formulas, formats, and workbook preservation. - Emphasized guidelines for maintaining data integrity, template structure, and Excel compatibility.
元数据
Slug excel-xlsx-cn
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Excel XLSX处理 是什么?

Create, inspect, and edit Microsoft Excel workbooks and XLSX files with reliable formulas, dates, types, formatting, recalculation, and template preservation... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 199 次。

如何安装 Excel XLSX处理?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install excel-xlsx-cn」即可一键安装,无需额外配置。

Excel XLSX处理 是免费的吗?

是的,Excel XLSX处理 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Excel XLSX处理 支持哪些平台?

Excel XLSX处理 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Excel XLSX处理?

由 linbo405(@linbo405)开发并维护,当前版本 v1.0.0。

💬 留言讨论