dream-num/univer-cli/base
- community
Checking that the SKILL.md file is still in the repository.
Create and edit Base database units, tables, fields, records, and views with the Lite Interface.
Install
npx vskill@latest install dream-num/univer-cli/baseSKILL.md
Base units
Model
A Base is one Unit inside a .univer file:
- Resolve
FBaseby Unit ID. Tables own their fields, records, and views; views only add filter,
sort, group, visibility, and type-specific presentation.
- The primary field is the record's visible identity for links, cards, and details. Define it with
insertTable(..., { primaryFieldName }) instead of adding a duplicate label field.
- Use stable Unit/Table/Field/Record/View IDs in Facade relationships and user-facing names for
display. Record values and view config normally refer to Field IDs.
table.getFormulaName()is only the structured-reference name for formulas; it may differ from
the table's display name.
Entry
The CLI owns Unit and Worktree lifecycle; the Facade owns Base content:
execute predefines univerAPI, api, and the FBase named base for the selected Unit. Use base directly; these bindings are reserved and must not be redeclared.
Do not call createBase() after unit add just to obtain a handle. A new Base already contains Table 1 with a primary Name field and Grid; insertTable() also creates a Grid. Run inspect base first, then deliberately reuse, rename, or delete defaults.
Exact API
Use focused discovery such as univer api find recordLink --unit base. Follow every referenced child type: if a result says card?: ICardLayoutConfig, run api show ICardLayoutConfig instead of guessing its shape.
Core contracts
- Add fields one at a time with
FBaseTable.addField(...); there is noaddFieldsmethod. - Single/MultiSelect options use
{ id, name, color? }; records store option IDs, not labels. - Progress values follow its configured range: with
{ start: 0, end: 100 }, 75% is75, not
0.75.
- Money uses
BaseFieldType.Currencyand numeric values; Number is not a semantic substitute. - RecordLink config targets a Table ID and stores target Record IDs. Prefer its dedicated Facade
methods when editing links.
- View config uses Field IDs. Kanban/Gallery card title and fields follow
ICardLayoutConfig;
fieldSettings does not replace the card contract.
Verify
After the last write, check:
univer inspect base ... --jsonfor tables, primary fields, field types and config, record counts,
and view types. It is read-only and accepts no selector.
- In a read-only
execute, explicitlyreturnrecord values plusview.getConfig()/
view.getProjection() for stored IDs and view bindings.
- The rendered required views for blank labels, exposed IDs, implausible dates/percentages, missing
card fields, and empty defaults.
The Base screenshot is ./shots/view.png; it does not accept Sheet ranges or Slide selectors.
For Formula fields, run univer skills get base --full and follow references/formulas.md.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapps/cli/src/skills/runtime/base/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dream-num/univer-cli/base)