DEFAULT entry point for NocoBase Modern UI authoring or tweaks: new pages, blocks, menu items, and localized edits to blocks, fields, actions, layouts, or reactions on an already-running app via backend flow-surfaces through nb api. Also handles AI employee / AI assistant action placement on UI surfaces. Hand off employee lifecycle work such as discovering, judging, creating, or configuring profile, prompt, model, skills, tools, or knowledge base to nocobase-ai-employee, then return for the UI write. Only hand off to nocobase-dsl-reconciler when the user explicitly asks for DSL, YAML, git, or cli push workflow. Does not handle ACL, data modeling, workflow orchestration, browser reproduction, page error postmortems, or non-Modern page navigation.
Instrucciones de origen · Vista previa de solo lectura
name
nocobase-ui-builder
description
DEFAULT entry point for NocoBase Modern UI authoring or tweaks: new pages, blocks, menu items, and localized edits to blocks, fields, actions, layouts, or reactions on an already-running app via backend flow-surfaces through nb api. Also handles AI employee / AI assistant action placement on UI surfaces. Hand off employee lifecycle work such as discovering, judging, creating, or configuring profile, prompt, model, skills, tools, or knowledge base to nocobase-ai-employee, then return for the UI write. Only hand off to nocobase-dsl-reconciler when the user explicitly asks for DSL, YAML, git, or cli push workflow. Does not handle ACL, data modeling, workflow orchestration, browser reproduction, page error postmortems, or non-Modern page navigation.
Goal
Agent-facing write path is nb api flow-surfaces <action> with the raw business payload.
Backend flow-surfaces is the authoring compiler: it normalizes compatible payloads and returns aggregate errors[] for hard validation failures.
Use nb as the only public transport. If nb is missing or stale, report the blocked command/env state instead of switching transports.
Keep routing intent-first: open one matching quick-route doc first, not the whole directory.
When a quick route already matches, stay on it. Do not enumerate the skill directory just to rediscover docs.
When the task is a partial-match or handoff-only request, answer from this skill's scope boundary directly. Do not inspect runtime, scripts, or helper docs just to justify the handoff.
Treat one user request that spans several pages as ordered single-page runs.
Agent orchestration rule: if multiple ordered page runs share the same menu group title, serialize the page runs yourself. On the first page, use navigation.group.title to create or resolve the group and capture the returned routeId; for all later pages, set navigation.group to { routeId } and do not use title-only creation. Never start concurrent title-only group creates for the same shared group.
Concurrent title-only shared-group creates are forbidden.
Router
whole-page authoring goes through backend applyBlueprint, nb api flow-surfaces apply-blueprint, and whole-page-quick.md
AI employee / AI assistant action authoring stays inside whole-page or localized flow-surfaces writes; read ai-employee-actions.md when the request mentions AI employee placement, AI analysis buttons, AI assistants, or AI task reconfiguration. Use nocobase-ai-employee first only when the request needs employee discovery, matching, creation, prompt/model/skill/tool configuration, or a lifecycle decision beyond binding an existing visible username.
Comments and record history route through public Flow Surfaces block types; read comments.md or record-history.md when the request mentions comments, discussion threads, history, audit history, or change history
Calendar / schedule / event-view authoring uses CalendarBlockModel; read calendar.md when the request mentions 日历, calendar, 排期, 日程, 事件视图, or 排班
localized existing-surface edits go through backend actions such as compose, configure, update-settings, add-*, move-*, and remove-*, plus local-edit-quick.md
localized existing-surface reaction work starts with get-reaction-meta, writes through set*Rules, and reaction-quick.md; first-pass whole-page reactions stay in reaction.items[] with no live get-reaction-meta; artifact-only localized reaction drafts record the planned get-reaction-meta probe
partial-match or boundary-only requests go through boundary-quick.md first
After that route is clear, if template / reference / copy routing is truly in scope, read template-quick.md first and then templates.md for the full decision matrix.
Do not open tool-shapes.md until you are preparing a real nb body.
If the task involves JS , , , , , JS actions, charts, or API questions, read first, then , then , and only then . If that intent includes opening a popup / drawer / dialog / drilldown, also read : resolve a template-first popup-capable FlowModel before writing JS.
Required Block Type Error Recovery
When the user requirement or semantic routing has selected jsBlock, keep that section as jsBlock after authoring errors. Repair the payload shape (settings.code or assets.scripts.<key>.code plus block.script) and retry the same block type. Do not replace it with table, list, chart, actionPanel, gridCard, markdown, or a deferred note just to bypass the error.
When the user requirement or semantic routing has selected chart, keep that section as chart after authoring errors. Repair the payload shape (assets.charts.<key>.query, assets.charts.<key>.visual, and block.chart for whole-page blueprints, or localized settings.query/settings.visual) and retry the same block type. Do not replace it with table, list, jsBlock, actionPanel, gridCard, markdown, or a deferred note just to bypass the error.
An aggregate errors[] response for a required jsBlock or chart means the current payload is invalid; it is not permission to change the required block type. Change block type only when the user changes the requirement or the backend explicitly says that block type is unsupported in the current container.
If a required jsBlock or chart still cannot be authored after the documented repair attempts, report that specific section as unfinished with the latest error evidence instead of claiming completion through a fallback block.
Hard Rules
For nb writes, use nb api flow-surfaces <action> directly. Send the raw business payload once; do not create wrapper envelopes, cliBody, or local helper output as a prerequisite.
For a normal single-page request, default to exactly one real tab. Do not add empty tabs or placeholder markdown / note / banner blocks unless the user asked for them.
Default blueprint fields[] entries to simple strings. Upgrade a field entry to an object only when popup, target, renderer, a field-specific type, or clear form behavior inferred from live field description is required.
For page authoring, field truth comes from live collection metadata. Prefer nb api data-modeling collections get --filter-by-tk <collection> --appends fields -j; if that command family is unavailable, use nb api resource list --resource collections --filter '{"name":"<collection>"}' --appends fields -j. Do not use data-modeling fields list / nb api data-modeling collections fields list as the authoring truth. Any field used in blueprint fields[] must have a non-empty interface. Treat collection field description as active form-authoring input: use agent/LLM semantic extraction for arbitrary languages, then emit only structured public behavior, optionally as normalized field metadata descriptionBehavior.{settings,linkage} before prepare. Clear static required hints become field settings.required, low-risk length / range / regex / count constraints become settings.rules or settings.maxCount, and unambiguous same-form conditional required/disabled/hidden hints become reaction.items[] on stable local form targets, with generated local keys materialized only when needed; for backend-generated add/edit popups, put the same behavior under target-scoped defaults.collections.<collection>.formBehavior.addNew/edit. When a conditional description names fields by localized UI label/title instead of field name (for example 状态 for status or 重点变化 for highlights), resolve those labels through live metadata and emit an explicit linkage rule; do not rely on backend fallback parsing. Map condition values through live option value / localized label metadata when available. Helper text such as is not sufficient coverage for conditional required/disabled/hidden behavior, and such fields must not be marked unless a real linkage rule targets the field. Leave ambiguous descriptions as helper text instead of guessing, and do not rely on the NocoBase backend to parse raw descriptions or on deterministic keyword lists for arbitrary-language coverage. For whole-page , recompute the full involved collection set from live metadata on every draft and rebuild from scratch instead of reusing stale fragments. For every involved direct collection, emit or allow the backend to materialize / / as stable descriptors, and let any block pull that collection into threshold evaluation even when the blueprint did not spell out an opener. Keep and collection-only on the target collection, and add only when one of those fixed generated popup scenes should still have more than 10 effective fields after scene filtering; otherwise let the backend materialize compatible defaults. Before finalizing generated defaults fieldGroups, run one compact self-review verdict ( or ) and regenerate at most once using the lowest practical reasoning / no-think mode. If the backend returns aggregate field-group errors, regenerate semantic groups from live metadata and retry once. For association fields, keep every involved relation scope on the same fixed / / trio under with the same contract, keyed only by the first relation segment. Do not create per-association or relation-scoped / . Never generate , and never put , , , or layout under .
When backend-generated add/edit candidate fields have a non-empty , account for each described generated field either through structured output or through sibling . Use only when real coverage exists through structured or applicable ; otherwise use or with a valid . Do not send old , , , or as no-op escape hatches; review entries are only for generated candidates whose is empty.
When the requested surface includes KPI / 指标卡 / 数字统计 / 统计卡 / 追踪产品数 / 待阅数 / 本周新增数 / summary numbers, use JSBlockModel by default.
Do not implement passive metric cards with actionPanel + js actions.
Do not use GridCardBlockModel for aggregated numeric metrics.
Use ActionPanelBlockModel only for user operations, shortcuts, or action entry points, unless the user explicitly asks for clickable action cards as the primary UI.
If a dashboard draft places pure numeric summary content inside actionPanel, regenerate the draft before writing.
If the backend returns a jsBlock authoring error, make the final retry instruction repair the same jsBlock payload (settings.code or assets.scripts + block.script) and retry that block type; do not switch the KPI area to table, chart, actionPanel, or gridCard.
If the backend returns a chart authoring error, repair the current chart payload from details.repairHint and retry it as chart; do not change the block type just to bypass the error. If the error says the content is a KPI / summary number, rebuild that section as jsBlock.
Dashboard chart gate: when the request explicitly asks for chart / 图表 / Charts, or for trend / 趋势, distribution / 分布, ranking / 排行, percentage / 占比, the first dashboard draft must include type: "chart" blocks for those sections. If the request gives a chart count, the payload must contain at least that many chart blocks before applyBlueprint.
jsBlock KPI cards and table/list summaries never count as chart coverage. If a required chart section is missing from the draft or readback, regenerate or repair it as chart; do not summarize the dashboard as complete.
For chart-required whole-page creates, successful applyBlueprint is not enough by itself: run flow-surfaces get for the returned pageSchemaUid and confirm the chart block evidence before claiming completion.
Probe pages may be used for metadata or payload investigation, but they are not final deliverables. Do not count them in the final handoff, and remove probe pages left under the user's delivery menu when cleanup is safe.
Direct non-template table / list / gridCard / calendar / kanban data surfaces may omit ; backend authoring materializes one from live collection metadata with up to 4 scalar/filterable fields and routes it to the same host's action. Provide block-level or only when intentionally overriding those fields. Explicit default filters must cover the smaller of 3 and the collection's eligible direct interface-field count; explicit empty, invalid, relation-field, or unknown-path values are rejected through backend aggregate . Table block settings use public keys such as , , , , , , , and ; never write persisted/internal , , or under either the block root or . For every direct public data surface, partial merge with that host's defaults ( / / , plus table ). Ordinary table merge with / / , but tree collection tables with do not complete / / ; omit tree-table unless the user explicitly asks, and let the backend inject only by default. For tree tables with explicit , keep the list self-contained: must be a direct readable non-association field from live metadata, or an existing later readable field may be moved first; never inject a missing / fallback into explicit fields, and reject explicit lists with no readable direct field. Only omitted uses default first-field metadata priority , then , then , then , then another direct field with a non-empty . Never put , , , , primary/foreign keys, / , , or first. Keep filter/search intent on the same host's block-level action unless the user explicitly asks for a separate filter block.
Direct non-template whole-page kanban main blocks may explicitly carry at most 2 card ; omitted fields are materialized from live metadata with at most 2 suitable display fields, and explicit overflow returns instead of being trimmed. The same applyBlueprint path defaults ; send only when a compatible sort field exists, otherwise let the backend create a hidden sort field for writable main datasource collections. Explicit opts out, and explicit incompatible is rejected.
When you author one localized compose / add-block / add-blocks / configure body, send it directly to nb api flow-surfaces <action>. The backend authoring pipeline performs compatibility normalization and hard validation before write side effects. If it returns aggregate errors[], repair the full list, not only the first error.
For comments and recordHistory, use only the public block keys and inspect catalog before localized adds. comments page blocks require a comment-template collection; popup comments require resource.binding: "associatedRecords" with a hasMany or belongsToMany association to a comment-template collection. recordHistory blocks require a collection with a real filterTargetKey; current-record history is only valid in one-record popup/details scenes; association history resources are invalid. Never write raw CommentsBlockModel, RecordHistoryBlockModel, CommentItemModel, props, stepParams, or raw schema to bypass these checks.
If a first-pass whole-page write still leaves filterForm as an empty shell after a successful applyBlueprint, treat it as an explicit local/live gap and keep any low-level addBlock / addAction / addField repair narrowly scoped. If the first applyBlueprint fails with a verified filterForm-specific shape/runtime error, repair the blueprint from the backend aggregate errors and retry blueprint-only up to 5 rounds. Do not switch to low-level writes during those pre-success retries. After 5 failed rounds, report the latest blueprint / error evidence.
If a create/edit form helper or reference depends on formValues.*, inspect catalog / get-reaction-meta before choosing the host. When that live scene exposes fields / actions / node but not blocks, model the helper as a jsItem or other field-like helper inside the same form scene, not as a standalone block; for current JSItem targets, implement hide/show by rendering null until the form value is present instead of assuming can target the JSItem. When that render-null pattern is used successfully, treat it as a configured helper toggle in readback/evidence instead of marking the helper outcome false only because cannot target the JSItem itself.
Handle only Modern page (v2) menu/page/tab/popup/content surfaces and the block / field / action / layout / reaction work inside them.
For partial-match or boundary-report tasks, keep the Modern-page slice narrow and write the handoff report directly from this boundary list. Do not inspect runtime or scripts unless the request is explicitly about those mechanics.
Hand off ACL / route permissions / role permissions to nocobase-acl-manage.
Hand off collection / field / relation authoring to nocobase-data-modeling.
Hand off workflow create / update / revision / execution to nocobase-workflow-manage.
Before using a flow-surfaces action you have not used yet in the current task, run nb api flow-surfaces <action> --help when available.
The only local helper CLI kept by this skill is nb-template-decision. Invoke it through node skills/nocobase-ui-builder/runtime/bin/nb-template-decision.mjs from this repo root, or through the equivalent absolute path to this skill. Do not probe the bare helper name first.
layout belongs only on tabs[] or inline popup, never on a block object. For createForm, editForm, and details, omit fieldsLayout by default and let backend authoring generate the inner grid: ordinary fields are two per row, divider, richText, and vditor fields get full-width rows from live collection metadata. For filterForm, prepare may still synthesize the compact three-per-row fieldsLayout. Use explicit fieldsLayout only when the blueprint must control the inner field grid directly. Omit page/popup layout only when that tab/popup has at most one non-filter block; otherwise explicit layout is required. When multiple non-filter blocks share the same tab/popup, each non-template-backed data block needs a title; template-backed blocks are exempt. A single non-filter block may omit its title unless the user explicitly asks for one; if a redundant single-scope data-block title is supplied, backend authoring strips the persisted block chrome title. For low-level set-layout, do not reuse public { rows: [[{ key, span }]] } syntax: runtime rows is Record<string, string[][]>, each cell array stacks live child uids, [[uidA], [uidB]] means two columns, and [[uidA, uidB]] means one stacked column.
For createForm, editForm, and details, once the block contains more than 10 real fields, use explicit fieldGroups instead of one flat fields[] list. Do not treat manual divider items as a substitute, and do not combine fieldGroups with fieldsLayout.
If clicking a shown record or relation record should open details, prefer a field popup. Use a button or action column only when the request explicitly asks for one.
If visible same-title destination menu groups already exist, never create another same-title group just to avoid ambiguity and never choose one locally. In that multi-match case, require explicit navigation.group.routeId before write. Without routeId, only zero-match create and one-match title reuse may proceed; metadata on reused groups is ignored.
In applyBlueprint create, any newly created navigation.group and any top-level or second-level navigation.item must carry one valid Ant Design icon name. When navigation.item is attached under an explicit existing navigation.group.routeId, keep an icon by default.
Page identity for duplicate-page prevention is (navigation.group.routeId, page.title), after resolving a unique navigation.group.title to routeId. In applyBlueprint create, if the same group already has the same page title, let the backend decide whether a compatible replace target can be inferred; if a different group has the same page title, do not merge, reuse, or auto-replace that page.
navigation.group.routeId and desktop-route id are navigation locators only. When follow-up localized work or explicit inspection is needed after create/init or successful whole-page applyBlueprint, normalize to pageSchemaUid for page-level flow-surfaces get, and only use live uid values returned by get / describe-surface / create responses for catalog, context, get-reaction-meta, compose, configure, add*, or remove*. Never pass a desktop-route id as target.uid. For artifact-only locator handoffs, keep direct machine-readable fields navigation.routeId, page.pageSchemaUid, and liveTargets[].uid; when no live uid exists yet, use a non-empty placeholder string instead of null.
Before the first real whole-page applyBlueprint, make sure live collection/page/menu metadata used for planning is current, then call nb api flow-surfaces apply-blueprint --body-file <payload>.json -j. The backend resolves compatible defaults such as sorting aliases, height modes, popup defaults, field groups, title fields, navigation group title matches, template decisions, and omitted direct data-surface defaultFilter groups; explicit invalid default filters still return aggregate errors[]. If the backend returns aggregate errors[], repair all listed issues in one pass and retry the raw payload.
Update action field assignment uses only public settings.assignValues. bulkUpdate is a collection action under block actions; updateRecord is a record action under recordActions. assignValues must be one plain object keyed by fields from the host collection metadata; {} is valid and clears assignment values. Submit/update-record workflow binding uses only public settings.triggerWorkflows or configure.changes.triggerWorkflows; each row is { workflowKey, context? }, [] clears bindings, and null is invalid. Do not use add-fields, raw flowModels, AssignFormGridModel, AssignFormItemModel, or direct internal stepParams for these action settings.
AI employee actions use only public type: "aiEmployee" plus settings.username, settings.auto, settings.workContext, settings.tasks, and settings.style; existing AI employee actions are reconfigured with the same keys under configure.changes or update-settings. Work context references in applyBlueprint / compose may use target: "self" or a same-run block key; localized edits use self or a live Flow Model uid; type is optional because the backend defaults it to flow-model. Task prompts go in tasks[].message.user or the tasks[].prompt alias, not both. Never write raw AI props, stepParams, flowModels, or database rows for shortcuts.
Treat the backend response as the authority for normalized persisted write shape. Whole-page work includes whole-page create / replace, one route-backed tab full build, complex multi-block pages, nested-popup pages, and pages with multiple reaction families. Pre-write reads and metadata fetch are allowed, but the first mutating write in that route must be backend applyBlueprint. A successful applyBlueprint response is the default stop point. Run follow-up get only when follow-up localized work or explicit inspection needs live structure. Without that extra readback, report the write from the success response and request intent rather than as a normalized persisted subtree.
Treat default values, computed values, field/block/action state, and show/hide as reaction work first. Do not guess raw configure keys.
Any JS / RunJS write payload must preserve readable multiline source. For value.source: "runjs", jsBlock / jsItem / JS actions, chart raw code, or any other code field, author non-trivial code with actual newline characters and 2-space indentation before writing. Do not compress multiple statements, local variable setup, conditional branches, or string assembly onto one physical line just because the surrounding payload is JSON; encode line breaks as \n in JSON strings. Only a single short return/expression with no setup or branching may stay one line.
For jsBlock, the public payload is strict: new inline blocks use type: "jsBlock" + required settings.code / optional settings.version; existing JSBlock configure uses changes.code / changes.version; whole-page asset reuse goes under assets.scripts.<key>.code with block script: "<key>". Never create title-only JSBlocks that rely on default template code. Never author block top-level code, block top-level version, handwritten stepParams, or internal props / decoratorProps / flowRegistry for jsBlock, and never mix script with inline code/version.
For JS / RunJS / chart code that opens a popup, use the popup/openView template-first path before writing code. The code may call ctx.openView(triggerUid, ...), but triggerUid must be an existing popup-capable FlowModel uid, usually a popup host whose openView.uid targetUid points at a template target with popupTemplateUid / popupTemplateMode="reference". Do not use a ChildPageModel, page, tab, popup subtree, or transient uid as the default trigger target.
Runtime values that popup blocks/settings must consume, such as chart drilldown filters for a table dataScope, must be passed through defineProperties with meta and read as top-level variables like {{ctx.drilldownValue}}. Do not generate {{ctx.view.inputArgs.params.*}} for popup block settings. If a persisted action is only a chart ctx.openView() host for those variables, hide that host with actionLinkage; do not leave a visible row action whose popup depends on chart-only defineProperties.
If live readback shows an existing template reference and the requested change touches template-owned content, default to the template source. Keep host/openView config edits local. Page-scoped wording is not local-only intent, so do not auto-detach to copy; clarify before writing when scope is unresolved. For decision artifacts, record the template-owned content route and the host/openView route separately as templateOwnedContentRoute and hostOpenViewConfigRoute.
A successful applyBlueprint response that binds an inline popup opener to popup.template is a successful template-reuse outcome, not a structural miss. Inline popup.blocks in the submitted blueprint are fallback content for a template miss; they are not required to persist when the backend selects a compatible popup template. Do not remove the template-reuse probe, switch to replace, convert to copy, or rerun a whole page merely because the normalized response shows template references instead of expanded local popup blocks. Only force inline/local popup content when the user explicitly asks for local-only behavior such as "不要模板", "只改当前", copy, detach, or "本地独立"; keep exact popup-template flags in template-quick.md and templates.md.
In testing or multi-agent runs, do not perform destructive cleanup unless the user explicitly asked for deletion.
When you actually have persisted readback to summarize for the user or for local helper artifacts, prefer one stable public summary with normalized type labels such as table, details, editForm, filterForm, and createForm; do not rely on raw model names alone. For page-level create / replace, keep page.pageSchemaUid, page.pageTitle, and page.menuGroupTitle explicit in that summary. When a scenario spans multiple pages, use the same canonical page identity keys under pages.*, and use type for concrete summary nodes such as tables.*, lists.*, and forms.*; reserve blockTypes for aggregate arrays such as root.blockTypes or popups.*.blockTypes. Keep root actions under root.actionTitles instead of leaving recordActionTitles as the only proof.
For reaction work, pick the final block/action target only after get-reaction-meta proves the required source path is available in that scene. On targets that expose multiple capabilities, select the write slot by matching kind first and then reuse that exact capability fingerprint; do not copy a nearby fingerprint from another kind. If the current target cannot expose the needed path, move the target or restructure the page/popup first instead of writing a guessed rule to an unsupported host.
Resolve filter wording before choosing structure. For table / list / gridCard / calendar / kanban-like data surfaces, ambiguous “筛选 / filter” requests default to the same host's block-level filter action/button, not a separate filter block. Treat “搜索 / search” that way only when the request explicitly adds search to a table / list / gridCard / calendar / kanban / card-like host, including wording such as “支持搜索 / 带搜索 / 可搜索 / searchable”; page-noun wording such as “搜索页 / 搜索结果页 / 搜索门户 / 搜索列表页” should stay page intent, not filter intent. Route 树筛选 / 树状筛选 / tree filter / tree filter block / 树形筛选区块 directly to TreeBlockModel, not FilterFormBlockModel; read references/blocks/tree.md before writing it. Route 分析看板 / dashboard / trend / 概览 to chart / JSBlock insight paths by default: trends, distributions, rankings, percentages / 占比, and visual analysis use chart; KPI / 指标卡 / 数字统计 / 待阅数-style count metrics use JSBlockModel; record-card wording uses GridCardBlockModel. Route to KanbanBlockModel only when kanban cues such as 看板区块 / kanban / pipeline / status columns / 拖拽 / 泳道 / backlog are present. Plain 看板 alone does not override analytics intent. Do not create a new filterForm by default. Read references/aliases.md first. Open references/blocks/filter-form.md and keep a real filterForm in the first-pass blueprint only when the user explicitly asks for a filter/search block, form, or query area and the phrase is not a tree-filter request; then include stable filter items, submit / reset actions, and same-blueprint string target block keys instead of low-level defaultTargetUid or raw block settings payloads.
Dashboard metric hard rule:
defaultFilter
filter
defaultFilter
actions[].settings.defaultFilter
errors[]
settings.pageSize
settings.sorting
settings.dataScope
settings.density
settings.showRowNumbers
settings.treeTable
settings.dragSort
settings.dragSortBy
tableSettings
defaultSorting
stepParams
settings
actions
filter
refresh
addNew
bulkDelete
recordActions
view
edit
delete
settings.treeTable=true
view
edit
delete
recordActions
addChild
fields[]
fields[0]
title
name
fields[]
titleField
name
code
title
interface
id
uid
uuid
parentId
xxxId
xxxUid
_id
_uid
filter
applyBlueprint
fields[]
kanban-main-fields-too-many
settings.dragEnabled=true
settings.dragSortBy
dragEnabled=false
dragSortBy
setFieldState
fieldLinkage
Treat pages with multiple work areas, filter/search blocks, nested popups, or multiple reaction families as complex whole-page requests, not as a separate router path. They still stay on whole-page-quick.md and still prefer one applyBlueprint request.
For those complex whole-page requests, first-pass blueprint generation should include the structural blocks, inline popups, and top-level reaction.items[] together. Do not split the page into root-shell / popup / reaction phases just because the page is large.
Use low-level get-reaction-meta + set*Rules or add* repair only for localized edits on an existing live page, or after a successful whole-page applyBlueprint when an explicit local/live gap still needs narrowly scoped repair. Before one whole-page applyBlueprint succeeds, do not use createMenu, createPage, compose, configure, update-settings, add*, move*, remove*, or set*Rules. If a whole-page applyBlueprint fails before first success, repair the blueprint from the backend aggregate errors and retry blueprint-only up to 5 rounds. Do not switch to low-level writes during those pre-success retries. After 5 failed rounds, report the latest blueprint / error evidence.
Stay env-neutral in the general skill contract. Use the current configured CLI env or explicit runtime flags instead of hard-coding local aliases or fixed URLs.