gut-test-writer

gut-test-writer is a skill for Claude Code from Simone-Tarantino/godot-superpowers. It costs 61 tokens per session (1,943 once invoked), scanned A, original, MIT.

A test-writing aid for GUT, a unit-testing framework for the Godot game engine. It creates tests for game components, scenes, and automatically loaded systems.

In plain words
What is it for?
It helps test new features and bug fixes in Godot projects, including parameter-based tests and headless runs in continuous integration.
Why use it?
It removes the repetitive work of setting up test files, test fixtures, signal checks, and automated test runs.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the godot-superpowers plugin — 33 skills, 15 agents, 4 hooks, 5 MCP servers shipped together

Good fit It helps test new features and bug fixes in Godot projects, including parameter-based tests and headless runs in continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/simone-tarantino/godot-superpowers/gut-test-writer
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 Simone-Tarantino/godot-superpowers --skill gut-test-writer
Clone the repo
git clone --depth 1 https://github.com/Simone-Tarantino/godot-superpowers

Made for: Claude Code.

Or install godot-superpowers, the plugin that ships this one along with the rest of its 33 skills, 15 agents, 4 hooks, 5 MCP servers.

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 gut-test-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/simone-tarantino/godot-superpowers/gut-test-writer/github.svg)](https://agentmods.dev/skills/simone-tarantino/godot-superpowers/gut-test-writer)
Your own site
<a href="https://agentmods.dev/skills/simone-tarantino/godot-superpowers/gut-test-writer"><img src="https://agentmods.dev/badge/skills/simone-tarantino/godot-superpowers/gut-test-writer/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 gut-test-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/simone-tarantino/godot-superpowers/gut-test-writer"><img src="https://agentmods.dev/badge/skills/simone-tarantino/godot-superpowers/gut-test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,943 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.00061 $0.01943
Opus 5 $0.00030 $0.00971
Sonnet 5 $0.00012 $0.00389
Haiku 4.5 $0.00006 $0.00194

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

Security

Grade A, and why

gut-test-writer 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 11d 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/gut-test-writer/SKILL.md · 241 lines

How it starts

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

GUT Test Writer

Generate GUT tests. For GdUnit4, see the qa-tester agent — same patterns, different API.

Setup (once per project)

  1. Install GUT via Asset Library or git submodule into addons/gut/
  2. Enable in Project Settings → Plugins
  3. Create test/.gutconfig.json:
{
  "dirs": ["res://test/unit", "res://test/integration"],
  "include_subdirs": true,
  "log_level": 1,
  "should_exit": true,
  "should_exit_on_success": true,
  "junit_xml_file": "res://test/reports/results.xml",
  "junit_xml_timestamp": false
}
  1. Add to .gitignore: test/reports/

Directory structure

test/
├── unit/
│   ├── test_health_component.gd
│   ├── test_inventory.gd
│   └── test_state_machine.gd
├── integration/
│   ├── test_player_takes_damage.gd
│   └── test_save_load_roundtrip.gd
├── helpers/
│   ├── test_helpers.gd       # shared fixtures
│   └── mock_player.gd
├── fixtures/
│   └── test_save_data.tres
├── reports/                  # gitignored
└── .gutconfig.json

Filename convention: test_{thing_under_test}.gd. Class: extends GutTest.

Test template

extends GutTest
## Tests for HealthComponent.

const HealthComponent := preload("res://scripts/components/health_component.gd")

var _hp: HealthComponent

func before_each() -> void:
    _hp = HealthComponent.new()
    _hp.max_health = 100
    add_child_autofree(_hp)
    _hp._ready()  # _ready is called when added; explicit here for clarity

func test_starts_at_full_health() -> void:
    assert_eq(_hp.current_health, 100)

func test_take_damage_reduces_health() -> void:
    _hp.take_damage(30)
    assert_eq(_hp.current_health, 70)

func test_take_damage_clamps_at_zero() -> void:
    _hp.take_damage(9999)
    assert_eq(_hp.current_health, 0)

func test_die_signal_emitted_at_zero() -> void:
    watch_signals(_hp)
    _hp.take_damage(100)
    assert_signal_emitted(_hp, "died")

func test_health_changed_payload() -> void:
    watch_signals(_hp)
    _hp.take_damage(25)
    assert_signal_emitted_with_parameters(_hp, "health_changed", [100, 75])

func test_invulnerable_blocks_damage() -> void:
    _hp.invulnerable = true
    _hp.take_damage(50)
    assert_eq(_hp.current_health, 100)

func test_heal_does_not_overshoot_max() -> void:
    _hp.take_damage(20)
    _hp.heal(50)
    assert_eq(_hp.current_health, 100)

func test_revive_after_death() -> void:
    _hp.take_damage(100)
    watch_signals(_hp)
    _hp.revive()
    assert_signal_emitted(_hp, "revived")
    assert_eq(_hp.current_health, 100)

Read the full file on GitHub · 241 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. 11d ago First seen · 241 lines · 61 tokens per session scan A 560ec38991b6

Subscribe to this mod's changes

gut-test-writer is a skill published in the GitHub repository Simone-Tarantino/godot-superpowers (2 stars, last pushed 4mo ago), licensed MIT. It adds 61 tokens to every session and 1,943 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.

Related

Other skills, from other repositories

tests-run

Execute Unity tests (EditMode or PlayMode) and return per-test results. Supports filtering by test assembly, namespace, class, and method. Refreshes the AssetDatabase first; defers execution across domain reloads if scripts changed. Precondition: every open scene must be saved — dirty scenes abort the run.

IvanMurzak/Unity-MCP · 68 tokens

roblox-testing

Testing, debugging, and profiling Roblox experiences — Developer Console, Output, logging discipline, pcall and assertion patterns, TestEZ unit tests, the MicroProfiler (client and server), Scene Analysis, Script Profiler, memory diagnostics, network debugging, Luau type checking, and connection cleanup. Use when…

nonlooped/roblox-suite · 80 tokens

gdunit-driver

Run gdUnit4 unit tests and parse results into structured output. Use this skill after writing or modifying code to verify correctness via unit tests, when diagnosing test failures, or when writing new test files. Triggers: "run tests", "test fails", "write a test", any gdUnit4/unit test mention. Supports both GDScript…

RandallLiuXin/GodotMaker · 84 tokens

testing-dotnet

.NET testing patterns — xUnit conventions, integration tests with WebApplicationFactory, mocking strategies, and test organization.

zdanovichnick/dotnet-pilot · 26 tokens

tools-unity-test-framework

Unity Test Framework patterns for EditMode and PlayMode tests including async testing, mocking, and test organization.

IdoCohen560/claude-unity-game-studio · 27 tokens

unity-tests-run

Run Unity Test Framework tests via CLI batchmode with auto-detection of Unity installation.

DmitriyYukhanov/claude-plugins · 20 tokens