unity-validation

Validate Unity project and scene integrity by detecting missing scripts, broken references, and oversized textures.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-validation-du-qwq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-validation
Source: https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications/tree/main/.agents/skills/unity-skills/skills/validation
Command: npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-validation-du-qwq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Unity projects accumulate integrity issues over time: missing script references, broken prefab links, empty folders, oversized textures, and non-convex mesh colliders. Manually hunting these down before a build is slow and error-prone, and undetected issues cause runtime errors or bloated builds. ## Core Features & Use Cases - Scene and Project Validation: Run comprehensive checks for missing scripts, missing prefabs, duplicate names, null component references, and shader compilation errors. - Safe Cleanup with Dry-Run Preview: Remove missing script components and empty folders, always previewing with dryRun=true before any destructive delete operation. - Asset Health Audits: Find potentially unused assets and oversized textures that exceed recommended size limits for your target platform. - Use Case: Before a release build, run validate_scene and validate_texture_sizes to catch integrity issues, preview cleanup of missing scripts with dryRun, then execute the fixes once the preview looks correct. ## Quick Start Ask the AI to validate the current Unity scene for missing scripts and broken references, then preview cleanup of empty folders with dry run enabled.

Frequently Asked Questions about unity-validation

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

FAQPage Schema
How do I find missing scripts in a Unity scene?

Use validate_find_missing_scripts to locate GameObjects with missing script references, optionally including prefab assets via the searchInPrefabs parameter. It returns each object's path and missing count so you can fix them before runtime errors occur.

How to check Unity project health before a build?

Run validate_scene for a comprehensive check covering missing scripts, missing prefabs, and duplicate names, then validate_texture_sizes for oversized textures and validate_shader_errors for shader compilation issues. Review the issue counts before proceeding with the build.

Can I safely delete empty folders in Unity Assets?

Yes, use validate_cleanup_empty_folders with dryRun=true first to preview which folders would be deleted. Because deletion is a high-risk operation, it requires bypass or allowlist approval, so always review the preview output before setting dryRun=false.

Does this skill fix compile errors in Unity?

No, validation skills only report issues and do not fix compile errors. For compilation problems, use the debug module's debug_check_compilation skill, and for general asset cleanup use the cleaner module instead.

What is the difference between validate_fix_missing_scripts and cleaner module?

validate_fix_missing_scripts removes missing script components with a mandatory dryRun preview, while the cleaner module handles broader unused and duplicate asset cleanup. Routing guidance in the skill directs missing script fixes to cleaner_fix_missing_scripts in some workflows.