What problem does it solve?
Provides a focused design review and actionable guidance for Unity gameplay scripts to reduce coupling, improve maintainability, and surface code smells before or after implementation.
Core Features & Use Cases
- Responsibility & Role: Ensures each script has a single clear responsibility and recommends whether it should be a MonoBehaviour, ScriptableObject, or plain C# class.
- Coupling & Communication: Identifies hidden dependencies and suggests explicit references, interfaces, or event-driven decoupling.
- Performance & Lifecycle: Flags unnecessary Update usage, repeated Finds, allocations in hot paths, and missing cleanup for subscriptions and async work.
- Inspector & Testability: Improves serialized field visibility and grouping for editor UX and recommends moving core logic to plain classes for unit testing.
- Use Case: Use when reviewing a newly generated PlayerController, refactoring legacy scene-tied scripts, or preparing code for automated testing.
Quick Start
Run a design review on my PlayerController.cs and recommend the top structural refactors to reduce coupling and improve testability.