assets-prefab-open

Opens the Unity prefab edit stage for a prefab instance or prefab asset GameObject.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/PMK95/GridSquad --skill assets-prefab-open-pmk95
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-prefab-open
Source: https://github.com/PMK95/GridSquad/tree/main/GridSquadUnity/.agents/skills/assets-prefab-open
Command: npx skills add https://github.com/PMK95/GridSquad --skill assets-prefab-open-pmk95

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Editing a Unity prefab normally requires manually locating the asset and entering prefab mode in the editor. This Skill opens the prefab edit stage directly from a GameObject reference, so modifications propagate to all instances of that prefab across the project. ## Core Features & Use Cases - Prefab Stage Opening: Resolves the prefab asset path via PrefabUtility.GetPrefabAssetPathOfNearestInstanceRoot and opens the correct prefab stage. - Instance-Aware Editing: Scene-instance GameObjects open with the originating instance remembered, while asset-side GameObjects open via the simple path overload. - Use Case: While iterating on a level, you select an enemy prefab instance in the scene, open its prefab stage, adjust its collider, and the change applies to every enemy instance in the project. Pair with 'assets-prefab-close' to exit the stage afterward. ## Quick Start Ask the assistant to open the prefab edit stage for a given GameObject by providing its instanceID, hierarchy path, name, or asset path as the gameObjectRef input.

Frequently Asked Questions about assets-prefab-open

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I open prefab edit mode in Unity from the command line?▼

Run unity-mcp-cli with the assets-prefab-open tool and pass a gameObjectRef identifying the prefab instance or asset. The tool resolves the prefab asset path and opens the prefab stage in the Unity editor.

What is a gameObjectRef in Unity MCP tools?▼

A gameObjectRef identifies a GameObject by instanceID, hierarchy path, name, assetPath, or assetGuid, with instanceID having the highest priority. It lets tools locate objects in the active scene or an opened prefab.

Does editing a prefab in the prefab stage update all instances?▼

Yes. Modifications made inside the prefab edit stage are saved to the prefab asset, so they propagate to every instance of that prefab across all scenes in the project.

Why does assets-prefab-open fail to open the prefab stage?▼

It throws when the GameObject cannot be resolved from the provided reference or when the stage fails to open. Verify the gameObjectRef points to a valid prefab instance or prefab asset GameObject.

How do I exit prefab editing mode after opening it?▼

Use the companion assets-prefab-close tool to exit the prefab stage when editing is complete. Leaving the stage open can interfere with subsequent scene operations.