gdunit-driver

gdunit-driver is a skill for Claude Code from valkor-ai/loom. It costs 84 tokens per session (3,452 once invoked), scanned A, original, Apache-2.0.

A test runner for gdUnit4, a unit-testing framework for Godot projects, that runs tests and returns structured results.

In plain words
What is it for?
Use it to run GDScript or Godot unit tests, investigate test failures, or verify new test files.
Why use it?
It provides the commands needed to run selected tests or an entire test directory and interpret the results.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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/valkor-ai/loom/gdunit-driver
Any agent
npx skills add valkor-ai/loom --skill gdunit-driver
Clone the repo
git clone --depth 1 https://github.com/valkor-ai/loom

Made for: Claude Code.

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 gdunit-driver

README.md
[![agentmods](https://agentmods.dev/badge/skills/valkor-ai/loom/gdunit-driver.svg)](https://agentmods.dev/skills/valkor-ai/loom/gdunit-driver)
Your own site
<a href="https://agentmods.dev/skills/valkor-ai/loom/gdunit-driver"><img src="https://agentmods.dev/badge/skills/valkor-ai/loom/gdunit-driver.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,452 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.00084 $0.03452
Opus 5 $0.00042 $0.01726
Sonnet 5 $0.00017 $0.00690
Haiku 4.5 $0.00008 $0.00345

Measured 6d ago against content hash 791a91ab638e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

gdunit-driver 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 6d 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/shared/loom/skills/godot/gdunit-driver/SKILL.md · 396 lines

How it starts

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

gdUnit4 Test Driver

$ARGUMENTS

1. Locate the Godot executable

Use GODOT_PATH when Godot is not on PATH:

GODOT_BIN="${GODOT_PATH:-godot}"
"$GODOT_BIN" --version

2. Run tests

The CLI runner across all supported versions (v4.x, v5.x, v6.x) is addons/gdUnit4/bin/GdUnitCmdTool.gd. The path uses capital-U gdUnit4/ to match the upstream repo layout — Windows is case-insensitive but Godot's global script registry de-duplicates by exact path string, so a casing mismatch between the runner invocation and the on-disk directory triggers Class "..." hides a global script class parse errors and a non-zero exit.

# Single file
"$GODOT_BIN" --headless -s res://addons/gdUnit4/bin/GdUnitCmdTool.gd \
  --add res://test/test_example.gd --ignoreHeadlessMode

# Multiple files
"$GODOT_BIN" --headless -s res://addons/gdUnit4/bin/GdUnitCmdTool.gd \
  --add res://test/test_physics.gd --add res://test/test_spawner.gd \
  --ignoreHeadlessMode

# All tests in a directory
"<godot_path>" --headless -s res://addons/gdUnit4/bin/GdUnitCmdTool.gd \
  --add res://test/ --ignoreHeadlessMode

Notes:

  • Include --ignoreHeadlessMode for headless runs.
  • Use --add to enqueue test files or directories (repeat the flag for multiples).
  • Runner path needs the res:// prefix and the capital-U addons/gdUnit4/ casing.
  • No ::method syntax for single test methods — run the whole file instead.

C# tests

GdUnitCmdTool.gd supports C# test files too, but ensure dotnet build passes first — gdUnit4 runs compiled assemblies, not source files.

dotnet build && "$GODOT_BIN" --headless -s res://addons/gdUnit4/bin/GdUnitCmdTool.gd \
  --add res://test/csharp/TestExample.cs --ignoreHeadlessMode

Useful flags

Flag Purpose
--add <path> Add test path to execution (file or directory; repeat to enqueue multiple)
--ignoreHeadlessMode Allow headless execution
--report-directory <path> Override report output directory

Read the full file on GitHub · 396 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. 6d ago First seen · 396 lines · 84 tokens per session scan A 791a91ab638e

Subscribe to this mod's changes

gdunit-driver is a skill published in the GitHub repository valkor-ai/loom (960 stars, last pushed 19d ago), licensed Apache-2.0. It adds 84 tokens to every session and 3,452 once invoked, about $0.0004 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-30.