Add hybrid-duplication-audit skill - #129
Open
timt-unity3d wants to merge 2 commits into
Open
Conversation
Audits asset duplication across the AssetBundle / ContentDirectory boundary in a hybrid Addressables 4.x build. Runs one `analyze` combining the Addressables build layout report with the content directory build output, then matches source-asset paths across both - catching cases a CRC-based diff misses, such as a shader built with a different variant set on each side (which is also why Addressables' own DuplicatedAssetCount can read 0 even when real duplication exists).
Linux/macOS equivalent of Compare-HybridDuplication.ps1 - same defaults, same queries, same output. Verified against this session's build data: reproduces the PowerShell version's result exactly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Skills/hybrid-duplication-audit, a Claude Code skill that audits asset duplication across the AssetBundle / ContentDirectory boundary in a hybrid Addressables 4.x build (some groups build to.bundlefiles, others build throughBuildPipeline.BuildContentDirectory).analyzeinvocation combining the Addressables build layout report with the content directory build output, then matches source-asset paths acrossaddressables_build_explicit_assets/addressables_build_data_from_other_assetsandcontent_layout_source_assetsto find what's genuinely duplicated.DuplicatedAssetCountcan read 0 even when real cross-boundary duplication exists.README.md,AGENTS.md, andDocumentation/analyzer.mdfor discoverability, following this repo's existing manual-index convention.Test plan
UnityDataToolfrom this branch and ranSkills/hybrid-duplication-audit/scripts/Compare-HybridDuplication.ps1against a real hybrid Addressables project, confirming it reproduces a hand-verified duplication total (three shared shaders, 214,824 bytes) exactly.-KeepDatabasepreserves the generated database and its tables are as documented.