AGENT SKILL
data-modelling
Route data modelling decisions - models, fields, layers, state, invariants, search, migrations.
- License 许可
- AGPL-3.0
- 所属仓库
- norbital-ai/oss
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- data-modelling
- description
- Route data modelling decisions - models, fields, layers, state, invariants, search, migrations.
03 SKILL.md 正文
Protocol
- Decide the models. Prefer fewer. A value its parent owns, with no identity, lifecycle, permissions, history or relational query of its own, is inline. Configured variation is records; source defines the language.
- Read the field contract:
import('@norbital-ai/bolt').ModelLiteral,FieldKind. - Declare invariants on the model before writing callback code. Use named
constraintsfor checks, locks, period exclusions and uniqueness. Declare state edges, indexes and computed values on the model. - Declare reads as output trees and writes as column trees. Transforms derive and validate values; policy verdicts judge caller authority. A batch commits whole.
- Business operations are automations; authority is policies.
- Declare
record_labelonce when a readable identifier exists. - Add a text entry under
indexesfor searchable fields beyondrecord_label; the toolbar and finder reuse it. - Review the generated migration's destructive steps.
Routing (authoring-tenant-workspace skill)
| Need | Reference |
|---|---|
| Model or inline value, runtime configuration | references/model-boundaries.md |
| Field kinds, links, layers, locks, callbacks, search, syncs | references/models-and-modeling.md |
| Dates, periods | references/dates-and-time.md |
| Reads, batches, transactions | references/data-access.md |
| Seeds, migrations | references/generated-and-build.md |
04 同仓库更多 Skills
norbital-platform
How Norbital behaves at runtime - approvals, policies, history, audit, agent limits. Read before answering.
★ 1
bolt-requirements
Turn a vague business requirement into a concrete Norbital build plan a stakeholder can confirm.
★ 1
bolt-primer
Build a Bolt workspace with no other skill - source roles, contract queries, authoring order, pitfalls.
★ 1
bolt-feasibility
Decide per sub-function whether a business function is native, mediated, or not appropriate on Norbital.
★ 1
authoring-test-suites
Choose, write and review Bolt tests that fail for a named production defect.
★ 1
authoring-tenant-workspace
Index of Bolt authoring references - models, access, apps, automations, integrations, UI, build.
★ 1