[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HQ1F8JMB9PTR1JSE8NGFTJ":3,"skill-same:01M6HQ1F8JMB9PTR1JSE8NGFTJ":98},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":78,"commitSha":79,"skillDirectory":80,"forksCount":81,"repositoryHtmlUrl":82,"repositoryHomepageUrl":6,"ownerHtmlUrl":83,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":84,"install":85,"resources":97},"01M6HQ1F8JMB9PTR1JSE8NGFTJ","godot-create-plugin",null,"用于创建带有自定义面板、停靠栏和工具的 Godot 编辑器插件。生成 plugin.cfg 配置、 EditorPlugin 脚本模板、自定义编辑器 UI 组件，并集成 ProjectSettings。按照 Godot 4.x 最佳实践创建完整的插件结构。","welflau\u002Fai-dev-system","welflau","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7010385?v=4","01M6HPTDGF18RFY07M229P8CTM","01M6HPTDMRMZCJPYBFEA9XVVYT",3,"MIT","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-create-plugin\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"plugin","godot create plugin","create","create plugin","godot","custom","linux","editor-plugin","gdscript","true","工具","文件","panel","project","superpowers","README","生成","tool","CFG","development","windows","2026-11-10 10:12:30",false,"---\nname: godot-create-plugin\nversion: 3.0.0\ndisplayName: 创建 Godot 编辑器插件\ndescription: >\n  用于创建带有自定义面板、停靠栏和工具的 Godot 编辑器插件。生成 plugin.cfg 配置、\n  EditorPlugin 脚本模板、自定义编辑器 UI 组件，并集成 ProjectSettings。按照\n  Godot 4.x 最佳实践创建完整的插件结构。\nauthor: Asreonn\nlicense: MIT\ncategory: game-development\ntype: tool\ndifficulty: intermediate\naudience: [developers]\nkeywords:\n  - godot\n  - editor-plugin\n  - plugin.cfg\n  - EditorPlugin\n  - custom-dock\n  - editor-panel\n  - tool-script\n  - gdscript\n  - project-settings\n  - editor-extension\nplatforms: [macos, linux, windows]\nrepository: https:\u002F\u002Fgithub.com\u002Fasreonn\u002Fgodot-superpowers\nhomepage: https:\u002F\u002Fgithub.com\u002Fasreonn\u002Fgodot-superpowers#readme\n\npermissions:\n  filesystem:\n    read: [\".gd\", \".tscn\", \"project.godot\"]\n    write: [\".cfg\", \".gd\", \".tscn\", \"project.godot\"]\n  git: true\n\nbehavior:\n  auto_rollback: true\n  validation: true\n  git_commits: true\n\noutputs: \"完整的插件结构，包含 plugin.cfg、EditorPlugin 脚本、自定义停靠栏\u002F面板以及设置集成\"\nrequirements: \"Godot 4.x 项目, Git 仓库\"\nexecution: \"使用模板生成插件文件并进行 git 提交\"\nintegration: \"可与 godot-refactor 编排器配合使用，创建可复用的编辑器工具\"\n---\n\n# 创建 Godot 编辑器插件\n\n## 核心原则\n\n**扩展编辑器，而不是对抗它。** Godot 编辑器插件让你可以直接在编辑器界面中添加自定义工具、面板和工作流。\n\n## 本技能的功能\n\n创建完整的 Godot 编辑器插件：\n- **plugin.cfg** - 插件元数据和配置\n- **EditorPlugin 脚本** - 带有生命周期钩子的入口点\n- **自定义停靠栏** - 带有自定义 UI 的侧边面板\n- **底部面板** - 底部停靠标签页，类似动画\u002FShader 编辑器\n- **@tool 脚本** - 在编辑器中运行的脚本\n- **设置集成** - 用于插件配置的 ProjectSettings\n\n## 创建的插件结构\n\n```\naddons\u002Fmy_plugin\u002F\n├── plugin.cfg              # Plugin metadata\n├── my_plugin.gd            # EditorPlugin entry point\n├── docks\u002F\n│   ├── main_dock.gd        # Custom side dock logic\n│   ├── main_dock.tscn      # Dock UI scene\n│   └── bottom_panel.gd     # Bottom panel logic\n├── ui\u002F\n│   ├── inspector_plugin.gd # Custom inspector controls\n│   └── property_editor.gd  # Custom property editors\n└── tools\u002F\n    ├── scene_tool.gd       # @tool script for editor functionality\n    └── asset_processor.gd  # Import\u002FProcess automation\n```\n\n## 使用场景\n\n### 需要自定义编辑器工具\n创建关卡编辑器、地形工具或集成到 Godot 中的专用工作流。\n\n### 需要检查器扩展\n为自定义 Resource 或 Node 添加自定义属性编辑器。\n\n### 构建资源管线\n自动化导入工作流、批量处理或自定义导出器。\n\n### 需要项目级工具\n跨场景操作、管理资源或提供项目洞察的工具。\n\n## 流程\n\n1. **生成 plugin.cfg** - 创建包含名称、描述、版本的元数据文件\n2. **创建 EditorPlugin 脚本** - 实现 `_enter_tree()` 和 `_exit_tree()`\n3. **构建自定义 UI** - 将停靠栏和面板设计为场景\n4. **添加 @tool 脚本** - 创建用于编辑器功能的 @tool 脚本\n5. **集成设置** - 添加 ProjectSettings 条目用于配置\n6. **提交** - 使用完整插件结构进行 git 提交\n\n## 示例：简单停靠栏插件\n\n**生成文件：addons\u002Fmy_dock\u002Fplugin.cfg**\n```ini\n[plugin]\nname=\"My Custom Dock\"\ndescription=\"Adds a custom dock panel to the editor\"\nauthor=\"Your Name\"\nversion=\"1.0.0\"\nscript=\"my_dock.gd\"\n```\n\n**生成文件：addons\u002Fmy_dock\u002Fmy_dock.gd**\n```gdscript\n@tool\nextends EditorPlugin\n\nconst DOCK_SCENE = preload(\"res:\u002F\u002Faddons\u002Fmy_dock\u002Fdock.tscn\")\nvar dock_instance: Control\n\nfunc _enter_tree():\n    # Add custom dock to left slot\n    dock_instance = DOCK_SCENE.instantiate()\n    add_control_to_dock(DOCK_SLOT_LEFT_BR, dock_instance)\n\n    # Add custom settings\n    _setup_project_settings()\n\nfunc _exit_tree():\n    # Remove dock when plugin is disabled\n    if dock_instance:\n        remove_control_from_docks(dock_instance)\n        dock_instance.queue_free()\n\nfunc _setup_project_settings():\n    # Add custom project settings for plugin configuration\n    if not ProjectSettings.has_setting(\"my_plugin\u002Fenabled_features\"):\n        ProjectSettings.set_setting(\"my_plugin\u002Fenabled_features\", [\"feature_a\", \"feature_b\"])\n        ProjectSettings.add_property_info({\n            \"name\": \"my_plugin\u002Fenabled_features\",\n            \"type\": TYPE_ARRAY,\n            \"hint\": PROPERTY_HINT_TYPE_STRING,\n            \"hint_string\": \"24\u002F17:Feature\"\n        })\n```\n\n**生成文件：addons\u002Fmy_dock\u002Fdock.gd**\n```gdscript\n@tool\nextends Control\n\n@onready var button: Button = $VBoxContainer\u002FButton\n@onready var label: Label = $VBoxContainer\u002FLabel\n\nfunc _ready():\n    button.pressed.connect(_on_button_pressed)\n\nfunc _on_button_pressed():\n    label.text = \"Button clicked at %s\" % Time.get_time_string_from_system()\n\n    # Access plugin settings\n    var features = ProjectSettings.get_setting(\"my_plugin\u002Fenabled_features\", [])\n    print(\"Enabled features: \", features)\n```\n\n**生成文件：addons\u002Fmy_dock\u002Fdock.tscn**\n```ini\n[gd_scene load_steps=2 format=3]\n\n[ext_resource type=\"Script\" path=\"res:\u002F\u002Faddons\u002Fmy_dock\u002Fdock.gd\" id=\"1_script\"]\n\n[node name=\"MyDock\" type=\"Control\"]\nlayout_mode = 3\nanchors_preset = 15\nscript = ExtResource(\"1_script\")\n\n[node name=\"VBoxContainer\" type=\"VBoxContainer\" parent=\".\"]\nlayout_mode = 1\nanchors_preset = 15\n\n[node name=\"Button\" type=\"Button\" parent=\"VBoxContainer\"]\ntext = \"Click Me\"\n\n[node name=\"Label\" type=\"Label\" parent=\"VBoxContainer\"]\ntext = \"Ready\"\n```\n\n## 示例：自定义检查器插件\n\n**生成文件：addons\u002Finspector_plugin\u002Fplugin.cfg**\n```ini\n[plugin]\nname=\"Custom Inspector\"\ndescription=\"Adds custom property editors\"\nauthor=\"Your Name\"\nversion=\"1.0.0\"\nscript=\"custom_inspector.gd\"\n```\n\n**生成文件：addons\u002Finspector_plugin\u002Fcustom_inspector.gd**\n```gdscript\n@tool\nextends EditorPlugin\n\nvar inspector_plugin: EditorInspectorPlugin\n\nfunc _enter_tree():\n    inspector_plugin = preload(\"res:\u002F\u002Faddons\u002Finspector_plugin\u002Fmy_inspector_plugin.gd\").new()\n    add_inspector_plugin(inspector_plugin)\n\nfunc _exit_tree():\n    remove_inspector_plugin(inspector_plugin)\n```\n\n**生成文件：addons\u002Finspector_plugin\u002Fmy_inspector_plugin.gd**\n```gdscript\n@tool\nextends EditorInspectorPlugin\n\nfunc _can_handle(object: Object) -> bool:\n    # Apply to any node with custom script\n    return object is Node\n\nfunc _parse_property(object: Object, type: Variant.Type, name: String,\n                     hint_type: PropertyHint, hint_string: String,\n                     usage_flags: int, wide: bool) -> bool:\n    # Handle specific property types\n    if name == \"my_custom_property\":\n        add_property_editor(name, preload(\"res:\u002F\u002Faddons\u002Finspector_plugin\u002Fcustom_property_editor.gd\").new())\n        return true  # Handled\n    return false  # Use default editor\n```\n\n## 示例：@tool 脚本模式\n\n**生成文件：addons\u002Ftools\u002Fscene_batch_processor.gd**\n```gdscript\n@tool\nextends EditorScript\n\n## Batch process scenes in editor\n## Run via: Editor > Run > Run Script\n\n@export var target_directory: String = \"res:\u002F\u002Fscenes\"\n@export var operation: String = \"cleanup\"\n\nfunc _run():\n    print(\"Starting batch processing...\")\n\n    var dir = DirAccess.open(target_directory)\n    if dir:\n        dir.list_dir_begin()\n        var file_name = dir.get_next()\n\n        while file_name != \"\":\n            if file_name.ends_with(\".tscn\"):\n                _process_scene(target_directory.path_join(file_name))\n            file_name = dir.get_next()\n\n    print(\"Batch processing complete!\")\n\nfunc _process_scene(path: String):\n    var scene = load(path)\n    if scene:\n        print(\"Processing: \", path)\n        # Perform operations on packed scene\n```\n\n## 停靠栏位置选项\n\n| 位置 | 说明 | 适用场景 |\n|------|----------|----------|\n| `DOCK_SLOT_LEFT_UL` | 左侧，左上 | 主要工具，频繁访问 |\n| `DOCK_SLOT_LEFT_BL` | 左侧，左下 | 次要面板 |\n| `DOCK_SLOT_LEFT_UR` | 左侧，右上 | 检查器辅助 |\n| `DOCK_SLOT_LEFT_BR` | 左侧，右下 | 调试\u002F信息面板 |\n| `DOCK_SLOT_RIGHT_UL` | 右侧，左上 | 属性、设置 |\n| `DOCK_SLOT_RIGHT_BL` | 右侧，左下 | 控制台、输出 |\n| `DOCK_SLOT_RIGHT_UR` | 右侧，右上 | 低频工具 |\n| `DOCK_SLOT_RIGHT_BR` | 右侧，右下 | 底部辅助 |\n\n## EditorPlugin 生命周期\n\n```gdscript\nfunc _enter_tree():\n    # Called when plugin is enabled\n    # Add docks, menus, inspectors here\n    pass\n\nfunc _exit_tree():\n    # Called when plugin is disabled\n    # Clean up everything added in _enter_tree\n    pass\n\nfunc _has_main_screen() -> bool:\n    # Return true if plugin provides main screen (like 2D\u002F3D\u002FScript)\n    return false\n\nfunc _make_visible(visible: bool):\n    # Called when main screen tab is selected\u002Fdeselected\n    pass\n\nfunc _get_plugin_name() -> String:\n    # Name shown in main screen tabs\n    return \"My Plugin\"\n\nfunc _get_plugin_icon() -> Texture2D:\n    # Icon for main screen tab\n    return get_editor_interface().get_base_control().get_theme_icon(\"Node\", \"EditorIcons\")\n```\n\n## 设置集成\n\n添加自定义 ProjectSettings 条目：\n\n```gdscript\nfunc _enter_tree():\n    # Add setting if it doesn't exist\n    if not ProjectSettings.has_setting(\"my_plugin\u002Fenable_debug\"):\n        ProjectSettings.set_setting(\"my_plugin\u002Fenable_debug\", false)\n\n        # Define property metadata\n        ProjectSettings.add_property_info({\n            \"name\": \"my_plugin\u002Fenable_debug\",\n            \"type\": TYPE_BOOL,\n            \"hint\": PROPERTY_HINT_NONE\n        })\n\n        # Set as basic setting (shows in Project Settings UI)\n        ProjectSettings.set_initial_value(\"my_plugin\u002Fenable_debug\", false)\n        ProjectSettings.set_as_basic(\"my_plugin\u002Fenable_debug\", true)\n```\n\n## 从插件访问编辑器\n\n```gdscript\n# Get the editor interface\nvar interface = get_editor_interface()\n\n# Access editor features\nvar editor_selection = interface.get_selection()\nvar editor_settings = interface.get_editor_settings()\nvar resource_preview = interface.get_resource_previewer()\n\n# Get current scene\nvar edited_scene_root = interface.get_edited_scene_root()\n\n# Get selected nodes\nvar selected_nodes = editor_selection.get_selected_nodes()\n\n# Open scene in editor\ninterface.open_scene_from_path(\"res:\u002F\u002Fscene.tscn\")\n\n# Reload scene\ninterface.reload_scene_from_path(\"res:\u002F\u002Fscene.tscn\")\n\n# Play scene\ninterface.play_current_scene()\n```\n\n## 创建的内容\n\n- `addons\u002Fplugin_name\u002F` 中的**完整插件结构**\n- 包含正确元数据的 **plugin.cfg**\n- 带生命周期钩子的 **EditorPlugin 脚本**\n- **停靠栏场景**（UI）和脚本（逻辑）\n- 用于专用工具的**底部面板**\n- 用于自定义属性编辑器的**检查器插件**\n- 用于编辑器自动化的 **@tool 脚本**\n- 用于配置的 **ProjectSettings 集成**\n- 记录每个组件的 **git 提交**\n\n## 集成\n\n可与以下技能配合使用：\n- **godot-refactor**（编排器） - 作为大型重构的一部分创建插件\n- **godot-extract-to-scenes** - 在插件 UI 中使用提取的组件\n- **godot-add-signals** - 连接插件 UI 的 Signal\n\n## 安全性\n\n- 验证 plugin.cfg 语法\n- 检查插件名称冲突\n- 确保在 `_exit_tree()` 中正确清理\n- 验证失败时自动回滚\n- 每个生成的组件对应一次 git 提交\n\n## 不应使用的情况\n\n以下情况不需要创建插件：\n- 一次性脚本（使用 EditorScript 即可，无需插件）\n- 简单工具（使用 Project > Tools > GDScript）\n- 运行时游戏功能（插件仅在编辑器中运行）\n- 替换现有的 Godot 功能\n\n## 最佳实践\n\n1. **在 `_exit_tree()` 中清理** - 移除所有添加的 UI\u002F组件\n2. **使用 `@tool` 脚本** - 使代码能在编辑器中运行\n3. **检查 `Engine.is_editor_hint()`** - 区分编辑器和运行时\n4. **设置前缀** - 使用 `plugin_name\u002Fsetting_name` 命名约定\n5. **保存设置** - 修改后调用 `ProjectSettings.save()`\n6. **处理选择** - 编辑器选择变更时更新 UI\n7. **延迟加载** - 仅在需要时加载重量级资源\n","# 创建 Godot 编辑器插件\n\n## 核心原则\n\n**扩展编辑器，而不是对抗它。** Godot 编辑器插件让你可以直接在编辑器界面中添加自定义工具、面板和工作流。\n\n## 本技能的功能\n\n创建完整的 Godot 编辑器插件：\n- **plugin.cfg** - 插件元数据和配置\n- **EditorPlugin 脚本** - 带有生命周期钩子的入口点\n- **自定义停靠栏** - 带有自定义 UI 的侧边面板\n- **底部面板** - 底部停靠标签页，类似动画\u002FShader 编辑器\n- **@tool 脚本** - 在编辑器中运行的脚本\n- **设置集成** - 用于插件配置的 ProjectSettings\n\n## 创建的插件结构\n\n```\naddons\u002Fmy_plugin\u002F\n├── plugin.cfg              # Plugin metadata\n├── my_plugin.gd            # EditorPlugin entry point\n├── docks\u002F\n│   ├── main_dock.gd        # Custom side dock logic\n│   ├── main_dock.tscn      # Dock UI scene\n│   └── bottom_panel.gd     # Bottom panel logic\n├── ui\u002F\n│   ├── inspector_plugin.gd # Custom inspector controls\n│   └── property_editor.gd  # Custom property editors\n└── tools\u002F\n    ├── scene_tool.gd       # @tool script for editor functionality\n    └── asset_processor.gd  # Import\u002FProcess automation\n```\n\n## 使用场景\n\n### 需要自定义编辑器工具\n创建关卡编辑器、地形工具或集成到 Godot 中的专用工作流。\n\n### 需要检查器扩展\n为自定义 Resource 或 Node 添加自定义属性编辑器。\n\n### 构建资源管线\n自动化导入工作流、批量处理或自定义导出器。\n\n### 需要项目级工具\n跨场景操作、管理资源或提供项目洞察的工具。\n\n## 流程\n\n1. **生成 plugin.cfg** - 创建包含名称、描述、版本的元数据文件\n2. **创建 EditorPlugin 脚本** - 实现 `_enter_tree()` 和 `_exit_tree()`\n3. **构建自定义 UI** - 将停靠栏和面板设计为场景\n4. **添加 @tool 脚本** - 创建用于编辑器功能的 @tool 脚本\n5. **集成设置** - 添加 ProjectSettings 条目用于配置\n6. **提交** - 使用完整插件结构进行 git 提交\n\n## 示例：简单停靠栏插件\n\n**生成文件：addons\u002Fmy_dock\u002Fplugin.cfg**\n```ini\n[plugin]\nname=\"My Custom Dock\"\ndescription=\"Adds a custom dock panel to the editor\"\nauthor=\"Your Name\"\nversion=\"1.0.0\"\nscript=\"my_dock.gd\"\n```\n\n**生成文件：addons\u002Fmy_dock\u002Fmy_dock.gd**\n```gdscript\n@tool\nextends EditorPlugin\n\nconst DOCK_SCENE = preload(\"res:\u002F\u002Faddons\u002Fmy_dock\u002Fdock.tscn\")\nvar dock_instance: Control\n\nfunc _enter_tree():\n    # Add custom dock to left slot\n    dock_instance = DOCK_SCENE.instantiate()\n    add_control_to_dock(DOCK_SLOT_LEFT_BR, dock_instance)\n\n    # Add custom settings\n    _setup_project_settings()\n\nfunc _exit_tree():\n    # Remove dock when plugin is disabled\n    if dock_instance:\n        remove_control_from_docks(dock_instance)\n        dock_instance.queue_free()\n\nfunc _setup_project_settings():\n    # Add custom project settings for plugin configuration\n    if not ProjectSettings.has_setting(\"my_plugin\u002Fenabled_features\"):\n        ProjectSettings.set_setting(\"my_plugin\u002Fenabled_features\", [\"feature_a\", \"feature_b\"])\n        ProjectSettings.add_property_info({\n            \"name\": \"my_plugin\u002Fenabled_features\",\n            \"type\": TYPE_ARRAY,\n            \"hint\": PROPERTY_HINT_TYPE_STRING,\n            \"hint_string\": \"24\u002F17:Feature\"\n        })\n```\n\n**生成文件：addons\u002Fmy_dock\u002Fdock.gd**\n```gdscript\n@tool\nextends Control\n\n@onready var button: Button = $VBoxContainer\u002FButton\n@onready var label: Label = $VBoxContainer\u002FLabel\n\nfunc _ready():\n    button.pressed.connect(_on_button_pressed)\n\nfunc _on_button_pressed():\n    label.text = \"Button clicked at %s\" % Time.get_time_string_from_system()\n\n    # Access plugin settings\n    var features = ProjectSettings.get_setting(\"my_plugin\u002Fenabled_features\", [])\n    print(\"Enabled features: \", features)\n```\n\n**生成文件：addons\u002Fmy_dock\u002Fdock.tscn**\n```ini\n[gd_scene load_steps=2 format=3]\n\n[ext_resource type=\"Script\" path=\"res:\u002F\u002Faddons\u002Fmy_dock\u002Fdock.gd\" id=\"1_script\"]\n\n[node name=\"MyDock\" type=\"Control\"]\nlayout_mode = 3\nanchors_preset = 15\nscript = ExtResource(\"1_script\")\n\n[node name=\"VBoxContainer\" type=\"VBoxContainer\" parent=\".\"]\nlayout_mode = 1\nanchors_preset = 15\n\n[node name=\"Button\" type=\"Button\" parent=\"VBoxContainer\"]\ntext = \"Click Me\"\n\n[node name=\"Label\" type=\"Label\" parent=\"VBoxContainer\"]\ntext = \"Ready\"\n```\n\n## 示例：自定义检查器插件\n\n**生成文件：addons\u002Finspector_plugin\u002Fplugin.cfg**\n```ini\n[plugin]\nname=\"Custom Inspector\"\ndescription=\"Adds custom property editors\"\nauthor=\"Your Name\"\nversion=\"1.0.0\"\nscript=\"custom_inspector.gd\"\n```\n\n**生成文件：addons\u002Finspector_plugin\u002Fcustom_inspector.gd**\n```gdscript\n@tool\nextends EditorPlugin\n\nvar inspector_plugin: EditorInspectorPlugin\n\nfunc _enter_tree():\n    inspector_plugin = preload(\"res:\u002F\u002Faddons\u002Finspector_plugin\u002Fmy_inspector_plugin.gd\").new()\n    add_inspector_plugin(inspector_plugin)\n\nfunc _exit_tree():\n    remove_inspector_plugin(inspector_plugin)\n```\n\n**生成文件：addons\u002Finspector_plugin\u002Fmy_inspector_plugin.gd**\n```gdscript\n@tool\nextends EditorInspectorPlugin\n\nfunc _can_handle(object: Object) -> bool:\n    # Apply to any node with custom script\n    return object is Node\n\nfunc _parse_property(object: Object, type: Variant.Type, name: String,\n                     hint_type: PropertyHint, hint_string: String,\n                     usage_flags: int, wide: bool) -> bool:\n    # Handle specific property types\n    if name == \"my_custom_property\":\n        add_property_editor(name, preload(\"res:\u002F\u002Faddons\u002Finspector_plugin\u002Fcustom_property_editor.gd\").new())\n        return true  # Handled\n    return false  # Use default editor\n```\n\n## 示例：@tool 脚本模式\n\n**生成文件：addons\u002Ftools\u002Fscene_batch_processor.gd**\n```gdscript\n@tool\nextends EditorScript\n\n## Batch process scenes in editor\n## Run via: Editor > Run > Run Script\n\n@export var target_directory: String = \"res:\u002F\u002Fscenes\"\n@export var operation: String = \"cleanup\"\n\nfunc _run():\n    print(\"Starting batch processing...\")\n\n    var dir = DirAccess.open(target_directory)\n    if dir:\n        dir.list_dir_begin()\n        var file_name = dir.get_next()\n\n        while file_name != \"\":\n            if file_name.ends_with(\".tscn\"):\n                _process_scene(target_directory.path_join(file_name))\n            file_name = dir.get_next()\n\n    print(\"Batch processing complete!\")\n\nfunc _process_scene(path: String):\n    var scene = load(path)\n    if scene:\n        print(\"Processing: \", path)\n        # Perform operations on packed scene\n```\n\n## 停靠栏位置选项\n\n| 位置 | 说明 | 适用场景 |\n|------|----------|----------|\n| `DOCK_SLOT_LEFT_UL` | 左侧，左上 | 主要工具，频繁访问 |\n| `DOCK_SLOT_LEFT_BL` | 左侧，左下 | 次要面板 |\n| `DOCK_SLOT_LEFT_UR` | 左侧，右上 | 检查器辅助 |\n| `DOCK_SLOT_LEFT_BR` | 左侧，右下 | 调试\u002F信息面板 |\n| `DOCK_SLOT_RIGHT_UL` | 右侧，左上 | 属性、设置 |\n| `DOCK_SLOT_RIGHT_BL` | 右侧，左下 | 控制台、输出 |\n| `DOCK_SLOT_RIGHT_UR` | 右侧，右上 | 低频工具 |\n| `DOCK_SLOT_RIGHT_BR` | 右侧，右下 | 底部辅助 |\n\n## EditorPlugin 生命周期\n\n```gdscript\nfunc _enter_tree():\n    # Called when plugin is enabled\n    # Add docks, menus, inspectors here\n    pass\n\nfunc _exit_tree():\n    # Called when plugin is disabled\n    # Clean up everything added in _enter_tree\n    pass\n\nfunc _has_main_screen() -> bool:\n    # Return true if plugin provides main screen (like 2D\u002F3D\u002FScript)\n    return false\n\nfunc _make_visible(visible: bool):\n    # Called when main screen tab is selected\u002Fdeselected\n    pass\n\nfunc _get_plugin_name() -> String:\n    # Name shown in main screen tabs\n    return \"My Plugin\"\n\nfunc _get_plugin_icon() -> Texture2D:\n    # Icon for main screen tab\n    return get_editor_interface().get_base_control().get_theme_icon(\"Node\", \"EditorIcons\")\n```\n\n## 设置集成\n\n添加自定义 ProjectSettings 条目：\n\n```gdscript\nfunc _enter_tree():\n    # Add setting if it doesn't exist\n    if not ProjectSettings.has_setting(\"my_plugin\u002Fenable_debug\"):\n        ProjectSettings.set_setting(\"my_plugin\u002Fenable_debug\", false)\n\n        # Define property metadata\n        ProjectSettings.add_property_info({\n            \"name\": \"my_plugin\u002Fenable_debug\",\n            \"type\": TYPE_BOOL,\n            \"hint\": PROPERTY_HINT_NONE\n        })\n\n        # Set as basic setting (shows in Project Settings UI)\n        ProjectSettings.set_initial_value(\"my_plugin\u002Fenable_debug\", false)\n        ProjectSettings.set_as_basic(\"my_plugin\u002Fenable_debug\", true)\n```\n\n## 从插件访问编辑器\n\n```gdscript\n# Get the editor interface\nvar interface = get_editor_interface()\n\n# Access editor features\nvar editor_selection = interface.get_selection()\nvar editor_settings = interface.get_editor_settings()\nvar resource_preview = interface.get_resource_previewer()\n\n# Get current scene\nvar edited_scene_root = interface.get_edited_scene_root()\n\n# Get selected nodes\nvar selected_nodes = editor_selection.get_selected_nodes()\n\n# Open scene in editor\ninterface.open_scene_from_path(\"res:\u002F\u002Fscene.tscn\")\n\n# Reload scene\ninterface.reload_scene_from_path(\"res:\u002F\u002Fscene.tscn\")\n\n# Play scene\ninterface.play_current_scene()\n```\n\n## 创建的内容\n\n- `addons\u002Fplugin_name\u002F` 中的**完整插件结构**\n- 包含正确元数据的 **plugin.cfg**\n- 带生命周期钩子的 **EditorPlugin 脚本**\n- **停靠栏场景**（UI）和脚本（逻辑）\n- 用于专用工具的**底部面板**\n- 用于自定义属性编辑器的**检查器插件**\n- 用于编辑器自动化的 **@tool 脚本**\n- 用于配置的 **ProjectSettings 集成**\n- 记录每个组件的 **git 提交**\n\n## 集成\n\n可与以下技能配合使用：\n- **godot-refactor**（编排器） - 作为大型重构的一部分创建插件\n- **godot-extract-to-scenes** - 在插件 UI 中使用提取的组件\n- **godot-add-signals** - 连接插件 UI 的 Signal\n\n## 安全性\n\n- 验证 plugin.cfg 语法\n- 检查插件名称冲突\n- 确保在 `_exit_tree()` 中正确清理\n- 验证失败时自动回滚\n- 每个生成的组件对应一次 git 提交\n\n## 不应使用的情况\n\n以下情况不需要创建插件：\n- 一次性脚本（使用 EditorScript 即可，无需插件）\n- 简单工具（使用 Project > Tools > GDScript）\n- 运行时游戏功能（插件仅在编辑器中运行）\n- 替换现有的 Godot 功能\n\n## 最佳实践\n\n1. **在 `_exit_tree()` 中清理** - 移除所有添加的 UI\u002F组件\n2. **使用 `@tool` 脚本** - 使代码能在编辑器中运行\n3. **检查 `Engine.is_editor_hint()`** - 区分编辑器和运行时\n4. **设置前缀** - 使用 `plugin_name\u002Fsetting_name` 命名约定\n5. **保存设置** - 修改后调用 `ProjectSettings.save()`\n6. **处理选择** - 编辑器选择变更时更新 UI\n7. **延迟加载** - 仅在需要时加载重量级资源\n",{"name":5,"type":35,"author":44,"license":14,"outputs":45,"version":46,"audience":47,"behavior":49,"category":51,"homepage":52,"keywords":53,"execution":61,"platforms":62,"difficulty":64,"repository":65,"description":66,"displayName":67,"integration":68,"permissions":69,"requirements":77},"Asreonn","完整的插件结构，包含 plugin.cfg、EditorPlugin 脚本、自定义停靠栏\u002F面板以及设置集成","3.0.0",[48],"developers",{"validation":50,"git_commits":50,"auto_rollback":50},true,"game-development","https:\u002F\u002Fgithub.com\u002Fasreonn\u002Fgodot-superpowers#readme",[22,25,54,55,56,57,58,26,59,60],"plugin.cfg","EditorPlugin","custom-dock","editor-panel","tool-script","project-settings","editor-extension","使用模板生成插件文件并进行 git 提交",[63,24,38],"macos","intermediate","https:\u002F\u002Fgithub.com\u002Fasreonn\u002Fgodot-superpowers","用于创建带有自定义面板、停靠栏和工具的 Godot 编辑器插件。生成 plugin.cfg 配置、 EditorPlugin 脚本模板、自定义编辑器 UI 组件，并集成 ProjectSettings。按照 Godot 4.x 最佳实践创建完整的插件结构。\n","创建 Godot 编辑器插件","可与 godot-refactor 编排器配合使用，创建可复用的编辑器工具",{"git":50,"filesystem":70},{"read":71,"write":75},[72,73,74],".gd",".tscn","project.godot",[76,72,73,74],".cfg","Godot 4.x 项目, Git 仓库","main","18d0e63d1313ca87098f614aa7c1e2dcf6de79c7","backend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-create-plugin",1,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system","https:\u002F\u002Fgithub.com\u002Fwelflau","2026-11-12 14:55:20",{"source":8,"skillName":5,"commands":86,"prompt":96,"zipAvailable":50},[87,90,93],{"tool":88,"command":89},"npx","npx skills add welflau\u002Fai-dev-system --skill godot-create-plugin",{"tool":91,"command":92},"bunx","bunx skills add welflau\u002Fai-dev-system --skill godot-create-plugin",{"tool":94,"command":95},"pnpm","pnpm dlx skills add welflau\u002Fai-dev-system --skill godot-create-plugin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fconfig_packs\u002Fgodot-dev\u002Fclaude\u002Fskills\u002Fgodot-create-plugin\u002FSKILL.md",[],[99,126,152,177,197,221],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":103,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":125},"01M6HS9Z4B0YA8CJCS2Y2F04Y3","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fwebapp-testing\u002FSKILL.md",[],[108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124],"testing","webapp testing","webapp","frontend","screenshots","playwright","web","debugging","toolkit","browser","ui","logs","applications","behavior","local","with","for","2026-11-11 15:11:14",{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":103,"licenseFileUrl":130,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":125},"01M6HRAGMG7JF0HXYHMA5QHS8A","internal-comms","A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Finternal-comms\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Finternal-comms\u002FSKILL.md",[],[134,135,136,137,138,139,140,141,142,143,144,31,145,146,147,148,149,150,151],"internal comms","comms","status","help","SET","write","use","reports","me","incident","leadership","resources","communications","internal communications","formats","sort","my","updates",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":103,"licenseFileUrl":156,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":39},"01M6HSTDP4M3JFXEBK91VFB4PA","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fweb-artifacts-builder\u002FSKILL.md",[],[160,114,161,162,163,111,164,165,166,167,168,169,170,171,140,172,173,174,175,124,176],"web artifacts builder","artifacts","artifacts builder","builder","css","components","react","routing","state management","state","file","Tailwind","single-file","simple","ui components","multi","single",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":103,"licenseFileUrl":181,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":39},"01M6HSDXH0JSP8R3QTNY9XZ8HN","frontend-design","Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML\u002FCSS layouts, or when styling\u002Fbeautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Ffrontend-design\u002FSKILL.md",[],[111,185,186,164,114,165,166,187,20,188,161,189,120,190,140,191,192,193,194,123,195,196],"design","frontend design","react components","code","examples","landing","ui design","pages","aesthetics","web ui","generic","when",{"skillNo":198,"name":199,"nameZh":6,"description":200,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":103,"licenseFileUrl":201,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":39},"01M6HSA77QYVP7A72HREGTDN2C","algorithmic-art","Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Falgorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Falgorithmic-art\u002FSKILL.md",[],[205,206,207,20,188,208,209,210,211,140,212,213,214,215,123,216,217,218,219,220,196],"algorithmic art","Art","algorithmic","flow","js","work","interactive","generative art","exploration","systems","users","Existing","request","generative","copyright","fields",{"skillNo":222,"name":223,"nameZh":6,"description":224,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":103,"licenseFileUrl":225,"sourceHtmlUrl":226,"categories":227,"keywords":228,"publishedAt":39},"01M6HS9HE0X390Y6RQKTY1YNGJ","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Ftheme-factory\u002FSKILL.md",[],[229,230,231,232,116,233,161,138,234,235,190,236,237,192,238,123,239,240,241,124,242,243],"theme factory","factory","theme","docs","generate","fly","slides","styling","artifact","themes","you","fonts","can","apply","new"]