engine-tdd

engine-tdd is a skill for Claude Code from vchelaru/FlatRedBall2. It costs 50 tokens per session (327 once invoked), scanned A, original, MIT.

A test-first workflow for behavior changes in the FlatRedBall2 game engine. Test-driven development, or TDD, means writing a test that fails before changing the code.

In plain words
What is it for?
It is for bug fixes and features under the engine's source directory, including tests for shaders, rendering, blend states, and pixel-color calculations.
Why use it?
It prevents source changes from shipping without a test and requires extra verification for graphics changes that ordinary tests may not cover.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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/vchelaru/flatredball2/engine-tdd
Any agent
npx skills add vchelaru/FlatRedBall2 --skill engine-tdd
Clone the repo
git clone --depth 1 https://github.com/vchelaru/FlatRedBall2

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 engine-tdd

README.md
[![agentmods](https://agentmods.dev/badge/skills/vchelaru/flatredball2/engine-tdd.svg)](https://agentmods.dev/skills/vchelaru/flatredball2/engine-tdd)
Your own site
<a href="https://agentmods.dev/skills/vchelaru/flatredball2/engine-tdd"><img src="https://agentmods.dev/badge/skills/vchelaru/flatredball2/engine-tdd.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 327 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.00050 $0.00327
Opus 5 $0.00025 $0.00163
Sonnet 5 $0.00010 $0.00065
Haiku 4.5 $0.00005 $0.00033

Measured yesterday against content hash c120e2d6afd1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

engine-tdd 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 yesterday.

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.

.claude/skills/engine-tdd/SKILL.md · 21 lines

What it actually says

Engine Changes Require a Failing Test First

Behavior changes in src/ require a failing test in tests/FlatRedBall2.Tests/ before the source edit. Write it, run it, watch it fail, then fix.

No "the cause is obvious, I'll skip the test" exception — that reasoning is how silent regressions ship. If you're about to edit src/ without a failing test open, stop.

Exceptions: XML docs, style-only edits, pure renames, dead-code removal.

Shaders, Graphics, Color Values — Manual Test Is Never Skippable

Any change touching a shader, blend state, render target, or pixel color math requires either a pixel-verification test or the user manually checking rendered output — never "manual test: not needed." Passing unit tests on surrounding math (offset clamping, parameter selection) does not cover this.

API Design — Flag Before Implementing

Before adding any new public or virtual member to an engine base class (Screen, Entity, FlatRedBallService, etc.), stop and flag it as an API design decision. Ask before writing code. New public/virtual surface is a footgun risk — it implies intent to users, shows up in IntelliSense, and is hard to remove once shipped.

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. yesterday First seen · 21 lines · 50 tokens per session scan A c120e2d6afd1

Subscribe to this mod's changes

engine-tdd is a skill published in the GitHub repository vchelaru/FlatRedBall2 (14 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 327 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-09-04.

Related

Other skills, from other repositories

woc-extract-and-test

Implement World of ClaudeCraft features, bug fixes, and focused refactors using module-first design and behavior-driven tests. Use when adding behavior, fixing a defect, extracting logic from a large file, or moving code behind an existing architectural seam.

levy-street/world-of-claudecraft · 55 tokens

team-combat

编排战斗团队:协调 game-designer、gameplay-programmer、ai-programmer、technical-artist、sound-designer 和 qa-tester,端到端地设计、实现并验证战斗功能。.

pixel-cellar/Claude-Code-Game-Studios · 49 tokens

unity-tdd

This skill should be used when the user asks to write tests first, do TDD, implement a feature or bugfix using test-driven development, add unit tests before coding, write EditMode or PlayMode tests, or set up Unity Test Runner. Also applies when a user says 'red green refactor', 'write a failing test', or…

sonereraslan/local-marketplace · 104 tokens

godot-tdd

Test-driven development for Godot games. Triggers on: TDD, test, GdUnit4, Gut, unit test, integration test, red-green-refactor.

lucas-r-manoguerra/AutoGodot · 40 tokens

unity-testing

Unity 6 testing guide. Use when writing unit tests, integration tests, or doing TDD with Unity Test Framework. Covers Edit Mode and Play Mode tests, NUnit attributes ([Test], [UnityTest], [SetUp], [TearDown]), testing MonoBehaviours and coroutines, and CI/CD integration. Based on Unity 6.3 LTS documentation.

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

unity-testrunner

Unity Test Framework CLI automation and test writing patterns. Masters batchmode execution, NUnit assertions, EditMode/PlayMode testing, and TDD workflows. Use PROACTIVELY for test automation, CI/CD pipelines, or test-driven development in Unity.

creator-hian/claude-code-plugins · 55 tokens