Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nocobase-data-modeling

БесплатноБез исполняемых скриптовНе проверен

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…

nocobaseот nocobase★ 54 звезды на GitHub6 установок в других каталогах

Об этом скилле

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-modeling CLI 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:

  1. Check whether the nb api data-modeling CLI is available in the current environment.
  2. If it is available, use the CLI.
  3. If the CLI is available but not authenticated for the target app, stop and guide the user to authenticate the CLI.
  4. 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

  1. Confirm the chosen data-modeling transport is reachable and authenticated before any write operation. If nb api data-modeling CLI is available, that should be the chosen transport.
  2. For plugin-backed tables or fields, read references/plugin-provided-capabilities.md before mutating schema.
  3. For view collections, verify the upstream database view exists with db-views list|get before creating or updating anything.
  4. Before using a CLI modeling command you have not used yet in the current task, run its --help once 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 --help
  • nb api data-modeling collections fields list --help
  • nb api data-modeling fields apply --help
  • nb api data-modeling data-sources list-enabled --help
  • nb api data-modeling data-sources collections list --help
  • nb api data-modeling data-sources-collections fields list --help
  • nb api data-modeling data-sources-collections fields apply --help
  • nb 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

  1. Decide collection type first. Never infer general, tree, file, calendar, comment, sql, view, or inherit from the name alone.
  2. 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 choose template: "file" first.
  3. 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 choose template: "comment" after the comments plugin gate.
  4. Do not reinterpret a file-first or comment-first request as a general collection just because extra metadata fields are also needed.
  5. Prefer the compact payloads supported by collections apply and fields apply. Let the server fill derived defaults.
  6. Do not guess special capabilities. Check references first for plugin-backed fields, relation variants, special collection types, and view-backed models.
  7. Relations come after the base collection and scalar fields are correct.
  8. Prefer the structured response returned by collections apply or fields apply for routine post-mutation confirmation. Use follow-up collections get or collections fields list only when the apply response is missing details needed for the task, or when relation/template side effects must be inspected in full. 9
Полный SKILL.md на GitHub

Установить nocobase-data-modeling в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

shell
local file reads

Вложенные файлы

references/cli-mutation-sequences.mdreferences/collection-types/calendar.mdreferences/collection-types/comment.mdreferences/collection-types/file.mdreferences/collection-types/general.mdreferences/collection-types/index.mdreferences/collection-types/inherit.mdreferences/collection-types/sql.mdreferences/collection-types/tree.mdreferences/collection-types/view.mdreferences/decision-matrix.mdreferences/field-capabilities.mdreferences/fields/advanced-plugin-fields.mdreferences/fields/choices.mdreferences/fields/datetime.mdreferences/fields/index.mdreferences/fields/media-and-structured.mdreferences/fields/plugins/code.mdreferences/fields/plugins/encryption.mdreferences/fields/plugins/formula.mdreferences/fields/plugins/map-fields.mdreferences/fields/plugins/sequence.mdreferences/fields/plugins/sort.mdreferences/fields/scalar.mdreferences/fields/system-and-advanced.mdreferences/model-packs/calendar-appointments.mdreferences/model-packs/contracts-files.mdreferences/model-packs/index.mdreferences/model-packs/orders.mdreferences/model-packs/person-students.mdreferences/model-packs/sql-view-analytics.mdreferences/model-packs/tree-categories.mdreferences/plugin-provided-capabilities.mdreferences/relation-fields.mdreferences/relations/index.mdreferences/relations/m2m.mdreferences/relations/m2o.mdreferences/relations/mbm.mdreferences/relations/o2m.mdreferences/relations/o2o.md

FAQ

Что делает скилл nocobase-data-modeling?

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.

Как установить скилл nocobase-data-modeling?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nocobase-data-modeling запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nocobase-data-modeling с