univer-cli — скилл для Claude Code: работа с файлами .univer
Скилл учит агента собирать и проверять многоблочные файлы .univer: таблицы, документы, слайды, базы и канвасы.
npx skills add dream-num/skills --skill univer-cli -a claude-codeЧто делает univer-cli
Univer CLI — терминальный инструмент для авторской работы с файлами .univer. Один такой файл может содержать несколько Unit: Sheet, Doc, Slide, Base и Board, каждый со своим unitId. Скилл подгружает в агента нужные инструкции под конкретную задачу, чтобы команды и Facade API совпадали с установленной версией CLI.
Внутри — набор runtime-скиллов, которые ставятся вместе с CLI: core с общей моделью и рабочим процессом, по одному скиллу на каждый тип Unit, плюс embed для вложения одного Unit в другой и cross-unit-formula для формул, читающих данные соседнего Unit. Правки идут в изолированном worktree, а не в основной ветке trunk, поэтому изменения попадают в файл только после явного слияния. Успешное выполнение команды ещё не значит, что модель записалась правильно: скилл требует прочитать целевой объект обратно и проверить отрисованный результат, если важен внешний вид.
Перед началом работы нужен установленный CLI: npm install -g univer-cli, затем univer doctor для проверки окружения. Если doctor сообщает о блокирующей ошибке рантайма, скилл советует остановиться и показать диагностику, а не переключаться на сторонние инструменты. Прямое редактирование хранилища .univer и сторонние писатели файлов не поддерживаются.
Какие задачи решает
- собрать таблицу с формулами и графиками в файле
.univer - вложить один Unit внутрь другого
- прочитать диапазон Sheet из ячейки соседнего Unit
- проверить, что записанная модель совпадает с задуманной
- выгрузить слайды или документ в нужный формат
Примеры запросов агенту
- Загрузи скилл univer-cli и покажи, какие Unit есть в
report.univer - Создай в worktree новый Sheet с таблицей продаж и проверь результат через readback
- Сделай скриншот страницы слайда из
deck.univerи покажи, как он выглядит
Как установить univer-cli
1Через Skills CLI (Vercel)
npx skills add dream-num/skills --skill univer-cli -a claude-code2Вручную: положить файлы
~/.claude/skills/univer-cli/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/univer-cli/
1Через Skills CLI (Vercel)
npx skills add dream-num/skills --skill univer-cli -a codex2Вручную: положить файлы
.agents/skills/univer-cli/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dream-num/skills --skill univer-cli -a cursor2Вручную: положить файлы
.cursor/skills/univer-cli/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dream-num/skills univer-cli2Вручную: положить файлы
.github/skills/univer-cli/SKILL.md1Через Skills CLI (Vercel)
npx skills add dream-num/skills --skill univer-cli -a gemini-cli2Командой платформы
gemini skills install https://github.com/dream-num/skills --path skills/univer-cliВручную: положить файлы
.devin/skills/univer-cli/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dream-num/skills --skill univer-cli -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о univer-cli
Как установить univer-cli в Claude?
Выполните npx skills add dream-num/skills --skill univer-cli -a claude-code. Скилл появится в ~/.claude/skills/univer-cli/SKILL.md. Сам CLI ставится отдельно: npm install -g univer-cli.
Что делает univer-cli?
Даёт агенту инструкции для работы с многоблочными файлами .univer: создание и правка Sheet, Doc, Slide, Base и Board, вложение Unit друг в друга, чтение модели обратно и проверка отрисованного результата.
Нужно ли что-то ещё кроме скилла?
Да, сам CLI. Без него скилл не заработает, а univer doctor покажет состояние рантайма. Runtime-скиллы идут в комплекте с CLI, поэтому их версии совпадают с установленной.
Исходный текст
SKILL.md · Apache-2.0
--- name: univer-cli description: "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, screenshots, or viewer handoff." hidden: true --- # Univer CLI Terminal-native authoring and inspection for multi-Unit `.univer` files. The CLI provides isolated worktrees, version-matched Facade guidance, model readback, and browser review. Install: ```bash npm install -g univer-cli univer doctor ``` ## Keep the CLI current Use these commands to compare the installed CLI with the latest public release: ```bash univer --version npm view univer-cli@latest version --registry=https://registry.npmjs.org/ ``` When a newer version is available, complete the current Univer task before updating: ```bash univer update univer doctor --json univer skills get core ``` If `univer update` reports that the shared daemon must stop, rerun it with `--force` after confirming that stopping the daemon is safe. Reload core and the target Unit Skill after every update. ## Start here This file is the discovery entry, not the operational guide. Before using Univer commands for a task, load the complete core Skill from the installed CLI: ```bash univer skills get core # shared model, workflow, evidence, and handoff univer skills get core --full # include direct references and templates ``` Runtime Skills ship with the CLI so their commands and Facade APIs match the installed version. ## Core Model - A `.univer` path is the authoritative multi-Unit target. Always address the file explicitly. - A Unit is a top-level Sheet, Doc, Slide, Base, or Board identified by `unitId`; sheet names, pages, tables, ranges, shapes, and records live inside that Unit. - `trunk` is the reviewed main line. A worktree is an isolated scope for agent changes; there is no implicit current worktree. - Command success is not correctness evidence. Read back the target model, verify task-specific assertions, and inspect rendered output when appearance matters. Use public CLI and Facade surfaces. The worktree commit path is the durable write boundary, and merge remains an explicit review decision. ## Unit Skills After core, load the Skill matching the target top-level Unit before authoring: ```bash univer skills get sheet univer skills get doc univer skills get slide univer skills get base univer skills get board ``` Use `univer skills list` to discover the installed set. Each Unit Skill owns its creation recipe, Facade entrypoints, readback guidance, and visual verification requirements. For cross-Unit composition, load the additional Topic Skill after the host and child Unit Skills: ```bash univer skills get embed ``` For a cross-Unit formula in a Sheet cell or formula-driven Shape, load its Topic Skill after the Host and Sheet or Base Source Unit Skills: ```bash univer skills get cross-unit-formula ``` ## Task Routing | Task | Load and use | | --- | --- | | Inspect or edit spreadsheet values, formulas, formatting, charts, or tables | core + `sheet` | | Create or refine document paragraphs, rich text, tables, charts, or page layout | core + `doc` | | Build or review presentation pages, shapes, text, or images | core + `slide` | | Create or edit structured Base tables, fields, records, or views | core + `base` | | Create or edit a Board canvas, charts, and other elements | core + `board` | | Embed one Unit inside another Unit | core + host Unit + child Unit + `embed` | | Read a Sheet range or Base table column from a Sheet cell or formula-driven Shape | core + Host Unit + Source Unit + `cross-unit-formula` | ## Why Univer CLI - One `.univer` target can contain Sheet, Doc, Slide, Base, and Board Units addressed by `unitId`. - Worktrees isolate agent changes until review and merge. - Offline `api show` / `api find` resolves exact Facade symbols for the installed SDK. - Runtime readback and the viewer verify the stored model and rendered result. - Import/export and screenshots use the product runtime rather than unrelated file writers. Do not edit `.univer` storage directly or substitute unrelated writers. Follow the loaded core and Unit Skills for the supported path. ## Diagnose ```bash univer --help univer doctor univer skills list univer skills path ``` Use `univer help <command>` for exact syntax. If the CLI is unavailable or `doctor` reports a blocking runtime failure, stop and report the diagnostic instead of switching tools.
© dream-num · Apache-2.0 · dream-num/skills