Skip to content
Back to skills

Unity Addressables Audit

ASecurity

Use for any Unity task that loads assets through Addressables or edits Addressables groups, for writing Addressables.LoadAssetAsync, InstantiateAsync or LoadSceneAsync code, for InvalidKeyException or "No Location found for Key" errors, for remote content that won't download, or for builds or downloads that are bigger than they should be. Without opening Unity, checks the groups, profiles and code on disk for assets copied into several groups' bundles, assets built into both the player and a ...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythongobashgitdatabase

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add flxnsee/gamedev-toolkit --skill unity-addressables-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unity Addressables Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unity Addressables Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/flxnsee-unity-addressables-audit/badge)](https://www.skillsdirectory.com/skills/flxnsee-unity-addressables-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: unity-addressables-audit
description: Use for any Unity task that loads assets through Addressables or edits Addressables groups, for writing Addressables.LoadAssetAsync, InstantiateAsync or LoadSceneAsync code, for InvalidKeyException or "No Location found for Key" errors, for remote content that won't download, or for builds or downloads that are bigger than they should be. Without opening Unity, checks the groups, profiles and code on disk for assets copied into several groups' bundles, assets built into both the player and a bundle (addressable assets in Resources/, addressable scenes in the build settings, assets used by build scenes), group entries whose asset was deleted, missing groups, string keys in code that match no address or label (with the closest match) or that the catalog leaves out, groups whose build and load paths disagree (local vs remote) in any profile, duplicate addresses, and scripts that load without releasing. Covers handle release rules, AssetReference, building content in CI and content updates.
license: MIT
compatibility: Python 3.10+, standard library only. Unity itself is not required. Needs text-serialized assets (Asset Serialization Mode Force Text, the default). Reads the group, schema and profile files of Addressables 1.x and 2.x.
metadata:
  author: gamedev-toolkit
  version: "0.1.0"
---

# Unity Addressables audit

Addressables builds each group into asset bundles and writes a catalog that maps keys
(addresses, labels, GUIDs) to them. Most Addressables bugs don't show in the editor's Play
mode, which loads straight from the AssetDatabase: they appear in a player build, as a
missing key, a copy of the same texture in five bundles, or a download from a server that
was never uploaded to.

## Run the checker

`${CLAUDE_SKILL_DIR}` is this skill's folder, where its scripts are. Run the commands from the
project folder as shown, without searching for the script. If the variable was not filled
in, use the base directory shown when the skill loaded.

```bash
python "${CLAUDE_SKILL_DIR}/scripts/addressables_audit.py" path/to/UnityProject   # report + groups table
python "${CLAUDE_SKILL_DIR}/scripts/addressables_audit.py" . --json               # for parsing
python "${CLAUDE_SKILL_DIR}/scripts/addressables_audit.py" . --format github      # PR annotations in CI
```

Exit code `0` = no errors, `1` = errors, `2` = not a Unity project. A project without
Addressables settings reports nothing. Run it after changing groups, addresses or loading
code, and before a player build. Each finding names the file and says how to fix it.

Fixes the messages leave out:

- **`duplicate-dependency`:** put the shared assets in one group of their own (Bundle Mode
  *Pack Together*), not in one of the groups that uses them. Unity's Analyze window
  (Window > Asset Management > Addressables > Analyze, rule *Check Duplicate Bundle
  Dependencies*) can do this, but it makes one group for everything; ask before running it.
- **`unknown-key`:** if the key is built at runtime elsewhere in the code, the checker only
  sees literals. Prefer an `AssetReference` field over a string when the asset is known at
  edit time: renaming or moving the asset can't break it.
- **`path-mismatch`:** don't change the profile values to fix one group; other groups use
  them. Change the group's schema to the matching Local or Remote pair.

## Things the checker can't see

- Keys built from variables or constants, and loads through your own wrapper methods.
- Binary-serialized assets (their references can't be read), and dependencies Unity adds
  at build time, such as shaders pulled in by Shader Variant Collections.
- Whether the remote server actually has the files, and the content-update state
  (`addressables_content_state.bin`).

## Rules for agents

1. **Every load gets exactly one release, on the same handle.** `LoadAssetAsync` and
   `LoadAssetsAsync` → `Addressables.Release(handle)`. `InstantiateAsync` →
   `Addressables.ReleaseInstance(go)`, not `Destroy`. `LoadSceneAsync` →
   `Addressables.UnloadSceneAsync(handle)`, not `SceneManager.UnloadSceneAsync`. Never
   use the result after releasing, and never release twice: the handle is invalid after the
   first release, and an extra release can unload a bundle that something else still uses.
2. **Content must be built before the player.** In batch builds, call
   `AddressableAssetSettings.BuildPlayerContent()` before `BuildPipeline.BuildPlayer`, or
   set *Build Addressables on Player Build*. Otherwise the player ships with the last
   content build, or none (see the `unity-batchmode` skill for the build script).
3. **Don't edit group `.asset` files by hand while Unity is open**: it rewrites them from
   memory. With Unity closed, keep each entry's `m_GUID` equal to the asset's `.meta` GUID.
   In editor code, use `settings.CreateOrMoveEntry(guid, group)` and `entry.SetAddress`.
4. **An address doesn't follow the file.** Moving or renaming an asset keeps its old
   address string, so `Assets/Old/Path.prefab` can be the address of a file somewhere else.
   Use short, stable addresses (`Enemies/Goblin`) and change code and address together.
5. **After a release that players have, content updates need the release's
   `addressables_content_state.bin`.** Keep it in version control per platform, use
   *Update a Previous Build*, and leave *Build Remote Catalog* on. A new full build is for a
   new app version: by default its catalog gets a new name, so the version players have
   never sees it.
6. `WaitForCompletion()` blocks the main thread and isn't supported on WebGL. Use `await
   handle.Task` or the `Completed` event.

Files in this skill

  • SKILL.md5.5 KB
  • scripts/addressables_audit.py32.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.