个人笔记
我为自己做了这个,它被分散在各种不同的项目中,我试图尽我所能地捆绑它,接受它,使用它,改变它,做任何事情,它都是你的,如果你想让我添加任何东西或有一个很酷的想法,伸出手来或做任何事,做公关,玩得开心,让你的游戏成为现实!
Godot工具包
基于AI的Godot 4.x开发工具包
    
Godot Kit是用于Godot 4.x游戏开发的全面AI技能包。它是为使用AI编码助手的游戏开发人员而构建的——Claude Code、GitHub Copilot、Antigravity或任何兼容MCP的工具。您将获得专家GDScript模式、调试知识、UI系统、roguelike蓝图、粒子向导和4个MCP服务器,这些服务器使您的AI助手在运行时可以访问Godot编辑器、资源库、本地知识索引和编辑器日志。
______________________________________________________________________
一次快速安装
将您平台的提示复制到您的AI助手中,它将处理一切。没有手动步骤,没有手动编辑的配置文件。你的AI读取指令,克隆仓库,将每个文件复制到正确的位置,创建Python环境,并验证结果。
克劳德代码
Install the Godot Kit bundle from https://github.com/SufficientDaikon/godot-kit into my project:
1. Clone the repo to a temp directory
2. Copy each subdirectory from skills/ to ~/.claude/skills/{name}/
3. Copy agents/AGENTS.md to my project root
4. Create ~/.claude/agents/ if needed, copy agents/*.agent.md there
5. Create .vscode/mcp-servers/ in my project, copy mcp-servers/*.py there
6. Create a Python venv at .venv/ and pip install fastmcp httpx
7. Copy platforms/claude-code/.mcp.json to my project root as .mcp.json
8. In .mcp.json, set GODOT_PATH to my Godot executable (ask me if you can't find it)
9. Update Python server paths in .mcp.json to use .venv/Scripts/python.exe (Windows) or .venv/bin/python (macOS/Linux)
10. Create .claude/prompts/ if needed, copy prompts/ contents there
11. Copy mcp-knowledge/ to my project root
12. Delete the temp clone
13. Verify: skills exist in ~/.claude/skills/, .mcp.json is valid JSON, and the venv can import fastmcpVSCode/GitHubCopilot
Install the Godot Kit bundle from https://github.com/SufficientDaikon/godot-kit into my workspace:
1. Clone the repo to a temp directory
2. Copy each subdirectory from skills/ to ~/.copilot/skills/{name}/
3. Copy agents/AGENTS.md to my project root
4. Create ~/.copilot/agents/ if needed, copy agents/*.agent.md there
5. Create .vscode/mcp-servers/ in my project, copy mcp-servers/*.py there
6. Create a Python venv at .venv/ and pip install fastmcp httpx
7. Copy platforms/vscode/mcp.json to .vscode/mcp.json
8. In .vscode/mcp.json, set GODOT_PATH to my Godot executable (ask me if unsure)
9. On macOS/Linux, change .venv/Scripts/python.exe to .venv/bin/python in the Python server commands
10. Copy docs/copilot-instructions.md to .github/copilot-instructions.md
11. Create .github/prompts/ if needed, copy prompts/ contents there
12. Copy mcp-knowledge/ to my project root
13. Delete the temp clone
14. Verify: ~/.copilot/skills/ has 9 subdirectories, .vscode/mcp.json is valid JSON, .venv has fastmcp反重力
Install the Godot Kit bundle from https://github.com/SufficientDaikon/godot-kit into this project:
1. Clone the repo to a temp directory
2. Create .antigravity/skills/ if needed
3. For each subdirectory in skills/, copy its SKILL.md to .antigravity/skills/{name}.md
4. Copy agents/AGENTS.md to project root
5. Create .antigravity/mcp-servers/, copy mcp-servers/*.py there
6. Create a Python venv at .venv/ and pip install fastmcp httpx
7. Add MCP server entries to my Antigravity config (gopeak via npx -y gopeak with GODOT_PATH, plus the 3 Python servers)
8. Create .antigravity/prompts/ if needed, copy prompts/ contents there
9. Copy mcp-knowledge/ to project root
10. Delete the temp clone开爪/其他AI CLIs
Install the Godot Kit bundle from https://github.com/SufficientDaikon/godot-kit:
1. Clone the repo to a temp directory
2. Copy skills/ directory contents to wherever your tool stores skill/instruction files
3. Copy agents/AGENTS.md to project root as agent instructions
4. Copy mcp-servers/*.py to your project, create a Python venv, pip install fastmcp httpx
5. Configure your tool's MCP settings to run the Python servers and use npx -y gopeak with GODOT_PATH set to your Godot executable and GOPEAK_TOOL_PROFILE set to "compact"
6. Copy prompts/ and mcp-knowledge/ to appropriate locations
7. Delete the temp clone______________________________________________________________________
所得
+---------------------------+
| omega-gdscript-expert |
| (meta-coordinator) |
+---------------------------+
|
+----------+-----------+-----------+----------+
| | | | |
best- gdscript- gdscript- debugging particles
practices mastery patterns
| | | | |
genre- ui-system mcp-server-
roguelike index
|
+----------+----------+----------+----------+
| | | | |
Gopeak Context7 Asset Lib Knowledge Editor
(110+ (live (search/ (local Logs
tools) docs) download) patterns) (tail)Omega元技能位于顶端。当你的AI助手遇到Godot问题时,Omega会激活正确的专业技能。MCP服务器层为您的助理运行时工具提供了与Godot编辑器交互、查找文档、搜索资源库、查询本地知识索引和读取编辑器日志的功能。
______________________________________________________________________
技能参考
| 技能 | 优先级 | 描述 |
|---|---|---|
omega-gdscript-expert | P1 | 将查询路由到专业技能的元协调员。强制使用MCP工具,并对生成的代码运行自我评估循环。 |
godot-best-practices | P2 | 场景组织、信号模式、资源、状态机、对象池、保存/加载系统。包括模板和参考文档。 |
godot-gdscript-mastery | P2 | Expert GDScript:静态类型、信号架构、唯一节点引用(%),性能模式。包含 .gd 工具脚本。 |
godot-gdscript-patterns | P2 | 生产架构模式:状态机、库存系统、组件系统、场景管理。 |
godot-debugging | P2 | 错误解释、常见错误模式、分步故障排除、Godot 3-to-4迁移问题。 |
godot-particles | P2 | GPU粒子系统:爆炸、轨迹、天气效果、子发射器、自定义着色器。包含 .gd 脚本。 |
godot-genre-roguelike | P2 | Roguelike流派蓝图:程序生成、永久死亡、元进程、种子RNG、战利品表。包括示例GDScript。 |
godot-ui-system | P2 | UI设计系统:主题设置、调色板、着色器、HUD布局、动画之间、按钮样式。 |
mcp-server-index | P3 | 具有调度规则的可用MCP服务器注册表。告诉Omega为哪个任务调用哪个MCP工具。 |
______________________________________________________________________
MCP服务器
| 服务器 | 运行时 | 描述 |
|---|---|---|
| Gopeak | npx -y gopeak | 110多种Godot交互工具:LSP操作、DAP调试、屏幕截图、运行时节点检查、场景操作。紧凑型轮廓暴露了33个核心工具+22个动态工具组。 |
| 背景7 | npx -y @upstash/context7-mcp@latest | 实时文档查找。检索最新的库文档,这样你的AI助手就不会从过时的引用中工作。 |
| 资产库 | Python(FastMCP) | 从官方Godot资源库搜索和下载资源。返回元数据、下载链接和描述。 |
| 知识服务器 | Python(FastMCP) | 类似RAG的GDScript模式、架构决策和项目特定约定的本地知识索引。 |
| 编辑器日志 | Python(FastMCP) | 跟踪并搜索Godot编辑器日志文件。可用于调试编辑器错误和跟踪运行时警告。 |
______________________________________________________________________
代理
Godot Kit附带了3个代理定义:
| 代理人 | 目的 |
|---|---|
AGENTS.md | 根代理说明放在项目根目录下。设置GDScript约定、命名规则和项目范围内的AI行为。 |
Godot helper.agent.md | 使用Omega工作流、路由MCP工具并处理团队请求接收的完整Godot帮助代理。 |
Plan.agent.md | 多阶段规划代理,将大型任务分解为步骤,并将Godot工作委托给Godot帮助程序。 |
______________________________________________________________________
先决条件
| 要求 | 版本 | 注释 |
|---|---|---|
| 戈多 | 4.x | 知道可执行文件的完整路径 |
| Node.js | 18+ | Gopeak和Context7(npx)需要 |
| python | 3.10+ | 3台基于FastMCP的服务器需要 |
| Git | Any | 克隆此仓库需要 |
| AI助手 | -- | 克劳德代码、VS代码+复制品、反重力或任何兼容MCP的CLI |
______________________________________________________________________
安装脚本
如果您更喜欢脚本安装而不是单提示方法,请使用 install/ 目录。
Windows(PowerShell)
git clone https://github.com/SufficientDaikon/godot-kit.git C:\temp\godot-kit
C:\temp\godot-kit\install\install.ps1 -Platform vscode -GodotPath "C:\Godot\Godot_v4.3-stable_win64.exe"支持 -Platform 值: claude-code, vscode, antigravity
macOS/Linux(Bash)
git clone https://github.com/SufficientDaikon/godot-kit.git /tmp/godot-kit
bash /tmp/godot-kit/install/install.sh --platform claude-code --godot-path /usr/local/bin/godot支持 --platform 值: claude-code, vscode, antigravity
这两个脚本执行相同的7个步骤:安装技能、安装代理、复制MCP服务器脚本、创建具有依赖关系的Python venv、使用Godot路径编写MCP配置、复制提示和知识文件,并验证结果。
______________________________________________________________________
配置
设置GODOT_PATH
每个MCP配置都需要知道Godot可执行文件的位置。安装脚本和一个提示指令会自动处理此问题,但如果您以后需要更改它:
| 平台 | 配置文件 | 要编辑的字段 |
|---|---|---|
| 克劳德代码 | .mcp.json (项目根) | servers.gopeak.env.GODOT_PATH |
| VSCode/副驾驶 | .vscode/mcp.json | servers.gopeak.env.GODOT_PATH |
| 反重力 | 您的反重力配置 | GODOT_PATH gopeak服务器的环境变量 |
Gopeak工具配置文件
Gopeak通过 GOPEAK_TOOL_PROFILE 环境变量:
| 简介 | 工具 | 用例 |
|---|---|---|
compact (默认) | 33个核心+22个动态组 | 推荐。使AI助手可以管理工具列表。 |
full | 110+个人工具 | 适用于想要直接访问每个Gopeak工具的高级用户。 |
可选服务器
所有MCP服务器都是可选的。如果您不需要特定的服务器,请从MCP配置文件中删除其条目。这些技能仍然有效——他们只是无法从该服务器调用工具。
______________________________________________________________________
项目结构
godot-kit/
skills/
omega-gdscript-expert/ # P1 meta-coordinator
godot-best-practices/ # P2 scene organization, signals, resources
godot-gdscript-mastery/ # P2 static typing, signal architecture
godot-gdscript-patterns/ # P2 state machines, components, scenes
godot-debugging/ # P2 error interpretation, troubleshooting
godot-particles/ # P2 GPU particles, shaders
godot-genre-roguelike/ # P2 procedural generation, permadeath
godot-ui-system/ # P2 themes, HUD, tweens
mcp-server-index/ # P3 MCP server registry
agents/
AGENTS.md # Root agent instructions
Godot helper.agent.md # Full Godot helper agent
Plan.agent.md # Multi-phase planning agent
mcp-servers/
asset_library_server.py # Godot Asset Library search/download
knowledge_server.py # Local knowledge index
log_server.py # Editor log tailing
requirements.txt # Python dependencies (fastmcp, httpx)
platforms/
claude-code/
install-instructions.md
vscode/
mcp.json # VSCode MCP server config template
install-instructions.md
antigravity/
install-instructions.md
open-claw/
install-instructions.md
prompts/
omega-godot-agent.prompt.md
project-first-reference-only.prompt.xml
mcp-knowledge/
knowledge_data/ # Local knowledge index entries
omniskill-bundle/
bundle.yaml # Bundle definition for all skills
meta-skill/ # Omega meta-skill coordinator
install/
install.ps1 # Windows installer
install.sh # macOS/Linux installer
workflows/
ci.yml # GitHub Actions: Godot build + test
mcp_verify.yml # GitHub Actions: MCP verification
verify_mcp_setup.ps1 # PowerShell MCP verification script
docs/
copilot-instructions.md # GitHub Copilot workspace instructions
code_examples.md # Before/after GDScript refactoring
handoff.md # Agent session handoff example
LICENSE # MIT
README.md______________________________________________________________________
故障排除
| 问题 | 原因 | 修复 |
|---|---|---|
npx gopeak 失败,显示“找不到” | 未安装Node.js或npm,或npx不在PATH上 | 安装Node.js 18+并用验证 npx --version |
| Python MCP服务器无法启动 | 缺少venv或依赖项 | 运行 python -m venv .venv 然后 .venv/Scripts/pip install fastmcp httpx (Windows)或 .venv/bin/pip install fastmcp httpx (macOS/Linux) |
GODOT_PATH 错误或“找不到可执行文件” | MCP配置中的路径不正确 | 打开MCP配置文件,找到 GODOT_PATH value,并将其设置为Godot可执行文件的完整绝对路径 |
| 技能未激活 | 技能不在您平台的正确目录中 | 验证:Claude Code使用 ~/.claude/skills/,副驾驶用途 ~/.copilot/skills/,反重力用途 .antigravity/skills/ |
.mcp.json 解析错误 | 尾随逗号或无效JSON | 通过JSON验证器运行MCP配置。常见问题:最后一个服务器条目后的逗号。 |
| Gopeak返回空结果 | Godot编辑器未运行或未处于预期状态 | 在使用Gopeak工具之前,在打开项目的情况下启动Godot编辑器。Gopeak连接到正在运行的编辑器实例。 |
______________________________________________________________________
贡献
欢迎捐款。请参阅 平台/ 随着人工智能工具的发展,可能需要更新的平台特定安装说明目录。
要添加新技能,请执行以下操作:
- 在下创建新目录
skills/带着一个SKILL.md文件 - 将技能添加到
omniskill-bundle/bundle.yaml - 更新
mcp-server-index如果你的技能引入了新的MCP工具布线规则 - 在提交PR之前,至少使用一个AI平台进行测试
______________________________________________________________________
许可证
麻省理工学院——见 许可证 了解详情。
