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 for analysis, reshaping, and CSV-like tasks.openpyxl when formulas, styles, sheets, comments, merged cells, or workbook preservation matter.#REF!, #DIV/0!, #VALUE!, #NAME?, or circular-reference fallout left for the user to fix.openpyxl preserves formulas but does not calculate them.#REF!, #DIV/0!, #VALUE!, #NAME?, or circular-reference fallout remains..xlsm can contain macros, and .xls remains a tighter legacy format.FILTER, XLOOKUP, SORT, or SEQUENCE may fail or degrade in older viewers.7w4.net小蔥技能站,你的AI助手技能庫。
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.clawhub star excel-xlsxclawhub syncPython實現: excel_parser.py
from excel_parser import ExcelParser, read_excel, write_excel, excel_to_csv
# 讀取
parser = ExcelParser('data.xlsx')
df = parser.to_dataframe()
parser.close()
# 或使用便捷函式
df = read_excel('data.xlsx')
# 寫入
write_excel(df, 'output.xlsx')
# XLSX轉CSV
excel_to_csv('data.xlsx', 'data.csv') 這個 Excel 工具功能比較全面,文件編寫專業詳細,能幫助避免很多操作中的坑。不過在處理超過26列的大表格時存在bug,部分高階功能沒有在文件中說明清楚。基礎功能還算可靠,但建議謹慎使用批次拆分、合併等操作。整體而言適合有一定經驗的使用者,新手需要注意檢視文件中的注意事項部分。