gohud

AI SKILL

gohud 自带 AI 技能:完整 API、可直接运行的模板和预览启动器。把下面这一段粘贴给你的编码代理,它就会装好 gohud 并知道怎么用。

把这一段粘贴给你的编码代理

在代理里打开你的 Godot 项目,粘贴下面这段并发送。它会装好技能和插件,再告诉你 gohud 能做什么。

Install gohud for this Godot 4.6+ project, then use it for all game UI
(menus, HUD bars, quick slots, dialogs, bottom sheets, forms, themes).

1. Install the gohud AI skill.
   Claude Code:
     claude plugin marketplace add thruthesky/gohud
     claude plugin install gohud@gohud
   Any other agent (Codex, Cursor, Gemini CLI, ...):
     git clone --depth 1 https://github.com/thruthesky/gohud.git /tmp/gohud
     Copy /tmp/gohud/skills/gohud into whichever of these folders this agent reads:
     ~/.claude/skills/gohud, .claude/skills/gohud, .agents/skills/gohud.

2. Install the add-on itself, if addons/gohud/plugin.cfg is missing here.
   In a git repository:
     git submodule add https://github.com/thruthesky/gohud.git addons/gohud
   Otherwise copy the clone to addons/gohud without its .git folder.
   Then run: godot --headless --path . --import

3. Restart yourself so the skill loads, then tell me what gohud can do
   and how to preview it.

Docs: https://thruthesky.github.io/gohud/
这段特意用英文写 —— 那是所有代理读得最准的语言。你自己提问用什么语言都行,技能会用你写的语言回答。

各代理存放技能的位置

想手动安装?把 skills/gohud 文件夹放到代理读取的位置。先找到的那个生效。

代理文件夹放在哪命令写法
Claude Code — 插件claude plugin install gohud@gohud/gohud:preview · /gohud:features
Claude Code — 仅技能~/.claude/skills/gohud/gohud preview · /gohud features
Claude Code — 仅本项目.claude/skills/gohud/gohud preview
Codex · Cursor · Gemini CLI — 其他.agents/skills/gohud

你会得到的命令

打开画廊:每一个控件、可切换全部六套预设的选择器,以及完整图标集。在你自己的 Godot 项目里敲这条命令, 它会用你的 addons/gohud;没有的话就用插件自带的副本,或者新克隆一份。 它跑在一个用完即弃的沙箱项目里,因此不会动到你的自动加载和导入缓存,窗口会一直开着,直到你关掉为止。

/gohud:preview demo —— 15 章导览

打开演示的开始界面。开始演示会用真实输入播放整段导览;探索控件让你手动试用单个控件。 示例一节列出的按键在这里同样有效。

还有很多命令

命令作用
/gohud:preview medieval中世纪预设下的角色面板、行囊和任务日志
/gohud:preview demo --explore hud直接打开演示的某一章 —— hud buttons inputs selection lists data states surfaces prompt touch coach scrolling forms anchors theming
/gohud:preview gallery --preset scifi_dark用指定预设打开画廊;加 --phone 得到 390×844 的手机窗口,或用 --size 1920x1080 指定任意尺寸
/gohud:preview res://ui/main_menu.tscn打开你自己项目里的场景,并在该项目中运行
/gohud:preview list列出全部目标、预设 id 和演示章节名
/gohud:preview gallery --check不开窗口的无头冒烟测试 —— 脚本报错就判定失败
/gohud:features全部功能分组列出,每项一行代码
/gohud:features hud深入讲一个领域 —— surfaces hud style theming icons i18n accessibility config

预览命令需要 PATH 中有 Godot 4.6 或更新版本。

直接开口问也行

直接开口问也行。 这份技能把 gohud 的整套 API 都教给了助手,所以用大白话提要求同样管用 —— “用 gohud 做一个暂停菜单”。如果是以普通技能的方式装在 ~/.claude/skills/gohud, 命令要用空格分开:/gohud preview demo/gohud features。 预览需要 PATH 上有 Godot 4.6 或更高版本,也可以用 --godot /path/to/godot 指定路径。