{"slug":"univer-cli","title":"univer-cli","summary":"Use when installing or operating Univer CLI for .univer files, spreadsheets, documents, slides, Base databases, Board canvases, cross-Unit embedding, worktrees, Facade authoring, inspection, verification, import/export, PDF printing, screenshots, or viewer handoff.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-26T20:26:07.139287Z","repo":{"url":"https://github.com/dream-num/univer-cli","stars":24,"forks":5,"license":"Apache-2.0","updatedAt":"2026-11-26T14:14:10Z"},"bodyHtml":"<hr>\n<h2>name: univer-cli\ndescription: \"Use when installing or operating Univer CLI for .univer files, spreadsheets, documents, slides, Base databases, Board canvases, cross-Unit embedding, worktrees, Facade authoring, inspection, verification, import/export, PDF printing, screenshots, or viewer handoff.\"</h2>\n<h1>Univer CLI</h1>\n<p>Terminal-native authoring and inspection for multi-Unit <code>.univer</code> files. The CLI provides isolated\nworktrees, version-matched Facade guidance, model readback, and browser review.</p>\n<p>Install:</p>\n<pre><code>npm install -g univer-cli\nuniver doctor\n</code></pre>\n<h2>Keep the CLI current</h2>\n<p>Before starting a new Univer task, apply any available CLI update:</p>\n<pre><code>univer update\nuniver doctor --json\nuniver skills get core\n</code></pre>\n<p>Continue only after <code>doctor</code> reports that the CLI is ready. Reload core and the target Unit Skill\nafter every update. Once task work begins, keep the CLI and loaded Skills unchanged until handoff;\napply later updates before the next new task.</p>\n<h2>Start here</h2>\n<p>This file is the discovery entry, not the operational guide. Before using Univer commands for a\ntask, load the complete core Skill from the installed CLI:</p>\n<pre><code>univer skills get core          # shared model, workflow, evidence, and handoff\nuniver skills get core --full   # include direct references and templates\n</code></pre>\n<p>Runtime Skills ship with the CLI so their commands and Facade APIs match the installed version.</p>\n<h2>Core Model</h2>\n<ul>\n<li>A <code>.univer</code> path is the authoritative multi-Unit target. Always address the file explicitly.</li>\n<li>A Unit is a top-level Sheet, Doc, Slide, Base, or Board identified by <code>unitId</code>; sheet names, pages,\ntables, ranges, shapes, and records live inside that Unit.</li>\n<li><code>trunk</code> is the reviewed main line. A worktree is an isolated scope for agent changes; there is no\nimplicit current worktree.</li>\n<li>Command success is not correctness evidence. Read back the target model, verify task-specific\nassertions, and inspect rendered output when appearance matters.</li>\n</ul>\n<p>Use public CLI and Facade surfaces. The worktree commit path is the durable write boundary, and\nmerge remains an explicit review decision.</p>\n<h2>Unit Skills</h2>\n<p>After core, load the Skill matching the target top-level Unit before authoring:</p>\n<pre><code>univer skills get sheet\nuniver skills get doc\nuniver skills get slide\nuniver skills get base\nuniver skills get board\n</code></pre>\n<p>Use <code>univer skills list</code> to discover the installed set. Each Unit Skill owns its creation recipe,\nFacade entrypoints, readback guidance, and visual verification requirements.</p>\n<p>For cross-Unit composition, load the additional Topic Skill after the host and child Unit Skills:</p>\n<pre><code>univer skills get embed\n</code></pre>\n<p>For a cross-Unit formula in a Sheet cell or formula-driven Shape, load its Topic Skill after the\nHost and Sheet or Base Source Unit Skills:</p>\n<pre><code>univer skills get cross-unit-formula\n</code></pre>\n<h2>Task Routing</h2>\n<table>\n<thead>\n<tr>\n<th>Task</th>\n<th>Load and use</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Inspect or edit spreadsheet values, formulas, formatting, charts, or tables</td>\n<td>core + <code>sheet</code></td>\n</tr>\n<tr>\n<td>Create or refine document paragraphs, rich text, tables, charts, or page layout</td>\n<td>core + <code>doc</code></td>\n</tr>\n<tr>\n<td>Build or review presentation pages, shapes, text, or images</td>\n<td>core + <code>slide</code></td>\n</tr>\n<tr>\n<td>Create or edit structured Base tables, fields, records, or views</td>\n<td>core + <code>base</code></td>\n</tr>\n<tr>\n<td>Create or edit a Board canvas, charts, and other elements</td>\n<td>core + <code>board</code></td>\n</tr>\n<tr>\n<td>Embed one Unit inside another Unit</td>\n<td>core + host Unit + child Unit + <code>embed</code></td>\n</tr>\n<tr>\n<td>Read a Sheet range or Base table column from a Sheet cell or formula-driven Shape</td>\n<td>core + Host Unit + Source Unit + <code>cross-unit-formula</code></td>\n</tr>\n</tbody>\n</table>\n<h2>Why Univer CLI</h2>\n<ul>\n<li>One <code>.univer</code> target can contain Sheet, Doc, Slide, Base, and Board Units addressed by <code>unitId</code>.</li>\n<li>Worktrees isolate agent changes until review and merge.</li>\n<li>Offline <code>api find</code> searches the installed SDK index by keyword; <code>api show</code> resolves exact Facade symbols and details.</li>\n<li>Runtime readback and the viewer verify the stored model and rendered result.</li>\n<li>Import/export, PDF printing, and screenshots use the product runtime rather than unrelated file writers.</li>\n</ul>\n<p>Do not edit <code>.univer</code> storage directly or substitute unrelated writers. Follow the loaded core and\nUnit Skills for the supported path.</p>\n<h2>Diagnose</h2>\n<pre><code>univer --help\nuniver doctor\nuniver skills list\nuniver skills path\n</code></pre>\n<p>Use <code>univer help &lt;command&gt;</code> for exact syntax. If the CLI is unavailable or <code>doctor</code> reports a\nblocking runtime failure, stop and report the diagnostic instead of switching tools.</p>\n","files":[{"path":"SKILL.md","sizeBytes":5029,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-26T20:26:26.002858Z","sha256":"88E101D13C933CD7856228853A82C1C07C60A12731073BA767F3FA1177D01996","sizeBytes":2008},"review":null,"source":{"repositoryUrl":"https://github.com/dream-num/univer-cli","path":"skills/univer-cli","license":"Apache-2.0","commit":"d9f92fb3060ad2ca55e90b21d29b379e4b1ea866","subtreeSha":"C7E3FB7779A518E6623B05F96C485E175595CB3C26068597F6D92D8A3A6FC03B","lastSyncedAt":"2026-11-26T20:26:07.136053Z"},"reviewedAt":"2026-11-26T20:27:15.586277Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/dream-num/univer-cli/tree/main/skills/univer-cli"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install dream-num-univer-cli@llmmart"},{"target":"git","command":"git clone https://github.com/dream-num/univer-cli.git"}]}