unity-script-roles

Map Unity script lists to recommended class roles and responsibilities.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/lrbjk/FenShen_Remake_V0 --skill unity-script-roles-lrbjk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-script-roles
Source: https://github.com/lrbjk/FenShen_Remake_V0/tree/main/.codex/skills/unity-skills/skills/script-roles
Command: npx skills add https://github.com/lrbjk/FenShen_Remake_V0 --skill unity-script-roles-lrbjk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turning a rough list of Unity script names into explicit, actionable class roles so generated or hand-written code avoids treating every class as a MonoBehaviour and maintains good runtime and memory characteristics.

Core Features & Use Cases

  • Role assignment: Converts script names and short descriptions into recommended roles such as MonoBehaviour bridge, ScriptableObject config/data, pure C# domain/service, presenter/controller, state machine node, or installer/bootstrap helper.
  • Architectural guidance: Identifies main responsibilities and primary dependencies for each script and explains why the chosen role is preferable to alternatives.
  • Use cases: Preparing for batch code generation, refactoring a codebase to reduce component bloat, or planning responsibilities across gameplay systems and services.

Quick Start

Provide a list of script names with brief context and ask for per-script role recommendations and rationale.

Frequently Asked Questions about unity-script-roles

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

FAQPage Schema
How do I determine Unity script roles to avoid making every class a MonoBehaviour?

Assigning Unity script roles involves mapping script lists to recommended class types like ScriptableObject config or pure C# service, avoiding unnecessary MonoBehaviour usage to preserve runtime and memory constraints.

When should I use a ScriptableObject versus a pure C# service for Unity code organization?

Use ScriptableObject roles for config and data storage in Unity code organization, while pure C# domain services handle runtime logic. This distinction reduces component bloat and ensures better memory management across gameplay systems.

How to plan class responsibilities for a Unity gameplay systems refactor?

Planning class responsibilities for a Unity gameplay systems refactor requires analyzing script names to assign roles like presenter, state machine node, or installer. This identifies main responsibilities and primary dependencies for each script during architectural updates.

Can I batch generate Unity code architecture with predefined MonoBehaviour and installer roles?

Yes, batch generating Unity code architecture works by providing a list of script names with brief context. The system outputs per-script role recommendations, identifying whether classes should be MonoBehaviour bridges, installers, or state nodes to guide generation.

What is the best way to reduce MonoBehaviour component bloat in Unity architecture?

The best way to reduce MonoBehaviour component bloat in Unity architecture is to assign explicit class roles such as ScriptableObject config, presenter, or pure C# service, ensuring classes only use MonoBehaviour when necessary for runtime constraints.