assets-prefab-create

Generate prefabs from scene GameObjects or asset paths with variant support.

Updated Aug 26, 2025
One-click install
npx skills add https://github.com/infotechsrealm/PanicAtThePond --skill assets-prefab-create-infotechsrealm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-prefab-create
Source: https://github.com/infotechsrealm/PanicAtThePond/tree/main/.claude/skills/assets-prefab-create
Command: npx skills add https://github.com/infotechsrealm/PanicAtThePond --skill assets-prefab-create-infotechsrealm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of creating prefabs from active scene GameObjects or existing asset paths, allowing users to efficiently reuse components and reduce redundant asset creation.

Core Features & Use Cases

  • Prefab Creation: Generate prefabs from either scene GameObjects or existing asset paths.
  • Folder Creation: Automatically creates intermediate folders if they do not exist.
  • Variant Creation: Can create a Prefab Variant when sourcing from a GameObject that is already a prefab instance.
  • Use Case: Quickly create reusable prefabs for common scene elements, reducing the need for duplicate asset creation.

Quick Start

Use the 'assets-prefab-create' skill to create a new prefab from the 'Cube' GameObject located at 'Assets/NewPrefab' with a 'connectGameObjectToPrefab' set to true.

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 GameObject, this Skill generates the asset at a specified project path and can automatically create intermediate folders if they do not exist. It uses the unity-mcp-cli and UnityEngine API to manage the scene GameObject and save it as a reusable prefab.

Can I create a Prefab Variant from an existing prefab instance?

Yes, you can create a Prefab Variant when sourcing from a GameObject that is already a prefab instance. The Skill handles variant creation directly, allowing you to override base prefab properties while maintaining the parent connection.

Does this prefab creation tool automatically create project folders?

Yes, the prefab creation tool automatically creates intermediate folders if they do not exist at your specified project path. This ensures your generated prefabs are saved correctly without requiring manual directory setup beforehand.

What is the best way to automate prefab creation from existing assets?

The best way to automate prefab creation is using this Skill to generate prefabs from specified asset paths or active scene GameObjects. It reduces redundant asset creation by efficiently converting existing UnityEngine.Objects into reusable prefabs.

Do I need unity-mcp-cli to generate prefabs from UnityEngine.Objects?

Yes, you need unity-mcp-cli along with the UnityEngine API to generate prefabs from UnityEngine.Objects. This setup allows the Skill to access active scene elements and manage both standard prefab and Prefab Variant creation.