把這一段貼給你的編碼代理
在代理裡開啟你的 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 | — |
你會得到的指令
/gohud:preview — 控制項藝廊
打開藝廊:每一個控制項、可挑選全部六種預設集的選擇器,以及完整圖示組。在你的 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。