game-component

Create Go game component structs and register them in the engine registry.

Updated Nov 16, 2025
One-click install
npx skills add https://github.com/TheLazyLemur/engine --skill game-component
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: game-component
Source: https://github.com/TheLazyLemur/engine/tree/main/engine/template/claude/skills/game-component
Command: npx skills add https://github.com/TheLazyLemur/engine --skill game-component

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of new game components.

Core Features & Use Cases

  • Standardized data containers for game entities.
  • Simple patterns for component creation, registration, and editor support.
  • Use Case: Add a Rotator-like component to drive entity behavior without modifying engine core.

Quick Start

Initialize a new Go component in component/<Name>.go, register it in component/components.go, and wire it into engine with a registration call.

Frequently Asked Questions about game-component

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

FAQPage Schema
How do I add new data components to a Go game engine?

To add new game data components in a Go game engine, define a Go struct for the component data, declare the component type, and register it in the engine's component registry using a registration call.

What is the pattern for creating ECS components in Go?

The ECS component pattern involves defining a Go struct to store entity data and registering it within the engine's component registry, creating standardized data containers processed by systems without modifying the engine core.

How do I register a new game entity component without modifying the engine core?

You can register a new game entity component by initializing a Go struct in a component file and wiring it into the engine with a registration call, allowing you to drive entity behavior without altering the core engine.

Can I use this to create standardized data containers for game entities?

Yes, this automates the creation of standardized data containers for game entities, enforcing a simple pattern for component creation, registration, and editor support in Go-based game projects.

What is the best way to structure game component data in a Go ECS architecture?

The best way to structure game component data is to initialize a new Go component in a dedicated file, declare its type, and register it in a central components file to ensure it is processed by systems correctly.

Do I need to manually register game components in the engine registry?

Yes, after defining the Go struct for your component data, you must declare the component type and register it in the engine's component registry to make it available for processing by systems.