Godot UI Integration
A Codex skill for building Godot UI from approved designs, with editor-visible scenes and runtime visual-parity checks.
- 许可证
- MIT
- 出品
- GameSkill 出品
我们测过
在 Godot 4.7.2 上通过 46/46 项检查(2026-10-28):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Build or revise Godot UI from an approved design, separated art, or a visual reference when scene structure, gameplay binding, and runtime visual verification all matter. …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 346fa1718d6c,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 zimo-xiao-zheng/godot-ui-integration(作者 zimo-xiao-zheng),协议 MIT。ZIP 保留协议文件(LICENSE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 正式界面在 .tscn 里打开就能看到,不靠 _ready() 拼出来 / Each formal screen is visible in its .tscn before _ready() runs
- 运行时代码只填数据,不新建、不移动主要布局节点 / Runtime code fills data only; it never builds or moves the main layout
- 名字、价格、数量等动态内容是节点文字,不烤进图片 / Names, prices and counts are nodes or data, never baked into art
- 装饰性子节点 mouse_filter 设为 IGNORE / Decorative children use mouse_filter IGNORE
- 在目标分辨率下和参考图同尺寸对比,并写明偏差 / Compare against the reference at the target resolution and list deviations
中文指南
这个 skill 做什么
把已经确认的 UI 设计图(或拆好的美术素材)完整落进 Godot:搭好能在编辑器里直接看到的 .tscn 场景,接上数据、焦点和进出路径,最后在目标分辨率下运行截图并和参考图对比。附带 5 个 Python 小工具:白底转透明、透明度检查、拼图对比表、参考图与运行截图的差异对比、九宫格和拉伸变形检查。
什么时候用
- 手上有确认过的界面设计,要做成 Godot 里真正能用的界面
- 要求“和设计图一模一样”的还原
- 接手的 UI 是在代码里拼出来的,想改成场景文件
怎么装
下载本页的 ZIP,把 godot-ui-integration/ 整个文件夹放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor),重启 agent。
最小示例
gameskill/examples/ 是一个 Godot 4.7 工程:scenes/shop.tscn 是在场景文件里摆好的商店弹窗(3 张卡片的示例状态都写在场景里),shop.gd 只负责填数据、焦点、购买和关闭,main.tscn 是进入和退出的路径;scenes/bad_panels.tscn 故意放了一个被拉变形的横幅和九宫格边距过大的面板,给检查工具找。assets/coin.png 是用 skill 的 white_bg_to_alpha.py 从白底图转出来的。
我们怎么测的
在 Godot 4.7.2(xvfb 真窗口 1920×1080)下跑 17 项:场景不经过 _ready() 就有完整布局和示例文字;绑定数据后节点数不变(22 个)、面板位置不变;第 2、3 张卡片显示 Shield/90、Crown/900,买不起的按钮禁用;焦点在第一个购买按钮,ui_right 移到下一个,ui_accept 购买后金币 300→210;装饰节点不拦鼠标,点按钮中间能点到;ui_cancel 关闭弹窗、焦点回到打开按钮。再用 skill 的 5 个脚本跑 16 项:白底转透明去掉边缘白色、保留硬币内部的白色高光;透明度严格检查放行抠好的图、拒绝白底原图;拉伸检查放行商店场景、找出 300×80 横幅被拉到 900×400 和九宫格边距超过一半;参考图与运行截图的平均差 0.0022,面板偏 40 像素时升到 0.0276;画面比例不同会拒绝对比。发现 2 个上游问题:SKILL.md 里写的 reference_parity_audit.py reference.png runtime.png 用法跑不通,脚本要求 --reference 和 --runtime 参数;拉伸检查不会跟进实例化的子场景,要对每个子场景单独跑。Godot MCP 没有测(box 上没有)。结果在 gameskill/test-report.json。
搭配
game-ui-ux:HUD、菜单和安全区的设计规则godot-nodes-scenes:场景和节点组织game-ui-kit:现成的 UI 组件
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/godot-ui-integration/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/godot-ui-integration.zip -o /tmp/gameskill-godot-ui-integration.zip
unzip -oq /tmp/gameskill-godot-ui-integration.zip -d .claude/skills
rm /tmp/gameskill-godot-ui-integration.zip包含内容
- A workflow that keeps visual intent, scene structure and gameplay binding together
- Runtime visual-parity checks against the approved design
适合
- Implementing a finished UI mock-up in Godot pixel-faithfully
不适合
- Learning Godot UI basics: the README says it does not replace the documentation
试试这条提示词
Use $godot-ui-integration to implement this approved UI in Godot and verify runtime visual parity.概述
A narrow, high-precision skill. It takes an approved UI design, builds it as editor-visible Godot scenes, binds it to gameplay, and then checks that the running game matches the design.
环境要求
- Codex
- Python (for the visual audit scripts)
常见问题
肉鸽构筑白标起步工程(Godot 4 + Web + 平衡表)
告别空工程从零搭架子!开箱即玩的白标肉鸽构筑商业起步模板(Godot 4 完整工程 + Web 可玩版):含开局三槽赐福、无交叉 DAG 地图、扇形出牌、Boss 半血锁血、篝火/商店删牌、32 位校验防坏档 SaveStore、中英切换、30 牌/18 遗物/15 怪平衡表与 1,000 局 HTML 压测工具。
- 完整 Godot 4.3+ 工程(打开即 F5 运行,内置防坏档原子 SaveStore + 中英实时切换 LocService)
- 零构建 Web HTML5 可玩起步版(扇形手牌、2 帧受击闪白、震屏与 Boss 半血锁血全跑通)
基于 zimo-xiao-zheng/godot-ui-integration (作者 zimo-xiao-zheng,协议 MIT)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
相似 skills
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.
Godot AI
Production-grade MCP server and editor plugin for Godot 4.7+: 46 tools and 120+ operations for scenes, nodes, scripts, UI and more.
Claude Code Game Studios
Turns Claude Code into a full game studio: 49 agents and 72 workflow skills arranged like a real studio hierarchy.
Balance Check (Claude Code Game Studios)
Find balance outliers, broken progressions, degenerate strategies, economy imbalances in formulas and data.