跳到正文
cccskills
免费在 GitHub 公开

xaml-ui

Build localized client XAML controls with correct lifecycle, culture refresh, resource references, ownership, and validation.

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

查看安装方法

包含的文件(3)

  • SKILL.md2.6 KB
  • agents/openai.yaml238 B
  • references/xaml-structure.md424 B

SKILL.md(原文)

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

XAML is client presentation. Keep authority and protected validation out of code-behind.

Structure

  • Keep static layout and styling in XAML. Build controls in code only for genuinely dynamic content or reusable custom controls.
  • Keep named controls limited to elements code-behind actually accesses. Prefer existing containers, styles, and UI patterns over manual positioning or rebuilding static layout in code.
  • Keep code-behind responsible for view state, presentation-only transformations, and translating input into a typed event or request. Do not make the window a second owner of authoritative or replicated state. Put reusable game behavior in its owning system, not the window.
  • Let a BUI/EUI adapter own open/close lifecycle, message transport, and applying incoming state. The window should not call server services or decide whether an action is authorized.
  • Treat client validation as user feedback. The server validates security-sensitive and authoritative requests.
  • Find a nearby control using the same UI framework. Verify generated names, control types, constructors, and lifecycle APIs before relying on them.

Lifecycle and localization

  • Subscribe once. Unsubscribe when the window closes or disposes if the event source can outlive the window; prevent duplicate subscriptions after reopen.
  • If an asynchronous result or deferred callback can arrive after close/rebind, cancel it when supported or verify that the window still owns the result before changing controls.
  • Refresh localized labels when culture changes if the window can remain open. Do not cache resolved text beyond the culture in which it was created.
  • Localize visible labels, tooltips, placeholders, feedback, and generated rows. Use en-US by default; update ru-RU only when explicitly requested.
  • Check long translated strings and culture refresh when Russian is in scope; otherwise verify the English UI states affected by the change.

Verify owner paths and edit-marker requirements before changing inherited files. Do not add markers to owner-local module paths. For code-behind boundaries see .agents/rules/architecture-and-ownership.md; for BUI contracts and message flow see .agents/skills/bound-user-interface/SKILL.md.

Choose the smallest build or UI behavior check that covers the changed surface and follow root AGENTS.md and .agents/skills/testing/references/testing-matrix.md. Documentation-only changes need diff checks; do not run a full build or every integration test by default.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

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

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

ArcaneSS14/arcane-new112026年10月21日 更新

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

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

ArcaneSS14/arcane-new112026年10月21日 更新

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

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

ArcaneSS14/arcane-new112026年10月21日 更新

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

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

ArcaneSS14/arcane-new112026年10月21日 更新

atmos

免费

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

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

ArcaneSS14/arcane-new112026年10月21日 更新

audio

免费

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

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

ArcaneSS14/arcane-new112026年10月21日 更新

查看 ArcaneSS14 的全部技能

报告此技能的问题