DGame: Skill for Codex

.agents/skills/dgame-dev/SKILL.md

dgame-dev is a skill for Codex from AmaniDawn/DGame. It costs 92 tokens per session (1,425 once invoked), scanned A, original, MIT.

Development guidance for DGame, a Unity project using HybridCLR, YooAsset, UniTask, and Luban. It covers the project's code layers, modules, resources, events, configuration data, and hot updates.

In plain words
What is it for?
Use it when developing DGame UI, events, resource loading, hot-update packages, builds, or code that consumes Luban configuration tables.
Why use it?
It keeps changes aligned with DGame's architecture and helps avoid mistakes in asynchronous work, resource cleanup, event handling, and hot-update boundaries.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is AmaniDawn/DGame's own configuration. It tells Codex how to work on DGame itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DGame configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AmaniDawn/DGame. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AmaniDawn/DGame/main/.agents/skills/dgame-dev/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AmaniDawn/DGame

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dgame-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/amanidawn/dgame/dgame-dev/github.svg)](https://agentmods.dev/skills/amanidawn/dgame/dgame-dev)
Your own site
<a href="https://agentmods.dev/skills/amanidawn/dgame/dgame-dev"><img src="https://agentmods.dev/badge/skills/amanidawn/dgame/dgame-dev/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dgame-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/amanidawn/dgame/dgame-dev"><img src="https://agentmods.dev/badge/skills/amanidawn/dgame/dgame-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,425 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01425
Opus 5.5 $0.00037 $0.00570
Sonnet 5.5 $0.00018 $0.00285
Haiku 4.5 $0.00009 $0.00143

Measured 18d ago against content hash 21fae16823b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dgame-dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/dgame-dev/SKILL.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DGame 开发指导

DGame 使用 HybridCLR + YooAsset + UniTask + Luban 构建。 本 skill 提供 DGame 专属的 AI 精炼说明,优先描述本仓库实际 API、目录和落位规则。

核心红线

  1. 分层落位:框架运行时放 GameUnity/Assets/DGame/Runtime,编辑器工具放 GameUnity/Assets/DGame/Editor,热更玩法放 GameUnity/Assets/Scripts/HotFix/GameLogic。热更边界:DGame.Runtime/DGame.AOT 不热更,Scripts/HotFix/* 全部热更。
  2. 模块访问:业务代码优先通过 GameLogic.GameModule.XXX 访问模块,不在业务层散落 ModuleSystem.GetModule<T>()。
  3. 异步优先:IO、资源、场景等耗时操作优先使用 UniTask,不要新增 Coroutine 工作流。
  4. 资源生命周期成对:非实例化资源用 LoadAssetAsync/LoadAsset 后按持有关系 UnloadAsset;GameObject 实例用 LoadGameObjectAsync/LoadGameObject,销毁实例时资源模块自动回收引用。
  5. 事件解耦:UI 内部监听用 UIBase.AddUIEvent 自动清理;跨模块事件用 [EventInterface(EEventGroup...)]、GameEvent.Get<T>() 或 GameEvent.AddEventListener。
  6. 配置表边界:配置表结构、Excel、导表脚本优先使用 luban-dev;本 skill 只补充 DGame 业务代码如何消费配置。

防止误用的例外与优先级

  • 模块访问分层:GameLogic 业务代码优先通过 GameModule.XXX;DGame.Runtime 框架内部、编辑器代码、GameModule 的初始化桥接代码允许直接使用 ModuleSystem.GetModule<T>(),不要为了机械遵守规则改动这些底层代码。
  • 事件监听:UIWindow/UIWidget 在 RegisterEvent 中使用 AddUIEvent;非 UI 模块对带 [EventInterface] 的接口优先使用生成的 GameEventHelper.AddEvent.Xxx.Xxx / GameEventHelper.RemoveEvent.Xxx.Xxx。只有没有生成门面或框架底层场景才直接调用 GameEvent.AddEventListener/RemoveEventListener。 IUIController 不是 UIBase,也必须按非 UI 生命周期处理,成对注册和移除。
  • 资源例外:业务热更资源优先走 GameModule.ResourceModule;UIWindow.FromResources、AOT 的 Obfuz 密钥、框架音频混音器等已存在的 Resources.Load 路径属于框架例外,修改前先核对调用层,不要全局替换。
  • 生成产物:Luban 的 GameProto/LubanConfig、事件/模块/输入等 Source Generator 产物不要手改;先修改 schema、接口或生成器源码,再重新生成并检查 Unity 编译。

文档路由

根据任务类型,读取对应的 reference 文档:

任务类型 必读文档 进阶文档 优先级
UI 开发 ui-lifecycle.md ui-patterns.md P0
事件系统 event-system.md event-antipatterns.md P0
资源加载 resource-api.md resource-patterns.md P0
热更资源包 hotpatch-workflow.md resource-api.md P0
构建打包 build-pipeline.md hotfix-workflow.md P1
模块使用 modules.md — P0
热更代码 hotfix-workflow.md — P1
代码规范 naming-rules.md — P1
Luban 配置 luban-config.md luban-dev P1
Unity CLI / MCP unity-cli - P1
红点系统 reddot-system.md ui-patterns.md P1
项目结构 architecture.md — P2
问题排查 troubleshooting.md — P2

Read the full file on GitHub · 54 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed 21fae16823b1
  2. 1mo ago Changed · -1 lines · -9 tokens per session 5adf183f239c
  3. 1mo ago Changed · +7 lines bf3d30f179ae
  4. 2mo ago First seen · 48 lines · 101 tokens per session scan A 2b7bd96c9616

Subscribe to this mod's changes

dgame-dev is a skill published in the GitHub repository AmaniDawn/DGame (177 stars, last pushed 3d ago), licensed MIT. It adds 92 tokens to every session and 1,425 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

playtest-report

Structured playtest report template, or turn existing playtest notes into structured feedback.

Donchitos/Claude-Code-Game-Studios · 20 tokens

godot-signals-groups

Build event-driven, decoupled Godot 4.7 gameplay with signals and node groups: declare and emit custom signals, connect with Callables (incl. bind/one-shot), and broadcast to many nodes via groups and callgroup. Use when wiring node communication in a Godot project, replacing tight references with signals…

gamedev-skills/awesome-gamedev-agent-skills · 95 tokens

motion

Reconstruct a skeleton from calibrated mesh projections and sequential VLM joint annotations, then fit joints and skin weights. Generate motion from joint-position trajectories, rhythm and contact constraints through IK; refine bone orientation against the action, then export, retarget and validate on the target mesh.

OpenDCAI/GameFactory-3A · 0 tokens

unity-addressables

Manage Addressables groups, entries, profiles and content builds (com.unity.addressables, reflection-based).

Besty0728/Unity-Skills · 25 tokens

unity-manual-component

Manually add, configure, reorder, and copy components on GameObjects using Unity Editor UI. For one-off Inspector workflows that do not need REST automation.

Besty0728/Unity-Skills · 36 tokens

threejs-exposure-color-grading

Build a measured exposure and grading path in Three.js. Use for a 64x36 encoded luminance meter, asynchronous readback, weighted log-average exposure, asymmetric adaptation, single tone-map ownership, and a generated 32-cube post-tone-map LUT.

scottstts/Threejs-Awesome-Graphics-Agent-Skills · 60 tokens