luban-dev

luban-dev is a skill for Claude Code, Codex from AmaniDawn/DGame. It costs 243 tokens per session (2,728 once invoked), scanned A, original, MIT.

A guide for managing DGame Luban, a tool that turns game configuration tables and definitions into code and data files.

In plain words
What is it for?
Changing game tables, fields, enums, or data; running client or server exports; validating references; and tracing how configuration is used at runtime.
Why use it?
It prevents edits to generated files from being lost and keeps configuration changes, exports, and game-code access organized.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/amanidawn/dgame/luban-dev
Any agent
npx skills add AmaniDawn/DGame --skill luban-dev
Clone the repo
git clone --depth 1 https://github.com/AmaniDawn/DGame

Made for: Claude Code, 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 luban-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/amanidawn/dgame/luban-dev.svg)](https://agentmods.dev/skills/amanidawn/dgame/luban-dev)
Your own site
<a href="https://agentmods.dev/skills/amanidawn/dgame/luban-dev"><img src="https://agentmods.dev/badge/skills/amanidawn/dgame/luban-dev.svg" alt="Measured on agentmods" height="20"></a>
Per session 243 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,728 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00243 $0.02728
Opus 5 $0.00121 $0.01364
Sonnet 5 $0.00049 $0.00546
Haiku 4.5 $0.00024 $0.00273

Measured 5d ago against content hash bf490d1eb436, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

luban-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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/luban_helper.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/luban-dev/SKILL.md · 168 lines

How it starts

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

DGame Luban 配置开发

核心约定

  • 源头:GameConfig/Datas/GameConfig/Defines/GameConfig/CustomTemplate/,不要手改生成产物。
  • 默认生成:客户端 cs-bin 代码 + bin/json 数据,优先走 LazyLoad。
  • 默认脚本:GameConfig/GenerateTool_Binary/gen_bin_client_lazyload.bat
  • 代码输出:GameUnity/Assets/Scripts/HotFix/GameProto/LubanConfig/
  • 桥接文件:ConfigSystem.csExternalTypeUtil.cs 由模板复制到 GameUnity/Assets/Scripts/HotFix/GameProto/
  • 数据输出:二进制到 GameUnity/Assets/BundleAssets/Configs/Binary/;Json 路径以 GenerateTool_Binary/path_define.* 当前配置为准。
  • 命名空间/顶层模块:GameProto;总表管理器:Tables
  • 业务访问:优先在 GameUnity/Assets/Scripts/HotFix/GameLogic/ConfigMgr/ 封装 XxxConfigMgr,不要把 TbXXX 访问散落到业务层。

导出脚本

所有脚本位于 GameConfig/GenerateTool_Binary/,使用相对路径调用。

脚本 用途 说明
gen_bin_client_lazyload 客户端(推荐,LazyLoad 模板) AI 默认调用此脚本
gen_bin_client 客户端(标准模板) 非懒加载
gen_bin_server_lazyload 服务端(LazyLoad 模板) 需要服务端配置时使用
gen_bin_server 服务端(标准模板) 非懒加载
gen_bin_all_lazyload 客户端 + 服务端(LazyLoad 模板) 一键导出两端
gen_bin_all 客户端 + 服务端(标准模板) 一键导出两端,非懒加载

AI 调用导表命令

根据操作系统选择对应扩展名。默认只导客户端 LazyLoad:

Windows:

cmd /c "set AI_MODE=1 && GameConfig\GenerateTool_Binary\gen_bin_client_lazyload.bat"

macOS/Linux:

bash GameConfig/GenerateTool_Binary/gen_bin_client_lazyload.sh

默认工作流

  1. 先判断改动属于数据、表结构、Bean/Enum、schema、模板、导表脚本还是运行时消费。
  2. 读现有定义:__tables__.xlsx__beans__.xlsx__enums__.xlsx、目标业务表和相关 ConfigMgr
  3. 改源文件,不改 LubanConfig/ 下生成代码。
  4. 运行或提示运行默认导表脚本。
  5. 验证生成目录、Unity 编译、ConfigSystem.Instance.Tables 访问和业务管理器封装。

新增配置表

  1. GameConfig/Datas/ 新增业务 Excel,前四行固定为 ##var##type##group##
  2. 需要复合字段时补 __beans__.xlsx,需要枚举时补 __enums__.xlsx
  3. 默认推荐在 __tables__.xlsx 显式注册 full_namevalue_typeinputmodetags
  4. Luban 支持文件名 #<value_type>-<comment>.xlsx 自动导入,不需要在 __tables__.xlsx 注册;DGame 可用但不作为默认推荐。
  5. DGame 扩展支持 Sheet 名 #<value_type>-<comment> 自动拆表;导表前会拆成临时 # 文件,同样不需要注册,但仍按自动导入场景谨慎使用。
  6. 需要按字段分组访问时,优先在 __tables__.xlsxtagsgroup_by:字段名;自动导入表如需特殊 tags,先确认当前 Luban 支持方式。
  7. 单例配置可用 mode=one
  8. 导表后在 GameLogic/ConfigMgr/XxxConfigMgr

Read the full file on GitHub · 168 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. 5d ago First seen · 168 lines · 243 tokens per session scan A bf490d1eb436

Subscribe to this mod's changes

luban-dev is a skill published in the GitHub repository AmaniDawn/DGame (152 stars, last pushed 2d ago), licensed MIT. It adds 243 tokens to every session and 2,728 once invoked, about $0.0012 per session on Opus 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

gameobject-component-destroy

Destroy one or more Components from a target GameObject. Missing (null) components are skipped — they cannot be destroyed. Use 'gameobject-find' and 'gameobject-component-get' to identify the components first.

IvanMurzak/Unity-MCP · 49 tokens

playtest-report

Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

Donchitos/Claude-Code-Game-Studios · 35 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

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

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