unity-cleaner

Locate unused assets, duplicates, and missing references in Unity projects.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-cleaner-krl76
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-cleaner
Source: https://github.com/krl76/MP-Study-Projects/tree/main/Practice1/.codex/skills/unity-skills/skills/cleaner
Command: npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-cleaner-krl76

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity projects often accumulate unused assets, duplicate files, and broken or missing references that waste disk space, slow builds, and obscure project health. This Skill provides a structured, safe way to discover and report cleanup opportunities, guiding teams to a leaner, healthier project.

Core Features & Use Cases

  • Find unused assets across the project to reclaim space.
  • Detect duplicate files by content hash to remove redundancy.
  • Identify missing or broken references and scripts to fix integrity.
  • Preview deletions with a dry-run safety net before actual removal.
  • Inspect asset usage and build dependency chains to understand impact.
  • Locate empty folders and large assets to prioritize cleanup.
  • Resolve missing scripts on GameObjects to stabilize scenes.

Quick Start

Run a cleanup scan and review the report to identify candidates for safe removal.

Frequently Asked Questions about unity-cleaner

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

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

To clean unused Unity assets, you can scan the project to locate unreferenced files and missing scripts. This process generates a guarded report identifying safe removal candidates and enables optional deletions to reclaim wasted disk space.

What is the best way to detect duplicate files in Unity?

The best way to detect duplicate Unity files is to calculate content hashes across the project's asset directory. This method reliably identifies redundant files, enabling targeted cleanup workflows to remove duplicated data and reduce storage.

How do I fix missing script references on GameObjects in Unity scenes?

Fixing missing script references in Unity scenes involves scanning project assets to identify broken dependencies and GameObjects with unresolved scripts. This stabilization process reports the exact missing references so you can resolve them safely.

Can I preview Unity asset deletions before actually removing files?

Yes, you can preview Unity asset deletions by using a dry-run safety net before executing actual removal. This validation process inspects asset dependencies and reference chains to ensure no critical links are broken during cleanup.

Does this Unity cleanup process work for projects with large asset libraries?

Yes, this Unity cleanup process is applicable to typical projects with large asset libraries and space waste. It robustly validates asset dependencies and reference chains, enabling targeted cleanup workflows regardless of project scale.

Why should I run an asset cleanup scan on my Unity project?

You should run an asset cleanup scan on your Unity project to eliminate space waste, accelerate build times, and improve project health. It locates unused assets, duplicates, and empty folders to ensure a leaner project structure.