dgame-dev
Provides DGame Unity project development guidance. Covers architecture, UI, events, and asset workflows.
Install
mkdir -p .claude/skills/dgame-dev && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18308" && unzip -o skill.zip -d .claude/skills/dgame-dev && rm skill.zipInstalls to .claude/skills/dgame-dev
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
DGame Unity 项目开发指导。触发词:DGame, GameModule, UIWindow, UIWidget, UIModule, AddUIEvent, GameEvent, GameEventDriver, EEventGroup, LoadAssetAsync, LoadGameObjectAsync, SetSprite, ConfigSystem, HybridCLR, YooAsset, Luban, RedDotModule, CoplayDev unity-mcp, MCP, 热更, 资源加载, UI开发, 事件系统, 模块架构Key capabilities
- →Provide DGame specific AI refined reference documentation
- →Describe actual API, directory, and placement rules
- →Enforce layered placement for runtime, editor tools, and hotfix gameplay
- →Guide module access through GameLogic.GameModule.XXX
- →Prioritize UniTask for time-consuming operations
How it works
The skill provides AI-refined documentation for DGame development, focusing on specific API usage, directory structures, and rules for layering, module access, asynchronous operations, resource lifecycles, and event decoupling.
Inputs & outputs
When to use dgame-dev
- →Building UI systems
- →Implementing game events
- →Loading game assets
About this skill
DGame 开发指导
DGame 使用 HybridCLR + YooAsset + UniTask + Luban 构建。 本 skill 提供 DGame 专属的 AI 精炼参考文档,优先描述本仓库实际 API、目录和落位规则。
核心红线
- 分层落位:框架运行时放
GameUnity/Assets/DGame/Runtime,编辑器工具放GameUnity/Assets/DGame/Editor,热更玩法放GameUnity/Assets/Scripts/HotFix/GameLogic。热更边界:DGame.Runtime/DGame.AOT不热更,Scripts/HotFix/*全部热更。 - 模块访问:业务代码优先通过
GameLogic.GameModule.XXX访问模块,不在业务层散落ModuleSystem.GetModule<T>()。 - 异步优先:IO、资源、场景等耗时操作优先使用
UniTask,不要新增 Coroutine 工作流。 - 资源生命周期成对:非实例化资源用
LoadAssetAsync/LoadAsset后按持有关系UnloadAsset;GameObject 实例用LoadGameObjectAsync/LoadGameObject,销毁实例时资源模块自动回收引用。 - 事件解耦:UI 内部监听用
UIBase.AddUIEvent自动清理;跨模块事件用[EventInterface(EEventGroup...)]、GameEvent.Get<T>()或GameEvent.AddEventListener。 - 配置表边界:配置表结构、Excel、导表脚本优先使用
luban-dev;本 skill 只补充 DGame 业务代码如何消费配置。
文档路由
根据任务类型,读取对应的 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 |
| 红点系统 | reddot-system.md | ui-patterns.md | P1 |
| 项目结构 | architecture.md | — | P2 |
| 问题排查 | troubleshooting.md | — | P2 |
| MCP 场景/GO/UI/脚本/Editor | mcp-tools.md | — | P1 |
| MCP 材质/Shader/动画/VFX | mcp-visual.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 设置验证。
When not to use it
- →When the task involves modifying configuration tables, Excel files, or export scripts, which should use `luban-dev`
- →When the reference documentation conflicts with source code, in which case source code is preferred
- →When the task is not directly related to DGame development
Limitations
- →The skill only supplements DGame business code for consuming configurations, not modifying them.
- →The skill prioritizes source code over reference documentation in case of conflict.
- →The skill does not generate UI code but matches existing lifecycle methods.
How it compares
This skill offers specialized, AI-refined documentation tailored to DGame's specific architecture and tools like HybridCLR, YooAsset, and UniTask, unlike generic Unity development guides.
Compared to similar skills
dgame-dev side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| dgame-dev (this skill) | 0 | 20d | No flags | Intermediate |
| unity-developer | 142 | 3mo | No flags | Advanced |
| tauri | 76 | 17d | Review | Advanced |
| telegram-mini-app | 62 | 6mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
unity-developer
sickn33
Build Unity games with optimized C# scripts, efficient rendering, and proper asset management. Masters Unity 6 LTS, URP/HDRP pipelines, and cross-platform deployment. Handles gameplay systems, UI implementation, and platform optimization. Use PROACTIVELY for Unity performance issues, game mechanics, or cross-platform builds.
tauri
EpicenterHQ
Tauri path handling, cross-platform file operations, and API usage. Use when working with file paths in Tauri frontend code, accessing filesystem APIs, or handling platform differences in desktop apps.
telegram-mini-app
davila7
Expert in building Telegram Mini Apps (TWA) - web apps that run inside Telegram with native-like experience. Covers the TON ecosystem, Telegram Web App API, payments, user authentication, and building viral mini apps that monetize. Use when: telegram mini app, TWA, telegram web app, TON app, mini app.
shopify-development
davila7
Build Shopify apps, extensions, themes using GraphQL Admin API, Shopify CLI, Polaris UI, and Liquid. TRIGGER: "shopify", "shopify app", "checkout extension", "admin extension", "POS extension", "shopify theme", "liquid template", "polaris", "shopify graphql", "shopify webhook", "shopify billing", "app subscription", "metafields", "shopify functions"
nextjs-supabase-auth
davila7
Expert integration of Supabase Auth with Next.js App Router Use when: supabase auth next, authentication next.js, login supabase, auth middleware, protected route.
nuxt
antfu
Nuxt full-stack Vue framework with SSR, auto-imports, and file-based routing. Use when working with Nuxt apps, server routes, useFetch, middleware, or hybrid rendering.