Skip to content
cccskills
FreePublished on GitHub

et-async

ET async and EntityRef safety workflow. Use when adding, modifying, or reviewing async/await, ETTask, generic ETTask results, ETCancellationToken, NewContext, concurrent waits, handler Run async safety, or any Entity access after await in WOW/ET code or tests.

The English summary is being prepared. Showing the original description.

FlameskyDexive/Legends-Of-Heroes931 stars(GitHub 931 + cccskills 0)

Run score Not tested

See how to install

Files included (5)

  • SKILL.md2.1 KB
  • references.meta172 B
  • references/et-async-rules.md2.6 KB
  • references/et-async-rules.md.meta158 B
  • SKILL.md.meta158 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

et-async - ET Async 入口

何时使用

  • 新增、修改或 review async / await / ETTask / ETTask<T>
  • 判断某段逻辑是否应该异步化,或是否应该改回同步
  • 处理 await 后 Entity 访问、EntityRef<T>、Handler Run 异步安全
  • 设计并发等待、ETTask.WaitAll(...)、ETCancellationToken、NewContext(...)

不要加载

  • 代码完全同步,且不涉及异步边界、安全或取消控制
  • 只是编译、导出、跑测试、操作 Unity / Excel

默认动作

  1. 先判断是否真的需要异步,并明确谁在等待返回值。
  2. 只有 RPC、IO、定时器、协程锁、跨 Fiber 结果或其它真实异步资源,才保留 async / ETTask。
  3. 调用方不依赖返回值时,优先改成同步方法、普通消息、Send 或独立协程。
  4. 只要存在 await 后继续访问 Entity 的路径,就在 await 前创建 EntityRef<T>,并在 await 后重新获取。
  5. 函数参数可以传 Entity;字段、属性、集合中保存 EntityRef<T>,不要长期持有 Entity。
  6. 在消费结果的协程里直接 await;不要设计“返回一个 ETTask 句柄,后面再 await”的桥接层。
  7. NewContext(...) 只承担独立协程与取消边界;需要携带实体时使用 EntityRef<T>。

快速分流

  • EntityRef 正误示例、并发等待、取消控制:补读 references/et-async-rules.md
  • Handler Run、组件契约、包结构:叠加 et-code
  • 测试里的异步等待:叠加 et-test-write

输出要求

  • 说明异步是否必要,以及谁在等待结果
  • 说明 await 后实体访问是否通过 EntityRef<T> 保护
  • 说明并发组织方式是否避免延后消费 ETTask
  • 说明 ETCancellationToken / NewContext(...) 是否只承担取消与协程边界职责

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Unity Editor and Player Runtime CLI integration for AIBridge. Use when Codex needs to compile Unity, inspect Console logs, search/read assets, manipulate GameObjects, Transforms, components, SerializedProperty values, scenes, screenshots/GIFs, connect to built Player runtime targets, simulate Play Mode runtime input, editor focus/menu items/game view, or look up AIBridgeCLI command syntax. For batch/multi scripts use aibridge-batch-script. For complex prefab asset edits use aibridge-prefab-patch. For unsupported direct Unity YAML serialized asset edits use unity-yaml-editing.

The English summary is being prepared. Showing the original description.

FlameskyDexive/Legends-Of-Heroes931Updated Sep 22, 2026

AIBridge batch and multi command automation. Use when Codex needs to run multiple Unity Editor CLI operations together, write batch scripts, use multi --cmd or multi --stdin, handle call/delay/log/menu lines, avoid PowerShell quoting issues, or automate long/JSON-heavy AIBridgeCLI workflows.

The English summary is being prepared. Showing the original description.

FlameskyDexive/Legends-Of-Heroes931Updated Sep 22, 2026

Optional read-only AIBridge Code Index semantic lookup for Unity projects. Use only when this Skill is installed and project rules or AIBridge settings say Code Index is enabled. Use for CLI-only symbol, definition, reference, implementation, derived-type, caller, and diagnostic queries. Do not use when Code Index is disabled; use rg, host file reads, and regular AIBridge commands instead.

The English summary is being prepared. Showing the original description.

FlameskyDexive/Legends-Of-Heroes931Updated Sep 22, 2026

AIBridge/Unity 项目的标准开发工作流。Use when creating, modifying, fixing, refactoring, or validating C# code, Unity assets, prefabs, editor tools, package structure, tests, AGENTS.md, or local Skills. Preserves visible modes for Skills matching, requirement confirmation, analysis, implementation, and final checklist. Do not use for pure Q&A, simple search/display, or code explanation tasks with no file/code/asset changes.

The English summary is being prepared. Showing the original description.

FlameskyDexive/Legends-Of-Heroes931Updated Sep 22, 2026

Unity Prefab asset patch workflow for AIBridge. Use when modifying complex prefab assets with prefab patch operations, child or component creation, SerializedProperty writes, array edits, internal GameObject/component references, dry-run validation, or when deciding between prefab patch, inspector set_property, scene object commands, and direct Unity YAML fallback.

The English summary is being prepared. Showing the original description.

FlameskyDexive/Legends-Of-Heroes931Updated Sep 22, 2026

ET build, analyzer, proto export, server startup, and publish workflow. Use when compiling WOW with dotnet build ET.sln, exporting Proto to C#, starting ET.App, publishing, or validating analyzer/build results.

The English summary is being prepared. Showing the original description.

FlameskyDexive/Legends-Of-Heroes931Updated Sep 22, 2026

See all skills by FlameskyDexive

Report a problem with this skill