unity

Guide Unity C# development with component architecture and performance best practices.

7|1|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/ar4mirez/samuel --skill unity-ar4mirez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity
Source: https://github.com/ar4mirez/samuel/tree/main/template/.claude/skills/unity
Command: npx skills add https://github.com/ar4mirez/samuel --skill unity-ar4mirez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for developing games and interactive experiences using the Unity engine, ensuring efficient, performant, and well-structured projects.

Core Features & Use Cases

  • Best Practices: Enforces component-based architecture, data-driven design, and performance optimization.
  • Code Guardrails: Offers specific rules for MonoBehaviour lifecycle, project organization, and input handling.
  • Use Case: When starting a new Unity project or refactoring an existing one, consult this Skill for optimal project structure, component patterns, and performance tips to build a robust game.

Quick Start

Follow the Unity guide to implement a robust character controller using the new Input System.

Frequently Asked Questions about unity

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

FAQPage Schema
What are the best practices for structuring a Unity C# project to ensure performance?

Unity best practices involve enforcing component-based architecture, data-driven design via ScriptableObjects, and strict MonoBehaviour lifecycle management to ensure performant and well-structured game projects.

How do I implement a robust character controller using the Unity Input System?

Implementing a robust character controller in Unity requires following structured guardrails for input handling and physics to properly map player controls within the engine's component-based architecture.

How does the MonoBehaviour lifecycle affect Unity game development?

The MonoBehaviour lifecycle dictates execution order for initialization, updates, and cleanup in Unity, providing specific code guardrails to prevent common mistakes and optimize game performance.

Can I use ScriptableObjects for data-driven design in Unity?

Yes, ScriptableObjects enable data-driven design in Unity by allowing you to separate data from logic, which is a core best practice for organizing project structure and optimizing memory usage.

What's the best way to avoid common mistakes when scripting in Unity C#?

Avoiding common Unity C# scripting mistakes requires adhering to established patterns for state machines, animation, physics, and audio, ensuring efficient component-based architecture and lifecycle management.