You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ecb85bb
Browse filesBrowse the repository at this point in the historyBrowse files
docs(skills): object colour by business family; the data skill teaches showOnCreate and drops the subforms pointer (#36696)
<!-- claude-projects-attribution: {"github_login":"os-warren"} -->
_Requested by **Warren** · [project
thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ86Lu4u71hEUFsgZYL8QN9v8)_Fixes#36628Fixes#36611
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
## 维护者速读
- 用户能看到什么变化:照技能包搭应用的
AI,给对象挑图标底色时,会照平台自己的做法按业务分组上色(人员一色、审批与工作一色……),红色只留给真正的告警,没人打开的内部对象不上色;不再被要求「同一应用里颜色不能重复」。另外
AI 会知道「新建时不问某个字段」的写法,分步表单会被指到「由动作打开的具名分步表单」。
- 为什么做:平台自己的对象已按业务家族上色(你 11-23
定稿的配色表),技能还在教相反的规则;子表单那段是「内部新建/编辑表单退役」的第二阶段收尾,第一阶段已合并。
- 出错会怎样:只改技能文字,不碰数据、接口和运行时;撤回这一个合并就恢复原样。
- 要你做什么:技能包属受管文件,需要 os-zhuang 在 GitHub
上批准;另有一张大的技能改版草稿(#36158)改同几份文件,两者会有文字冲突,后合的一方要合一下。
## What changes
One PR for two cards in the same files, by the seat's dispatch.
**#36628, object colour (`skills/objectstack-data`).**
- `SKILL.md`, the `color` row of the object property table. Before:
"Give every object one; avoid repeats in one app". With nine palette
names any app past nine objects must repeat one, and the platform's own
objects are coloured by business family (PR #36605). After: group the
app's objects into a few business families, one palette name each, as
the platform's own objects do (people `blue`, security `purple`,
approvals and work `orange`, messaging `pink`, integrations `teal`,
reference data and finance `green`, audit and settings `amber`); `red`
only for an object that is an alert; an object nobody opens gets none
(it draws the default `gray`). No card ids in the text.
- `references/examples-objects.md`, Quick-Start Template: the
`support_case` object declares `color: 'orange'` (work) beside its
`icon`.
- Evals: no case in `skills/objectstack-data/evals/` mentions `color`;
the object-authoring cases (ids 1 and the Chinese-labels case) ask for
`icon` and say nothing about colour, so they agree with the new guidance
and are unchanged.
**#36611, stage 2 (stage 1 was PR #36625, merged).**
1. `skills/objectstack-data/rules/relationships.md`: the pointer "The
rendering side, `subforms` overrides included: objectstack-ui →
Master-Detail Forms" drops the `subforms` clause. objectstack-ui's Form
Views now says a container's `subforms` steer nothing.
2. `skills/objectstack-data/SKILL.md`, Conditional Field Rules: a bullet
teaching `showOnCreate: false` (off every create surface; edit, the
record page and lists keep it; refused beside `required: true`). The
section's opening list of where field rules apply now reads "New and
Edit, named and public forms, inline master-detail grids, API writes"
instead of naming "default forms, Studio-authored forms".
3. `skills/objectstack-automation/SKILL.md`, after the Flow Types table:
a stepped form over one object that never branches is "an objectstack-ui
named form view (`type: 'wizard'`) a `type: 'form'` action opens",
matching `skills/README.md` since #36625.
- Evals:
`skills/objectstack-automation/evals/flows-triggers-approvals.json` case
4 (a branching onboarding wizard is a `screen` flow, `must_not_contain:
"type: 'wizard'"`) and the trigger case still hold; no data eval teaches
`subforms` or `showOnCreate`. Unchanged.
- `.changeset/36628-36611-skills-object-colour-create-forms.md`:
`@objectstack/skills` patch.
### Paid for in the same files (no ceiling changes)
| File | Tokens before → after | Ceiling |
|:--|:--|:--|
| `skills/objectstack-data/SKILL.md` | 6710 → 6706 | 6710 |
| `skills/objectstack-automation/SKILL.md` | 7043 → 7045 | 7045 |
| `skills/objectstack-data/references/examples-objects.md` | 1719 → 1724
| 1728 |
| `skills/objectstack-data/rules/relationships.md` | 4188 → 4180 | 4203
|
Cuts that pay for the new text, each a restatement or a detail kept
elsewhere:
- data `SKILL.md`: `namespace`, `titleFormat`, `displayNameField` and
`enable` rows shortened (the `titleFormat` row keeps its refusal and
lint id and points to `nameField`, whose row carries the composite-title
rule; `enable` points to the next section, which lists the flags); the
`user` clause of Field Type Selection (the bullet below it says the
same; "Three to get right" becomes "Two"); the `multiple: true` note's
"≠ junction object … array of ids" (the table rows above say both);
"composite indexes" in the indexing pointer (the example above shows
one); the lifecycle class list in the Quick Reference line (in
`rules/lifecycle.md`); "`conditionalRequired` … REMOVED in protocol 17"
shortened to "the removed alias is a parse error".
- automation `SKILL.md`: "Interactive —" and "automatically" in two Flow
Types rows.
## Why
#36628: the skill taught the opposite of the platform's approved family
table, and gave no reason to pick one hue over another. #36611: the data
and automation skills still pointed agents at retired create/edit form
overrides and routed single-object step forms to a wizard with no door
named.
## Verification
Each taught sentence against `main` (`115d38788`):
- Palette names: `packages/spec/src/data/object-icon.ts:31`
(`OBJECT_COLORS`); default `gray` when absent: the `color` row's default
column, unchanged.
- Family colours on the platform's own objects: e.g.
`packages/platform-objects/src/identity/sys-user.object.ts:104`
(`blue`),
`packages/platform-objects/src/audit/sys-notification.object.ts:33`
(`pink`); no platform object declares `red`.
- `showOnCreate`: `packages/spec/src/data/field.zod.ts:2934` (meaning)
and `:3263` (refused beside `required: true`).
- Named wizard form an action opens; container `subforms` inert:
`skills/objectstack-ui/rules/list-views.md` § Form Views (code readings
in PR #36625's Acceptance notes).
Local gates: see the Tests section below.
## Tests
No package source changed, so no package suite is owed. Prose only, no
ablation.
Local gates at `b6b84c501` (tree identical to `a2598f51`), against base
`115d38788`: the 51 commands `dispatch-gates.mjs --commands` derives,
each run with its exit code captured before any pipe. **46 exit 0**,
among them `check-skills-token-ratchet` (and `--self-test`),
`check:skill-links`, `check:skill-docs`, `check:skill-refs`,
`check:skill-served-sections`, `check:skill-identifier-liveness`,
`check:skill-compatibility`, `check:corpus-claim-drift`,
`check:nul-bytes`. **5 NOT MEASURED** (exit 3, PREREQUISITE NOT MET:
each reads built `dist/` of packages this diff does not touch, and no
workspace build was run for a prose diff; CI decides):
`check:doc-formula-expressions` (`@objectstack/lint`),
`check:dts-closure`, `check:dual-build-cjs-loads`,
`check:lean-entry-closure`, `check:sourcemap-no-sources-content`. One
`os:check` block changed (the Quick-Start Template gains `color:
'orange'`, a member of `OBJECT_COLORS`); `check:skill-examples` is not
among the derived commands and needs client builds, so it is NOT
MEASURED locally; CI decides.
## Acceptance notes
- Overlap: `scripts/pm/overlap-check.mjs` merges cleanly with `main` and
with #35129, and **conflicts with #36158** (draft, router rewrite of the
same two `SKILL.md` files, last pushed 2026-11-21, waiting on a
maintainer decision). #36611's triage asked to land after #36158 if both
are open; this PR does not wait on it while drafting. Whichever lands
second carries the merge: the changes here are a handful of lines.
- The model-tier gate reads MANDATORY `claude-fable-5-2` for
`skills/**`. This thread ran on Opus; the seat decides whether a Fable
pass is owed before landing.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes.
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request. (two cards in the same files, by the seat's dispatch)
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: n/a.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English. (the 维护者速读 block is
the maintainer's brief, as on other fleet PRs)
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
https://claude.ai/code/session_01JQwxba91GQhJ1mvAZFftiw
---
_Generated by [Claude Code](https://claude.ai/code)_
Co-authored-by: Claude <noreply@anthropic.com>
docs(skills): the data skill picks an object's colour by business family and teaches `showOnCreate`; the automation skill routes a stepped single-object form to a named wizard form an action opens
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
`skills/objectstack-data` told authors to give every object a colour and avoid repeats in one app. With nine palette names any app past nine objects must repeat one, and the platform's own objects are coloured by business family instead. The `color` row now says to group an app's objects into a few business families with one palette name each, gives the platform's families as the worked example (people `blue`, security `purple`, approvals and work `orange`, messaging `pink`, integrations `teal`, reference data and finance `green`, audit and settings `amber`), keeps `red` for an object that is an alert, and leaves an object nobody opens without one. The quick-start object example declares a `color`.
11
+
12
+
The data skill's field rules now teach `showOnCreate: false` (a field left off every create surface, refused beside `required: true`), and its Relationships rule no longer points at the `subforms` overrides the UI skill dropped. `skills/objectstack-automation` routes a stepped form over one object that never branches to a named form view (`type: 'wizard'`) that a `type: 'form'` action opens. New text is paid for by cuts in the same files. No metadata shape changes.
Copy file name to clipboardExpand all lines: skills/objectstack-automation/SKILL.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,12 +36,12 @@ Also vendor-integration callbacks and **assignment rules**.
36
36
| Type | When to Use |
37
37
|:-----|:------------|
38
38
|`autolaunched`| Runs without user interaction — triggered by events, APIs, or other flows |
39
-
|`screen`|Interactive — presents UI screens |
39
+
|`screen`|Presents UI screens |
40
40
|`schedule`| Runs on a cron/interval cadence declared on the **start node's `config.schedule`** — or a **per-record date sweep** via `config.timeRelative`|
41
-
|`record_change`| Fires automatically on record create/update/delete. `autolaunched` + the same `record-*` binding behaves identically; `record_change` also opts into the trigger-readiness lint |
41
+
|`record_change`| Fires on record create/update/delete. `autolaunched` + the same `record-*` binding behaves identically; `record_change` also opts into the trigger-readiness lint |
42
42
|`api`| Inbound **webhook** (*Inbound webhook triggers*); a flow only ever started explicitly is `autolaunched`|
43
43
44
-
**A stepped form over one object that never branches** is no flow: an **objectstack-ui** form view, `type: 'wizard'`.
44
+
**A stepped form over one object that never branches** is no flow: an **objectstack-ui**named form view (`type: 'wizard'`) a `type: 'form'` action opens.
45
45
46
46
**A flow an installed package ships** is read-only. To change what it does, save
47
47
a same-named flow in the base's paired `.custom` package declaring
-**[Data Lifecycle & Retention](./rules/lifecycle.md)** — `lifecycle` classes (record/audit/telemetry/transient/event), retention/TTL/rotation/archive policies (distinct from lifecycle *hooks* below); plus the **save notice** a hook hands the saver (`ctx.notice`)
39
+
-**[Data Lifecycle & Retention](./rules/lifecycle.md)** — `lifecycle` classes, retention/TTL/rotation/archive policies (not *hooks*); plus the **save notice** a hook hands the saver (`ctx.notice`)
40
40
-**[Lifecycle Hooks](./references/data-hooks.md)** — the lifecycle events, the sandboxed `body` (ctx + capability contract; the inline `handler` is deprecated), registration, canonical patterns
41
41
-**[Datasources & Federation](./rules/datasources.md)** — `defineDatasource`, external/federated objects (`remoteName`/`columnMap`), auto-connect gating, credentials; ❌ no `field.columnName` on external objects
@@ -92,14 +92,14 @@ all (Relationship Patterns below).
92
92
|`label`| Auto from `name`| Human-readable singular label |
93
93
|`pluralLabel`| — | Plural form; author it alongside `label`|
94
94
|`icon`| — | Icon for nav, list headers and lookup pickers; give every object one |
95
-
|`color`|`gray`| Tile colour, one of `gray``blue``teal``green``amber``orange``red``pink``purple` (no hex); the console draws `icon` white on it. Give every object one; avoid repeats in one app|
95
+
|`color`|`gray`| Tile colour behind the white `icon`: `gray``blue``teal``green``amber``orange``red``pink``purple` (no hex). Group the app's objects into a few business families, one name each, as the platform's own objects do: people `blue`, security `purple`, approvals and work `orange`, messaging `pink`, integrations `teal`, reference data and finance `green`, audit and settings `amber`. `red` only for an alert object; one nobody opens gets none|
96
96
|`highlightFields`| derived | Ordered field keys used as a record's compact face: the columns a **related list** renders on the parent's detail page, and what a lookup picker shows. Declare it on the CHILD object (see [Relationships](./rules/relationships.md)) |
97
-
|`namespace`| — |**Not a schema key** — an unknown key is refused, so authoring it is a build error. Embed the prefix directly in `name` instead|
97
+
|`namespace`| — |**Not a schema key**: refused as unknown. Embed the prefix in `name`|
98
98
|`datasource`|`'default'`| Target datasource ID for virtualized data |
99
99
|`nameField`| derived (e.g. `'name'`/`'title'`) |**Canonical** record-title field — the stored field used as the record's display name. Use a single text/email field; a composite title to import, sort or search by is a stored computed field (a non-`formula` field with an `expression`); a text formula is display-only |
100
-
|`displayNameField`| — |**Deprecated** alias for `nameField` (still honored as a fallback)|
101
-
|`titleFormat`| — |**Refused (ADR-0079)**: a save and `os validate`refuse it (`title-format-retired`). Move it to `nameField`; a composite title follows the `nameField` row|
|`displayNameField`| — |**Deprecated** alias for `nameField`, still read|
101
+
|`titleFormat`| — |**Refused** by a save and `os validate` (`title-format-retired`): use `nameField`|
102
+
|`enable`| — | Capability flags (next section) |
103
103
|`fieldGroups`| — | Ordered list of logical field groups for forms/detail pages (see [Field Groups](./references/examples-objects.md#field-groups-mvp)) |
104
104
|`lifecycle`|`record` semantics (permanent) | Data retention/rotation/archival contract. **Required for append-only, high-write-rate objects** (see [Data Lifecycle & Retention](./rules/lifecycle.md)) |
105
105
@@ -174,8 +174,7 @@ one-off backfill. See [Lifecycle Hooks](./references/data-hooks.md).
174
174
175
175
Put conditional UI/data-entry rules on the **field definition** when the rule
176
176
belongs to the data model and should apply everywhere the field is edited:
177
-
default forms, Studio-authored forms, inline master-detail grids, public forms,
178
-
and API-backed writes.
177
+
New and Edit, named and public forms, inline master-detail grids, API writes.
Three to get right here (the rest: [rules/field-types.md](./rules/field-types.md)): credentials are `secret` (**encrypted-at-rest**, ADR-0100) —
280
-
never `password`, which on a generic object is **plaintext at rest**; `user` is the person
281
-
picker; `formula` takes CEL in `expression` (a `{ dialect: 'cel', source }` envelope —
280
+
Two to get right here (the rest: [rules/field-types.md](./rules/field-types.md)): credentials are `secret` (**encrypted-at-rest**, ADR-0100) —
281
+
never `password`, which on a generic object is **plaintext at rest**; `formula` takes CEL in `expression` (a `{ dialect: 'cel', source }` envelope —
282
282
`F\`...\`` in TypeScript; see **objectstack-formula**).
283
283
284
284
- A yes/no flag (`is_*`, `has_*`, "done?", "active?") is `{ type: 'boolean', defaultValue: false }`.
@@ -309,8 +309,7 @@ picker; `formula` takes CEL in `expression` (a `{ dialect: 'cel', source }` enve
309
309
| Approval, review, routing, audit trail | not objects: an approval is a flow node (**objectstack-automation**) and its trail is platform history; model only the people it references (approver, reviewer), as `user` fields beside the owner |
310
310
| Record owner | the platform's `owner_id` (`ownership: 'user'`, the default), also when the request says assignee, 负责人 or 处理人 — never a hand-added owner field, a second owner that owner-scoped visibility and "My records" views never read. A handler the request names apart from the owner is a `user` field that grants no access, with a label no other visible field carries, injected ones included: `owner_id` (Owner, 负责人), `created_by` (创建人), `updated_by` (更新人), `created_at` (创建时间), `updated_at` (更新时间). `ownership: 'none'` only for a shared catalog or a pure junction table |
311
311
312
-
> **`multiple: true` lookup ≠ junction object.** Its value is an **array of ids**:
313
-
> reference elements positionally (`{record.tags.0}` in flow values).
312
+
> A `multiple: true` lookup's ids are referenced positionally (`{record.tags.0}` in flow values).
314
313
315
314
### Validation Patterns
316
315
@@ -341,7 +340,7 @@ indexes: [
341
340
]
342
341
```
343
342
344
-
See [rules/indexing.md](./rules/indexing.md) for composite indexes, unique scope
343
+
See [rules/indexing.md](./rules/indexing.md) for unique scope
345
344
(on a declared index bare `unique: true` is refused), the retired `type` / `partial`, and partial / gin / gist indexes at the
0 commit comments