unity-preflight

Automate Unity C# script preflight verification with refresh, compilation, tests, and runtime checks.

39|4|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/bigdra50/unity-cli --skill unity-preflight
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-preflight
Source: https://github.com/bigdra50/unity-cli/tree/main/skills/unity-preflight
Command: npx skills add https://github.com/bigdra50/unity-cli --skill unity-preflight

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates a reliable end-to-end preflight validation for Unity C# scripts, executing refresh, compilation wait, error checking, EditMode tests, and runtime checks, and loops on errors until issues are resolved.

Core Features & Use Cases

  • Automated multi-step verification: Executes refresh, waits for compilation, checks console errors, runs EditMode tests, and performs runtime checks in a single flow.
  • Build validation and regression detection: Validates script changes before play to catch issues early and speed up iteration.
  • Use Case: When you modify C# scripts, run preflight to ensure compilation succeeds and tests pass before committing changes.

Quick Start

Run the unity-preflight workflow to validate C# script changes by refreshing, waiting for compilation, checking errors, running EditMode tests, and performing runtime checks.

Frequently Asked Questions about unity-preflight

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Unity C# script validation before a build?

Automate Unity C# script validation by running a preflight workflow that sequentially refreshes the editor, waits for compilation, checks for console errors, and executes EditMode and runtime checks to ensure changes are safe to build.

What is Unity preflight testing for C# scripts?

Unity preflight testing is an end-to-end verification process for C# scripts that coordinates refresh, compilation waiting, error checking, and EditMode tests to catch regressions before committing changes.

Do I need Python tooling to run Unity preflight checks?

Yes, running Unity preflight checks requires Python tooling alongside a Unity installation and a Unity project specifically configured for preflight checks to execute the automated validation workflow.

How do I run EditMode tests and runtime checks automatically after modifying Unity scripts?

Run EditMode tests and runtime checks automatically by triggering a preflight workflow that waits for script compilation to finish and then sequentially executes both test types with deterministic retry loops on errors.

Can preflight validation catch Unity compilation errors automatically?

Yes, preflight validation catches Unity compilation errors by waiting for the compilation process to complete and then checking the console for errors before proceeding to run EditMode and runtime checks.

What happens when script compilation fails during Unity preflight verification?

When script compilation fails during Unity preflight verification, the workflow applies deterministic retry loops on errors, repeatedly checking until issues are resolved before moving to the next validation step.