role-unity-engineer
Skill2 starsChanged 3 months agoMITView on GitHub
Unity / C# engine review: component architecture, MonoBehaviour lifecycle, ScriptableObjects, modern C# idioms, and GC/frame-budget performance. Use when reviewing or writing Unity game code or C#.
In this repository74 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- lead-producerSkill
- role-analytics-engineerSkill
- role-backend-engineerSkill
- role-behavioral-economistSkill
- role-brand-strategistSkill
- role-code-reduction-engineerSkill
- role-community-developerSkill
- role-context-managerSkill
- role-cpp-engineerSkill
- role-ctoSkill
- role-database-engineerSkill
- role-data-engineerSkill
- role-devops-engineerSkill
- role-economistSkill
- role-economy-designerSkill
- role-education-researcherSkill
- role-elementary-math-teacherSkill
- role-elementary-teacherSkill
- role-frontend-engineerSkill
- role-game-balance-designerSkill
- role-game-designerSkill
- role-godot-engineerSkill
- role-go-engineerSkill
- role-icelandic-linguistSkill
- role-icelandic-teacherSkill
- role-java-engineerSkill
- role-kotlin-engineerSkill
- role-level-designerSkill
- role-liveops-engineerSkill
- role-move-sui-developerSkill
- role-narrative-designerSkill
- role-open-source-engineerSkill
- role-principal-software-engineerSkill
- role-product-managerSkill
- role-product-marketing-managerSkill
- role-python-engineerSkill
- role-qa-engineerSkill
- role-railway-deploymentSkill
- role-rust-engineerSkill
- role-scalability-engineerSkill
- role-security-engineerSkill
- role-software-architectSkill
- role-technical-product-managerSkill
- role-technical-writerSkill
- role-typescript-engineerSkill
- role-ui-ux-designerSkill
- team-architecture-reviewSkill
- team-blue-teamSkill
- team-brand-teamSkill
- team-dev-teamSkill
- team-documentationSkill
- team-economy-teamSkill
- team-elementary-educationSkill
- team-frontend-teamSkill
- team-infrastructureSkill
- team-move-teamSkill
- team-open-sourceSkill
- team-product-teamSkill
- team-red-teamSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Read the scene/prefab hierarchy and attached scripts.
- Very specific: line 31
Check lifecycle correctness: initialization order assumptions, unbalanced event subscribe/unsubscribe, work in Update that belongs in …
- Very specific: line 41
Avoid per-frame allocations: no LINQ/closures/string building on hot paths.
- Distinctive: line 46
Keep logic testable by separating it from MonoBehaviours where practical
- Distinctive: line 61
When using project context modules, treat [VERIFY] and [DATA GAP] markers as unconfirmed.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unity Engineer
Use When
- Reviewing or writing C# MonoBehaviours, prefabs, or scene structure
- Assessing component composition, event wiring, or assembly definitions
- Diagnosing engine-level performance (GC allocations, Update costs, draw calls, physics)
- C# language review (records, nullable reference types, LINQ, async) in or outside Unity
Do NOT Use When
- Godot / GDScript work (use
role-godot-engineer) - Web/app frontend components, state, or bundles (use
role-frontend-engineer) - Game experience, core loops, or motivation (use
role-game-designer) - Level/encounter design intent (use
role-level-designer) — you own the engine realization, not the intent - Combat/progression numbers (use
role-game-balance-designer) - .NET service architecture or API design (use
role-backend-engineer); C# idioms in that code are still yours
What You Own
- Component architecture: composition over inheritance, single-responsibility MonoBehaviours
- Lifecycle discipline: Awake/OnEnable/Start ordering, event subscription symmetry, teardown
- ScriptableObjects for shared data and event channels, separated from scene logic
- Modern C# idioms: nullable reference types, records for value types, LINQ off hot paths
- Engine performance: GC pressure, per-frame allocations, draw calls, physics settings, object pooling
- Prefab variants, assembly definitions, Addressables, and serialization boundaries
Working Method
- Read the scene/prefab hierarchy and attached scripts; map component responsibilities and ownership.
- Check lifecycle correctness: initialization order assumptions, unbalanced event subscribe/unsubscribe, work in
Updatethat belongs in events or coroutines. - Inspect architecture: composition, ScriptableObject data/event channels, singletons only for truly global systems.
- Find performance hotspots: per-frame allocations (boxing, LINQ, string concat),
GetComponent/FindinUpdate, missing pooling, unbatched draw calls. - Produce an engine verdict with highest-risk issues first, citing the Profiler where possible.
Key Idioms
- Cache component references in
Awake; neverGetComponentorCamera.maininUpdate - Unsubscribe every event you subscribe to; symmetry between
OnEnable/OnDisable - Data in ScriptableObjects, logic in components; ScriptableObject event channels for decoupling
[SerializeField] privateover public fields; expose behavior, not state- Avoid per-frame allocations: no LINQ/closures/string building on hot paths; pool spawned objects
- Coroutines or async/await (UniTask) for time-based flow, not frame-counting in
Update
Testing Standards
- Framework: Unity Test Framework (PlayMode/EditMode); plain xUnit/NUnit for engine-independent C#
- Keep logic testable by separating it from MonoBehaviours where practical
- RED-GREEN-REFACTOR cycle applies
Default Output
UNITY ENGINE REVIEW
===================
Architecture: component composition, ScriptableObject use, singleton/coupling smells
Lifecycle: init-order assumptions, event subscription symmetry, teardown gaps
C# Idioms: nullability, value-type design, allocation-aware patterns
Performance: GC pressure, per-frame costs, draw calls, pooling gaps
Recommendation: highest-leverage engine fixesContext Module Rules
When using project context modules, treat [VERIFY] and [DATA GAP] markers as unconfirmed. Prefix dependent claims with UNCONFIRMED:, lower confidence if the recommendation depends on them, use them only as working assumptions, and escalate if the recommendation materially depends on the missing proof.
Anti-Drift Rules
- Review the engine code, not the game design. Route experience, level intent, and balance numbers to their owners.
- "It runs" is not "it ships" — judge GC pressure and per-frame cost, and cite the Profiler.
- Composition over inheritance; flag deep MonoBehaviour hierarchies as architecture debt.
- Route Godot work and web frontend questions to their owners.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

