assets-prefab-save

Saves the currently open prefab in Unity Editor prefab editing mode.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When editing prefabs in Unity Editor through automation, changes made in prefab editing mode are lost unless explicitly saved. This Skill persists those modifications by saving the open prefab asset. ## Core Features & Use Cases - Prefab Persistence: Saves the prefab currently open in Unity Editor's prefab editing mode. - Asset Reference Output: Returns an AssetObjectRef containing the saved prefab's instanceID, asset path, and GUID. - Use Case: After opening a prefab with the assets-prefab-open tool and modifying its components, invoke this Skill to commit the changes to the prefab asset on disk. ## Quick Start Ask the AI to save the prefab currently open in Unity Editor prefab editing mode.

Frequently Asked Questions about assets-prefab-save

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

FAQPage Schema
How do I save a prefab in Unity Editor from the command line?▼

Run unity-mcp-cli run-tool assets-prefab-save with an empty or minimal JSON input. The prefab must already be open in prefab editing mode, typically via the assets-prefab-open tool, before saving.

What tool opens a prefab before saving it in Unity MCP?▼

Use the assets-prefab-open tool to enter prefab editing mode for a specific prefab asset. Once open, assets-prefab-save commits any modifications to the prefab asset on disk.

Why does assets-prefab-save fail or do nothing?▼

The tool only works while Unity Editor is in prefab editing mode. If no prefab is open, open one first with assets-prefab-open, and confirm the Unity MCP server connection is active.

What should I do if unity-mcp-cli is not found?▼

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

What does the prefab save tool return?▼

It returns an AssetObjectRef describing the saved prefab, including its instanceID, asset path starting with Assets/, and asset GUID, which can be used to reference the prefab in subsequent operations.