agentleFS
hoatv2211hoatv2211/GameStudio-CodexKIT/skills/unity-asset-guid-meta-audit/SKILL.md

unity-asset-guid-meta-audit

Skill3 starsChanged 3 months agoMITView on GitHub

Use when auditing Unity asset GUID and meta consistency, duplicate GUIDs, missing meta files, stale references, or import and prefab reference failures without editing assets.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use for duplicate GUID warnings, missing .meta files, broken prefab or scene references, stale GUIDs, merge damage, or unexplained import …

    line 35
  2. Distinctive:

    Do not use for draw order, clipping, runtime UI state, or broad asset reimport.

    line 38
  3. Very specific:

    Read-only only. Never create, delete, copy, or regenerate .meta files during diagnosis.

    line 44
  4. Very specific:

    Never generate a new .meta merely because one is missing.

    line 65
  5. Distinctive:

    Do not rewrite GUIDs across the project to silence one error.

    line 67
  6. Very specific:

    Use the bundled scripts/unity_guid_audit.py on normalized manifests and project-local Unity serialization rules.

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Unity Asset GUID Meta Audit

Overview

Build a read-only map of Unity assets, .meta files, GUIDs, and serialized references before any import, regeneration, or asset edit.

When to use

Use for duplicate GUID warnings, missing .meta files, broken prefab or scene references, stale GUIDs, merge damage, or unexplained import failures.

When NOT to use

Do not use for draw order, clipping, runtime UI state, or broad asset reimport. Route those cases to the narrower Unity workflow.

Required inputs and context discovery

Collect Unity version, project root, asset paths, meta paths, serialized reference sources, generated/vendor exclusions, version-control state, and no-touch asset rules.

Safety and risk level

Read-only only. Never create, delete, copy, or regenerate .meta files during diagnosis. Any repair requires exact ownership, backup, and safe-project-mutation.

Workflow

  1. Inventory assets and their adjacent .meta files without opening or saving Unity. Completion criterion: every inspected asset is classified as paired, missing-meta, generated, vendor, or excluded.
  2. Normalize GUID ownership into a deterministic map. Completion criterion: duplicate GUIDs cite every owning path.
  3. Extract serialized GUID references from scoped text assets. Completion criterion: stale references cite source path and missing GUID.
  4. Trace the editable source for generated or copied assets. Completion criterion: no generated destination is proposed as the repair source.
  5. Produce a source-first repair plan and verification fixture. Completion criterion: proposed changes are reversible or remain BLOCKED.

Evidence and output contract

Produce unity-guid-meta-audit.json with asset/meta pairs, duplicate GUIDs, missing meta, stale references, exclusions, limitations, and source-first recommendations.

Handoff contract

Record Unity version, inspected roots, duplicate/stale GUIDs, protected paths, generated ownership, and the next safe repair experiment.

Pitfalls and anti-rationalization

  • Never generate a new .meta merely because one is missing.
  • A text search result is not proof Unity imported the asset.
  • Do not rewrite GUIDs across the project to silence one error.
  • Missing Editor access is BLOCKED for live import confirmation.

Verification checklist

  • Asset and meta inventories are scoped.
  • Duplicate GUIDs cite all paths.
  • Stale references cite their sources.
  • Generated/vendor paths remain untouched.
  • Repair work is routed through safe mutation.

References and scripts

Use the bundled scripts/unity_guid_audit.py on normalized manifests and project-local Unity serialization rules.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.