unity-cleaner
Clean up and audit a Unity project
Install / Use
npx skills add Besty0728/Unity-Skills --skill cleanerInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of unity-cleaner
unity-cleaner scores 86/100 on our quality scale, 2394th of 4,698 Development & Engineering skills we index.
Its SKILL.md is 11 KB long, well organised into 34 sections with 11 code examples: a thorough specification that gives an agent plenty to work with.
With 1,781 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so unity-cleaner is actively maintained.
- Our last check on 2026-11-03 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-10-01. Automated pattern scan on 2026-10-01. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
unity-cleaner compared with similar skills
All 4 of these similar skills score higher than unity-cleaner; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| unity-cleaner (this skill)by Besty0728 | 86 | 1.8k | 53d ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 116.8k | 8d ago | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 72.1k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 47.3k | 2d ago | CLAUDE.md |
| lobehubby lobehub | 100 | 85.6k | today | MCP Server |
Frequently asked questions
- How do I install unity-cleaner?
- Run
npx skills add Besty0728/Unity-Skills --skill unity-cleaner. The install tabs above show the steps for each supported agent. - Which AI agents does unity-cleaner work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is unity-cleaner safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is unity-cleaner still maintained?
- The repository was last updated about 2 months ago, so unity-cleaner is actively maintained.
Skill content
View source on GitHubname: unity-cleaner description: Clean up and audit a Unity project
Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via
GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.
Triggers
- Reducing project bloat
- Hunting duplicate or orphaned assets
- Auditing before a release
- 给项目瘦身、排查重复或孤立资源、发布前审计
Unity Cleaner Skills
Safety:
cleaner_delete_assetsuses a two-step confirmToken handshake. Call withoutconfirmTokento preview; call again with the returned token (5-minute TTL) to actually delete. There is nodryRunparameter.
Guardrails
Operating Mode (v1.9 three-tier):
- Approval (default): all analyze/query skills (
cleaner_find_unused_assets,cleaner_find_duplicates,cleaner_find_missing_references,cleaner_get_asset_usage,cleaner_find_empty_folders,cleaner_find_large_assets,cleaner_get_dependency_tree) are SemiAuto — run directly. - Auto / Bypass: SemiAuto and FullAuto run directly.
- Auto-forbidden in this module:
cleaner_delete_assets,cleaner_delete_empty_folders(both carrySkillOperation.Delete). In Approval/Auto these returnMODE_FORBIDDEN— they are reachable only under Bypass mode or via a user-managed Allowlist entry; the grant flow does not unlock them. cleaner_fix_missing_scriptsis anExecute | Modifyoperation (it replaces missing component references with null in place, no asset deletion), so it does not trigger the NeverInSemi gate. In Auto / Bypass it runs directly; in Approval it still requires the standard grant handshake before execution.cleaner_delete_assetsadditionally uses a two-stepconfirmTokenhandshake even when the mode gate allows it — preview first (no token), then confirm with the returned token (5-minute TTL).
DO NOT (common hallucinations):
cleaner_delete/cleaner_removedo not exist → cleaner skills only find/report; useasset_deleteto actually removecleaner_fixdoes not exist → usecleaner_fix_missing_scriptsspecifically for missing script referencescleaner_scan/cleaner_find_unuseddo not exist → use specific skills:cleaner_find_unused_assets,cleaner_find_duplicates,cleaner_find_missing_references,cleaner_find_empty_folders,cleaner_find_large_assets
Routing:
- To delete found assets → use
assetmodule'sasset_delete/asset_delete_batch - For project validation → use
validationmodule
Skills Overview
| Skill | Description |
|-------|-------------|
| cleaner_find_unused_assets | Find assets not referenced by others |
| cleaner_find_duplicates | Find duplicate files by content hash |
| cleaner_find_missing_references | Find missing scripts/asset references |
| cleaner_delete_assets | Delete assets via two-step confirmToken (preview → confirm) |
| cleaner_get_asset_usage | Find what references a specific asset |
| cleaner_find_empty_folders | Find empty folders in the project |
| cleaner_find_large_assets | Find largest assets by file size |
| cleaner_delete_empty_folders | Delete all empty folders |
| cleaner_fix_missing_scripts | Remove missing script components from GameObjects |
| cleaner_get_dependency_tree | Get dependency tree for an asset |
Skills
cleaner_find_unused_assets
Find potentially unused assets of a specific type.
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| assetType | string | No | "Material" | Asset type filter |
| searchPath | string | No | "Assets" | Search path |
| limit | int | No | 100 | Max results |
Returns: {success, assetType, potentiallyUnusedCount, assets: [{path, name, type, sizeBytes}]}
# Find unused materials
result = call_skill("cleaner_find_unused_assets", assetType="Material")
# Find unused textures in a specific folder
result = call_skill("cleaner_find_unused_assets",
assetType="Texture2D", searchPath="Assets/Textures")
cleaner_find_duplicates
Find duplicate files by MD5 hash.
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| assetType | string | No | "Texture2D" | Asset type |
| searchPath | string | No | "Assets" | Search path |
| limit | int | No | 50 | Max groups |
Returns: {success, duplicateGroupCount, totalWastedBytes, totalWastedMB, groups: [{count, sizeBytes, wastedBytes, files}]}
# Find duplicate textures
result = call_skill("cleaner_find_duplicates", assetType="Texture2D")
print(f"Wasted space: {result['totalWastedMB']:.2f} MB")
cleaner_find_missing_references
Find components with missing scripts or null references.
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| includeInactive | bool | No | true | Include inactive objects |
Returns: {success, issueCount, missingScripts, missingReferences, issues: [{type, gameObject, path, ...}]}
# Scan for all missing references
result = call_skill("cleaner_find_missing_references")
print(f"Missing scripts: {result['missingScripts']}")
print(f"Missing references: {result['missingReferences']}")
cleaner_delete_assets
Delete specified assets with two-step confirmation.
⚠️ Safety First: Deletion requires TWO calls - first preview, then confirm.
Step 1 - Preview (no confirmToken):
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| paths | string[] | Yes | Asset paths to delete |
Returns: {action: "preview", confirmToken, assetsToDelete, message}
Step 2 - Confirm (with confirmToken):
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| confirmToken | string | Yes | Token from preview step |
Returns: {action: "deleted", deletedCount, results}
# Step 1: Preview what will be deleted
preview = call_skill("cleaner_delete_assets",
paths=["Assets/Unused/mat1.mat", "Assets/Unused/mat2.mat"])
print(preview['message']) # Shows: "⚠️ PREVIEW ONLY - 2 assets will be deleted..."
print(preview['assetsToDelete']) # Full list with sizes
# Step 2: Confirm deletion using token (expires in 5 minutes)
if input("Proceed? (y/n): ") == 'y':
result = call_skill("cleaner_delete_assets",
confirmToken=preview['confirmToken'])
print(result['message']) # "Successfully deleted 2 assets"
cleaner_get_asset_usage
Find what objects reference a specific asset.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| assetPath | string | Yes | Asset path |
| limit | int | No | Max results (default 50) |
Returns: {success, asset, usedByCount, usedBy: [{path, name, type}]}
# Check what uses a texture
result = call_skill("cleaner_get_asset_usage",
assetPath="Assets/Textures/player.png")
cleaner_find_empty_folders
Find empty folders in the project.
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| searchPath | string | No | "Assets" | Search path |
Returns: { success, count, folders }
# Find empty folders
result = call_skill("cleaner_find_empty_folders")
print(f"Found {result['count']} empty folders")
cleaner_find_large_assets
Find largest assets by file size.
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| searchPath | string | No | "Assets" | Search path |
| limit | int | No | 20 | Max results |
| minSizeBytes | long | No | 0 | Minimum file size in bytes |
Returns: { success, count, assets: [{ path, sizeBytes, sizeMB }] }
# Find top 10 largest assets over 1 MB
result = call_skill("cleaner_find_large_assets", limit=10, minSizeBytes=1048576)
for a in result['assets']:
print(f"{a['sizeMB']:.2f} MB - {a['path']}")
cleaner_delete_empty_folders
Delete all empty folders.
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| searchPath | string | No | "Assets" | Search path |
Returns: { success, deleted, total }
# Delete all empty folders
result = call_skill("cleaner_delete_empty_folders")
print(f"Deleted {result['deleted']} of {result['total']} empty folders")
cleaner_fix_missing_scripts
Remove missing script components from GameObjects.
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| includeInactive | bool | No | true | Include inactive objects |
Returns: { success, removedComponents }
# Remove all missing script components
result = call_skill("cleaner_fix_missing_scripts")
print(f"Removed {result['removedComponents']} missing script components")
cleaner_get_dependency_tree
Get dependency tree for an asset.
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| assetPath | string | Yes | - | Asset path |
| recursive | bool | No | true | Recursively resolve dependencies |
Returns: { success, assetPath, dependencyCount, dependencies: [{ path, type }] }
# Get full dependency tree for a prefab
result = call_skill("cleaner_get_dependency_tree",
assetPath="Assets/Prefabs/Player.prefab")
print(f"Dependencies: {result['dependencyCount']}")
Example Workflow: Clean Project
import unity_skills
# 1. Find all missing references and fix them
missing = unity_skills.call_skill("cleaner_find_missing_references")
for issue in missing['issues']:
if issue['type'] == 'MissingScript':
print(f"⚠️ Missing script on: {issue['path']}")
# 2. Find duplicate textures
dupes = unity_skills.call_skill("cleaner_find_duplicates", assetType="Texture2D")
if dupes['totalWastedMB'] > 10:
print(f"🗑️ {dupes['totalWastedMB']:.1f} MB wasted on duplicates")
# 3. Find unused materials
unused = unity_skills.call_skill("cleaner_find_unused_assets", assetType="Material")
print(f"📦 {unused['potentiallyUnusedCount']} potentially unused materials")
# 4. Preview cleanup
paths_to_delete = [a['path'] for a in unused['assets'][:5]]
preview = unity_skills.call_skill("cleaner_delete_assets",
paths=paths_to_delete)
print(f"Would free: {preview['totalMB']:.2f} MB")
# To actually delete, call again with preview['confirmToken'] within 5 minutes.
Exact Signatures
Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.
Related Skills
taste-skill
116.8kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
ai-job-search
72.1kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
47.3kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
lobehub
85.6k🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
