Communitygithub.com

Godot 引擎 CLI

專為 Godot 遊戲引擎設計的 AI 代理原生命令列工具。可從終端機管理專案、場景、匯出及執行 GDScript。

Godot 引擎 CLI 是什麼?

此技能為 Godot 遊戲引擎提供 AI 代理原生命令列介面,讓開發者與 AI 代理能直接從命令列管理專案、場景、匯出及執行 GDScript。它支援專案建立、場景結構讀取與修改、GDScript 執行與驗證、以及專案匯出等功能。所有指令皆可搭配 `--json` 參數輸出結構化 JSON,便於 AI 代理解析與處理。此工具支援 Godot 4.x,需將 Godot 可執行檔加入 PATH 或設定 `GODOT_BIN` 環境變數。透過此技能,AI 代理可自動化 Godot 專案的開發流程,例如建立場景、執行腳本或進行專案匯出。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-godot

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Godot 引擎 CLI 是做什麼的?

專為 Godot 遊戲引擎設計的 AI 代理原生命令列工具。可從終端機管理專案、場景、匯出及執行 GDScript。

安裝

pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=godot/agent-harness

需求

  • Godot 4.x 已加入 PATH(或設定 GODOT_BIN 環境變數)

指令

專案管理

# 建立新的 Godot 專案
cli-anything-godot project create <path> [--name "My Game"]

# 取得專案資訊(名稱、功能、主場景)
cli-anything-godot --json -p <project> project info

# 列出所有場景
cli-anything-godot --json -p <project> project scenes

# 列出所有腳本
cli-anything-godot --json -p <project> project scripts

# 列出所有資源
cli-anything-godot --json -p <project> project resources

# 重新匯入專案資源
cli-anything-godot -p <project> project reimport

場景操作

# 使用指定根節點類型建立新場景
cli-anything-godot -p <project> scene create scenes/Level1.tscn --root-type Node3D

# 讀取場景結構(節點、資源、連線)
cli-anything-godot --json -p <project> scene read scenes/Level1.tscn

# 為場景新增子節點
cli-anything-godot -p <project> scene add-node scenes/Level1.tscn --name Player --type CharacterBody3D --parent .

GDScript 執行

# 執行 GDScript 檔案(必須繼承 SceneTree)
cli-anything-godot -p <project> script run tools/build_navmesh.gd

# 執行行內 GDScript 程式碼
cli-anything-godot -p <project> script inline 'print(ProjectSettings.get_setting("application/config/name"))'

# 驗證 GDScript 語法
cli-anything-godot -p <project> script validate scripts/player.gd

匯出

# 列出已設定的匯出預設集
cli-anything-godot --json -p <project> export presets

# 匯出所有預設集
cli-anything-godot -p <project> export build

# 匯出指定預設集
cli-anything-godot -p <project> export build --preset "Windows Desktop" --output build/game.exe

引擎

# 檢查 Godot 可用性與可執行檔路徑
cli-anything-godot --json engine status

# 取得引擎版本
cli-anything-godot engine version

JSON 模式

為任何指令加上 --json 旗標,即可輸出結構化 JSON,適合 AI 代理處理:

cli-anything-godot --json -p ./my-game project info

互動式 REPL

cli-anything-godot -p ./my-game session

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-inkscape

>-

相關技能