Agent skill

Dgame Dev

by AmaniDawn in AmaniDawn/DGame

DGame Unity 项目开发指导。触发词:DGame, GameModule, UIWindow, UIWidget, UIModule, AddUIEvent, GameEvent, GameEventDriver, EEventGroup, LoadAssetAsync, LoadGameObjectAsync, SetSprite, ConfigSystem, HybridCLR…

MITAuto-check passedGame Development

Install Dgame Dev

skills CLI
$ npx skills add AmaniDawn/DGame --skill dgame-dev -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AmaniDawn/DGame dgame-dev --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AmaniDawn/DGame.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/dgame-dev .claude/skills/dgame-dev && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dgame-dev
GitHub stars
169
Token cost
~892 tokens
SKILL.md length
175 words
Files
19 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

DGame Unity 项目开发指导。触发词:DGame, GameModule, UIWindow, UIWidget, UIModule, AddUIEvent, GameEvent, GameEventDriver, EEventGroup, LoadAssetAsync, LoadGameObjectAsync, SetSprite, ConfigSystem, HybridCLR…

  • Works in 6 steps: 分层落位:框架运行时放… → 模块访问:业务代码优先通过 GameLogic.GameModule.XXX… → 异步优先:IO、资源、场景等耗时操作优先使用 UniTask,不要新增… → …
  • Game Development work in your project
  • SKILL.md covers 核心红线, 防止误用的例外与优先级, 文档路由 and 使用原则
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Dgame Dev is an agent skill from AmaniDawn/DGame. DGame Unity 项目开发指导。触发词:DGame, GameModule, UIWindow, UIWidget, UIModule, AddUIEvent, GameEvent, GameEventDriver, EEventGroup, LoadAssetAsync, LoadGameObjectAsync, SetSprite, ConfigSystem, HybridCLR, YooAsset, Luban, RedDotModule, 热更, 资源加载, UI开发, 事件系统, 模块架构

Its SKILL.md is about 890 tokens, which your agent loads only when the skill is triggered. The skill folder holds 21 other files, including reference files (for example `agents/openai.yaml`, `evals/README.md` and `evals/evals.json`).

It sits in Game Development. The repository describes itself as: 根据TEngine框架,结合工作经验,修改和增加一些实用性拓展修改的框架(包括但不限于工具方法,工具编辑器,部分底层逻辑调整)。不合入TEngine,主要是不想让TEngine太冗杂。 The licence is MIT.

When your agent uses it

  • Game Development work in your project

Example prompts

  • “/dgame-dev”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit df0e6f4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dgame Dev loads about 892 tokens when it runs, and up to ~34k if it reads all its reference files. Until then it costs about 66 tokens; SKILL.md has 175 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~892
With references · SKILL.md plus every file in references/, read only if the agent opens them
~34k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from AmaniDawn/DGame at commit df0e6f4, republished under its MIT licence (© AmaniDawn). 175 words, ~892 tokens.

