godot-tscn-format

godot-tscn-format is a skill for Claude Code, Codex from m1em1e/vibecoding-tools-4codex-cn. It costs 60 tokens per session (3,927 once invoked), scanned A, original, MIT.

A reference for editing Godot 4.x scene files, which are plain-text `.tscn` files describing nodes, resources, properties, and signal connections. It explains the file structure and the exact text formats Godot expects.

In plain words
What is it for?
It is for creating, reading, or modifying Godot scenes directly in text, including external resources, embedded resources, node hierarchies, transforms, properties, and signals.
Why use it?
Scene files can be edited directly, but incorrect resource counts, references, properties, or connections can make them invalid. This guide provides the rules needed for safe text-based changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit It is for creating, reading, or modifying Godot scenes directly in text, including external resources, embedded resources, node hierarchies, transforms, properties, and signals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/m1em1e/vibecoding-tools-4codex-cn/godot-tscn-format
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.

Any agent
npx skills add m1em1e/vibecoding-tools-4codex-cn --skill godot-tscn-format
Clone the repo
git clone --depth 1 https://github.com/m1em1e/vibecoding-tools-4codex-cn

Made for: Claude Code, 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-tscn-format

README.md
[![agentmods](https://agentmods.dev/badge/skills/m1em1e/vibecoding-tools-4codex-cn/godot-tscn-format/github.svg)](https://agentmods.dev/skills/m1em1e/vibecoding-tools-4codex-cn/godot-tscn-format)
Your own site
<a href="https://agentmods.dev/skills/m1em1e/vibecoding-tools-4codex-cn/godot-tscn-format"><img src="https://agentmods.dev/badge/skills/m1em1e/vibecoding-tools-4codex-cn/godot-tscn-format/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for godot-tscn-format

Your own site · 80×15
<a href="https://agentmods.dev/skills/m1em1e/vibecoding-tools-4codex-cn/godot-tscn-format"><img src="https://agentmods.dev/badge/skills/m1em1e/vibecoding-tools-4codex-cn/godot-tscn-format.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,927 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00060 $0.03927
Opus 5 $0.00030 $0.01963
Sonnet 5 $0.00012 $0.00785
Haiku 4.5 $0.00006 $0.00393

Measured 8d ago against content hash f939157e0720, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

godot-tscn-format 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 8d 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.

skills/godot-tscn-format/SKILL.md · 503 lines

How it starts

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

Godot .tscn 场景文件格式规范

用途:让 AI 能够直接读写 Godot 场景文件
版本:v1.0 · 2026-04-24
适用引擎:Godot 4.x


核心原则

Godot 场景文件是纯文本,可以使用当前环境提供的文件读取和编辑工具直接操作;在 Codex 中手动修改应优先使用 apply_patch


一、文件结构总览

[gd_scene load_steps=N format=3 uid="uid://xxx"]    ← 头部(必需)

[ext_resource type="Type" path="res://..." id="ID"]  ← 外部资源引用(可选)
[ext_resource ...]

[sub_resource type="Type" id="ID"]                   ← 内嵌资源定义(可选)
property = value
[sub_resource ...]

[node name="Name" type="Type"]                       ← 根节点(必需)
property = value

[node name="Child" type="Type" parent="."]           ← 子节点
property = value

[connection signal="sig" from="Node" to="Target" method="func"]  ← 信号连接(可选)

二、头部声明

2.1 基本格式

[gd_scene load_steps=4 format=3]
字段 说明
load_steps 资源加载步数 = ext_resource 数 + sub_resource 数 + 1(场景本身)
format 固定为 3(Godot 4.x)
uid 可选,Godot 自动生成的唯一 ID,创建时可省略

2.2 计算 load_steps

load_steps = len(ext_resources) + len(sub_resources) + 1

示例:2 个外部资源 + 3 个内嵌资源 → load_steps=6


三、外部资源引用 (ext_resource)

3.1 格式

[ext_resource type="Type" path="res://path/to/file" id="ID"]

3.2 常见类型

type 文件类型 示例
Script GDScript path="res://scripts/player.gd"
PackedScene 场景 path="res://scenes/enemy.tscn"
Material 材质资源 path="res://materials/floor.tres"
Texture2D 2D 纹理 path="res://textures/icon.png"
AudioStream 音频 path="res://audio/shoot.wav"
Shader 着色器 path="res://shaders/outline.gdshader"

3.3 ID 命名规范

AI 生成时使用有意义的 ID:

[ext_resource type="Script" path="res://scripts/player.gd" id="1_player_script"]
[ext_resource type="Material" path="res://resources/floor_mat.tres" id="2_floor_mat"]
[ext_resource type="PackedScene" path="res://scenes/bullet.tscn" id="3_bullet_scene"]

四、内嵌资源定义 (sub_resource)

4.1 格式

[sub_resource type="Type" id="ID"]
property1 = value1
property2 = value2

Read the full file on GitHub · 503 lines

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. 8d ago First seen · 503 lines · 60 tokens per session scan A f939157e0720

Subscribe to this mod's changes

godot-tscn-format is a skill published in the GitHub repository m1em1e/vibecoding-tools-4codex-cn (2 stars, last pushed 2mo ago), licensed MIT. It adds 60 tokens to every session and 3,927 once invoked, about $0.0003 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-08-31.