Dialogue Systems
/dialogue-systems
Branching dialogue as a node graph with conditions, variables and localization hooks, using Ink, Yarn Spinner or a custom runner.
- 许可证
- Apache-2.0
- 出品
- GameSkill 出品
所属合集
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
我们测过
在 Python 3 + Godot 4.7.2 上通过 35/35 项检查(2026-10-28):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Build branching dialogue and narrative — a node/choice graph with conditions, variables, and localization hooks — and choose between authoring tools Ink and Yarn Spinner or a custom data-driven runner. Engine-neutral. …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 184b72be0288,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 台词和选项文字用字符串表 ID,不写死显示文本 / Lines and choice text are string-table IDs, not hard-coded display text
- 变量存放和对话流程分开,选项用条件控制显示 / Variables live apart from the flow; choices are gated by conditions
- 会扣资源的赋值放在选项(转移)上,重复进入节点不会重复扣 / Costly writes sit on the choice (transition), so revisiting a node doesn't charge twice
- 条件求值不用裸 eval,只允许变量、字面量和运算 / Conditions are evaluated without a bare eval: only names, literals and operators
- 上线前校验:目标节点都存在、每个节点都有出口、变量都声明过、没有孤立节点 / Validated before shipping: every target exists, every node exits, every variable is declared, no orphans
中文指南
这个 skill 做什么
让 AI 设计分支对话:用节点和选项组成对话图,用条件控制选项是否出现,用变量记住玩家做过什么,台词从一开始就用 ID 方便本地化;并帮你在 Ink、Yarn Spinner 和自己写的数据驱动 runner 之间做选择。不绑定引擎。
什么时候用
- 给 NPC 写分支对话、选项菜单,或者要记录好感度、任务标记
- 在 Ink、Yarn Spinner 和自己写 JSON 对话格式之间犹豫
- 对话卡住不动、选项重复扣钱、翻译时要改一大堆硬编码字符串
怎么装
下载本页的 ZIP,把 dialogue-systems/ 整个文件夹放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor),重启 agent。
最小示例
ZIP 里的 gameskill/examples/ 有一段原创对话「Lantern Keep 渡口」:摆渡人奥伦,可以付 40 金币过河、帮忙换船票、先问问这条河。dialogue/ 里是对话图和中英文字符串表,godot/ 是把 skill 里的 GDScript runner 写完整的 Godot 4.7 工程,打开 godot/project.godot 就能点选项玩。
我们怎么测的
直接从 references/runner.md 里取出 skill 自带的 Python runner、表达式求值和本地化函数来跑(不另抄一份),共 15 项检查:条件和算术求值、拒绝 __import__ / open 这类调用、变量名写错会报错、付钱、帮忙、反复回到开场节点只扣一次钱、同一组赋值互不干扰、中文表缺词时回退到英文、所有分支(8 步以内)都能走到结局、校验器能找出坏目标、没有出口的节点、未声明变量和孤立节点;再在 Godot 4.7.2 无头模式下跑 GDScript 版的 7 项检查,并确认两边逐句输出一致;最后用 OpenGL 截一张对话框图。结果在 gameskill/test-report.json。
搭配
godot-ui-control:对话框、头像、选项按钮ccgs-localize:整理字符串表和翻译流程save-systems:把对话变量和已读标记存档
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/dialogue-systems/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/dialogue-systems.zip -o /tmp/gameskill-dialogue-systems.zip
unzip -oq /tmp/gameskill-dialogue-systems.zip -d .claude/skills
rm /tmp/gameskill-dialogue-systems.zip包含内容
- Worked steps: Engine-neutral dialogue graph; Runner step; Ink — branching with knots, choices, and variables; Yarn Spinner — nodes, options, and commands
- A pitfalls section with the mistakes to avoid
- Bundled 2 reference docs the agent reads when needed
适合
- Requests about dialogue system, branching dialogue, conversation tree, choices or Ink (.ink)
试试这条提示词
Add branching NPC dialogue with choices and flags. Should I use Ink or Yarn Spinner?关于这个 Skill
Build branching dialogue and narrative — a node/choice graph with conditions, variables, and localization hooks — and choose between authoring tools Ink and Yarn Spinner or a custom data-driven runner. Engine-neutral. Use when the user mentions dialogue system, branching dialogue, conversation tree, choices, Ink (.ink), Yarn Spinner (.yarn), or NPC dialogue.
From the dialogue-systems SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Engine-neutral dialogue graph (data, not code)
- Runner step (a state machine over the graph)
- Ink — branching with knots, choices, and variables (inkle)
- Yarn Spinner — nodes, options, and commands (Yarn Spinner 3.x)
常见问题
游戏打磨流程 Game Polish Workflow
让 AI 把游戏真正改好的可复用流程:10 步打磨循环、中英双语提示词、AI 做游戏常见问题排障清单,以及试玩和发布检查表。
- 10 步打磨循环,每步有完成标准
- 14 条中文 + 14 条英文提示词
基于 gamedev-skills/awesome-gamedev-agent-skills (作者 gamedev-skills,协议 Apache-2.0)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
Game Save Systems
Design save/load for game state — choosing what to serialize, file formats, save slots, atomic crash-safe writes, schema versioning and migration, and autosave.
Godot Resources
Data-driven Godot 4.7 games with custom Resource classes: typed data, .tres files, duplication and threaded loading.
Godot UI (Control Nodes)
Godot 4.7 interfaces with Control nodes: anchors, containers, themes and keyboard or gamepad focus navigation.
Visual Novel
Build a visual novel: a branching script, character and background display, a text box with choices, save/load, backlog, and skip/auto.
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 43 个2D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
相似 skills
ForgeSkills
28 gated game-development agent skills (concept, orchestration, verification, Blender headless, reference reconstruction, textures, animation, VFX, lighting, foliage, Godot pipeline) plus Python tools that measure the result. GameSkill hosts the 27 we ran, with the tools. Apache-2.0.
open-game-skills
An MIT pack of about 190 SKILL.md agent skills for game design: combat feel, camera, traversal, world, validation, 2D/Spine and art pipeline, with a dispatcher and adapters for Three.js, PixiJS, Phaser, Cocos, Godot, Unity and Unreal.
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Co-op Anything
Point your coding agent at a single-player game and make it co-op: an MCP server, 13 agent skills and a playbook to research, reverse engineer, build, bot-test and ship co-op mods with Steam relay networking.