unity-prefab

Automate Unity prefab lifecycle operations including creation, instantiation, apply, and unpack.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-prefab-krl76
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-prefab
Source: https://github.com/krl76/MP-Study-Projects/tree/main/Practice1/.codex/skills/unity-skills/skills/prefab
Command: npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-prefab-krl76

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity developers often waste time wrestling with prefab lifecycles—creating, instantiating, applying changes, and unpacking prefabs across scenes.

Core Features & Use Cases

  • Prefab creation: Create a prefab from a scene GameObject.
  • Prefab instantiation: Instantiate a prefab into the scene with optional position and parent.
  • Batch instantiation: Use prefab_instantiate_batch to spawn multiple prefabs in a single call for level generation.
  • Apply changes: Apply instance changes back to the source prefab.
  • Unpack & variants: Unpack prefab instances or create variants as needed for unique edits.

Quick Start

Instantiate multiple prefabs in batch by calling prefab_instantiate_batch with a list of items.

Frequently Asked Questions about unity-prefab

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

FAQPage Schema
How do I batch instantiate multiple Unity prefabs in a scene?▼

Batch instantiation in Unity is handled by calling a batch operation that spawns multiple prefabs in a single call, accepting a list of items with optional position and parent values for streamlined level generation.

What's the best way to apply instance changes back to a source prefab in Unity?▼

Applying instance changes to a source prefab in Unity is done through an apply operation that pushes modifications from the scene instance back to the original asset, keeping the prefab lifecycle consistent.

How do I unpack a prefab instance within a Unity scene?▼

Unpacking a prefab instance in Unity is performed through a dedicated unpack operation that dissolves the prefab connection within the scene, allowing independent edits without affecting the source asset.

Can I create a prefab from an existing scene GameObject in Unity?▼

Creating a prefab from a scene GameObject in Unity is supported through a creation operation that converts the object into a reusable prefab asset, automating the initial stage of the prefab lifecycle.

Does Unity prefab automation support setting properties on instances during instantiation?▼

Unity prefab automation supports a set-property operation that allows modifying instance properties, providing guardrails and clear guidance when spawning or updating prefabs within scenes.

Why does managing the prefab lifecycle in Unity waste development time?▼

Managing the prefab lifecycle in Unity wastes time because developers manually wrestle with creating, instantiating, applying changes, and unpacking prefabs across scenes, which automation solves by providing guided operations.