calc
使用 LibreOffice Calc 创建和转换电子表格
使用 LibreOffice Calc 自动化电子表格工作流程。此技能支持通过命令行工具和 Python 脚本创建、转换和处理 ODS、XLSX、CSV 和 PDF 文件。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“calc”。 Create a simple spreadsheet with Name and Email columns
预期结果:
The skill will generate Python code using ezodf library to create an ODS file with the specified columns, or provide soffice CLI command for command-line approach.
正在使用“calc”。 Convert myfile.ods to CSV
预期结果:
The skill provides: soffice --headless --convert-to csv myfile.ods
安全审计
安全This is a legitimate LibreOffice Calc documentation and automation skill. All static findings are false positives. The skill contains documentation for spreadsheet creation, format conversion (ODS/XLSX/CSV/PDF), and data automation using LibreOffice command-line tools and Python UNO API. No malicious patterns found.
检测到的模式
质量评分
你能构建什么
数据分析师报表
通过将原始 CSV 数据转换为包含数据透视表和图表的格式化 ODS 电子表格,自动化每周报表生成。
系统集成
通过格式之间的转换和从外部源自动导入数据,将电子表格操作集成到更大的工作流程中。
文档转换服务
批量将旧的电子表格文件转换为现代格式,用于归档或共享。
试试这些提示
Create a new ODS spreadsheet called 'report.ods' with columns for Name, Date, and Amount. Add 3 sample rows of data.
Convert the spreadsheet 'data.ods' to XLSX format using LibreOffice Calc command-line tools.
Create a spreadsheet with columns A (Product), B (Quantity), C (Price). Add a formula in column D that calculates Quantity times Price.
Write a bash script that batch converts all ODS files in the current directory to XLSX format using soffice.
最佳实践
- 使用 ODS 作为源文件的主格式以保留所有功能
- 在批量处理前使用样本文件测试转换
- 使用无头模式 (--headless) 进行服务器端自动化
- 存储带有 UNO 连接的 Python 脚本以进行复杂操作
避免
- 将带宏的文件转换为 PDF(宏不会被保留)
- 使用 XLSX 作为主格式(某些 ODS 功能可能会丢失)
- 同时运行多个 soffice 实例(会导致冲突)
- 在批量转换前不备份原始文件