gameobject-component-add

Add specified components to GameObjects in Unity scenes or Prefabs.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lunafish/Game00 --skill gameobject-component-add
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gameobject-component-add
Source: https://github.com/lunafish/Game00/tree/main/SKILLS/gameobject-component-add
Command: npx skills add https://github.com/lunafish/Game00 --skill gameobject-component-add

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of adding components to GameObjects within a Unity project, whether they are in an opened Prefab or the active Scene, streamlining game development workflows.

Core Features & Use Cases

  • Component Addition: Add specified components to target GameObjects.
  • GameObject Identification: Supports finding GameObjects by instance ID, path, name, or asset reference.
  • Use Case: Quickly add a Rigidbody component to a character GameObject in the scene to enable physics interactions.

Quick Start

Add the 'Rigidbody' component to the GameObject named 'Player' in the current scene.

Frequently Asked Questions about gameobject-component-add

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

FAQPage Schema
How do I add components to a GameObject in Unity?

To add components to a Unity GameObject, you need the target GameObject reference and the component name. This process works deterministically for GameObjects in the active Scene or opened Prefabs.

Can I add a component to a GameObject inside an opened Prefab?

Yes, you can add components to GameObjects within opened Prefabs. The Skill supports targeting GameObjects by instance ID, path, name, or asset reference for deterministic execution.

How do I identify a target GameObject when adding a component?

You can identify a target GameObject using its instance ID, path, name, or asset reference. These references are required to add components deterministically to the correct target.

What is the best way to automate adding physics components like Rigidbody to characters?

Automating Rigidbody addition requires specifying the component name and providing the target GameObject reference. This streamlines workflows by adding physics interactions to characters in the active scene.

Do I need specific Unity dependencies or environment setup to add components?

No specific dependencies are required to add components, but you need an active Unity project with a valid Scene or opened Prefab. You must also provide the GameObject references and component names for execution.

Why does adding a component require a GameObject reference?

Adding a component requires a GameObject reference to ensure deterministic execution. This accurately targets the specific GameObject in the active Scene or Prefab using its instance ID, path, name, or asset reference.