assets-prefab-open

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

Updated May 27, 2026
One-click install
npx skills add https://github.com/AdielMag/ClashUp --skill assets-prefab-open-adielmag
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-prefab-open
Source: https://github.com/AdielMag/ClashUp/tree/main/client/ClashUp.Unity/.claude/skills/assets-prefab-open
Command: npx skills add https://github.com/AdielMag/ClashUp --skill assets-prefab-open-adielmag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Editing a Unity prefab so changes propagate to every instance requires entering the prefab edit stage, which is tedious to do manually through the editor. This Skill opens the correct prefab stage directly from a GameObject reference, whether it is a scene instance or a prefab asset. ## Core Features & Use Cases - Prefab Stage Opening: Resolves the prefab asset path via PrefabUtility.GetPrefabAssetPathOfNearestInstanceRoot and opens the matching prefab stage. - Instance-Aware Editing: Scene-instance GameObjects open with the instance context preserved so the editor remembers which instance prompted the edit. - Use Case: While iterating on a Unity scene, you need to adjust a shared enemy prefab. Reference any enemy instance in the scene, open its prefab stage, make the change, and it propagates to all enemy instances across the project. ## Quick Start Open the prefab edit stage for the GameObject named EnemySpawner so I can modify the prefab and apply changes to all its instances.

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 run-tool assets-prefab-open with a JSON input containing a gameObjectRef. The tool resolves the prefab asset path and opens the prefab stage, repainting editor windows before returning.

How do I edit a Unity prefab so changes apply to all instances?▼

Open the prefab edit stage using this tool with any scene instance or the prefab asset itself as the gameObjectRef. Modifications made inside the stage propagate to every instance of that prefab across the project.

What reference formats can I use to target a GameObject in Unity?▼

The gameObjectRef accepts an instanceID, a hierarchy path such as character/hand/finger, a GameObject name, an asset path starting with Assets/, or an asset GUID. instanceID has the highest resolution priority.

Why does opening the prefab stage fail for my GameObject?▼

The tool throws when the GameObject cannot be resolved or the stage fails to open. Verify the reference points to a valid prefab instance or prefab asset and that the object exists in the active scene or project.

Do I need to close the Unity prefab stage after editing?▼

Yes. After finishing modifications, use the assets-prefab-close tool to exit prefab editing mode and return to the scene context. Leaving the stage open keeps the editor in prefab isolation.