Skip to main content
skill CX Codex

sprite-editor — Claude Code skill for Unity sprites

Rewrites Unity sprite rects, borders, pivots and slicing by generating C# snippets that run inside a live Editor.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Unity-Technologies/skills --skill sprite-editor -a claude-code
Open on GitHub

What sprite-editor does

Sprite metadata — rects, borders, pivots, outlines — sits inside the importer, not in a file you can open. Reaching it means running C# against a connected Editor through the eval command. The skill builds snippets around ISpriteEditorDataProvider and handles TextureImporter, PSBImporter and custom importers.

You need a reachable Editor with the com.unity.pipeline package, and eval has to appear in the command catalog — whether it does depends on the package version. The unity-cli skill covers CLI installation and connection checks. No Editor means no operation: editing a .meta file by hand is off the table, since the importer owns that data and a manual change corrupts it.

Every generated script follows the Safe Core Pattern with mandatory capability checks: EditSpriteName, EditSpriteRect, EditBorder, EditPivot, CreateAndDeleteSprite. A failed check stops the operation. Snippets arrive as a statement block, so using directives are rejected and types must be fully qualified — otherwise you get CS0210, CS0246 or CS0104.

What it helps with

  • change a sprite pivot without opening the Sprite Editor window
  • slice a sprite sheet into separate rects
  • set nine-slice borders on a sprite
  • refresh outlines through ISpriteOutlineDataProvider
  • rename a sprite inside the importer

Example prompts for the agent

  • Set the pivot on hero_idle to bottom center
  • Slice tiles.png into a grid and set the borders
  • Update the outlines on button_bg

How to install sprite-editor

1Skills CLI (Vercel)

npx skills add Unity-Technologies/skills --skill sprite-editor -a claude-code

2Manually: put the files in place

~/.claude/skills/sprite-editor/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/sprite-editor/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about sprite-editor

How do I install sprite-editor in Claude Code?

Run npx skills add Unity-Technologies/skills --skill sprite-editor -a claude-code. The skill lands at ~/.claude/skills/sprite-editor/SKILL.md.

What does sprite-editor do?

It generates C# scripts that edit Unity sprite metadata: rects, borders, pivots, outlines and slicing. The scripts run through eval in a connected Editor.

Why not edit the .meta file directly?

The importer owns sprite metadata. Hand-editing a .meta file skips the capability checks and corrupts the data, so an unreachable Editor is a stop rather than a cue to improvise.

Similar skills

Everything for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set28

optimize-text-mesh-pro Walks through TextMeshPro problems in Unity: bloated atlases, fuzzy glyphs, CPU spikes on text updates, build size. CX Codex +1 5,700installs implement-in-app-purchases Configures Unity In-App Purchasing v5, handles receipt validation, and guides migrations from native store billing or third-party SDKs. CX Codex +1 5,800installs shader-graph-create-custom-node Generates custom Shader Graph nodes directly from HLSL functions. It handles reflection markup so Unity registers your shader code in the graph creation menu. CX Codex +1 5,600installs optimize-audio This skill audits Unity audio settings and guides changes for memory use, mixer CPU load, and 3D playback issues. It reports findings before making edits. CX Codex +1 5,600installs localization Configures the Unity Localization package in your project. It sets up String and Asset Tables, configures locales, and binds text to UI components. CX Codex +1 5,500installs validate-urp-render-graph-renderer-feature Reviews a Unity 6 URP ScriptableRendererFeature built on the Render Graph API: material binding, resource wiring, pass structure. Useful before you merge the feature. CX Codex +1 5,600installs initialize-ai-navigation Sets up Unity AI Navigation components for NavMesh pathfinding, patrols, links, and obstacle avoidance. Use it when a scene needs navigable agents or route troubleshooting. CX Codex +1 5,400installs optimize-web A skill that walks an AI agent through auditing a Unity WebGL or WebGPU build and cutting its download size, load time and browser stutter. CX Codex +1 5,200installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor