unity-script-roles

Assign clean script roles to Unity scripts for MonoBehaviour, ScriptableObject, and service classes.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-script-roles-yiduandtdt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-script-roles
Source: https://github.com/YiDuandtdt/Bone-Throne/tree/main/.agents/skills/unity-skills/skills/script-roles
Command: npx skills add https://github.com/YiDuandtdt/Bone-Throne --skill unity-script-roles-yiduandtdt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Script role planner helps Unity teams decide responsibilities for components, ensuring not every script becomes a MonoBehaviour and guiding architecture decisions.

Core Features & Use Cases

  • Turn a rough script list into explicit roles (MonoBehaviour, ScriptableObject, pure C# service, presenter/installer)
  • Enforce separation of concerns and clearer dependencies
  • Use case: when planning a batch of gameplay scripts for a Unity project

Quick Start

Provide a list of target scripts and ask the AI to assign the most appropriate roles based on responsibilities and lifecycle.

Frequently Asked Questions about unity-script-roles

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

FAQPage Schema
How do I assign clean script roles to Unity scripts to improve maintainability?

To assign clean script roles in Unity, you provide a target script list to the planner, which evaluates responsibilities and assigns explicit roles like MonoBehaviour, ScriptableObject, or pure C# service. This ensures separation of concerns and clearer modular dependencies.

When should I avoid using MonoBehaviour for a Unity script?

You should avoid MonoBehaviour usage when a script handles data storage or pure logic without lifecycle needs. The planner guides architecture decisions by recommending ScriptableObject for data or pure C# service classes for logic, enforcing separation of concerns.

What is the best way to plan Unity architecture for a batch of gameplay scripts?

The best way to plan Unity architecture for a batch of scripts is defining explicit responsibilities early. The planner categorizes each script into MonoBehaviour, ScriptableObject, or presenter and installer roles, preventing bloated components and guiding modular dependencies.

Can I use ScriptableObject and pure C# service classes to separate concerns in Unity?

Yes, you can separate concerns by using ScriptableObject for data containers and pure C# service classes for independent logic. The planner assigns these roles to ensure not every script becomes a MonoBehaviour, enforcing modular dependencies and cleaner architecture.

Do I need a complete script list before defining Unity script roles?

You do not need a complete script list, but providing a rough list of target scripts allows the planner to assign explicit roles based on responsibilities and lifecycle. This is applicable during early-stage game architecture planning and batch script creation.