godot-cli

godot-cli is a skill for Codex from fanfan-de/anybox. It costs 173 tokens per session (7,536 once invoked), scanned A, original, MIT.

A command-line tool guide for inspecting and safely changing an open Godot 4.6 project. Godot is a tool for building games and interactive applications.

In plain words
What is it for?
Use it to inspect scenes, nodes, resources, signals, and properties, or to create, move, rename, copy, and connect approved Godot objects.
Why use it?
It gives the agent a structured way to see project and scene state without guessing what is open or changing unsupported parts.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fanfan-de/anybox/godot-cli
Any agent
npx skills add fanfan-de/anybox --skill godot-cli
Clone the repo
git clone --depth 1 https://github.com/fanfan-de/anybox

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for godot-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/fanfan-de/anybox/godot-cli.svg)](https://agentmods.dev/skills/fanfan-de/anybox/godot-cli)
Your own site
<a href="https://agentmods.dev/skills/fanfan-de/anybox/godot-cli"><img src="https://agentmods.dev/badge/skills/fanfan-de/anybox/godot-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 173 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,536 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00173 $0.07536
Opus 5 $0.00086 $0.03768
Sonnet 5 $0.00035 $0.01507
Haiku 4.5 $0.00017 $0.00754

Measured 2d ago against content hash 9843fe91aa2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

godot-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/Anybox-Plugins/godot-cli/skills/godot-cli/SKILL.md · 423 lines

How it starts

The opening of the file, as written. The whole thing — 423 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Godot CLI

仅使用 CLI 作为连接 Godot 的桥梁。不要读取会话文件、建立原始 TCP 连接、暴露令牌,也不要虚构不受支持的工具。

选择可执行文件

在 Godot 项目根目录中,按以下顺序选择 CLI:

$cliCandidates = @(
  '.\target\x86_64-pc-windows-msvc\release\godot-cli.exe'
  '.\.godot-cli\bin\godot-cli.exe'
)
$cli = $cliCandidates |
  Where-Object { Test-Path -LiteralPath $_ -PathType Leaf } |
  Select-Object -First 1

if ([string]::IsNullOrWhiteSpace($cli)) {
  $command = Get-Command godot-cli -ErrorAction SilentlyContinue
  if ($null -ne $command) {
	$cli = $command.Source
  }
}

优先使用仓库的 release 构建,其次使用便携安装包中的 EXE,最后使用 PATH 中的 godot-cli。如果三者都不存在,停止操作并说明必须先构建或安装 CLI;不要修改系统 PATH。后续命令始终通过 & $cli 调用选中的可执行文件。

开始每个工作流

保持 Godot 编辑器处于打开状态并启用插件。使用结构化输出,并明确选择项目:

& $cli --json --project . doctor

将非零退出码和 "ok": false 视为失败。日志应输出到 stderr;只解析 stdout 中唯一的 JSON 对象。

读取编辑器状态

使用作用域最小的领域命令:

& $cli --json --project . project info
& $cli --json --project . scene current
& $cli --json --project . scene tree --depth 4 --max-nodes 500
& $cli --json --project . scene list-project
& $cli --json --project . scene list-open
& $cli --json --project . resource list --extension png,svg
& $cli --json --project . resource inspect res://game/assets/player.png
& $cli --json --project . class search-nodes camera --base-type Node3D
& $cli --json --project . class api Node2D --section properties --filter position
& $cli --json --project . node list . --group actors --limit 200
& $cli --json --project . node groups get Player
& $cli --json --project . node signals get Player --signal health_changed
& $cli --json --project . node get Player --fields visible,process_mode

契约未知时,在使用通用 tool-call 前先使用 tools listtools searchtools schema。通过 --args-json--args-file 以对象形式传递通用参数。绝不要把 apply 放入该对象。

安全创建本地节点

只有在用户明确批准具体父路径、类型和名称后才能创建节点。

  1. 读取当前场景,并用 node list 核验父节点、owner 边界和同级名称。
  2. 必要时先用 class search-nodes 确认精确的运行时 ClassDB 节点类型。
  3. 调用 node create,单独传入 --apply
  4. 再次用 node list 核验路径、类型、父路径、owner_path="."editable=true,并检查 scene current
  5. 报告节点已进入 UndoRedo、场景仍未保存且磁盘没有被隐式修改。

Read the full file on GitHub · 423 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 423 lines · 173 tokens per session scan A 9843fe91aa2e

Subscribe to this mod's changes

godot-cli is a skill published in the GitHub repository fanfan-de/anybox (58 stars, last pushed 23d ago), licensed MIT. It adds 173 tokens to every session and 7,536 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

gameobject-component-destroy

Destroy one or more Components from a target GameObject. Missing (null) components are skipped — they cannot be destroyed. Use 'gameobject-find' and 'gameobject-component-get' to identify the components first.

IvanMurzak/Unity-MCP · 49 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

playtest-report

Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

Donchitos/Claude-Code-Game-Studios · 35 tokens

unity-manual-component

Manually add, configure, reorder, and copy components on GameObjects using Unity Editor UI. For one-off Inspector workflows that do not need REST automation.

Besty0728/Unity-Skills · 36 tokens

godot-signals-groups

Build event-driven, decoupled Godot 4.7 gameplay with signals and node groups: declare and emit custom signals, connect with Callables (incl. bind/one-shot), and broadcast to many nodes via groups and callgroup. Use when wiring node communication in a Godot project, replacing tight references with signals…

gamedev-skills/awesome-gamedev-agent-skills · 95 tokens

threejs-exposure-color-grading

Build a measured exposure and grading path in Three.js. Use for a 64x36 encoded luminance meter, asynchronous readback, weighted log-average exposure, asymmetric adaptation, single tone-map ownership, and a generated 32-cube post-tone-map LUT.

scottstts/Threejs-Awesome-Graphics-Agent-Skills · 60 tokens