unity-cleaner

Scan Unity Assets directory for unused, duplicate, and missing-referenced assets.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-cleaner-yuan-zzzz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-cleaner
Source: https://github.com/Yuan-Zzzz/FrogRE/tree/main/.codex/skills/unity-skills/skills/cleaner
Command: npx skills add https://github.com/Yuan-Zzzz/FrogRE --skill unity-cleaner-yuan-zzzz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps Unity developers locate unused, duplicate, or missing-referenced assets and identify empty folders or large files so projects remain lean, faster to build, and easier to maintain.

Core Features & Use Cases

  • Find unused assets: Scan the Assets folder to detect assets that are not referenced by any other project files.
  • Detect duplicates and large files: Group files by content hash to reveal wasted space and list the largest assets by size.
  • Repair and validation assistance: Identify missing script components, provide dependency trees, and offer safe two-step deletion previews to avoid accidental data loss.
  • Use Case: Before a WebGL build, run a scan to remove orphaned textures and duplicate assets, then preview deletions to reclaim build size and reduce load times.

Quick Start

Run a dry-run scan to list unused, duplicate, and missing-referenced assets in the Assets folder and preview any deletions before confirming.

Frequently Asked Questions about unity-cleaner

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

FAQPage Schema
How do I find unused assets in a Unity project?

Unity asset cleanup identifies unused files by scanning the Assets directory and mapping dependency relationships across prefabs and scenes. This reveals unreferenced textures, materials, and other resources, keeping projects lean and easier to maintain.

What is the best way to detect duplicate Unity assets and large files?

The best way to detect duplicate Unity assets is grouping files by content hash to reveal wasted space. This dependency analysis also lists the largest assets by size, helping you reclaim disk space and reduce build times before deployment.

How do I find missing script references in Unity prefabs and scenes?

Finding missing script references in Unity involves scanning prefabs and scenes for components with broken dependencies. The analysis identifies missing script components and provides dependency trees to help repair and validate project integrity.

Can I preview Unity asset deletions before confirming to avoid data loss?

Yes, Unity asset cleanup supports read-only dry-run behavior by default and uses a two-step deletion confirmation with tokens. This structured preview lets you review unused, duplicate, and missing-referenced assets before any actual removal occurs.

Does Unity dependency analysis work for optimizing WebGL build size?

Yes, Unity dependency analysis works for WebGL build optimization by identifying orphaned textures and duplicate assets. Removing these unused files before a build reclaims build size and reduces load times for the final deployed application.