nocobase-data-modeling
FreeNo executable scriptsNot checkedNocoBase 2 only; never use in a NocoBase 3 project. Create and manage NocoBase data models through the available data-modeling surface. Use when users want to…
About this skill
Goal
Use the available NocoBase data-modeling surface to inspect and change collections, fields, relations, and view-backed schemas.
Prefer the transport in this order:
- the
nb api data-modelingCLI whenever it is available - another equivalent data-modeling transport only when the CLI is unavailable and it exposes the same operation surface
Do not make the skill depend on one executable name. Treat CLI command names and equivalent wrappers as transport details around the same modeling operations.
Transport-selection rule:
- Check whether the
nb api data-modelingCLI is available in the current environment. - If it is available, use the CLI.
- If the CLI is available but not authenticated for the target app, stop and guide the user to authenticate the CLI.
- Only fall back to another equivalent transport when the CLI itself is unavailable.
Read references/decision-matrix.md first when the request is broad or the correct modeling path is unclear.
Mandatory Gates
- Confirm the chosen data-modeling transport is reachable and authenticated before any write operation. If
nb api data-modelingCLI is available, that should be the chosen transport. - For plugin-backed tables or fields, read
references/plugin-provided-capabilities.mdbefore mutating schema. - For
viewcollections, verify the upstream database view exists withdb-views list|getbefore creating or updating anything. - Before using a CLI modeling command you have not used yet in the current task, run its
--helponce and follow the generated help text for flags and examples. When CLI is unavailable and another non-CLI transport must be used, inspect its exposed parameter schema before first use.
Stop and ask the user to fix auth when the chosen transport returns 401, 403, Auth required, or equivalent access errors. If the chosen transport is nb api data-modeling CLI, guide the user to restore CLI authentication rather than switching transports.
Final Command Surface
Use only this final data-modeling operation surface:
- Inspect collections:
collections list - Inspect one collection:
collections get - Inspect fields in one collection:
collections fields list - Inspect enabled external data sources:
dataSources list-enabled - Inspect collections in one external data source:
dataSources collections list - Inspect fields in one external data source collection:
dataSourcesCollections.fields list - Create or update a collection with compact payload:
collections apply - Create or update fields with compact payload:
fields apply - Create or update external data source fields with compact payload:
dataSourcesCollections.fields apply - Delete a collection:
collections destroy - Inspect database views:
db-views list|get
When the transport is CLI-based, prefer learning exact flags from help instead of keeping large command-shape reminders in prompt context:
nb api data-modeling collections apply --helpnb api data-modeling collections fields list --helpnb api data-modeling fields apply --helpnb api data-modeling data-sources list-enabled --helpnb api data-modeling data-sources collections list --helpnb api data-modeling data-sources-collections fields list --helpnb api data-modeling data-sources-collections fields apply --helpnb api data-modeling collections destroy --help
Do not prefer older low-level collection or nested field commands when the final command surface can handle the task.
Core Rules
- Decide collection type first. Never infer
general,tree,file,calendar,comment,sql,view, orinheritfrom the name alone. - If the user explicitly asks for a file table, file collection,
template: "file", or uses wording such as "文件表", "合同文件", "扫描件", "证书文件", or "the file itself is the record", treat that as a binding collection-type requirement and choosetemplate: "file"first. - If the user explicitly asks for a comment table, comment collection, comments,
template: "comment", "评论表", or "评论插件的表", treat that as a binding plugin-backed collection-type requirement and choosetemplate: "comment"after the comments plugin gate. - Do not reinterpret a file-first or comment-first request as a
generalcollection just because extra metadata fields are also needed. - Prefer the compact payloads supported by
collections applyandfields apply. Let the server fill derived defaults. - Do not guess special capabilities. Check references first for plugin-backed fields, relation variants, special collection types, and view-backed models.
- Relations come after the base collection and scalar fields are correct.
- Prefer the structured response returned by
collections applyorfields applyfor routine post-mutation confirmation. Use follow-upcollections getorcollections fields listonly when the apply response is missing details needed for the task, or when relation/template side effects must be inspected in full. 9
Install nocobase-data-modeling in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
shelllocal file readsBundled files
FAQ
What does the nocobase-data-modeling skill do?
NocoBase 2 only; never use in a NocoBase 3 project. Create and manage NocoBase data models through the available data-modeling surface. Use when users want to inspect or change collections, fields, relations, or view-backed schemas in a NocoBase app.
How do I install the nocobase-data-modeling skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the nocobase-data-modeling skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic