# sprite-editor

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

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 5600 installs · ★ 1149
- Author: Unity-Technologies
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Unity-Technologies/skills/tree/HEAD/skills/sprite-editor/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/sprite-editor

## What it 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`.

## Requirements
- Works with: Unity

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill sprite-editor -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/sprite-editor/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/sprite-editor/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill sprite-editor -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/sprite-editor/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill sprite-editor -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/sprite-editor/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Unity-Technologies/skills sprite-editor
```

2. **Manually: put the files in place**
- File: `.github/skills/sprite-editor/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill sprite-editor -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Unity-Technologies/skills --path skills/sprite-editor
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/sprite-editor/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill sprite-editor -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Unity-Technologies/skills/tree/HEAD/skills/sprite-editor/SKILL.md

## When to use it
- 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
- 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`

## Similar
- [orbit-card](https://affpapa.org/en/nevibecode/skills/orbit-card.md) — skill · 10000 installs
- [cad](https://affpapa.org/en/nevibecode/skills/cad.md) — skill · 14000 installs
- [step-parts](https://affpapa.org/en/nevibecode/skills/step-parts.md) — skill · 11200 installs
- [sdf](https://affpapa.org/en/nevibecode/skills/sdf.md) — skill · 10500 installs
- [urdf](https://affpapa.org/en/nevibecode/skills/urdf.md) — skill · 10500 installs
- [hatch-pet](https://affpapa.org/en/nevibecode/skills/hatch-pet.md) — skill · 3300 installs

From the same set: [unity-technologies/skills](https://affpapa.org/en/nevibecode/by/unity-technologies/skills.md) — 31 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
