技能 xlsx
📦

xlsx

安全

建立和分析 Excel 試算表

也可從以下取得: ArtemisAI,davila7,AutumnsGrove,Azeem-2,anthropics,Cam10001110101,DYAI2025,ComposioHQ,K-Dense-AI

此技能可讓 Claude Code 建立、編輯和分析具有公式、格式設定和資料視覺化的 Excel 試算表。它透過自動化複雜的試算表操作來解決手動試算表操作的問題。

支援: Claude Codex Code(CC)
🥉 74 青銅
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「xlsx」。 Create a quarterly sales report with charts

預期結果:

  • Created Q1_sales_report.xlsx with 3 sheets: Summary, Details, Charts
  • Added conditional formatting to highlight top performers
  • Generated bar chart showing sales by product category
  • Recalculated all formulas - 0 errors found

正在使用「xlsx」。 Build a DCF valuation model

預期結果:

  • Created dcf_model.xlsx with Assumptions, Revenue, FCF, and Valuation sheets
  • Applied color coding: blue for inputs, black for formulas, green for cross-sheet refs
  • Built 5-year projection with NPV and IRR calculations
  • All formulas validated - model ready for sensitivity analysis

安全審計

安全
v1 • 2/24/2026

All 57 static findings are false positives. The skill uses subprocess to run LibreOffice for formula recalculation, which is legitimate spreadsheet automation. The filesystem operations access standard config directories. The SKILL.md contains code examples and Excel references (cell names like C2, error types like #REF!) that were incorrectly flagged.

2
已掃描檔案
467
分析行數
0
發現項
1
審計總數
未發現安全問題

偵測到的模式

External Commands - Legitimate LibreOffice UsageFilesystem Access - Standard ConfigurationDocumentation Code ExamplesExcel Cell References Misidentified
審計者: claude

品質評分

38
架構
100
可維護性
87
內容
50
社群
100
安全
91
規範符合性

你能建構什麼

財務模型建立

根據產業標準建立包含假設、預測和格式化輸出的完整財務模型

資料報告自動化

透過從原始資料產生格式化的 Excel 報告來自動化資料匯出和報告工作流程

試算表錯誤修正

識別並修正現有試算表中的公式錯誤,如 #REF!、#DIV/0! 和 #VALUE!

試試這些提示

建立簡單試算表
Create a new Excel file called sales_report.xlsx with columns for Date, Product, Quantity, and Price. Add 5 sample rows of data.
建立財務模型
Create a financial model for a SaaS company with assumptions sheet, revenue projections for 5 years, and formatted output. Use blue for inputs, black for formulas.
分析現有資料
Read the data from data.xlsx, analyze the trends, and create a summary sheet with key statistics and charts.
修正公式錯誤
Open workbook.xlsx, recalculate all formulas, identify any errors, and fix the #REF! and #DIV/0! errors found.

最佳實務

  • 始終使用 Excel 公式而非硬編碼值,以保持試算表的動態性
  • 在建立或修改含有公式的檔案後執行 recalc.py 以驗證沒有錯誤
  • 遵循財務模型顏色標準:藍色代表輸入,黑色代表公式,綠色代表工作表連結

避免

  • 在 Python 中計算值並將其硬編碼,而不是使用 Excel 公式
  • 儲存檔案時未執行 recalc.py,導致公式未計算
  • 在需要保留公式的檔案載入時使用 data_only=True

常見問題

如何重新計算 Excel 檔案中的公式?
使用 recalc.py 指令碼:python recalc.py yourfile.xlsx。它會重新計算所有公式並報告任何錯誤。
我可以編輯現有 Excel 檔案而不破壞公式嗎?
是的,openpyxl 在編輯時會保留公式。請小心不要用新值覆寫包含公式的儲存格。
此技能使用哪些函式庫?
openpyxl 用於公式和格式操作,pandas 用於資料分析,LibreOffice 透過 recalc.py 用於公式計算。
如何將圖表新增至 Excel 檔案?
使用 openpyxl.chart 模組建立圖表物件並將其附加到工作表儲存格。如需圖表類型,請參閱 openpyxl 文件。
為什麼公式顯示為文字而不是值?
openpyxl 將公式儲存為字串。執行 python recalc.py 使用 LibreOffice 計算所有公式值。
我可以將此技能與 CSV 或 TSV 檔案搭配使用嗎?
是的,pandas 可以讀取和寫入 CSV 和 TSV 檔案。若要支援公式,請使用 XLSX 格式。

開發者詳情

作者

ZhanlinCui

授權

Proprietary. LICENSE.txt has complete terms

引用

main

檔案結構

📄 recalc.py

📄 SKILL.md