Duncan Underwood

Excel Xlsx 1.0.2

辦公效率v1.0.0
作者:Duncan Underwood更新於 2026-05-11excel-xlsx-1-0-2@clawhub_duncanunderwood/excel-xlsx-1-0-2
檔案處理表格處理流程自動化#CSV

據 AlphaMoat 統計,截至 2026-09,Excel Xlsx 1.0.2 累計下載 2,018 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 4,416 位,在「辦公效率」分類(435 個)中排名第 342 位。

累計安裝
278
累計下載
2018
星標
-
全站排名
#4,416
全站前 87% · 「辦公效率」前 79%
平台累計安裝累計下載星標評論
ClawHub ↗481426--
SkillHub ↗2782018-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

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. 核心規則:按任務選工具(分析/重塑用 pandas,涉及公式/樣式/合併單元格/保留原簿用 openpyxl,CSV 僅作純資料交換);日期是序列數(1900 日期系統含假閏日 bug,部分工作簿用 1904 系統);工作簿需要保持“活性”就寫公式而非硬編碼結果,引用假設單元格,勿輕信快取值,先在代表性單元格測試;型別防護:長編號/電話/郵編按文字存,- Excel silently truncates numeric precision past 15 digits.;先保結構再改內容(模板優先,合併單元格只有左上格存值,隱藏行列與命名區域攜帶業務邏輯);交付前重算與檢查(- openpyxl preserves formulas but does not calculate them.,不得殘留 #REF!/#DIV/0!/#VALUE!/#NAME?/迴圈引用);大檔案用流式/分塊讀取。常見陷阱含列索引差一、外部引用易斷、舊式密碼保護並非真安全、.xlsm 含宏、Google Sheets/LibreOffice 可能重解釋日期與樣式、FILTER/XLOOKUP 等新函式在舊檢視器降級。card 提醒:編輯會影響下游決策——保留備份並在依賴結果前複查公式/重算/格式與代表性單元格;可選的相關技能安裝須經使用者確認。版本衝突記錄:card 1.0.2 vs ClawHub 釋出 1.0.0。

資料釋出於 2026-10-27

可以用來做什麼

  • 選擇 pandas 還是 openpyxl 的正確工作流
  • 修復公式錯誤並保證交付零錯誤值
  • 保護長編號/電話號碼不被轉成數字
  • 編輯時保留模板的樣式、篩選與列印設定

什麼時候用

  • 公式、日期與型別正確性敏感的表格任務
  • 編輯他人的活模型或模板檔案
  • 跨 Word 之外編輯器(LibreOffice/Google Sheets)的相容性場景

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

檢查這份報表有沒有 #REF! 等公式錯誤
把這些賬號列改成文字格式防止丟零
在這份模板里加列但保留原有凍結與篩選

月度資料趨勢

累計下載2018
295122121462026-03 · 累計下載 4232026-05 · 累計下載 8882026-06 · 累計下載 10652026-07 · 累計下載 13382026-08 · 累計下載 16262026-09 · 累計下載 201826-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092018—-
2026-081626+21.5%-
2026-071338+25.6%-
2026-061065+19.9%-
2026-05888—-
2026-03423—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

6.8 KB · ClawHub v1.0.0
---
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"]}}
---
展開全部(共 104 行)
## 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`

「辦公效率」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。