# generate-editor-search-query

Turns a plain request to find an asset or scene object into a Unity Search query and opens the search window in the editor.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3400 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/generate-editor-search-query/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/generate-editor-search-query

## What it does

Ask the agent to locate materials, prefabs or components and the skill builds one Unity Search string for it. Type filters like `t:texture` or `t:Light` cover the common cases; folders go through `dir:`, asset labels through `l:`, and dependency questions through `ref=`. The query is printed in the reply, then the search window opens on its own.

The window is opened by running C# inside the Editor, so the `eval` command has to exist. That means `unity-cli` installed, a connected Editor and the `com.unity.pipeline` package added to the project. The snippet is compiled as a statement block, not a file: no `using` lines and every type spelled out in full, or it fails to compile.

The skill is read-only. It will not install packages, edit assets, touch scenes or delete results. Say “query only” and you get the string to paste into Unity Search yourself.

## Requirements
- Works with: Unity

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Unity-Technologies/skills --skill generate-editor-search-query -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/generate-editor-search-query/SKILL.md

## When to use it
- list every material in a project by type
- find which prefabs reference a given texture
- filter assets by label or folder
- open Unity Search with a prepared query
- locate scene objects carrying a certain component

## Example prompts
- Find all materials under `Assets/Art`
- Which prefabs reference this texture? Query only, don't open Search
- List every script labelled `legacy`

## 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
