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

  1. 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.
  2. Read the field contract: import('@norbital-ai/bolt').ModelLiteral, FieldKind.
  3. Declare invariants on the model before writing callback code. Use named constraints for checks, locks, period exclusions and uniqueness. Declare state edges, indexes and computed values on the model.
  4. Declare reads as output trees and writes as column trees. Transforms derive and validate values; policy verdicts judge caller authority. A batch commits whole.
  5. Business operations are automations; authority is policies.
  6. Declare record_label once when a readable identifier exists.
  7. Add a text entry under indexes for searchable fields beyond record_label; the toolbar and finder reuse it.
  8. 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