assets-prefab-save

Saves the open Unity prefab edit stage back to its prefab asset.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When editing a prefab in Unity's prefab stage via automation, changes remain unsaved until explicitly persisted. This Skill saves the currently opened prefab edit stage back to its prefab asset without exiting the stage, so modifications are not lost. ## Core Features & Use Cases - Prefab Stage Persistence: Calls PrefabUtility.SaveAsPrefabAsset on the current prefab stage's contents root and clears the stage's dirtiness flag. - Asset Reference Output: Returns an AssetObjectRef containing the instanceID, asset type, path, and GUID of the saved prefab. - Use Case: After opening a prefab with the assets-prefab-open tool and modifying its hierarchy through other editor commands, invoke this Skill to commit the changes to the prefab asset on disk while staying in edit mode. ## Quick Start Ask the AI to save the currently open prefab editing stage in Unity so the changes are written back to the prefab asset.

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 tool calls PrefabUtility.SaveAsPrefabAsset on the current prefab stage and returns a reference to the saved asset.

How to save a Unity prefab without exiting prefab edit mode?▼

Use the assets-prefab-save tool, which persists the stage contents to the prefab asset while keeping the prefab stage open. This lets you continue editing after saving.

Does assets-prefab-save work without an open prefab stage?▼

No, the tool throws an error when no prefab stage is currently open. You must first open a prefab using the assets-prefab-open tool before saving.

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

The CLI is not installed globally. Install it with npm install -g unity-mcp-cli or prefix commands with npx, and check the unity-initial-setup skill for full installation instructions.

What does the prefab save tool return after saving?▼

It returns an AssetObjectRef containing the saved prefab's instanceID, asset type, asset path starting with Assets/, and asset GUID, which can be used to reference the prefab in subsequent operations.