跳到正文
cccskills
免费在 GitHub 公开

bound-user-interface

Implement BUI contracts, server validation, localized client windows, lifecycle cleanup, and state refresh.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

  • SKILL.md2.9 KB
  • agents/openai.yaml279 B
  • references/bui-flow.md351 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

A BUI adapts an entity-owned interface to gameplay state. Keep its responsibilities split across the layers that own them.

Layer responsibilities

  • Shared defines only the UI key and serializable intent/state contracts needed across the network. Messages express requested actions, not trusted results. Keep state minimal and exclude hidden or server-only data.
  • Server validates every request when it is handled against the current actor, entity lifecycle, range, permissions, and current gameplay state; then it applies authoritative mutation and publishes refreshed state. Verify which actor, range, and lifecycle checks the BUI framework performs, and enforce any remaining checks in the server path. Never trust a client-supplied result, permission, or stale state snapshot.
  • Client BUI creates and closes the window, applies incoming state, and forwards typed intent. Keep gameplay policy out of the adapter.
  • The XAML window owns controls and view state. It reports input through events or narrow methods; it does not authorize actions or commit gameplay outcomes.

Keep payloads as small as practical. Prefer typed state localized by the client over resolved strings sent over the network. If a Shared handler also runs predictively, keep its effects deterministic and safe to reconcile.

Lifecycle and state flow

  • Create the window on open and release references on close. Subscribe once per window lifetime; unsubscribe from longer-lived publishers and prevent duplicate subscriptions after reopen.
  • Handle owner deletion, range loss, multiple viewers, stale state, and reopen according to the actual UI framework lifecycle.
  • Choose one source for displayed state. Refresh controls from the latest replicated component or BUI state; avoid a second stale copy in the adapter or window.
  • Ensure a delayed response or callback cannot update a window after it has closed or rebound to another owner. Follow the framework's session/window identity and cancellation pattern.
  • Keep per-viewer presentation state separate from shared entity state. A window's local selection or filter must not become authoritative gameplay state unless the feature contract explicitly requires it.
  • Long-lived windows must refresh localized text on culture changes without discarding authoritative state. Every visible string requires en-US localization; add Russian only when explicitly requested.

Use repository ownership rules for edit markers. Do not mark owner-local module or underscore paths.

Verify the affected contract and lifecycle with the narrowest checks supported by the owning projects. Select only the lifecycle cases affected by the change, using .agents/skills/testing/references/testing-matrix.md and root AGENTS.md; do not restore dependencies or run every integration test by default.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Implement actions, cooldowns, DoAfter flows, interruption, cancellation, and authoritative completion safely.

中文简介正在准备中。当前显示原文说明。

ArcaneSS14/arcane-new52026年10月19日 更新

Implement privileged commands, admin UI, role checks, audit logs, and safe operational controls.

中文简介正在准备中。当前显示原文说明。

ArcaneSS14/arcane-new52026年10月19日 更新

Plan, verify, implement, and deliver repository work through evidence-backed ownership and quality gates.

中文简介正在准备中。当前显示原文说明。

ArcaneSS14/arcane-new52026年10月19日 更新

Implement replicated appearance data, GenericVisualizer mappings, sprite layers, overlays, and client visual systems.

中文简介正在准备中。当前显示原文说明。

ArcaneSS14/arcane-new52026年10月19日 更新

atmos

免费

Modify atmos simulation, gases, fire, pressure, pipes, devices, UI, and hot paths safely.

中文简介正在准备中。当前显示原文说明。

ArcaneSS14/arcane-new52026年10月19日 更新

audio

免费

Add data-driven audio with correct prediction, audience, resources, attribution, and verification.

中文简介正在准备中。当前显示原文说明。

ArcaneSS14/arcane-new52026年10月19日 更新

查看 ArcaneSS14 的全部技能

报告此技能的问题