跳到正文
cccskills
免费在 GitHub 公开

serialization-and-datafields

Design prototype DataFields, generated component state, custom serializers, and compatibility-safe data contracts.

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

查看安装方法

包含的文件(4)

  • SKILL.md1.3 KB
  • agents/openai.yaml276 B
  • references/datafield-patterns.md458 B
  • references/network-serialization.md483 B

SKILL.md(原文)

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

Serialized data is a compatibility surface shared by prototypes, maps, network state, configuration, or saves.

Prototype data

Use [DataField] only for values content authors should configure. Choose defaults that produce a valid component before prototype application. Prefer typed prototype IDs, time spans, flags, and structured data over ad hoc strings.

Do not expose runtime caches, service references, or derived state as prototype fields. Validate required fields at prototype load or component startup using existing project patterns.

Network state

Use the current generated state attributes for fields required by clients. Keep hidden values server-only. After authoritative mutation, dirty the component or generated field.

Compatibility

Renaming a field can break maps and prototypes. Removing a field can break older content. Search YAML, maps, and downstream modules before changing names or types. Add migration or compatibility handling when the data persists.

Custom serialization

Write a custom serializer only when standard serializers and structured data cannot express the format. Include round-trip and invalid-input tests.

评价

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

评论

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

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

提交后会立即公开。请勿填写邮箱、电话等个人信息。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 的全部技能

报告此技能的问题