unity-code-reviewer
Unity Code Reviewer
This skill acts as a specialized auditor for your Unity project. It is designed to ensure code complies with high-performance standards and uses the available project patterns.
Core Features
- Diagnostic Scanning: Automated regex-based detection of common Unity performance mistakes.
- Review Protocols: A set of 5 Pillar rules (Performance, Memory, Modernity, Architecture, Minimalism).
- Corrective Intelligence: Maps suboptimal code directly to "Correct Methods" and existing Pattern Skills.
Core Files (Max 3)
DiagnosticScanner.py.txt: The analytical engine.ReviewProtocols.md.txt: The instructional logic.CorrectMethods.md.txt: The optimization reference.
Usage
Ask me to "Review [File]" or use the diagnostic script to scan a directory. I will provide a report with Severity and Fixes.
More from muharremtozan/unity-agent-skills
unity-so-prefab-manager
Manages the structured relationship between ScriptableObjects (Data) and Prefabs (Logic/Visuals) in Unity 6. Follows the 'SO-to-Mono' Bridge pattern to ensure instance independence (e.g., individual health for identical robots) while maintaining a clean, data-driven architecture. Use when: (1) Creating new unit/item types, (2) Wiring SO data to Prefab MonoBehaviours, (3) Resolving data-sharing bugs where changing one SO affects all instances.
16unity-fsm
Specialized skill for implementing a robust, extensible Finite State Machine in Unity using the State and Strategy patterns. Based on the pattern by Adam Myhre (3D Platformer). Use when creating complex AI, player controllers, or any system requiring structured state management.
11unity-assembly-management
Manage project boundaries using Assembly Definitions (.asmdef) for faster compile times and modular architecture. Based on the patterns by Adam Myhre. Enforces responsibility-based organization and handles Runtime/Editor/Tests splits.
9unity-event-bus
Advanced code-driven event bus with reflection-based bootstrapping. Provides zero-setup global messaging.
9unity-strategy-pattern
Implements the Strategy Pattern to encapsulate interchangeable algorithms (e.g., Spells, Attacks) using ScriptableObjects. Allows hot-swapping behavior without modifying client code. Clean Code approach.
8unity-command-pattern
Encapsulate actions as objects for queuing, undo/redo, and async execution.
8