Glasses App
brilliantlabsAR/brilliant_sdk
Build an app for Brilliant Labs smart glasses (Halo or Frame) with this SDK, in Python, Flutter or WebBluetooth/TypeScript.
DOTA2 自定义游戏服务端逻辑开发指南。触发词:游戏逻辑、服务端、server、game mode、游戏模式、GameRules、modifier、timer、lua、TSTL。Use when user asks to create or modify DOTA2 custom game server-side logic, game mode configuration…
$ npx skills add XavierCHN/x-template --skill dota2-game-logic -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install XavierCHN/x-template dota2-game-logic --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/XavierCHN/x-template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/dota2-game-logic .claude/skills/dota2-game-logic && rm -rf skills-srcUse ~/.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/
Install the "dota2-game-logic" agent skill from https://github.com/XavierCHN/x-template/tree/master/.agents/skills/dota2-game-logic into .claude/skills/dota2-game-logic/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dota2-game-logic", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/XavierCHN/x-template/tree/master/.agents/skills/dota2-game-logicType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add XavierCHN/x-template --skill dota2-game-logic -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install XavierCHN/x-template dota2-game-logic --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/XavierCHN/x-template.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/dota2-game-logic .agents/skills/dota2-game-logic && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dota2-game-logic" agent skill from https://github.com/XavierCHN/x-template/tree/master/.agents/skills/dota2-game-logic into .agents/skills/dota2-game-logic/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dota2-game-logic", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add XavierCHN/x-template --skill dota2-game-logic -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install XavierCHN/x-template dota2-game-logic --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/XavierCHN/x-template.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/dota2-game-logic .cursor/skills/dota2-game-logic && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "dota2-game-logic" agent skill from https://github.com/XavierCHN/x-template/tree/master/.agents/skills/dota2-game-logic into .cursor/skills/dota2-game-logic/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dota2-game-logic", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/XavierCHN/x-template.git --path .agents/skills/dota2-game-logic--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add XavierCHN/x-template --skill dota2-game-logic -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install XavierCHN/x-template dota2-game-logic --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/XavierCHN/x-template.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/dota2-game-logic .gemini/skills/dota2-game-logic && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "dota2-game-logic" agent skill from https://github.com/XavierCHN/x-template/tree/master/.agents/skills/dota2-game-logic into .gemini/skills/dota2-game-logic/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dota2-game-logic", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install XavierCHN/x-template dota2-game-logicInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add XavierCHN/x-template --skill dota2-game-logic -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/XavierCHN/x-template.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/dota2-game-logic .github/skills/dota2-game-logic && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "dota2-game-logic" agent skill from https://github.com/XavierCHN/x-template/tree/master/.agents/skills/dota2-game-logic into .github/skills/dota2-game-logic/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dota2-game-logic", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add XavierCHN/x-template --skill dota2-game-logic -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install XavierCHN/x-template dota2-game-logic --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/XavierCHN/x-template.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/dota2-game-logic .opencode/skills/dota2-game-logic && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "dota2-game-logic" agent skill from https://github.com/XavierCHN/x-template/tree/master/.agents/skills/dota2-game-logic into .opencode/skills/dota2-game-logic/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dota2-game-logic", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
dota2-game-logicDOTA2 自定义游戏服务端逻辑开发指南。触发词:游戏逻辑、服务端、server、game mode、游戏模式、GameRules、modifier、timer、lua、TSTL。Use when user asks to create or modify DOTA2 custom game server-side logic, game mode configuration…
Dota2 Game Logic is an agent skill from XavierCHN/x-template. DOTA2 自定义游戏服务端逻辑开发指南。触发词:游戏逻辑、服务端、server、game mode、游戏模式、GameRules、modifier、timer、lua、TSTL。Use when user asks to create or modify DOTA2 custom game server-side logic, game mode configuration, modules, game events, net tables, or data synchronization.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Game Development, covering Multiplayer and networking. It works with Lua and TypeScript. The repository describes itself as: DOTA2自定义游戏开发模板项目,使用typesscript和react开发; Xavier's DOTA 2 custom game template using typescript and react-panorama. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ba97b00. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
npxyarnFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npx and yarn, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Dota2 Game Logic loads about 2.7k tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 454 words of instructions outside code blocks.
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.
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.
The full file from XavierCHN/x-template at commit ba97b00, republished under its MIT licence (© XavierCHN). 454 words, ~2,655 tokens.
.claude/skills/dota2-game-logic/SKILL.md (or your agent's skills folder).为 DOTA2 自定义游戏项目编写服务端游戏逻辑。
tstl 编译为 Lua 运行在 Dota 2 服务端@registerAbility() / @registerModifier() 注册,继承 BaseAbility / BaseItem / BaseModifiergame/scripts/npc/ 下的 KV 文件中。后端代码通过编译后的 JSON 读取,严禁在代码中硬编码任何可能变化的配置值。修改配置后需运行 npx gulp kv_2_js 刷新 JSON| 文件 | 路径 | 用途 |
|---|---|---|
| 服务端入口 | game/scripts/src/addon_game_mode.ts | 游戏模式初始化入口 |
| 客户端入口 | game/scripts/src/addon_game_mode_client.ts | 客户端逻辑入口 |
| 游戏模块 | game/scripts/src/modules/ | 游戏功能模块(GameConfig、Debug 等) |
| 模块激活 | game/scripts/src/modules/index.ts | 模块激活入口(ActivateModules()) |
| 技能源码 | game/scripts/src/abilities/<模块名>/ | 技能和物品的 TSTL 逻辑 |
| 独立 Modifier | game/scripts/src/modifiers/<模块名>/ | 独立的机制性 modifier |
| 工具函数 | game/scripts/src/utils/ | 通用工具库 |
| 事件类型 | shared/gameevents.d.ts | 前后端通信事件类型声明 |
| 网络表类型 | shared/net_tables.d.ts | CustomNetTable 类型声明 |
| X网络表类型 | shared/x-net-table.d.ts | XNetTable 类型声明 |
| 网络表注册 | game/scripts/custom_net_tables.txt | 注册 NetTable 表名(KV3 格式) |
| KV 配置 | game/scripts/npc/ | NPC 键值对定义(技能/英雄/物品/单位) |
| KV 编译 JSON | game/scripts/src/json/ | KV → JSON 编译产物,后端 TSTL 从这里读取数据 |
| 前端 JSON | content/panorama/src/json/ | KV → JSON 编译产物,前端 Panorama 从这里读取统一数据 |
| 本地化 | game/resource/addon.csv | 文本本地化 |
| TSTL 配置 | game/scripts/tsconfig.json | TSTL 开发环境编译配置 |
| TSTL 生产配置 | game/scripts/tsconfig.prod.json | TSTL 生产环境编译配置(加密) |
game/scripts/src/modules/ 下modules/index.ts 的 ActivateModules() 中激活新模块shared/gameevents.d.ts 声明事件类型如果修改了 game/scripts/npc/ 下的 KV 文件,必须运行以下命令将 KV 编译为 JSON,保证前后端数据一致:
# 编译所有 KV 文件为 JSON
npx gulp kv_2_js
# 或快捷命令(同时执行 sheet→kv 和 kv→js)
npx gulp jssync前后端数据分离原则:
完成代码编写后,必须运行编译命令验证没有错误:
# 验证服务端 TSTL 编译
npx tstl --project game/scripts/tsconfig.json服务端入口文件,通过 Object.assign(getfenv(), {...}) 将函数注册到 Dota 2 引擎:
import 'utils/index';
import { ActivateModules } from './modules';
import Precache from './utils/precache';
Object.assign(getfenv(), {
Activate: () => {
ActivateModules();
},
Precache: Precache,
});Activate():游戏模式激活时调用,初始化所有模块Precache():预缓存资源import { XNetTable } from '../utils/xnet-table';
declare global {
interface CDOTAGameRules {
XNetTable: XNetTable;
}
}
export function ActivateModules() {
GameRules.XNetTable = new XNetTable();
new GameConfig();
new Debug();
}game/scripts/src/modules/ 创建 <模块名>.tsmodules/index.ts 中激活// modules/MyModule.ts
import { reloadable } from '../utils/tstl-utils';
@reloadable
export class MyModule {
constructor() {
// 初始化逻辑
ListenToGameEvent('entity_killed', event => this.OnEntityKilled(event), this);
}
OnEntityKilled(event: EntityKilledEvent): void {
// 处理逻辑
}
}// modules/index.ts - 添加激活
import { MyModule } from './MyModule';
export function ActivateModules() {
// ...existing modules...
new MyModule();
}export class GameConfig {
constructor() {
// 游戏设置
GameRules.SetCustomGameSetupAutoLaunchDelay(3);
GameRules.SetHeroSelectionTime(0);
GameRules.SetPreGameTime(0);
GameRules.SetStartingGold(0);
GameRules.SetSameHeroSelectionEnabled(true);
GameRules.SetHeroRespawnEnabled(false);
// 游戏模式实体设置
const game = GameRules.GetGameModeEntity();
game.SetCustomGameForceHero('npc_dota_hero_phoenix');
game.SetBuybackEnabled(false);
game.SetDaynightCycleDisabled(true);
// 队伍人数
GameRules.SetCustomGameTeamMaxPlayers(DotaTeam.GOODGUYS, 3);
GameRules.SetCustomGameTeamMaxPlayers(DotaTeam.BADGUYS, 3);
}
}| 装饰器/基类 | 用途 |
|---|---|
@registerAbility() | 注册技能/物品类,类名即为注册名 |
@registerModifier() | 注册 modifier 类,类名即为注册名,自动调用 LinkLuaModifier |
BaseAbility | 技能基类,super.* 可调用原生 CDOTA_Ability_Lua 方法 |
BaseItem | 物品基类,super.* 可调用原生 CDOTA_Item_Lua 方法 |
BaseModifier | modifier 基类,提供 apply/find_on/remove 静态方法 |
BaseModifierMotionHorizontal | 水平运动 modifier 基类 |
BaseModifierMotionVertical | 垂直运动 modifier 基类 |
BaseModifierMotionBoth | 双向运动 modifier 基类 |
// 施加 modifier(参数类型与 OnCreated 参数自动关联)
const mod = MyModifier.apply(target, caster, ability, { duration: 5 });
// 查找 modifier
const existing = MyModifier.find_on(target);
// 移除 modifier
MyModifier.remove(target);标记支持热重载的类,在 Debug 模式下 -s 指令可重载脚本:
import { reloadable } from '../utils/tstl-utils';
@reloadable
export class MyModule { /* ... */ }声明(shared/gameevents.d.ts):
declare interface CustomGameEventDeclarations {
c2s_player_action: { action_type: number; target_entity: number };
s2c_sync_data: { data_key: string; data_value: number };
}后端发送:
// 发送给所有客户端
CustomGameEventManager.Send_ServerToAllClients('s2c_sync_data', {
data_key: 'score',
data_value: 100,
});
// 发送给指定玩家
CustomGameEventManager.Send_ServerToPlayer(playerID, 's2c_sync_data', {
data_key: 'score',
data_value: 100,
});后端监听:
// 监听前端事件
CustomGameEventManager.RegisterListener('c2s_player_action', (userID, event) => {
const playerID = userID as PlayerID;
// 处理逻辑
});1. 注册表名(game/scripts/custom_net_tables.txt):
<!-- kv3 encoding:text:version{e21c7f3c-8a33-41c5-9977-a76d3a32aa0d} format:generic:version{7412167c-06e9-4698-aff2-e63eb59037e7} -->
{
custom_net_tables =
[
"hero_list",
"game_timer",
"my_table"
]
}2. 声明类型(shared/net_tables.d.ts):
declare interface CustomNetTableDeclarations {
my_table: {
my_key: {
value: number;
name: string;
};
};
}3. 后端写入:
CustomNetTables.SetTableValue('my_table', 'my_key', {
value: 42,
name: 'hello',
});限制:每个表不超过 2MB,超过请使用 XNetTable。
大数据量场景使用,通过 Game Events 分片传输。访问 GameRules.XNetTable:
// 写入
GameRules.XNetTable.Set('large_table', 'some_key', data);
// 需要在 shared/x-net-table.d.ts 声明类型| API | 用途 |
|---|---|
GameRules.GetGameTime() | 获取游戏时间 |
GameRules.GetGameModeEntity() | 获取游戏模式实体 |
GameRules.SetCustomGameTeamMaxPlayers(team, count) | 设置队伍人数上限 |
GameRules.IsDaytime() | 是否白天 |
GameRules.SetHeroSelectionTime(seconds) | 选英雄时间 |
GameRules.SetPreGameTime(seconds) | 准备时间 |
GameRules.SetStartingGold(gold) | 初始金钱 |
| API | 用途 |
|---|---|
CreateUnitByName(name, origin, findClear, owner, playerOwner) | 创建单位 |
unit.Kill(ability, attacker) | 杀死单位 |
unit.RemoveSelf() | 移除单位 |
unit.AddAbility(name) | 添加技能 |
unit.FindAbilityByName(name) | 查找技能 |
unit.AddNewModifier(caster, ability, name, kv) | 添加 modifier |
unit.GetAbsOrigin() | 获取位置 |
unit.SetAbsOrigin(vec) | 设置位置 |
unit.GetHealth() / unit.SetHealth(v) | 生命值 |
unit.GetTeamNumber() | 获取队伍 |
unit.IsAlive() | 是否存活 |
| API | 用途 |
|---|---|
ParticleManager.CreateParticle(path, attach, unit) | 创建粒子 |
ParticleManager.SetParticleControl(particle, cp, vec) | 设置控制点 |
ParticleManager.ReleaseParticleIndex(particle) | 释放粒子 |
EmitSoundOn(soundName, unit) | 在单位上播放音效 |
EmitGlobalSound(soundName) | 全局播放音效 |
StopSoundOn(soundName, unit) | 停止音效 |
// 延迟执行
Timers.CreateTimer(delay, () => {
// 回调
});
// 循环执行(返回间隔秒数继续循环,返回 null 停止)
Timers.CreateTimer(() => {
// 每帧执行
return 0.03;
});
// 使用 timer_utils
import { registerTimerFunction } from '../utils/timer_utils';const pos = unit.GetAbsOrigin();
const direction = (target.GetAbsOrigin() - pos as Vector).Normalized();
const distance = (target.GetAbsOrigin() - pos as Vector).Length();
const newPos = pos + direction * 100 as Vector;| 指令 | 说明 |
|---|---|
-help | 显示所有测试指令 |
-s | 重载脚本(script_reload) |
-r | 重启游戏 |
-debug | 切换调试模式(线上需白名单) |
-testx [filter] | 运行测试用例 |
print('debug message'); // 服务端控制台输出
Say(hero, 'message', true); // 在游戏中显示消息代码编写完成后,必须执行以下命令验证编译无错误:
# 编译服务端 TSTL(非 watch 模式,仅编译一次检查错误)
npx tstl --project game/scripts/tsconfig.json如果同时修改了前端代码,还需要验证前端编译:
# 编译前端 Panorama(非 watch 模式)
npx webpack --config content/panorama/webpack.dev.js# 同时验证服务端 + 前端
npx tstl --project game/scripts/tsconfig.json && npx webpack --config content/panorama/webpack.dev.js@registerModifier() 装饰器,否则 LinkLuaModifier 不会被调用src/modifiers/custom_net_tables.txtshared/gameevents.d.ts 声明,否则前后端类型不一致#base 引用ScriptFile 指向编译后的 .lua 文件路径(如 abilities/module/ability.lua)print() 只在服务端控制台输出,Say() 在游戏内显示as Vector 类型断言yarn dev 自动编译shared/ 目录的修改会同时影响前后端编译,确保声明正确© XavierCHN, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/dota2-game-logic of XavierCHN/x-template.
Open the folder on GitHubat commit ba97b00
Dota2 Game Logic 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Dota2 Game Logic this skillXavierCHN/x-template | 217 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Glasses AppbrilliantlabsAR/brilliant_sdk | 115 | — | ~1.2k | Automated safety check: Pass | BSD-3-Clause | |
| Image to Three.js Modelimg2threejs/img2threejs | 18k | 1 repos | ~8.2k | Automated safety check: Pass | Apache-2.0 | |
| Threejs Gameplay Systemsvalkor-ai/loom | 1.2k | 1 repos | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Fantasy Framework Development Guideqq362946/Fantasy | 1.4k | — | ~5.8k | Automated safety check: Pass | Custom licence | |
| Anatomywheresryan22/anatomy | 500 | — | ~7.7k | Automated safety check: Pass | MIT |
brilliantlabsAR/brilliant_sdk
Build an app for Brilliant Labs smart glasses (Halo or Frame) with this SDK, in Python, Flutter or WebBluetooth/TypeScript.
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.
valkor-ai/loom
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…
qq362946/Fantasy
Development and review guide for the Fantasy C# distributed game server framework: ECS, FTask, routing, service discovery, config and databases.
wheresryan22/anatomy
Build crafted, highly detailed, interactive isometric SVG figures that explain a technical idea as a real physical object (a test rig, a dial gauge, a cabinet of drawers, a plotter, a lock), with…
PlayFab/gsdk
Validates PlayFab Game Server SDK (GSDK) integrations in game server projects.
XavierCHN/x-template
为 DOTA2自定义游戏 项目生成 Dota 2 本地化文本(addon.csv)。触发词:本地化、翻译、loc、i18n、addon.csv、文本、tooltip、多语言。Use when user asks to generate localization entries for abilities/units/items/modifiers, translate Chinese to…
XavierCHN/x-template
DOTA2 自定义游戏 UI(Panorama)开发指南。触发词:UI、界面、面板、panorama、frontend、前端、HUD、layout、xml、css、样式。Use when user asks to create or modify DOTA2 custom game UI panels, React components, CSS styles, layout XML…
XavierCHN/x-template
Dota 2 自定义技能编写指南。触发词:技能、ability、spell、被动、主动. An agent skill from XavierCHN/x-template.
XavierCHN/x-template
Dota 2 自定义物品编写指南。触发词:物品、item、装备、道具、配方、recipe、合成. An agent skill from XavierCHN/x-template.
XavierCHN/x-template
Dota 2 自定义单位编写指南。适用于编写/修改单位 KV 配置文件(game/scripts/npc/customunits/)。触发词:单位、unit、creature、怪物、召唤物、建筑、塔、npc。
Works with
Categories
DOTA2 自定义游戏服务端逻辑开发指南。触发词:游戏逻辑、服务端、server、game mode、游戏模式、GameRules、modifier、timer、lua、TSTL。Use when user asks to create or modify DOTA2 custom game server-side logic, game mode configuration…. Dota2 Game Logic is an agent skill from XavierCHN/x-template. DOTA2 自定义游戏服务端逻辑开发指南。触发词:游戏逻辑、服务端、server、game mode、游戏模式、GameRules、modifier、timer、lua、TSTL。Use when user asks to create or modify DOTA2 custom game server-side logic, game mode configuration, modules, game events, net tables, or data synchronization.
Dota2 Game Logic fits situations like: user asks to create; modify DOTA2 custom game server-side logic; game mode configuration; data synchronization.
Run `npx skills add XavierCHN/x-template --skill dota2-game-logic -a claude-code`. Or copy the skill folder (.agents/skills/dota2-game-logic in XavierCHN/x-template) into .claude/skills/dota2-game-logic in your project. Claude Code loads it when a task matches its description.
Run `npx skills add XavierCHN/x-template --skill dota2-game-logic -a codex`. Or copy the skill folder (.agents/skills/dota2-game-logic in XavierCHN/x-template) into .agents/skills/dota2-game-logic in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add XavierCHN/x-template --skill dota2-game-logic -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dota2-game-logic, .gemini/skills/dota2-game-logic, .github/skills/dota2-game-logic and .opencode/skills/dota2-game-logic in your project.
Going by SKILL.md and its folder, Dota2 Game Logic needs the command-line tools its instructions call (npx and yarn). Our summary lists: Node.js.
SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
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.
Dota2 Game Logic is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Dota2 Game Logic: Glasses App (brilliantlabsAR/brilliant_sdk, 115 stars), Image to Three.js Model (img2threejs/img2threejs, 18k stars), Threejs Gameplay Systems (valkor-ai/loom, 1.2k stars) and Fantasy Framework Development Guide (qq362946/Fantasy, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
XavierCHN (a GitHub user) maintains it in XavierCHN/x-template, which has 217 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on May 23, 2026.
Source: XavierCHN/x-template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.