assets-prefab-close

Close the currently opened Unity prefab via HTTP API with a save parameter.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/igot-ai/os-twin --skill assets-prefab-close-igot-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-prefab-close
Source: https://github.com/igot-ai/os-twin/tree/main/.agents/skills/roles/game-engineer/develop-unity-ui/references/assets-prefab-close
Command: npx skills add https://github.com/igot-ai/os-twin --skill assets-prefab-close-igot-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Close currently opened prefab. Use it when you are in prefab editing mode in Unity Editor. Use 'assets-prefab-open' tool to open a prefab first.

Core Features & Use Cases

  • Close the currently opened prefab from the Unity Editor to end editing sessions quickly, enabling faster task switching.
  • Provide a reliable programmatic way to discard or save changes to a prefab via an HTTP API, supporting automation pipelines.
  • Use case: Imagine you are editing multiple prefabs and need a quick way to close one without applying changes.

Quick Start

Close the currently opened prefab to exit editing mode in Unity Editor, discarding any unsaved changes.

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 Unity prefab quickly from an API?

To close a Unity prefab programmatically, call the HTTP API endpoint /api/tools/assets-prefab-close. You must pass a boolean parameter to determine whether to save or discard changes before ending the editing session.

How to discard unsaved changes when closing a prefab in Unity?

To discard unsaved changes when closing a prefab in Unity, use the assets-prefab-close tool and pass false to the save parameter. This exits the prefab editing mode without applying any modifications made during the session.

Can I automate closing prefabs in a Unity Editor pipeline?

Yes, you can automate closing prefabs in a Unity Editor pipeline by calling the provided HTTP API. This allows automated workflows to end prefab editing sessions quickly and reliably without manual UI intervention.

What is the best way to end a Unity prefab editing session?

The best way to end a Unity prefab editing session is using the assets-prefab-close tool. It quickly closes the currently opened prefab from the UI or API, allowing you to discard or save changes efficiently.

Do I need to open a prefab before using assets-prefab-close?

Yes, you need to open a prefab first using the assets-prefab-open tool. The assets-prefab-close tool specifically closes the currently opened prefab to end active editing sessions in the Unity Editor.