assets-prefab-create

Create a Unity prefab from a scene GameObject and save it to the specified asset path.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create a prefab from a GameObject in the current active scene. The prefab will be saved in the project assets at the specified path. Use 'gameobject-find' tool to locate the target GameObject first.

Core Features & Use Cases

  • Create a prefab from a GameObject in the active scene and save it to the project assets at the specified path.
  • Use 'gameobject-find' to locate the target GameObject before prefab creation.
  • Provide an optional replaceGameObjectWithPrefab flag to replace the original object with the new prefab in the scene.

Quick Start

Provide the prefabAssetPath and the target gameObjectRef to create and save the prefab in the Unity project.

Frequently Asked Questions about assets-prefab-create

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

FAQPage Schema
How do I create a prefab from a GameObject in a Unity scene?

To create a prefab from a scene GameObject, provide the target gameObjectRef and a prefabAssetPath. The Skill automates saving the selected object as a prefab asset within your Unity project.

Can I replace a scene GameObject with the newly created prefab?

Yes, you can replace the original GameObject with the new prefab by enabling the optional replaceGameObjectWithPrefab flag during prefab creation, updating the active Unity scene directly.

Do I need to locate a GameObject before saving it as a prefab asset?

Yes, you must locate the target GameObject first using the gameobject-find tool to obtain the gameObjectRef, which is a required input for the prefab creation process.

What is the best way to automate prefab creation for Unity level design?

Automate prefab creation in level design pipelines by passing a valid prefabAssetPath and gameObjectRef to the Skill, which outputs a direct reference to the saved project asset.

Does this prefab creation method work with automated Unity asset management pipelines?

Yes, this method is specifically designed for automated pipelines in Unity asset management, accepting gameObjectRef and prefabAssetPath inputs to programmatically output created prefab assets.

What inputs are required to save a scene object as a prefab in Unity?

Saving a scene object as a prefab requires the prefabAssetPath for the project location and the gameObjectRef for the target object, with an optional flag to replace the original object.