Skip to content
This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"name": "godot-devkit",
"source": "./",
"description": "The godot-devkit skill: which devkit verb does each scene, resource, tile, rename and stats job.",
"version": "4.8.0",
"version": "5.0.0",
"license": "MIT"
}
]
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "godot-devkit",
"version": "4.8.0",
"version": "5.0.0",
"description": "Points agents at godot-devkit verbs for .tscn/.tres edits, editor save churn, renames, tile painting and code-size stats.",
"author": {
"name": "Chris Dowin"
Expand Down
22 changes: 10 additions & 12 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# CLAUDE.md — godot-devkit

Scene tooling, configurable checks and installable Godot runners for Godot 4.x, consumed as a **pinned-tag, stdlib-only
Python package** by shipping game repos. Two audiences, humans and LLMs; for the second the
deliverables are a stable verb vocabulary, determinism, and token reduction. The northstar in one
line: *any change you can make to a scene by hand should be makeable through one deterministic
command that touches nothing else — and provable without reading the file.* The why is
[`README.md`](README.md); this file is the enforceable form of it, not a second copy.
A library of base primitives any Godot 4.x project wants (read-only scene parsing, reference
search, the uid codec, stats, outcome checks, sandboxed engine runners) plus a few agent skills,
consumed as a **pinned-tag, stdlib-only Python package**. The test for a module: would any Godot
project want this primitive, and does the editor or the model not already do it? Godot writes its
own scene files (the editor, or a headless GDScript with `ResourceSaver`); the devkit keeps one
narrow writer, `scene set` and `scene add`, for inherited scenes a headless save damages, and adds
no other. The why is [`README.md`](README.md); this file is the enforceable form.

godot-devkit has Godot tooling and the gate framework games run (`Makefile.gates`, `Makefile.tiers`);
agentic-sdlc has agent guardrails; neither imports the other. Agent hooks, agents and the model guide
Expand Down Expand Up @@ -69,12 +70,9 @@ Model guide: cdowin/agentic-sdlc (which agent, which model, when).
- **New check** = module in `godot/checks/` + a branch in `_dispatch_check` + a check-reference
wiki row drafted in the PR body + a Release-notes section, plus the probe below.
**New read verb** = module + `cli.py` route + a Verb-reference wiki row drafted in the PR body + a
Release-notes section. **New write verb** = usually a scene subverb — a row in `scene_edit.py`'s
`VERBS` + `HANDLERS` plus `_build_parser`/`_check_usage`; a new top-level verb is module + route +
wiki row + Release-notes section.
Either way: a round-trip fidelity case in the corpus, a refusal path with a test proving it declines
rather than mangles, and an idempotence test. Address nodes by PATH (`parent` + `name`), the way
Godot does; read output must be valid write input.
Release-notes section. **No new scene write verb** (see the top). A repair flag on a check
(`uid --fix`) needs a refusal path with a test proving it declines rather than mangles, and an
idempotence test.
- **Every config value goes through `src/godot_devkit/core/config.py`.** Never `tuple(cfg.get(...))` — a bare string
is iterable, and that is how a silent PASS over an empty census ships.
- **Known gap:** `refs` does not index autoload NAMES (declared in `project.godot`, not via
Expand Down
2 changes: 1 addition & 1 deletion Makefile.tiers
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ render: ## Draw a scene (or SHEET=<dir> as a contact sheet) to a PNG (LOCAL, nee
@test -n "$(OUT)" && test -n "$(SCENE)$(SHEET)" || { echo "usage: make render SCENE=<x.tscn> OUT=<x.png> [RECT=x,y,w,h] | make render SHEET=<dir> OUT=<sheet.png>"; exit 2; }
@bash $(GDK_RUNNERS_DIR)/render.sh $(if $(SHEET),--sheet "$(SHEET)","$(SCENE)") --out "$(OUT)" $(if $(RECT),--rect "$(RECT)")

# The runtime half of `check ui-layout`. The runner asks the godot-devkit
# Text fit at runtime. The runner asks the godot-devkit
# command for the [ui_fit] plan (pure parse; 0 scenes FAILS there), boots it,
# and draws a scene with findings to .ui-fit-reports/ through render.sh.
ui-fit: ## Boot the [ui_fit] scenes (default ui/gallery/) pseudolocalized at the smallest and largest window; report spills and cut text
Expand Down
28 changes: 12 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
# godot-devkit

**godot-devkit** is scene tooling, configurable checks and installable Godot runners for Godot 4.x
projects, shipped as a **pinned-tag, stdlib-only** Python package. Its Python CLI reads and edits
`.tscn`/`.tres` as text without starting Godot. The installed shell runners use a sandboxed
`user://` to run the engine's import, GUT tests and other project checks.
**godot-devkit** is a library of base primitives for Godot 4.x projects, shipped as a
**pinned-tag, stdlib-only** Python package: read-only scene parsing, reference search, the uid
codec, code stats, a few outcome checks, and installable runners that use a sandboxed `user://` to
run the engine's import, GUT tests, renders and fit sweeps. Plus a few agent skills.
Made by [Signal and Echo](https://signalandecho.com), an indie game studio, for its own Godot
games, and published under MIT for any Godot project.

> **Any change you can make to a scene by hand, you should be able to make through one
> deterministic command that touches nothing else — and prove it, without ever reading the file.**
> **Godot writes its own files. The devkit reads them, cheaply, and checks the outcomes.**

For a human, the editor stops being mandatory for mechanical work and diffs stay reviewable. For an
LLM: a small stable vocabulary of verbs instead of a bespoke `sed`; determinism, because a tool that
reformats what it was not asked to touch hides its damage inside a legitimate diff; and token
reduction, because a tile-heavy scene costs 100k+ tokens to read where `scene` costs a few hundred
and a write verb costs zero. The commitments: **refuse rather than mangle** (the worst outcome is
never an error, it is silent partial success); **read output is write input**; **idempotence**,
because models retry; **bounded blast radius**; and **`scene-diff`**, so an edit is provable
without re-reading the file.
A scene changes through the editor, or headless through a short GDScript that loads it, edits it
and saves it with `ResourceSaver` (the `godot-devkit` skill shows the pattern). For an inherited
scene with overrides, which a headless save damages, `scene set` and `scene add` change only their
own lines. The devkit's part is
the read side: a tile-heavy scene costs 100k+ tokens to read where `scene` costs a few hundred, and
`scene-diff` proves an edit without re-reading the file. A gate that scanned nothing fails, loudly.

Claude Code plugin (the `godot-devkit` skill): `/plugin marketplace add cdowin/godot-devkit`, then `/plugin install godot-devkit@godot-devkit`. Docs: https://github.com/cdowin/godot-devkit/wiki (verbs, checks, CI and [migration to 4.0](https://github.com/cdowin/godot-devkit/wiki/Migrating-from-3.x-to-4.0)).

Expand All @@ -36,12 +33,11 @@ Pin it and read the rest: [Installing and pinning](https://github.com/cdowin/god

```sh
godot-devkit scene scenes/world/hub.tscn # node tree, ext_resources, a few hundred tokens
godot-devkit scene set scenes/world/hub.tscn Player/Camera zoom "Vector2(2, 2)"
godot-devkit scene-diff scenes/world/hub.tscn --git HEAD # the one line that changed, and nothing else
godot-devkit check all # the configured static checks
```

Every write verb takes `--dry-run` and is idempotent. More: [Quickstart](https://github.com/cdowin/godot-devkit/wiki/Quickstart), [Verb reference](https://github.com/cdowin/godot-devkit/wiki/Verb-reference).
More: [Quickstart](https://github.com/cdowin/godot-devkit/wiki/Quickstart), [Verb reference](https://github.com/cdowin/godot-devkit/wiki/Verb-reference).
The stock check roster covers selected static drift; UID, `.tres` and pattern checks are opt-in via
`[roster] checks`. Installed `make parse` imports, compiles every script and boots the main scene.

Expand Down
3 changes: 0 additions & 3 deletions godot-devkit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@
[uid]
exclude_prefixes = ["addons/", "tests/fixtures/"]

[tres]
exclude_prefixes = ["addons/", "tests/fixtures/"]

[props]
exclude_prefixes = ["addons/", "tests/fixtures/"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "godot-devkit"
version = "4.8.0"
version = "5.0.0"
description = "Headless dev tooling for Godot 4.x - pure-parse scene introspection, surgical scene, TileMapLayer and autoload edits, configurable static checks, and the test-tier runners."
readme = "README.md"
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion src/godot_devkit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""godot-devkit — headless scene introspection + static repo gates for Godot 4.x."""
__version__ = '4.8.0'
__version__ = '5.0.0'
Loading
Loading