Token导航 LogoToken导航

Agent Skill · 前端设计

nocobase-data-modeling(nocobase 数据建模)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

nocobase-data-modeling 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 1,402。

总安装 6,022周安装 246GitHub Stars 23下载 1,948核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nocobase-data-modeling(nocobase 数据建模)
来源仓库:https://github.com/nocobase/skills
仓库路径:skills/nocobase-data-modeling
安装命令:
npx skills add https://github.com/nocobase/skills --skill nocobase-data-modeling
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nocobase/skills --skill nocobase-data-modeling

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

构建 NocoBase 数据模型的实体关系与字段定义。适合从零开始设计数据库结构或优化现有模型。提供可视化建模工具和 SQL 脚本自动生成。需考虑字段类型、索引策略和关联约束合理性。建议在设计阶段充分沟通业务需求以防返工。

nocobase-data-modeling 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/nocobase-data-modeling

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/nocobase/skills --skill nocobase-data-modeling;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

nocobase-data-modeling 怎么安装?

在终端执行 npx skills add https://github.com/nocobase/skills --skill nocobase-data-modeling。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

nocobase-data-modeling 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

nocobase-data-modeling 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/nocobase/skills --skill nocobase-data-modeling 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

nocobase-data-modeling 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

nocobase-data-modeling 用的人多吗?

公开数据是累计安装 6,022 次,近一周安装 246 次,下载 1,948 次,GitHub 23 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

nocobase-data-modeling 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
nocobase-data-modeling

nocobase 数据建模 · 本页

6,02223执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

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
  • Create or update a collection with compact payload: collections apply
  • Create or update fields with compact payload: 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 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, 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. Do not reinterpret a file-first request as a general collection just because extra metadata fields are also needed.
  4. Prefer the compact payloads supported by collections apply and fields apply. Let the server fill derived defaults.
  5. Do not guess special capabilities. Check references first for plugin-backed fields, relation variants, special collection types, and view-backed models.
  6. Relations come after the base collection and scalar fields are correct.
  7. Prefer collections get for routine post-mutation read-back. Use the verification result returned by collections apply when normalized diagnostics are needed.
  8. If the requested behavior cannot be expressed through the final command surface in the chosen transport, stop and explain what is missing instead of silently falling back to an older path.

Compact Payload Rules

  • When creating a collection with collections apply, do not send built-in system fields such as id, createdAt, createdBy, updatedAt, updatedBy, or template-owned structural fields unless the current command help explicitly says they are required.
  • For general, tree, file, and other built-in templates, assume the server will create the template defaults. Only send business fields that the user is actually adding.
  • For file, do not manually send built-in fields such as title, filename, extname, size, mimetype, path, url, preview, storage, or meta unless the task is explicitly customizing one of those existing fields on an already-created collection.
  • For tree, do not manually include parentId, parent, or children in the compact create payload unless you are intentionally overriding an existing schema with a fully expanded raw shape.
  • Every custom field supplied to collections apply or fields apply still needs an explicit interface. The compact API reduces derived options, but it does not infer business field interfaces from the field name alone.
  • For local choice fields passed through collections apply or fields apply (select, multipleSelect, radioGroup, checkboxGroup), every enum item must be an object with explicit value, label, and color. Do not use string shorthand such as ["draft", "paid"].
  • Allowed choice colors are red, magenta, volcano, orange, gold, lime, green, cyan, blue, geekblue, purple, and default.
  • Usually do not pass type. Let the server derive it from interface. Only pass type when the current command help or a reference explicitly requires it.
  • Unknown interface values now fail fast. If the correct interface is unclear, stop and inspect references or command help instead of guessing.
  • If you choose a plugin-backed interface such as vditor, formula, map geometry fields, or special relation fields, confirm the plugin-backed capability first.
  • If a reference file shows a fully expanded collection JSON, treat it as structure reference or read-back reference, not as the preferred compact apply payload.

Default Interface Bias

  • Prefer the common built-in interface first when the user does not request a plugin-specific editor or behavior.
  • For long-form plain text without markdown semantics, prefer textarea.
  • For markdown content, prefer vditor first when the plugin capability is available.
  • Only fall back from vditor to ordinary markdown when the plugin is unavailable or the user explicitly wants the simpler markdown field.
  • Do not add tableoid unless the user explicitly asks for that system-info field.
  • For map fields, use the exact interface requested by the spatial requirement, such as point, lineString, circle, or polygon. Do not collapse them into generic json or text.

