assets-prefab-open

Opens prefab edit mode for a Unity GameObject via the unity-mcp-cli tool.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill assets-prefab-open-ishaansingh-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-prefab-open
Source: https://github.com/ishaansingh-ai/Mechanical-2D/tree/main/.claude/skills/assets-prefab-open
Command: npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill assets-prefab-open-ishaansingh-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Editing a Unity prefab normally requires manual steps in the Unity Editor, and changes must propagate consistently to every prefab instance in the project. This Skill opens prefab edit mode programmatically for a specific GameObject so modifications apply to all instances of that prefab. ## Core Features & Use Cases - Prefab Edit Mode Activation: Opens prefab editing mode for a GameObject identified by instanceID, hierarchy path, name, asset path, or asset GUID. - Project-Wide Consistency: Modifications made in edit mode are applied to all instances of the prefab across the project. - Use Case: While automating a Unity scene update, you need to change a shared UI button prefab. Open prefab edit mode with this Skill, make the modifications, then close it with the assets-prefab-close tool so every instance updates. ## Quick Start Ask the AI to open prefab edit mode for a specific GameObject by providing its instanceID or hierarchy path, and remind it to close the prefab with assets-prefab-close afterward.

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 JSON object identifying the prefab instance. The GameObject can be referenced by instanceID, hierarchy path, name, asset path, or asset GUID.

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

Open prefab edit mode for a GameObject that is an instance of the original prefab, then make your modifications. Changes made in prefab edit mode are applied to all instances of that prefab across the project.

What is the gameObjectRef parameter in Unity MCP tools?▼

gameObjectRef is a reference object that locates a GameObject in an opened prefab or active scene. It supports instanceID (highest priority), hierarchy path, name, assetType, assetPath, and assetGuid fields.

Why is unity-mcp-cli not found when running the command?▼

The CLI is not installed globally. Install it with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli. The unity-initial-setup skill contains detailed installation instructions.

Do I need to close prefab edit mode after opening it?▼

Yes. After finishing modifications, use the assets-prefab-close tool to exit prefab editing mode. Leaving edit mode open can interfere with subsequent scene or asset operations.