Download SKILL.mdSave it as .claude/skills/dgame-dev/SKILL.md (or your agent's skills folder). This skill also uses 18 other files; get the full folder from GitHub.
name
dgame-dev
description
DGame Unity 项目开发指导。触发词:DGame, GameModule, UIWindow, UIWidget, UIModule, AddUIEvent, GameEvent, GameEventDriver, EEventGroup, LoadAssetAsync, LoadGameObjectAsync, SetSprite, ConfigSystem, HybridCLR, YooAsset, Luban, RedDotModule, 热更, 资源加载, UI开发, 事件系统, 模块架构

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.mdui-patterns.mdP0
事件系统event-system.mdevent-antipatterns.mdP0
资源加载resource-api.mdresource-patterns.mdP0
热更资源包hotpatch-workflow.mdresource-api.mdP0
构建打包build-pipeline.mdhotfix-workflow.mdP1
模块使用modules.md—P0
热更代码hotfix-workflow.md—P1
代码规范naming-rules.md—P1
Luban 配置luban-config.mdluban-devP1
Unity CLI / Workflowunity-cli-P1
红点系统reddot-system.mdui-patterns.mdP1
项目结构architecture.md—P2
问题排查troubleshooting.md—P2

使用原则

  • 先读与任务直接相关的 reference,不要一次性加载全部文档。
  • 如果 reference 与源码冲突,使用 rg 搜索实际签名,优先信任源码,并在回复中标注冲突点。
  • 修改配置表、__tables__.xlsx、__beans__.xlsx、__enums__.xlsx、导表脚本或 GameConfig/ 数据时,先使用 luban-dev。
  • 生成 UI 代码时匹配本仓库实际生命周期:ScriptGenerator、BindMemberProperty、RegisterEvent、OnCreate、OnRefresh、OnDestroy。
  • 资源地址通常等于 GameUnity/Assets/BundleAssets 下资源文件名,不含路径和扩展名;改动前用实际资源和 YooAsset 设置验证。

© AmaniDawn, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 18 other files (references) in .agents/skills/dgame-dev of AmaniDawn/DGame.

  • SKILL.md
  • agents/openai.yaml
  • evals/README.md
  • evals/evals.json
  • references/architecture.md
  • references/build-pipeline.md
  • references/event-antipatterns.md
  • references/event-system.md
  • references/hotfix-workflow.md
  • references/hotpatch-workflow.md
  • references/luban-config.md
  • references/modules.md
  • references/naming-rules.md
  • references/reddot-system.md
  • references/resource-api.md
  • references/resource-patterns.md
  • references/troubleshooting.md
  • references/ui-lifecycle.md
  • … and 1 more

Open the folder on GitHubat commit df0e6f4

Compare with similar skills

Dgame Dev next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dgame Dev compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dgame Dev this skillAmaniDawn/DGame169—~892Automated safety check: PassMIT
Image to Three.js Modelimg2threejs/img2threejs18k1 repos~8.2kAutomated safety check: PassApache-2.0
Web CloneJane-xiaoer/claude-skill-web-clone1k1 repos~2.7kAutomated safety check: PassMIT
Threejs Game Directormajidmanzarpour/threejs-game-skills2.4k—~2.2kAutomated safety check: PassMIT
Game Asset Generatorhtdt/godogen7.1k—~2.8kAutomated safety check: PassMIT
Threejs Gameplay Systemsvalkor-ai/loom1.2k1 repos~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Image to Three.js Model

    img2threejs/img2threejs

    Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.

    18k GitHub starsUsed in 1 repo~8.2k tokens
    Game DevelopmentAuto-check passed
  • Web Clone

    Jane-xiaoer/claude-skill-web-clone

    网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…

    1k GitHub starsUsed in 1 repo~2.7k tokens
    Game DevelopmentAuto-check passed
  • Threejs Game Director

    majidmanzarpour/threejs-game-skills

    Entrypoint for building, upgrading, and finishing Three.js browser games.

    2.4k GitHub stars~2.2k tokensUpdated 10 days ago
    Game DevelopmentAuto-check passed
  • Generates game art from text prompts: PNG images, GLB 3D models, rigged characters, animations and sprites, with background removal.

    7.1k GitHub stars~2.8k tokensUpdated 6 days ago
    Game DevelopmentAuto-check passed
  • Build and iterate playable Three.js game systems: starter scaffold, architecture, design briefs, core loops, level and encounter design, entities, input, camera, collision and physics, scoring…

    1.2k GitHub starsUsed in 1 repo~1.4k tokens
    Game DevelopmentAuto-check passed
  • Uloop Execute Dynamic Code

    CyberAgentGameEntertainment/NovaShader

    Execute C with Unity APIs when existing uloop tools cannot inspect or edit enough.

    1.6k GitHub starsUsed in 1 repo~1.9k tokens
    Game DevelopmentAuto-check passed

More from AmaniDawn/DGame

  • Luban Dev

    AmaniDawn/DGame

    DGame Luban 游戏配置全栈工具,支持枚举/Bean/数据表/字段/数据行的增删改查、配置校验、引用检查、导表脚本调用、ConfigMgr 封装与运行时消费链路排查。触发场景:(1) 编辑 GameConfig/Datas 下的游戏配置数据(道具表、文本表、模型表、音效表、特效表、GM 表等),(2) 新增/修改/删除配置表结构、字段、枚举或 Bean,(3) 处理…

    169 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Unity CLI

    AmaniDawn/DGame

    安装和修复 DGame Unity CLI,使用内嵌 Pipeline 与项目级 Workflow 排查 CLI/MCP 连接,查询 Unity Editor/Development Player,执行编译、测试和受控验证。涉及 CLI 安装、连接配置或实际 Unity 状态时使用;纯源码或文档任务不连接 Editor。

    169 GitHub stars~554 tokensUpdated yesterday
    Auto-check passed

Questions about Dgame Dev

What does Dgame Dev do?

DGame Unity 项目开发指导。触发词:DGame, GameModule, UIWindow, UIWidget, UIModule, AddUIEvent, GameEvent, GameEventDriver, EEventGroup, LoadAssetAsync, LoadGameObjectAsync, SetSprite, ConfigSystem, HybridCLR…. Dgame Dev is an agent skill from AmaniDawn/DGame.

When should I use Dgame Dev?

Dgame Dev fits situations like: game Development work in your project.

How do I install Dgame Dev in Claude Code?

Run `npx skills add AmaniDawn/DGame --skill dgame-dev -a claude-code`. Or copy the skill folder (.agents/skills/dgame-dev in AmaniDawn/DGame) into .claude/skills/dgame-dev in your project. Claude Code loads it when a task matches its description.

How do I install Dgame Dev in Codex?

Run `npx skills add AmaniDawn/DGame --skill dgame-dev -a codex`. Or copy the skill folder (.agents/skills/dgame-dev in AmaniDawn/DGame) into .agents/skills/dgame-dev in your project. Codex loads it when a task matches its description.

Can I use Dgame Dev in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AmaniDawn/DGame --skill dgame-dev -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dgame-dev, .gemini/skills/dgame-dev, .github/skills/dgame-dev and .opencode/skills/dgame-dev in your project.

What does Dgame Dev need to run?

SKILL.md names no scripts, command-line tools or credentials: Dgame Dev is instructions for the agent only.

Does Dgame Dev access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dgame Dev safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dgame Dev use?

Dgame Dev is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dgame Dev use?

About 892 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 33k tokens, read only when the agent opens those files.

What are the alternatives to Dgame Dev?

Skills that share tags, products or a category with Dgame Dev: Image to Three.js Model (img2threejs/img2threejs, 18k stars), Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), Threejs Game Director (majidmanzarpour/threejs-game-skills, 2.4k stars) and Game Asset Generator (htdt/godogen, 7.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dgame Dev?

AmaniDawn (a GitHub user) maintains it in AmaniDawn/DGame, which has 169 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 7, 2026.

Source: AmaniDawn/DGame on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.