Formula Rule

  • For formula, do not invent expressions from memory.
  • Read references/fields/plugins/formula.md first.
  • Choose the engine first, then write the expression in that engine's syntax.
  • In compact payloads, prefer only the parameters that are actually needed, usually name, title, interface, expression, and optional engine or dataType.
  • If the intended engine or syntax is unclear, stop and ask instead of guessing.

Relation Key Rule

  • For relation fields, read references/relation-fields.md before mutation.
  • If the relation should be stable and readable, pass explicit keys such as foreignKey, through, otherKey, sourceKey, and targetKey instead of relying on generated defaults.
  • Treat generated key names as fallback behavior, not as the preferred modeling result.

Working Process

1. Inspect

  • Start with collections list or collections get.
  • When you need the current field set of one collection, use collections fields list.
  • When the request involves a view-backed model, inspect db-views list|get first.
  • In CLI flows, run the relevant command --help before first use in the current task.
  • For broad modeling tasks, load the matching references before writing.

2. Decide the model

Before writing, determine:

  • what the collection represents;
  • which collection type is correct;
  • which fields are required;
  • whether relations are needed;
  • whether any plugin capability is required;
  • what verification output will prove the result is correct.

Summarize the intended model in natural language before destructive or broad changes.

3. Apply

  • Use collections apply for collection-level creation or updates.
  • Use fields apply for targeted field creation or updates.
  • Use collections destroy only for explicit delete requests.

Compact payloads are preferred. Supply only the fields the command contract requires, such as collection template/name/title and field name/title/interface, plus any necessary special options that cannot be derived safely.

For collection creation, this usually means:

  • collection-level options such as name, title, template, and a small number of template-specific flags;
  • business fields only, not default system/template fields;
  • relation-specific options only when the field interface is relational.

4. Verify

After each mutation, usually read back with collections get. When normalized diagnostics are needed, rely on the verification result returned by collections apply.

Confirm:

  1. the collection type is correct;
  2. the expected fields exist with the right interface/type/title;
  3. relation ownership and reverse behavior are correct when relations were changed;
  4. special collections still satisfy their source constraints.

Reference Loading

Load only the references needed for the active task:

  • Collection type choice: references/collection-types/index.md
  • Field family and supported options: references/field-capabilities.md
  • Relations: references/relation-fields.md
  • Plugin-backed capabilities: references/plugin-provided-capabilities.md
  • Whole-schema examples after lower-level decisions: references/model-packs/*.md
  • Verification order and template-specific checks: references/verification-playbook.md

After opening an index file, continue only into the matching subtype file that is actually in scope.

Collection Type Safeguards

  • general: ordinary business records.
  • tree: hierarchical data.
  • file: file-centric records where the file is first-class.
  • calendar: schedule-oriented objects.
  • sql, view, inherit: only after capability and prerequisites are confirmed.

Do not emulate tree or file with weaker general-table substitutes unless the user explicitly asks for that tradeoff.

Explicit override rule:

  • If the request contains "file collection", "file table", "文件表", or equivalent wording that makes the file the primary record, this overrides any default bias toward general.
  • When the request mentions contracts as managed files, scanned documents, certificates, invoices, archives, or uploaded document records, default to file unless the user explicitly says the file is only a subordinate attachment on another business table.

Field and Relation Safeguards

  • Use references/field-capabilities.md as the source of truth for interface support.
  • Do not guess plugin-backed interfaces such as region, special media, or custom relation capabilities.
  • Use references/relation-fields.md before creating or changing relations.
  • Verify both sides after relation changes, because reverse fields or keys may be created as side effects.

Error Handling

  • 400 or 422: inspect the payload, then correct collection type, field interface, missing required options, enum shape, missing/invalid enum colors, or relation keys before retrying.
  • Auth errors: stop and ask the user to restore access for the chosen transport.
  • Missing plugin or view prerequisite: stop and tell the user exactly what is missing.

Reference Index

TopicFile
Collection type selectionreferences/collection-types/index.md
Field capability matrixreferences/field-capabilities.md
Relation overviewreferences/relation-fields.md
Plugin-backed modeling capabilitiesreferences/plugin-provided-capabilities.md
Whole-schema examplesreferences/model-packs/*.md
Verification order and checksreferences/verification-playbook.md
Decision helperreferences/decision-matrix.md

平台分布

Codex

35.29%
按下载量换算687

Claude

28.29%
按下载量换算551

Cursor

20.47%
按下载量换算399

Gemini CLI

9.63%
按下载量换算188

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/nocobase/skills --skill nocobase-data-modeling 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills