# sprite-segment-3x3grid

Splits a sprite into nine equal sectors to generate a color match string relative to the central area. Useful for asset regression checks in tests.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3300 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-segment-3x3grid/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/sprite-segment-3x3grid

## What it does

This skill slices texture coordinates from `sprite.rect` into nine blocks. It determines the dominant tone in cell `[1,1]`. Next, it checks what fraction of pixels in adjacent blocks matches that shade. If the fraction clears the target ratio, the block receives a dot symbol; otherwise, it gets an X. Rows are printed top to bottom, joined with slashes.

The standard match ratio sits at 75%. You can adjust this to 50% for blended art or 90% for solid icons. The internal script `scripts/SpriteGridAnalysis.cs` inverts the vertical texture axis so the resulting matrix aligns naturally with human visual reading.

Subtle gradients cause false mismatches unless you widen the RGB distance margin beforehand.

## Requirements
- Works with: Unity

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill sprite-segment-3x3grid -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-segment-3x3grid/SKILL.md

## When to use it
- verify sprite layout in automated visual regression runs
- document sprite patterns using a concise text format
- group texture assets by primary color distribution
- detect unexpected color variations without launching image editors

## Example prompts
- Run a 3x3 grid color analysis on the player_jump sprite
- Check the border colors of icon_coin against the center cell
- Analyze texture color symmetry using sprite-segment-3x3grid

## Similar
- [scenario-sprite-animation](https://affpapa.org/en/nevibecode/skills/scenario-sprite-animation.md) — skill · 530 installs
- [pixijs-scene-sprite](https://affpapa.org/en/nevibecode/skills/pixijs-scene-sprite.md) — skill · 5900 installs
- [asset-audit](https://affpapa.org/en/nevibecode/skills/asset-audit.md) — skill · 469 installs
- [smoke-check](https://affpapa.org/en/nevibecode/skills/smoke-check.md) — skill · 418 installs
- [game-ui-ux](https://affpapa.org/en/nevibecode/skills/game-ui-ux.md) — skill · 9600 installs
- [level-design](https://affpapa.org/en/nevibecode/skills/level-design.md) — skill · 7800 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
