Skip to content
Back to skills

Unity Csharp Mastery

ASecurity

Enforce senior-level architectural standards for Unity development. This skill focuses on high-performance C# (Job System, Burst) and decoupled architecture (ECS) to ensure games remain scalable and maintainable.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
developmentc#performance

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill unity-csharp-mastery --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unity Csharp Mastery?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unity Csharp Mastery
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-unity-csharp-mastery/badge)](https://www.skillsdirectory.com/skills/idorgham-unity-csharp-mastery)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---



# 🎮 Unity & C# Mastery (Omega-tier)

## Purpose
Enforce senior-level architectural standards for Unity development. This skill focuses on high-performance C# (Job System, Burst) and decoupled architecture (ECS) to ensure games remain scalable and maintainable.

---

## Technique 1 — High-Performance C# (DOD)

### The Job System & Burst Compiler
- **Rule**: All heavy mathematical computations (Pathfinding, Flocking, Particle Physics) must use **C# Jobs**.
- **Optimization**: Mark all job structs with `[BurstCompile]` and use `NativeArray<T>` for zero-GC memory management.
- **Safety**: Do not access managed objects (Strings, GameObjects) inside a Job.

### Memory Hygiene
- **Zero-Allocation update**: Ensure `Update()` loops produce 0B of Garbage Collection (GC) per frame.
- **Pooling**: Use `UnityEngine.Pool` for all frequently instantiated/destroyed objects (Bullets, VFX).

---

## Technique 2 — Architectural Patterns

### Entity-Component-System (ECS)
- **Constraint**: Use ECS for entities where count > 5,000.
- **Pattern**: Data lives in `IComponentData`; Logic lives in `SystemBase` or `ISystem`.

### ScriptableObject-Driven Design
- **Rule**: Use `ScriptableObjects` for global state, configuration, and event bus systems to avoid `Singleton` bloat.

---

## 🛡️ Critical Failure Modes (Anti-Patterns)

| Anti-Pattern | Result | Correction |
| :--- | :--- | :--- |
| **GameObject.Find()** | High O(n) overhead | Cache references in `Awake()` or use Dependency Injection. |
| **Large Update() Loops** | CPU Spikes | Use `Coroutine` or `Task` with appropriate intervals. |
| **String-Based Tags** | Unsafe / Slow | Use LayerMasks or specialized `Enum` identifiers. |

---

## Success Criteria (Unity QA)
- [ ] No GC allocations in the hot path (`Update`, `FixedUpdate`).
- [ ] Profiler shows "V-Sync" as the main bottleneck (target achieved 60/120fps).
- [ ] All heavy systems are Jobified and Burst-Compiled.
- [ ] Dependencies are managed via ScriptableObjects or DI frameworks (Zenject/Sextant).

Files in this skill

  • SKILL.md2.1 KB
  • core.py368 B
  • manifest.yaml188 B
  • tests/test_core.py308 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.