calc
Spreadsheet creation, format conversion (ODS/XLSX/CSV), formulas, data automation with LibreOffice Calc.
About this skill
This skill empowers AI agents to perform comprehensive spreadsheet operations leveraging LibreOffice Calc. It facilitates the creation of new ODS spreadsheets, seamless format conversion between ODS, XLSX, CSV, and PDF, and sophisticated data automation. Agents can utilize this skill for generating complex formulas, building charts, creating pivot tables, and executing batch processing tasks, making it an essential tool for data analysis, reporting, and data preparation workflows.
Best use case
Automate the generation of recurring reports, convert large datasets between various spreadsheet formats for compatibility, perform ad-hoc data analysis and visualization, prepare financial statements or inventory lists, and manage project data within spreadsheets.
Spreadsheet creation, format conversion (ODS/XLSX/CSV), formulas, data automation with LibreOffice Calc.
A successfully created, modified, or converted spreadsheet file (e.g., ODS, XLSX, CSV, PDF) according to the specified instructions, containing accurate data, applied formulas, or consolidated content. The agent can provide a summary of the operations performed or return insights derived from the spreadsheet analysis.
Practical example
Example input
Generate a Q3 sales summary. Create a new ODS spreadsheet, import sales figures from 'q3_region_north.csv' and 'q3_region_south.csv'. Calculate total sales, average sales per transaction, and identify the top 5 products. Present the data in a table and create a bar chart for regional sales comparison. Finally, convert this report to XLSX format and name it 'Q3_Sales_Report.xlsx'.
Example output
```json
{
"status": "success",
"message": "Q3 sales summary report generated and saved.",
"files": [
{
"name": "Q3_Sales_Report.xlsx",
"format": "XLSX",
"description": "Consolidated Q3 sales data with totals, averages, top products, and a regional sales comparison chart."
}
],
"summary": "Successfully imported sales data, performed calculations, generated a chart, and converted the final report to XLSX format."
}
```When to use this skill
- Creating new spreadsheets in ODS format.
- Converting between ODS, XLSX, CSV, and PDF formats.
- Automating data processing and analysis tasks within spreadsheets.
- Creating formulas, charts, and pivot tables based on raw data.
When not to use this skill
- When real-time collaborative editing by multiple human users is a primary requirement (LibreOffice Calc is primarily a desktop application).
- When highly specialized features or macros exclusive to Microsoft Excel, not available in LibreOffice Calc, are absolutely essential.
- For extremely large-scale data processing that might be better suited for dedicated big data tools.
- When an online, browser-based spreadsheet solution is strictly required.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/calc/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How calc Compares
| Feature / Agent | calc | Standard Approach |
|---|---|---|
| Platform Support | Claude | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | medium | N/A |
Frequently Asked Questions
What does this skill do?
Spreadsheet creation, format conversion (ODS/XLSX/CSV), formulas, data automation with LibreOffice Calc.
Which AI agents support this skill?
This skill is designed for Claude.
How difficult is it to install?
The installation complexity is rated as medium. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Top AI Agents for Productivity
See the top AI agent skills for productivity, workflow automation, operational systems, documentation, and everyday task execution.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# LibreOffice Calc
## Overview
LibreOffice Calc skill for creating, editing, converting, and automating spreadsheet workflows using the native ODS (OpenDocument Spreadsheet) format.
## When to Use This Skill
Use this skill when:
- Creating new spreadsheets in ODS format
- Converting between ODS, XLSX, CSV, PDF formats
- Automating data processing and analysis
- Creating formulas, charts, and pivot tables
- Batch processing spreadsheet operations
## Core Capabilities
### 1. Spreadsheet Creation
- Create new ODS spreadsheets from scratch
- Generate spreadsheets from templates
- Create data entry forms
- Build dashboards and reports
### 2. Format Conversion
- ODS to other formats: XLSX, CSV, PDF, HTML
- Other formats to ODS: XLSX, XLS, CSV, DBF
- Batch conversion of multiple files
### 3. Data Automation
- Formula automation and calculations
- Data import from CSV, database, APIs
- Data export to various formats
- Batch data processing
### 4. Data Analysis
- Pivot tables and data summarization
- Statistical functions and analysis
- Data validation and filtering
- Conditional formatting
### 5. Integration
- Command-line automation via soffice
- Python scripting with UNO
- Database connectivity
## Workflows
### Creating a New Spreadsheet
#### Method 1: Command-Line
```bash
soffice --calc template.ods
```
#### Method 2: Python with UNO
```python
import uno
def create_spreadsheet():
local_ctx = uno.getComponentContext()
resolver = local_ctx.ServiceManager.createInstanceWithContext(
"com.sun.star.bridge.UnoUrlResolver", local_ctx
)
ctx = resolver.resolve(
"uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext"
)
smgr = ctx.ServiceManager
doc = smgr.createInstanceWithContext("com.sun.star.sheet.SpreadsheetDocument", ctx)
sheets = doc.getSheets()
sheet = sheets.getByIndex(0)
cell = sheet.getCellByPosition(0, 0)
cell.setString("Hello from LibreOffice Calc!")
doc.storeToURL("file:///path/to/spreadsheet.ods", ())
doc.close(True)
```
#### Method 3: Using ezodf
```python
import ezodf
doc = ezodf.newdoc('ods', 'spreadsheet.ods')
sheet = doc.sheets[0]
sheet['A1'].set_value('Hello')
sheet['B1'].set_value('World')
doc.save()
```
### Converting Spreadsheets
```bash
# ODS to XLSX
soffice --headless --convert-to xlsx spreadsheet.ods
# ODS to CSV
soffice --headless --convert-to csv spreadsheet.ods
# ODS to PDF
soffice --headless --convert-to pdf spreadsheet.ods
# XLSX to ODS
soffice --headless --convert-to ods spreadsheet.xlsx
# Batch convert
for file in *.ods; do
soffice --headless --convert-to xlsx "$file"
done
```
### Formula Automation
```python
import uno
def create_formula_spreadsheet():
local_ctx = uno.getComponentContext()
resolver = local_ctx.ServiceManager.createInstanceWithContext(
"com.sun.star.bridge.UnoUrlResolver", local_ctx
)
ctx = resolver.resolve(
"uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext"
)
smgr = ctx.ServiceManager
doc = smgr.createInstanceWithContext("com.sun.star.sheet.SpreadsheetDocument", ctx)
sheet = doc.getSheets().getByIndex(0)
sheet.getCellByPosition(0, 0).setDoubleValue(100)
sheet.getCellByPosition(0, 1).setDoubleValue(200)
cell = sheet.getCellByPosition(0, 2)
cell.setFormula("SUM(A1:A2)")
doc.storeToURL("file:///path/to/formulas.ods", ())
doc.close(True)
```
## Format Conversion Reference
### Supported Input Formats
- ODS (native), XLSX, XLS, CSV, DBF, HTML
### Supported Output Formats
- ODS, XLSX, XLS, CSV, PDF, HTML
## Command-Line Reference
```bash
soffice --headless
soffice --headless --convert-to <format> <file>
soffice --calc # Calc
```
## Python Libraries
```bash
pip install ezodf # ODS handling
pip install odfpy # ODF manipulation
pip install pandas # Data analysis
```
## Best Practices
1. Use named ranges for clarity
2. Document complex formulas
3. Use data validation for input control
4. Create templates for recurring reports
5. Store ODS source files in version control
6. Test conversions thoroughly
7. Use CSV for data exchange
8. Handle conversion failures gracefully
## Troubleshooting
### Cannot open socket
```bash
killall soffice.bin
soffice --headless --accept="socket,host=localhost,port=8100;urp;"
```
## Resources
- [LibreOffice Calc Guide](https://documentation.libreoffice.org/)
- [UNO API Reference](https://api.libreoffice.org/)
- [ezodf Documentation](http://ezodf.rst2.org/)
## Related Skills
- writer
- impress
- draw
- base
- xlsx-official
- workflow-automationRelated Skills
nft-standards
Master ERC-721 and ERC-1155 NFT standards, metadata best practices, and advanced NFT features.
nextjs-app-router-patterns
Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.
new-rails-project
Create a new Rails project
networkx
NetworkX is a Python package for creating, manipulating, and analyzing complex networks and graphs.
network-engineer
Expert network engineer specializing in modern cloud networking, security architectures, and performance optimization.
nestjs-expert
You are an expert in Nest.js with deep knowledge of enterprise-grade Node.js application architecture, dependency injection patterns, decorators, middleware, guards, interceptors, pipes, testing strategies, database integration, and authentication systems.
nerdzao-elite
Senior Elite Software Engineer (15+) and Senior Product Designer. Full workflow with planning, architecture, TDD, clean code, and pixel-perfect UX validation.
nerdzao-elite-gemini-high
Modo Elite Coder + UX Pixel-Perfect otimizado especificamente para Gemini 3.1 Pro High. Workflow completo com foco em qualidade máxima e eficiência de tokens.
native-data-fetching
Use when implementing or debugging ANY network request, API call, or data fetching. Covers fetch API, React Query, SWR, error handling, caching, offline support, and Expo Router data loaders (useLoaderData).
n8n-workflow-patterns
Proven architectural patterns for building n8n workflows.
n8n-validation-expert
Expert guide for interpreting and fixing n8n validation errors.
n8n-node-configuration
Operation-aware node configuration guidance. Use when configuring nodes, understanding property dependencies, determining required fields, choosing between get_node detail levels, or learning common configuration patterns by node type.