Skip to main content

Choose Unity test assemblies and verification modes that can actually prove the change, including Player/AOT and stripping checks. Use for Unity Play Mode tests, asmdef boundaries, test assemblies, IL2CPP, or build-stripping questions. (triggers: Unity Play Mode tests, Unity test assembly, Unity asmdef, Unity IL2CPP, Unity build stripping, Unity Test Framework)

  • New
  • v1.0.0
  • Reviewed Dec 4
  • No reviews yet

Capabilities

  • Priority: P1 (HIGH)

    Pick the test mode and build target that can observe the behavior; a green Editor suite is not a Player proof

  • Test Mode Selection

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.0

Unity Testing and Builds

Priority: P1 (HIGH)

Pick the test mode and build target that can observe the behavior; a green Editor suite is not a Player proof.

Assembly Boundaries

  • Move runtime code into a named runtime .asmdef; test assemblies cannot reference the predefined Assembly-CSharp.dll.
  • Give the test assembly an .asmdef that references nunit.framework.dll and the runtime assembly under test.
  • Edit Mode test assemblies set "includePlatforms": ["Editor"] and may reference Editor assemblies.
  • Play Mode test assemblies keep non-Editor platforms enabled and reference only runtime assemblies.
  • Keep test scripts beside their .asmdef; Unity identifies test assemblies by their references and platform targets.

Test Mode Selection

Behavior Mode Why
Editor tooling, importers, custom Inspectors Edit Mode Needs UnityEditor access.
Runtime lifecycle, coroutines, scene behavior Play Mode Runs the runtime loop.
Build, backend, AOT, stripping, target performance Target Player Editor cannot reproduce the Player pipeline.
Two Play Mode sessions with domain reload disabled Play Mode test or Editor driver Needs one Editor process and two real sessions.

Use [Test] for synchronous assertions and [UnityTest] only when a frame or time step is required.

Player, AOT, and Stripping

  • Build the actual target Player with the project's scripting backend and stripping level.
  • Check IL2CPP/AOT errors in the Player build log, not just the Editor console.
  • Add link.xml or [Preserve] only for types proven reachable by reflection or serialization; keep the preserved surface minimal.
  • Run the relevant Play Mode or Player tests on the target and record the exact build target, backend, stripping level, and command.
  • An Editor-only run cannot prove AOT or stripping behavior.

Verification Contract

  • State the command, test mode, target platform, and build configuration.
  • Report the exit code and the raw pass/fail counts from the runner.
  • Distinguish compile success, Edit Mode pass, Play Mode pass, and Player pass.
  • If the target Player is unavailable, report the missing build/device and mark that lane not run.

Anti-Patterns

  • No Assembly-CSharp test reference: Move runtime code into an .asmdef first.
  • No Editor-only Player claim: AOT and stripping need the target Player.
  • No broad [Preserve]: Preserve only the reflected surface; measure the build size and behavior.
  • No mode-less result: Name Edit Mode, Play Mode, or Player; they are not interchangeable.

References

  • Test assemblies, modes, and Player checks

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Signing

Verified copySLSA L1
Signed by
skills-hub.ai verified copy of https://github.com/HoangNguyen0403/agent-skills-standard
Method
Verified copy of the source repoPublished by a community repo, not by skills-hub.ai. We signed this exact version to vouch that its content matches what the repo published. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed

Reviews (0)

More from Multi-Language Standards

View source →
typescript-best-practicesWrite idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic.32 installscavemanUltra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says…26 installsphp-securityPHP-only security standards for database access, password handling, and input validation. Use when securing PHP apps against SQL injection, XSS, or weak password storage; defer Laravel middleware and security questions in other languages.16 installscommon-security-auditProbe for hardcoded secrets, injection surfaces, unguarded routes, business logic flaws, and platform-specific weaknesses across backend (Node, Go, Java, Python, Rust), frontend (React, Angular, Vue), and mobile (iOS, Android, Flutter)…14 installsandroid-performanceOptimize Android app startup, UI rendering, frame stability, and benchmark performance with Baseline Profiles, Macrobenchmark, and lazy initialization. Use when reducing startup time, diagnosing jank, or measuring rendering; defer Compose…10 installsandroid-composeBuild high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to…9 installs

Frequently asked questions about unity-testing-builds

What does the unity-testing-builds skill do?

Choose Unity test assemblies and verification modes that can actually prove the change, including Player/AOT and stripping checks. Use for Unity Play Mode tests, asmdef boundaries, test assemblies, IL2CPP, or build-stripping questions. (triggers: Unity Play Mode tests, Unity test assembly, Unity asmdef, Unity IL2CPP, Unity build stripping, Unity Test Framework) It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the unity-testing-builds skill?

Run `npx @skills-hub-ai/cli install multi-language-standards-unity-testing-builds` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/multi-language-standards-unity-testing-builds/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does unity-testing-builds work with?

unity-testing-builds runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the unity-testing-builds skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use unity-testing-builds after installing it?

In Claude Code, type `/multi-language-standards-unity-testing-builds` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the unity-testing-builds skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/multi-language-standards-unity-testing-builds)](https://skills-hub.ai/skills/multi-language-standards-unity-testing-builds)
HTML
<a href="https://skills-hub.ai/skills/multi-language-standards-unity-testing-builds"><img src="https://skills-hub.ai/api/badges/skill/multi-language-standards-unity-testing-builds" alt="Install on Skills Hub"></a>

More options in the badge docs.