Skip to content
Development
Skill

/script-roles

Advise on assigning Unity script roles. 为 Unity 脚本职责划分提供建议。

From plugin
unity-skills
1.6k74 skills5 commands
Install
$ npx -y skills add Besty0728/Unity-Skills --skill script-roles --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/script-roles

Context preview

The summary Claude sees to decide when to auto-load this skill.

Advise on assigning Unity script roles. 为 Unity 脚本职责划分提供建议。

SKILL.md

script-roles.SKILL.md
name: unity-script-roles
description: Advise on assigning Unity script roles. 为 Unity 脚本职责划分提供建议。

Triggers

  • Deciding a class's role
  • Splitting responsibilities across types
  • Choosing between MonoBehaviour and plain C#
  • 确定类的职责、在类型间拆分职责、在 MonoBehaviour 与纯 C# 间抉择

Unity Script Roles

Use this skill before creating a batch of gameplay scripts.

Goal

Turn a rough script list into explicit roles so AI does not generate everything as `MonoBehaviour`.

Output Format

  • Script name
  • Recommended role
  • Main responsibility
  • Main dependencies
  • Why this role fits better than the alternatives

Common Roles

  • `MonoBehaviour` bridge
  • `ScriptableObject` config/data
  • pure C# domain/service
  • presenter / controller
  • state / state machine node
  • installer / bootstrap helper

Guardrails

> **Mode**: Documentation only — no REST skills to gate; load freely under any operating mode (Approval / Auto / Bypass).

  • Do not make every class a `MonoBehaviour`.
  • Do not force `ScriptableObject` onto runtime state that should stay in memory-only objects.
Ships withunity-skills

REST API-based AI-driven Unity Editor Automation Engine Let AI control Unity scenes directly through Skills 🎉 We are now indexed by DeepWiki! Got questions? Check out the AI-generated docs → The current official maintenance baseline is Unity 2022.3+.

Get the whole plugin