unity-cleaner

Detect unused assets, duplicates, missing references, and empty folders in Unity projects.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Rayzerrek/dotfiles --skill unity-cleaner-rayzerrek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-cleaner
Source: https://github.com/Rayzerrek/dotfiles/tree/main/.pi/agent/skills/unity-skills/skills/cleaner
Command: npx skills add https://github.com/Rayzerrek/dotfiles --skill unity-cleaner-rayzerrek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you clean up and audit Unity projects by identifying unused assets, duplicate files, missing references, empty folders, and other sources of project bloat.

Core Features & Use Cases

  • Unused Asset Discovery: Find potentially orphaned materials, textures, and other asset types that are no longer referenced.
  • Duplicate and Size Audits: Detect content-hash duplicates and surface large assets that contribute most to repository or project size.
  • Reference Health Checks: Locate missing scripts, broken references, and dependency chains so you can fix issues before release.
  • Cleanup Safety Workflows: Preview deletions, confirm removals safely, and remove empty folders or missing script components when appropriate.
  • Use Case: Before a Unity release, use this Skill to identify waste, confirm what is truly unused, and prepare a leaner, healthier project.

Quick Start

Ask me to scan your Unity project for unused assets, duplicate files, missing references, and empty folders, then summarize the safest cleanup opportunities.

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 my Unity project?

To find unused Unity assets, you can run an audit that traces dependency trees across scenes, prefabs, and scripts to locate orphaned materials or textures. It safely flags unreferenced files for preview-confirmed deletion.

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

Reducing Unity bloat involves detecting duplicate files using content-hash analysis to identify identical assets. It also surfaces large files contributing heavily to project size, allowing you to safely remove redundant data before release.

How do I locate and fix missing script references in Unity prefabs?

Locating missing script references in Unity requires a reference health check that scans prefabs and scenes for broken dependency chains. It identifies the missing components so you can repair or safely remove them before preparing a release.

Can I safely preview asset deletions before cleaning up a Unity project?

Yes, safe cleanup workflows allow you to preview deletions and confirm removals before modifying a Unity project. This ensures that only verified unused assets, empty folders, and missing script components are deleted during the audit.

How do I find and remove empty folders in a Unity project?

Finding empty Unity folders is handled through an empty-folder discovery scan during a project audit. It identifies these directories and applies safe preview-confirmed deletion workflows to remove them without breaking valid asset paths.

Does Unity project cleanup support dependency tracing across scenes and scripts?

Yes, Unity project cleanup includes dependency tree inspection that traces usage across assets, prefabs, scenes, and scripts. This dependency tracing ensures you can accurately identify what is truly unused before applying any deletions.