/skills-gamedev:unity-architecturefrom Game Dev Skills
Structures Unity projects with ScriptableObject-driven architecture, decoupled event systems, single-responsibility components, and DOTS/ECS for performance-critical systems.
Ships in Game Dev Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Monolithic MonoBehaviour architectures turn Unity projects into unmaintainable spiderwebs. When every script references every other script via GetComponent, FindObjectOfType, or static singletons, changing a player's health logic breaks the UI, sound manager, and save system simultaneously. Scalable Unity architecture relies on ScriptableObject-driven architecture (Ryan Hipple pattern), event-driven decoupling, Single Responsibility components, and data-oriented design (DOTS/ECS) for performance-critical systems.
[CreateAssetMenu(menuName = "Variables/FloatVariable")]
public class FloatVariable : ScriptableObject {
public float Value;
}
[CreateAssetMenu(menuName = "Events/GameEvent")]
public class GameEvent : ScriptableObject {
private readonly List<GameEventListener> listeners = new();
public void Raise() {
for (int i = listeners.Count - 1; i >= 0; i--)
listeners[i].OnEventRaised();
}
public void Register(GameEventListener l) => listeners.Add(l);
public void Unregister(GameEventListener l) => listeners.Remove(l);
}
PlayerController.cs (3,000 lines) into isolated single-purpose components:
PlayerInputReader.cs (Translates raw inputs to movement vectors).PlayerMotor.cs (Executes CharacterController physics).PlayerHealth.cs (Manages damage calculations and invokes events).PlayerAudioFeedback.cs (Listens to health events and plays footstep/hit clips).IDamageable, IInteractable).FindObjectsOfType:
RuntimeSet<T> ScriptableObject. When an enemy spawns, it adds itself to EnemyRuntimeSet; on destroy, it removes itself.MonoBehaviour + ScriptableObjects for high-level gameplay, menus, and quests.// GameEventListener.cs: Attach to any GameObject that reacts to an event
using UnityEngine;
using UnityEngine.Events;
public class GameEventListener : MonoBehaviour {
[SerializeField] private GameEvent gameEvent;
[SerializeField] private UnityEvent response;
private void OnEnable() => gameEvent.Register(this);
private void OnDisable() => gameEvent.Unregister(this);
public void OnEventRaised() => response.Invoke();
}
BossAI.cs held direct references to PlayerController, UIManager, CameraShake, AudioManager, and SaveSystem. Updating the UI caused null reference exceptions in Boss AI during scene transitions.OnBossPhaseChanged and OnBossDied.GameEventListener.BossAI.cs line count reduced from 1,420 lines to 310 lines. Zero scene reload reference bugs.FindObjectOfType() or string-based SendMessage() in runtime loops.ScriptableObject assets rather than mutable static singletons.RuntimeSets rather than heavy scene scans.GameManager.cs singleton that controls player input, UI, high scores, audio, and network sockets in 4,000 lines.GetComponent in Update(): Calling GetComponent<Animator>() every frame inside Update().SceneManager.LoadScene().What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
48 skills in this plugin
/anti-cheatEnforce server authority and defend against speed hacks, memory editing, and exploits. For networking setup, see unity-multiplayer. Use when defending games against exploits or hacks./blender-add-on-engineerMoved to modernized catalog in skillary. Removed in v4.1./blender-animationRig, skin and animate characters and props, and export clean animation sets to an engine. Use when rigging skeletons, weight painting, or keyframing animations./blender-modelingModel, retopologise, UV unwrap and bake game-ready assets with correct scale, pivots and polycount. Use when creating 3D hard-surface meshes, low-poly props, or UV layouts./blender-toolingBuild Blender Python add-ons, asset validators, exporters and pipeline automation. Use when writing Python scripts, add-ons, or batch tools for Blender./game-aiDesign NPC behaviour: behaviour trees, state machines, pathfinding, perception and difficulty tuning. Use when designing behavior trees, state machines, or enemy AI.skills-gamedev@skillary is listed by poorvith-mp/skillary — review the source before installing
npx claudepluginhub poorvith-mp/skillary --plugin skills-gamedev