assets-prefab-close

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

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill assets-prefab-close-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-prefab-close
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/assets-prefab-close
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill assets-prefab-close-fermisloth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When automating Unity Editor workflows through the MCP CLI, prefab editing sessions must be properly closed after modifications, otherwise the editor remains stuck in prefab editing mode and blocks other asset operations. ## Core Features & Use Cases - Close Prefab Editing Mode: Exits the currently open prefab editing session in the Unity Editor via the unity-mcp-cli tool. - Optional Save Control: Choose whether to save changes to the prefab or discard them using the save boolean parameter. - Use Case: After opening a prefab with the assets-prefab-open tool and applying scripted modifications, close the prefab with save set to true to persist the changes and return to normal scene editing. ## Quick Start Ask the AI to close the currently open prefab in Unity and save the changes made during the editing session.

Frequently Asked Questions about assets-prefab-close

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

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

Run unity-mcp-cli run-tool assets-prefab-close with a JSON input containing the save parameter. Set save to true to persist changes or false to discard them before exiting prefab editing mode.

How to save prefab changes when closing prefab editing mode in Unity?

Pass "save": true in the input JSON when calling the assets-prefab-close tool. The tool returns an AssetObjectRef pointing to the saved prefab asset, confirming the changes were written.

What should I do before closing a prefab with unity-mcp-cli?

Open the prefab first using the assets-prefab-open tool, since assets-prefab-close only works while the Unity Editor is in prefab editing mode. Closing without an active prefab session has no effect.

Why is unity-mcp-cli not found when running prefab commands?

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 provides detailed installation instructions.

Can I discard prefab changes instead of saving them?

Yes, set the save parameter to false in the input JSON. The tool closes prefab editing mode and discards all modifications made during the session, leaving the original prefab asset unchanged.