unity-testing

unity-testing is a skill for Claude Code, Codex from IdoCohen560/claude-unity-game-studio. It costs 78 tokens per session (3,768 once invoked), scanned A, a copy of unity-testing, MIT.

A Unity 6 guide to testing C# code and game behavior with Unity's built-in test framework. It explains Edit Mode tests, Play Mode tests, and tests that run in continuous integration systems.

In plain words
What is it for?
Use it to write unit and integration tests, test coroutines and MonoBehaviours, or follow test-driven development (TDD), where tests guide the code you write.
Why use it?
It helps catch broken logic, gameplay behavior, and platform-specific problems before they reach players.

Skill for Claude CodeCodex

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/idocohen560/claude-unity-game-studio/unity-testing
Any agent
npx skills add IdoCohen560/claude-unity-game-studio --skill unity-testing
Clone the repo
git clone --depth 1 https://github.com/IdoCohen560/claude-unity-game-studio

Made for: Claude Code, Codex.

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 unity-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/idocohen560/claude-unity-game-studio/unity-testing.svg)](https://agentmods.dev/skills/idocohen560/claude-unity-game-studio/unity-testing)
Your own site
<a href="https://agentmods.dev/skills/idocohen560/claude-unity-game-studio/unity-testing"><img src="https://agentmods.dev/badge/skills/idocohen560/claude-unity-game-studio/unity-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,768 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00078 $0.03768
Opus 5 $0.00039 $0.01884
Sonnet 5 $0.00016 $0.00754
Haiku 4.5 $0.00008 $0.00377

Measured yesterday against content hash 4928639d2adc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

unity-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 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.

Origin

This is a copy

100% identical to unity-testing — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

examples/my-first-game/.claude/skills/unity-testing/SKILL.md · 498 lines

How it starts

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

Unity Test Framework

Test Framework Overview

The Unity Test Framework (UTF) is Unity's built-in testing solution, integrating a custom version of NUnit (based on NUnit 3.5) adapted for Unity. It enables testing C# code in Edit Mode, Play Mode, and on target platforms (Standalone, Android, iOS).

UTF extends NUnit with Unity-specific attributes ([UnityTest], [UnitySetUp], [UnityTearDown]) that support coroutines, yield instructions, and frame-based execution.

Key capabilities:

  • Edit Mode tests for editor extensions and pure logic
  • Play Mode tests for gameplay, physics, and coroutine-based code
  • Standalone player test builds for platform-specific validation
  • Command-line execution for CI/CD pipelines
  • NUnit XML result output

Source: Unity Test Framework 2.0 Manual


Setup and Configuration

Installing the Test Framework

UTF ships with Unity by default. Open the Test Runner via Window > General > Test Runner.

Creating a Test Assembly

Test code must live in its own assembly definition (.asmdef) that references NUnit.

Create via Window > General > Test Runner (click Create a new Test Assembly Folder) or Assets > Create > Testing > Test Assembly Folder.

This creates a Tests folder with an .asmdef file preconfigured with references to:

  • nunit.framework.dll
  • UnityEngine.TestRunner
  • UnityEditor.TestRunner (Edit Mode only)

Edit Mode Assembly Definition (.asmdef)

{
    "name": "Tests",
    "references": [
        "UnityEngine.TestRunner",
        "UnityEditor.TestRunner"
    ],
    "includePlatforms": ["Editor"],
    "defineConstraints": ["UNITY_INCLUDE_TESTS"],
    "autoReferenced": false
}

Play Mode Assembly Definition (.asmdef)

{
    "name": "Tests.PlayMode",
    "references": [
        "UnityEngine.TestRunner",
        "UnityEditor.TestRunner",
        "MyGameAssembly"
    ],
    "includePlatforms": [],
    "optionalUnityReferences": ["TestAssemblies"],
    "defineConstraints": ["UNITY_INCLUDE_TESTS"],
    "autoReferenced": false
}

Read the full file on GitHub · 498 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 498 lines · 78 tokens per session scan A 4928639d2adc

Subscribe to this mod's changes

unity-testing is a skill published in the GitHub repository IdoCohen560/claude-unity-game-studio (17 stars, last pushed 1mo ago), licensed MIT. It adds 78 tokens to every session and 3,768 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to unity-testing, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

test-writer

Generates comprehensive unit and integration tests for a given file or function, auto-detecting the project test framework and matching existing test style.

RealDougEubanks/ClaudeMarketplace · 32 tokens

abd-test

ABD Testing agent: auto-detects the test framework, writes tests matching project style, runs the suite, and records a test artifact.

RealDougEubanks/ClaudeMarketplace · 31 tokens

feature-dev

Take one new feature slice from idea to reviewed, committed code in a single guided pass — scope it into the smallest shippable slice, build it test-first with strict TDD, review and fix the diff, then commit it. Chains slice → test-driven-development → the built-in /code-review → git-commit. Not for reviewing an…

thoughtbot/rails-consultant · 83 tokens

test-driven-development

Strict red-green-refactor TDD workflow for implementing features, fixing bugs, or changing behavior in Rails applications. Enforces the discipline of writing a failing test before any production code. Use whenever you want to implement with TDD — whether a new feature, a bugfix, a refactor, or any behavior change.

thoughtbot/rails-consultant · 68 tokens

swarm

Run a multi-agent audit of a codebase by spawning specialized parallel subagents (security, performance, tests, architecture, dead-code), then synthesize their findings into a single prioritized action plan. Use this whenever the user runs /swarm, asks to "audit the repo," "review this codebase," "find issues across…

Zintellix/Claude-Skills · 138 tokens

memory-loop-setup

Bootstrap a battle-tested memory loop (shared warm-layer BRIEF · 6-type capture log · open-loops registry · session-card hook · deadman switch · human gate) into any repo or Obsidian vault. Triggers: (1) "set up the memory loop / second brain / warm layer here", (2) "install this memory structure in another…

Elliotoh-jin/claude-memory-loop · 100 tokens