← 返回 Skills 市场
576
总下载
1
收藏
2
当前安装
5
版本数
在 OpenClaw 中安装
/install godot-bridge
功能描述
Godot 4.x Project Generator CLI. Create 2D/3D games with 80+ CLI commands: projects, scenes, scripts, levels, UI (menu/HUD/dialog/inventory), game components...
使用说明 (SKILL.md)
Godot Bridge - Project Generator CLI v3.0
Generate complete Godot 4.x projects with scenes, scripts, and game components.
Quick Start
# Create project
clawbridge init MyGame
# Enter project
cd MyGame
# Add components
clawbridge component health --type health
clawbridge component inventory --type inventory
# Add objects
clawbridge label "Score: 0" --x 50 --y 30
clawbridge box --x 200 --y 150
clawbridge camera --x 640 --y 360
# Open in Godot
clawbridge open
Commands
Project
clawbridge init MyGame # Basic 2D project
clawbridge init MyGame --3d # 3D project
clawbridge init MyGame --template rpg # RPG template
Generate
clawbridge scene Main # Generate scene
clawbridge script Player # Generate script
clawbridge level Level1 # Generate level
Game Components
# Health System
clawbridge component health --type health
# Inventory System
clawbridge component inventory --type inventory
# Save/Load System
clawbridge component save_system --type save
# Input System
clawbridge component input_system --type input
# Dialogue System
clawbridge component dialogue --type dialogue
# Quest System
clawbridge component quest --type quest
Objects (add to scene)
clawbridge label "Hello" --x 100 --y 50
clawbridge button "Click" --x 200
clawbridge box --x 100 --y 100
clawbridge sphere --x 200
clawbridge camera --x 640 --y 360
clawbridge light --x 100
clawbridge particles --amount 50
clawbridge character
Generated Project Structure
MyGame/
├── project.godot
├── icon.svg
├── scenes/
│ └── main.tscn
├── scripts/
│ ├── main.gd
│ ├── game_manager.gd
│ └── [your components]
├── levels/
├── assets/
└── prefabs/
Game Components
Health System
take_damage(amount)- Apply damageheal(amount)- Heal entityis_alive()- Check if alive- Signals:
health_changed,died
Inventory System
add_item(name)- Add itemremove_item(name)- Remove itemhas_item(name)- Check itemget_item_count(name)- Get quantity
Save/Load System
save_game()- Save to diskload_game()- Load from disk- Auto-saves player stats and current level
Input System
get_direction()- Get left/right input (-1 to 1)is_jump_pressed()- Check jump
Dialogue System
show(lines)- Start dialogue with array of stringsnext()- Advance to next line- Signals:
line_displayed,dialogue_ended
Quest System
start_quest(name, target)- Start questupdate_quest(name, progress)- Update progresscomplete_quest(name)- Complete quest- Signals:
quest_started,quest_completed
Options
| Option | Description |
|---|---|
| --type | Component type |
| --template | Project template |
| --x, --y | Position coordinates |
| --3d | Create 3D project |
Example: Complete RPG
# Create RPG project
clawbridge init MyRPG --template rpg
# Add game systems
clawbridge component health --type health
clawbridge component inventory --type inventory
clawbridge component quest --type quest
clawbridge component save_system --type save
clawbridge component dialogue --type dialogue
# Add UI
clawbridge label "HP: 100" --x 20 --y 20
clawbridge label "Gold: 0" --x 20 --y 50
# Open in Godot
clawbridge open
License
MIT
安全使用建议
This skill appears to do what it says: generate Godot 4.x projects with scenes, scripts, and components. Before installing/running it: (1) Inspect the entire clawbridge.js file for any unexpected execSync calls or commands (especially around the 'open' command) because child_process can execute shell commands. (2) Run it in a disposable directory (not your home or a repo with secrets) so generated files and any save files are isolated. (3) If you expect the tool to open the Godot editor, ensure you have the Godot binary installed locally — the skill does not declare that dependency. (4) Only install/run if you trust the publisher (source/homepage unknown). If you want higher assurance, request the full source and confirm there are no network calls, credential access, or command-injection vectors in the remaining (truncated) portions of the script.
功能分析
Type: OpenClaw Skill
Name: godot-bridge
Version: 1.5.0
The skill bundle provides a Godot 4.x project generator, but contains several high-risk security vulnerabilities in 'clawbridge.js'. Specifically, the 'open' command uses 'execSync' to execute the 'godot' binary using the current working directory path without sanitization, which could lead to command injection if the directory name contains shell metacharacters. Additionally, the script performs file operations and content generation using unsanitized user input, making it vulnerable to path traversal and file content injection. While these appear to be unintentional flaws rather than intentional malware, they represent a significant security risk for an automated agent.
能力评估
Purpose & Capability
The name/description (Godot project generator) align with the included CLI implementation: the JS creates project folders, scenes, scripts, assets, and components as described. The skill only declares node as a required binary which matches the CLI being a Node script. Note: SKILL.md and commands include an 'open' step that likely invokes the Godot editor, but the registry metadata does not declare a dependency on a 'godot' binary — a minor mismatch to be aware of.
Instruction Scope
SKILL.md instructs the agent to run local CLI commands (init, scene, script, component, open, etc.) and to generate files inside the current working directory. The runtime instructions do not request unrelated files, secrets, or external endpoints. The generated 'save' component persists to 'user://save.dat' (a Godot user save path) which writes to disk — expected for a scaffolding tool but worth noting if you run it in a sensitive directory.
Install Mechanism
No install spec is provided (instruction-only from registry perspective), but the package includes an executable Node script (clawbridge.js). That is not necessarily malicious, but it means the CLI code is bundled and will run locally; there are no external downloads or URL-based installers in the manifest, which reduces supply-chain risk. Review the full script before executing on a machine you care about.
Credentials
The skill requests no environment variables or credentials and the code shown does not read secrets or external config paths. This is proportionate for a local project generator. The script does import child_process.execSync (used for shell operations in Node) — acceptable for invoking local tools (e.g., opening the Godot editor) but worth auditing because execSync can run arbitrary commands if fed untrusted input.
Persistence & Privilege
The skill does not request permanent/always-on privileges (always:false) and does not modify other skills or global agent configuration. It writes files into the current working directory (expected for a scaffolding CLI) but does not appear to try to persist beyond the generated project files.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install godot-bridge - 安装完成后,直接呼叫该 Skill 的名称或使用
/godot-bridge触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.5.0
**Major update: Godot-bridge is now a full Godot 4.x project generator CLI.**
- Adds project generation: create complete Godot projects (2D/3D/RPG templates) via CLI.
- New commands for generating scenes, scripts, levels, assets, and prefabs.
- Introduces high-level game component generators: health, inventory, save/load, input, dialogue, quest systems, and more.
- Expanded object commands to quickly add UI and game elements to scenes.
- Provides export options for HTML5, Windows, macOS, Linux, Android, and iOS.
- Updated documentation to reflect the new focus on project and component generation for rapid game prototyping.
v1.2.0
**Expanded commands and UI/graphics support**
- Adds 100+ new commands for UI effects (shadow, outline, gradient, blur), animations (fade, pulse, shake, bounce, slide, spin, flip, blink, typewriter), and 2D/3D graphics creation.
- Enhanced options for UI components and state effects (hover, pressed, disabled) with additional styling and animation controls.
- Includes more shapes (rect, circle, polygon, star), effects, and flexible color/size/opacity parameters.
- Significantly updates documentation, quick start guides, and example usage for clarity and feature showcase.
- Suitable for advanced interactive scenes and beautiful interface creation, not only basic object instantiation.
v1.1.1
Expanded support for Godot features and commands.
- Added commands for particles (fire, smoke, sparks), progress bars, checkboxes, sliders, and physics (rigid_body, character, area, apply_force).
- Broadened available options to include mass, shape, particle amount, lifetime, color, slider range, value, and animation duration.
- Updated documentation to reflect enhanced capabilities for particles, physics, and UI elements.
- Improved the complete example to demonstrate new features.
- Clarified descriptions and usage throughout the skill documentation.
v1.1.0
**Summary:** Adds WebSocket support and expands documentation for remote CLI control of Godot games.
- WebSocket protocol option introduced alongside HTTP for improved real-time interaction.
- Documentation expanded with more examples, troubleshooting, and usage scenarios.
- New command-line options listed, including --ws for WebSocket.
- Clear guidance on when to use this skill and when not to.
- Overview and setup sections improved for clarity and quick onboarding.
v1.0.0
Initial release: Control Godot 4.x games from a Node.js CLI over HTTP.
- Send commands to add UI, 3D objects, lighting, cameras, and load scenes in Godot remotely.
- Includes sample CLI commands for common game elements (labels, buttons, meshes, lights, camera).
- Provides setup instructions for both Node.js CLI and Godot server script integration.
- Supports real-time updates by interacting with the running Godot project via HTTP.
- Includes debugging commands to inspect or clear the game tree.
元数据
常见问题
Godot Game Claw Bridge 是什么?
Godot 4.x Project Generator CLI. Create 2D/3D games with 80+ CLI commands: projects, scenes, scripts, levels, UI (menu/HUD/dialog/inventory), game components... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 576 次。
如何安装 Godot Game Claw Bridge?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install godot-bridge」即可一键安装,无需额外配置。
Godot Game Claw Bridge 是免费的吗?
是的,Godot Game Claw Bridge 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Godot Game Claw Bridge 支持哪些平台?
Godot Game Claw Bridge 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Godot Game Claw Bridge?
由 dashiming(@dashiming)开发并维护,当前版本 v1.5.0。
推荐 Skills