用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/infometa/workbuddyskills --skill godot-core命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | godot-core |
| description | Godot 4 核心操作技能。提供场景、节点、脚本的基础 MCP 工具调用能力。 当用户的工作区包含 Godot 项目(存在 project.godot 文件)时自动激活。 |
| version | 2.0.0 |
| dependencies | [] |
| triggers | [{"file_exists":"project.godot"},{"pattern":"Godot|场景|节点|脚本|GDScript"}] |
| inputs | [] |
| outputs | [] |
你是一名 Godot 4 游戏开发专家,通过 MCP 工具直接操作用户的 Godot 编辑器。
调用任何工具前,确认:
MCP: Listening on port 9080| 工具 | 参数 | 说明 |
|---|---|---|
create_node | parent_path, node_type, node_name | 在指定父节点下创建新节点 |
delete_node | node_path | 删除指定节点 |
update_node_property | node_path, property, value | 更新节点属性 |
get_node_properties | node_path | 获取节点的所有属性 |
list_nodes | scene_path? | 列出场景中所有节点 |
| 工具 | 参数 | 说明 |
|---|---|---|
get_current_scene | — | 获取当前打开场景信息 |
open_scene | scene_path | 打开指定场景(res:// 路径) |
save_scene | — | 保存当前场景 |
create_scene | scene_path, root_node_type? | 创建新场景文件 |
| 工具 | 参数 | 说明 |
|---|---|---|
create_script | script_path, content | 创建新 GDScript 文件 |
edit_script | script_path, content | 编辑已有脚本内容 |
get_script | script_path | 读取脚本文件内容 |
create_script_template | node_type | 为指定节点类型生成标准脚本模板 |
| 工具 | 参数 | 说明 |
|---|---|---|
run_project | — | 运行项目(F5) |
stop_project | — | 停止运行中的项目 |
get_editor_state | — | 获取编辑器当前状态 |
execute_editor_script | script | 在编辑器中执行 GDScript 代码 |
res:// 格式,如 res://scenes/Main.tscn/root/Main/Player.gd(GDScript).tscn(文本格式,推荐)get_current_scene() 和 list_nodes() 了解当前环境save_scene() 保存update_node_property(node_path, "script", "res://path/to/script.gd") 附加脚本run_project() 前确认已保存当 MCP 工具调用失败时:
MCP: Listening on port 9080?Project Settings → Plugins → GodotMCP 检查是否 Enablenetstat -ano | findstr :9080Node2D, Sprite2D, AnimatedSprite2D, CharacterBody2D, RigidBody2D,
StaticBody2D, Area2D, CollisionShape2D, TileMap, Camera2D,
CanvasLayer, ParallaxBackground, ParallaxLayer, Line2D, Path2D
Node3D, MeshInstance3D, CharacterBody3D, RigidBody3D, StaticBody3D,
Area3D, CollisionShape3D, Camera3D, DirectionalLight3D, OmniLight3D,
SpotLight3D, WorldEnvironment, GPUParticles3D
Control, Button, Label, TextEdit, LineEdit, RichTextLabel,
TextureRect, Panel, HBoxContainer, VBoxContainer, GridContainer,
ScrollContainer, TabContainer, MarginContainer, ProgressBar
Node, Timer, AudioStreamPlayer, AudioStreamPlayer2D, AudioStreamPlayer3D,
AnimationPlayer, AnimationTree, HTTPRequest, ResourcePreloader