unity-game-dev

Review Unity C# code for performance anti-patterns and best practices.

6|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/Samurai412/autoskill --skill unity-game-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-game-dev
Source: https://github.com/Samurai412/autoskill/tree/main/examples/unity-game-dev
Command: npx skills add https://github.com/Samurai412/autoskill --skill unity-game-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the common pain points of writing unoptimized, non-conforming Unity C# code that causes performance bottlenecks, poor component architecture, and multiplayer networking errors, eliminating hours of debugging and refactoring work for Unity developers.

Core Features & Use Cases

  • Expert Unity C# Guidance: Covers scripting patterns, component architecture, physics systems, input handling, character controllers, and multiplayer networking for all Unity game genres.
  • Adaptive Project Learning: Automatically learns your project's existing patterns (like component caching conventions, pooling implementations) to provide tailored, project-specific recommendations instead of generic advice.
  • Use Case Example: When working on a Unity multiplayer project, this Skill will flag per-frame GetComponent calls as performance anti-patterns and reference your project's existing component caching conventions to suggest compliant, optimized fixes.

Quick Start

Request a code review of your Unity project's PlayerController.cs file to identify performance anti-patterns and receive tailored improvement suggestions that match your project's existing coding conventions.

Frequently Asked Questions about unity-game-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Unity C# performance bottlenecks caused by GetComponent calls?

To fix Unity C# performance bottlenecks, cache your component references during initialization instead of calling GetComponent per-frame. This Skill detects these anti-patterns in your MonoBehaviour scripts and suggests compliant fixes based on your project's existing caching conventions.

What is the best way to structure MonoBehaviour scripts for Unity game development?

The best way to structure MonoBehaviour scripts is by enforcing strict component architecture and Unity best practices. This Skill analyzes your C# code to identify poor component design and provides tailored recommendations to align with your project's specific scripting patterns.

How do I implement server-authoritative multiplayer networking in Unity?

Implementing server-authoritative multiplayer networking in Unity requires strict adherence to optimized C# scripting practices to prevent synchronization errors. This Skill guides you through multiplayer development by flagging unoptimized code and enforcing best practices for networked character controllers and physics systems.

Can I use this Unity C# guidance for character controller design and input handling?

Yes, you can use this Unity C# guidance for character controller design and input handling across all game genres. It reviews your implementation, detects performance anti-patterns like per-frame Instantiate calls, and adapts its suggestions to match your project's established coding conventions.

Why does my Unity project have poor component architecture and how can I refactor it?

Your Unity project has poor component architecture due to unoptimized, non-conforming C# code that violates best practices. This Skill eliminates these issues by automatically learning your project's existing patterns and suggesting tailored refactoring solutions to resolve structural bottlenecks.