unity-script-roles

Plan Unity script roles for MonoBehaviour, ScriptableObject, and C# services.

1|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/mufengbufeng/EF --skill unity-script-roles
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-script-roles
Source: https://github.com/mufengbufeng/EF/tree/main/UnityProject/.claude/skills/unity-skills/skills/script-roles
Command: npx skills add https://github.com/mufengbufeng/EF --skill unity-script-roles

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams design and allocate responsibilities for Unity scripting by guiding which code belongs in MonoBehaviour, ScriptableObject, pure C# services, presenters, installers, or other roles.

Core Features & Use Cases

  • Guided role assignment for common Unity code patterns (MonoBehaviour, ScriptableObject, service classes, presenters, installers).
  • Guardrails to avoid overusing MonoBehaviour and to promote proper separation of concerns.
  • Use Case: Plan a batch of gameplay scripts so responsibilities are clear before implementation.

Quick Start

Define initial roles for your upcoming Unity scripts using the guide.

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 Unity script responsibilities between MonoBehaviour and ScriptableObject?

To assign Unity script responsibilities, use a role planning guide to map class tasks across MonoBehaviour, ScriptableObject, and pure C# services. This enforces proper separation of concerns during design and refactor phases.

What is the best way to structure Unity gameplay scripts before implementation?

The best way to structure Unity gameplay scripts is to define role mappings for presenters, installers, and services before coding. This prevents overusing MonoBehaviour and ensures clear class responsibilities.

When do I need to plan Unity script roles for my game design?

You need to plan Unity script roles during the design and refactor phases of a game project. Planning role mappings early prevents mixed responsibilities across UI layers, systems, and gameplay logic.

How do I separate concerns in Unity to avoid overusing MonoBehaviour?

To separate concerns in Unity and avoid overusing MonoBehaviour, allocate tasks to pure C# services, presenters, and ScriptableObjects. A structured role mapping output guides this separation across gameplay and systems.

Can I use pure C# services with ScriptableObject for Unity UI layers?

Yes, you can use pure C# services with ScriptableObject for Unity UI layers by assigning distinct script roles like presenters and installers. This approach keeps UI logic decoupled from MonoBehaviour dependencies.