officecli-xlsx

Create, edit, and validate Excel .xlsx workbooks using the officecli command-line tool.

284|54|Updated Jun 23, 2026
One-click install
npx skills add https://github.com/nomifun/nomifun-desktop --skill officecli-xlsx-nomifun
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: officecli-xlsx
Source: https://github.com/nomifun/nomifun-desktop/tree/main/crates/backend/nomifun-app/assets/builtin-skills/officecli-xlsx
Command: npx skills add https://github.com/nomifun/nomifun-desktop --skill officecli-xlsx-nomifun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building or editing Excel workbooks programmatically often produces broken formulas, clipped columns, stale cached values, and invalid XML. This Skill provides a disciplined workflow for creating, reading, and modifying .xlsx files through the officecli CLI so delivered spreadsheets are formula-correct, properly formatted, and visually verified. ## Core Features & Use Cases - Workbook creation and editing: Set cell values, formulas, number formats, column widths, named ranges, charts, pivot tables, conditional formatting, and data validation via officecli commands. - Reading and analysis: Inspect sheets with outline, text, HTML, and annotated views, plus CSS-like queries to find formula errors, placeholders, and broken references. - CSV/TSV bulk import: Load large datasets into sheets with the native import command or batched value-set operations. - Mandatory QA cycle: Validate files, query for Excel error types (#REF!, #DIV/0!, etc.), and audit rendered HTML output before delivery. - Use Case: Build a financial model with color-coded inputs, live formulas, charts, and print-ready page setup, then verify every formula's cached value before sending it to stakeholders. ## Quick Start Ask the assistant to create an Excel workbook with monthly revenue data, a SUM total formula, currency formatting, and a chart, then validate and preview it.

Frequently Asked Questions about officecli-xlsx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an Excel file with formulas from the command line?▼

Use officecli to create the file, then set cell values and formulas with commands like officecli set FILE /Sheet1/B5 --prop formula="SUM(B2:B4)". Finish with column widths, number formats, and officecli validate to confirm the workbook has no errors.

How do I import a CSV file into an xlsx spreadsheet?▼

Run officecli import FILE /Sheet1 --file data.csv --header to load the CSV in one call, with AutoFilter and a frozen header row. For custom type coercion or formula injection, generate batched value-set operations with a Python script instead.

Why does my cross-sheet Excel formula break when set from the shell?▼

Shells mangle the exclamation mark in references like Sheet1!A1 into a backslash-escaped form, silently breaking the formula. Write cross-sheet formulas through a batch heredoc with a quoted delimiter (<<'EOF') and verify with officecli get that no backslash remains.

Does officecli support charts and pivot tables in xlsx files?▼

Yes, officecli can add charts, pivot tables, slicers, and sparklines to workbooks. Chart data can come from inline values, a 2D dataRange, or per-series references, and chart anchors must be sized explicitly since there is no auto-fit.

Why does my delivered Excel file show wrong values in formula cells?▼

Newly written formulas ship without cached values, and downstream formulas can cache stale results from upstream cells. Re-touch dependent cells with set after multi-formula builds, then check cachedValue with officecli get to confirm plausible numbers.

What are the limitations of officecli for xlsx editing?▼

Chart anchors and series are immutable after creation, requiring remove and re-add to resize. Known bugs include pareto chart types, axis labelRotation, and data bars without explicit min/max, all of which emit invalid XML.