officecli-xlsx

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

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/Dhanuzh/DCode-Core --skill officecli-xlsx-dhanuzh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: officecli-xlsx
Source: https://github.com/Dhanuzh/DCode-Core/tree/main/crates/dcode-app/assets/builtin-skills/officecli-xlsx
Command: npx skills add https://github.com/Dhanuzh/DCode-Core --skill officecli-xlsx-dhanuzh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building and editing Excel workbooks programmatically is error-prone: formulas break, columns clip, charts misrender, and cached values go stale. This Skill provides a complete, QA-driven workflow for producing professional .xlsx files through the OfficeCLI tool, covering everything from CSV import to financial-model formatting standards. ## Core Features & Use Cases - Workbook creation and editing: Set cells, formulas, number formats, column widths, named ranges, charts, pivot tables, conditional formatting, and data validation via OfficeCLI commands. - Reading and analysis: Inspect existing workbooks with outline, text, annotated, and HTML views, plus CSS-like queries to find formula errors, broken references, and placeholder tokens. - Financial modeling standards: Enforces industry color coding (blue inputs, black formulas, green cross-sheet links), number formatting conventions, and assumption documentation. - Use Case: Import a 600-row sales CSV, add a revenue summary with SUM formulas and a column chart, apply currency formatting and print layout, then run the full QA cycle to deliver a board-ready workbook with zero formula errors. ## Quick Start Ask the assistant to create an Excel workbook from your data or to read and analyze an existing .xlsx file, and it will use OfficeCLI to build, format, and validate the result.

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 create to make the file, then officecli set to write values and formulas such as SUM(B2:B4) with number formats in one call. Finish with officecli close and officecli validate to confirm the workbook has no errors.

How do I import a CSV file into an xlsx workbook?

Run officecli import with the target sheet, the CSV file path, and the --header flag to add AutoFilter and freeze the header row. Column widths and number formats still need a follow-up pass with officecli set.

Does officecli work on Windows PowerShell?

Yes, the officecli tool itself is cross-platform and installs on Windows via an install.ps1 script. However, the shell snippets in this Skill are written for bash/zsh, so on Windows you must translate syntax like heredocs, &&, and grep into PowerShell equivalents.

Why do my cross-sheet formulas break when written 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 single-quoted delimiter, then verify with officecli get that the formula shows a plain exclamation mark.

How do I verify an xlsx file has no formula errors before delivering it?

Run officecli view issues, query for each error type like #REF! and #DIV/0!, then run officecli validate after closing any resident session. Also render the workbook with view html to catch clipped columns, truncated titles, and leftover placeholder tokens.

Can I change a chart's data series after creating it?

No, chart series are immutable after creation in officecli. To add or change a series, remove the chart and re-add it with the full series list; position and size remain editable via the anchor property.