manage-sprite-atlas
Manages SpriteAtlas assets through a prebuild pipeline, covering master and variant atlases, packing settings, and platform overrides. Use when asked to…
от Unity-Technologies★ 1 342 звезды на GitHub
Установить manage-sprite-atlas в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Unity SpriteAtlas V2
Provides editor-safe procedural knowledge for scripting atlases in Unity projects. V2 enforces strict separation between editor authoring and runtime access.
⚠ Critical V2 Principle:
SpriteAtlasis runtime-only.SpriteAtlasAssetis editor-only. Never mix contexts. Always use V2.
Important
- Use the unity cli (
unity command --format json) and theunity-cliandunity-pipelineskills for each step. - Run C# with
unity command script eval --code '<snippet>'. Don't useusingdirectives or unqualified types in the snippet. The compiler reads usingUnityEngineand a bare AssetDatabase, SpriteAtlas, or Object causes errors (CS0246 / CS0103 / CS0104).returnwhat you want to read; it arrives atdata.result.result. - Before making changes, establish a baseline of the current behavior so you can tell whether a later result is actually caused by your change.
- Create a restore point you can roll back to if your changes fail.
- Do only what's asked. Don't change unrelated assets or files.
- Never leave verification code in the user's script. Never build logging or detection they didn't ask for. See Final step.
- Avoid long explanations.
Full topic map
Before you go forward with a workflow or diagnosis:
- Open and read the documentation page(s) that cover the specific subject related to what you intend to do or fix and check if you've missed anything.
- Name the file(s) you read in your response.
This is because your training knowledge about Unity might be out of date, incorrect, or for the wrong Unity version.
For Engine pages: if the Editor install folder has a Data/Documentation folder (eg ...Unity/Hub/Editor/6000.6.0b2/Editor/Data/Documentation), read the html files from the en/Manual folder (<editor-install>/Editor/Data/Documentation/en/Manual/<local file>), and Script Reference pages from en/ScriptReference.
Otherwise the docs pages are online at https://docs.unity.com/en-us/engine/<VERSION>/manual/unity2d/sprite/atlas.md.
Prefer fetching the page directly (for example WebFetch) over searching (for example WebSearch) — faster and lands on the exact reference. Only fetch what you need, and only search if you don't have the exact URL. Replace <VERSION> with the following before fetching:
- docs.unity3d.com: The Unity version, eg
6000.6 - Package on docs.unity3d.com: The package version, eg
@6.6or@2.0. Check the package version if unsure. - Engine on docs.unity.com: The Unity version, eg
6000.3 - docs.unity.com: The product version, eg
7000.0
Read the Unity version from ProjectSettings/ProjectVersion.txt, and the com.unity.addressables major.minor for the Addressables docs from Packages/packages-lock.json.
For Addressables pages: the docs pages are local markdown conversions of the Unity Manual, stored at <project-folder>/Library/PackageCache/com.unity.addressables@*/. Read only the .md files in that specific PackageCache subfolder. You must not look at non-.md files, or look outside at other Library or PackageCache folders, otherwise it takes too much time. If that folder has no .md files, use the online pages at https://docs.unity3d.com/Packages/com.unity.addressables@<VERSION>/manual/, because some packages don't ship their docs.
The page list, with each page's local file and online URL, is in references/docs-map.md.
- references/api.md: the Script Reference page for each V2 type, plus API pitfalls.
API reference
The API is UnityEditor.U2D (SpriteAtlasAsset, SpriteAtlasImporter, SpriteAtlasUtility) and UnityEngine.U2D (SpriteAtlas, SpriteAtlasManager), part of the Unity Engine. It is versioned by Unity version, so check the project's Unity version before relying on a specific class or method.
- Use the
unity-cliskill to check the project's Unity version. - If the Editor install folder has a
Data/Documentationfolder (e.g..../Unity/Hub/Editor/6000.6.0b2/Editor/Data/Documentation), grep the html files in theen/ScriptReferencefolder inside, and skip the remaining steps. - Otherwise, fetch and cache
https://docs.unity3d.com/<VERSION>/Documentation/ScriptReference/xrefmap.yml(replace<VERSION>with the Unity version, e.g.6000.3). This file lists every public API member's fully qualified name as auid(e.g.uid: 'UnityEngine.Rigidbody.AddForce(UnityEngine.Vector3)'). - Grep the yml file locally for a class or method instead of refetching per lookup. The file is large (about 6 MB), so don't read the whole file.
- Convert the
uidto a markdown page: remove the parameters in brackets, lowercase it, replace.with/, and add.md. Then fetchhttps://docs.unity.com/en-us/engine/<VERSION>/script-reference/<converted uid>. For example,UnityEngine.Rigidbody.AddForce(UnityEngine.Vector3)=> `https://docs.unity.com/en-us/engine/6000.3/script-referen
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- SECURITY.md
- references/addressables-delivery.md
- references/api.md
- references/best-practices.md
- references/categorization-patterns.md
- references/common-errors.md
- references/custom-packing.md
- references/docs-map.md
- references/manual-authoring.md
- references/workflow.md
- scripts/authoringvsruntime.cs
- scripts/buildaddressablespostprocess.cs
- scripts/cacheloadedatlases.cs
- scripts/cleanupbatchoperations.cs
- scripts/createandconfiguremasteratlas.cs
- scripts/custompackersetup.cs
- scripts/deprecatedmethods.cs
- scripts/dontmodifywithoutsaving.cs
- scripts/dontpackinruntimebuilds.cs
- scripts/dontscriptspriteatlasineditor.cs
- scripts/editorconfiguration.cs
- scripts/enablespritepacking.cs
- scripts/gridspritepacker.cs
- scripts/handlelatebinding.cs
- scripts/handlenullcases.cs
- scripts/migratev1tov2.cs
- scripts/multipagepacker.cs
- scripts/optimizetexturesettings.cs
- scripts/packerdebugging.cs
- scripts/packtransform.cs
- scripts/platformnames.cs
- scripts/queryspritesefficiently.cs
- scripts/registercallbacks.cs
- scripts/runtimeatlasloader.cs
- scripts/runtimespriteaccess.cs
- scripts/savespriteatlasasset.cs
- scripts/scriptablepacker.cs
- scripts/setincludeinbuild.cs
- scripts/sizeoptimizedpacker.cs
- scripts/spriteatlaslatebinding.cs
FAQ
Что делает скилл manage-sprite-atlas?
Manages SpriteAtlas assets through a prebuild pipeline, covering master and variant atlases, packing settings, and platform overrides. Use when asked to create or optimize sprite atlases.
Как установить скилл manage-sprite-atlas?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл manage-sprite-atlas запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…