unity-prefab

Create, instantiate, and manage Unity prefabs, overrides, and variants in scenes.

2|Updated May 18, 2026
One-click install
npx skills add https://github.com/pcone-mm/NewFPG --skill unity-prefab-pcone-mm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-prefab
Source: https://github.com/pcone-mm/NewFPG/tree/main/.agents/skills/unity-skills/skills/prefab
Command: npx skills add https://github.com/pcone-mm/NewFPG --skill unity-prefab-pcone-mm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing Unity prefabs manually through the editor is slow and error-prone, especially when spawning many instances, applying overrides, or editing prefab assets directly. This Skill exposes prefab operations as callable skills so an AI can create, instantiate, modify, and inspect prefabs programmatically. ## Core Features & Use Cases - Prefab Lifecycle Management: Create prefabs from scene objects, instantiate single or batched instances, unpack instances, and create prefab variants. - Override Control: Get override summaries, revert overrides to prefab values, or apply instance changes back to the source prefab asset. - Direct Asset Editing: Set component properties on a prefab asset without instantiating it, including basic types, vectors, colors, and asset references. - Use Case: Spawn 10 enemy prefabs across a level with one prefab_instantiate_batch call instead of 10 separate API calls, then find all instances later with prefab_find_instances. ## Quick Start Ask the AI to instantiate three enemy prefabs at different positions in the current Unity scene using the batch instantiate skill.

Frequently Asked Questions about unity-prefab

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

FAQPage Schema
How do I instantiate multiple prefabs in Unity at once?

Use prefab_instantiate_batch with an items array containing prefabPath, name, position, rotation, scale, and parent for each instance. One batch call replaces many individual prefab_instantiate calls, which is recommended when spawning two or more instances.

How to apply prefab instance changes back to the prefab asset in Unity?

Use prefab_apply with the instance name, instanceId, or path to push instance changes to the source prefab. To apply only recorded overrides, use prefab_apply_overrides; to discard them, use prefab_revert_overrides.

Can I edit a Unity prefab asset without instantiating it?

Yes, prefab_set_property modifies a component property directly inside the prefab asset file. It supports basic types, vectors, colors, enums, and asset references via assetReferencePath, and can target child objects with gameObjectName.

How do I find all instances of a prefab in a Unity scene?

Call prefab_find_instances with the prefab asset path and an optional limit (default 50). It returns each instance's name, hierarchy path, entityId, and instanceId for further operations.

What is the difference between prefab_apply and prefab_unpack?

prefab_apply saves instance changes back to the source prefab asset while keeping the prefab connection. prefab_unpack breaks the prefab connection entirely, optionally unpacking nested prefabs when completely is set to true.