godot-gdscript-headless-testing

godot-gdscript-headless-testing is a skill for Claude Code from gamedev-skills/awesome-gamedev-agent-skills. It costs 107 tokens per session (2,157 once invoked), scanned A, original, Apache-2.0.

A command-line test runner for Godot 4 GDScript projects that runs tests without opening the editor. It returns a failure status when assertions fail, so continuous integration (automated checks run on code changes) can stop a bad build.

In plain words
What is it for?
Use it to run GDScript unit tests locally or in CI, and to diagnose hangs, windows opening, or incorrect success status from headless Godot commands.
Why use it?
It removes the need for a graphical editor during automated checks and prevents failed tests from being treated as successful runs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the godot plugin — 16 skills shipped together , and of gamedev

Good fit Use it to run GDScript unit tests locally or in CI, and to diagnose hangs, windows opening, or incorrect success status from headless Godot commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gamedev-skills/awesome-gamedev-agent-skills/godot-gdscript-headless-testing
About the project

awesome-gamedev-agent-skills is a collection of 73 instruction files that give AI coding agents specialized guidance for game development with engines and frameworks such as Godot, Unity, Unreal, and Phaser. It helps agents choose relevant engine and task guidance while building games. The catalogue entries are the collection's skills and plugins for agents including Claude Code, Cursor, Codex, and Gemini CLI.

gamedev-skills/awesome-gamedev-agent-skills · 12,501 stars · on GitHub · gamedev-skills.github.io

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 gamedev-skills/awesome-gamedev-agent-skills --skill godot-gdscript-headless-testing
Clone the repo
git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills

Made for: Claude Code.

Or install godot, the plugin that ships this one along with the rest of its 16 skills.

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-gdscript-headless-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/gamedev-skills/awesome-gamedev-agent-skills/godot-gdscript-headless-testing/github.svg)](https://agentmods.dev/skills/gamedev-skills/awesome-gamedev-agent-skills/godot-gdscript-headless-testing)
Your own site
<a href="https://agentmods.dev/skills/gamedev-skills/awesome-gamedev-agent-skills/godot-gdscript-headless-testing"><img src="https://agentmods.dev/badge/skills/gamedev-skills/awesome-gamedev-agent-skills/godot-gdscript-headless-testing/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-gdscript-headless-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/gamedev-skills/awesome-gamedev-agent-skills/godot-gdscript-headless-testing"><img src="https://agentmods.dev/badge/skills/gamedev-skills/awesome-gamedev-agent-skills/godot-gdscript-headless-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,157 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. Third-party audits
  • Socket pass 30 Nov 2026
  • Snyk pass 30 Nov 2026
How audits are shown
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.00107 $0.02157
Opus 5.5 $0.00043 $0.00863
Sonnet 5.5 $0.00021 $0.00431
Haiku 4.5 $0.00011 $0.00216

Measured today against content hash 60e3b0715f35, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

godot-gdscript-headless-testing 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 today.

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/godot-gdscript-headless-testing/SKILL.md · 176 lines

How it starts

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

Godot GDScript headless testing (4.x)

Run GDScript tests from a terminal or CI and get a process exit code that means something. Targets the Godot 4.7 CLI; --headless is built into every 4.x editor binary.

The one rule behind most of this skill: Godot's exit code only reflects what your runner passes to quit(). Script errors, push_error() and failed assert() calls do not make it non-zero, so the runner counts failures itself.

Workflow

  1. Check the binary: godot --headless --version prints a version and opens no window.
  2. Import on every fresh checkout: godot --headless --path <project> --import. .godot/ is normally not committed, so without it class_name types do not resolve (Identifier "X" not declared in the current scope) and imported assets fail to load.
  3. Write the runner as a SceneTree script (Pattern 1). _initialize() runs before the first frame and needs no .tscn.
  4. Count failures with a helper and end with quit(1 if failed > 0 else 0). Do not fail tests with bare assert(): in a debug build a failed assert stops _initialize() before quit(), and the process never exits.
  5. Run it: godot --headless --path <project> --script res://tests/test_runner.gd (an absolute path to a runner outside the project also works) and read the exit code.
  6. In CI, add the import step, a step timeout, and capture stdout and stderr to files (Pattern 3).
  7. Verify the runner itself before trusting a green run: break one assertion on purpose and confirm the exit code becomes 1, then put it back. A runner that always exits 0 passes CI forever.

For quick smoke checks without a test file, run a scene for a few hundred frames and scan the log, since the exit code stays 0 after runtime errors: godot --headless --path <project> --quit-after 300 res://main.tscn > run.log 2>&1, then grep -nE "SCRIPT ERROR|^ERROR:" run.log (no match means clean).

Patterns

1. Minimal SceneTree test runner with a real exit code

Read the full file on GitHub · 176 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. today Changed · +4 lines 60e3b0715f35
  2. 19d ago Changed · -30 lines · -4 tokens per session 8f817a05c6e3
  3. 1mo ago Changed · +13 lines 980ecf1815cb
  4. 2mo ago First seen · 189 lines · 111 tokens per session scan A 556b63c125cd

Subscribe to this mod's changes

godot-gdscript-headless-testing is a skill published in the GitHub repository gamedev-skills/awesome-gamedev-agent-skills (12,501 stars, last pushed yesterday), licensed Apache-2.0. It adds 107 tokens to every session and 2,157 once invoked, about $0.0004 per session on Opus 5.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-28.

Related

godot-gdscript-headless-testing compared with skills from other repositories

godot-gdscript-headless-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
godot-gdscript-headless-testinggamedev-skills/awesome-gamedev-agent-skillsSkill13kyesterdayApache-2.0A107Claude Code
roblox-testingnonlooped/roblox-suiteSkill405d agoMITA42Claude Code, Codex
gdunit-driverRandallLiuXin/GodotMakerSkill5681mo agononeA84Claude Code, Codex
godot-testing-patternsbgrenat/godot-game-dev-studioSkill3121d agoLGPL-3.0A82Claude Code, Codex
gm-verifyRandallLiuXin/GodotMakerSkill5681mo agononeB33Claude Code
test-helpersstriderZA/OpenCodeGameStudiosSkill13218d agoMITA50Claude Code
gut-test-writerSimone-Tarantino/godot-superpowersSkill36mo agoMITA61Claude Code