unity-asmdef

Advises on Unity assembly definition layout, dependency direction, and editor/runtime/test splits.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Dylan8865/FinalYearProject --skill unity-asmdef-dylan8865
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-asmdef
Source: https://github.com/Dylan8865/FinalYearProject/tree/main/GameDev/Tester/.agents/skills/unity-skills/skills/asmdef
Command: npx skills add https://github.com/Dylan8865/FinalYearProject --skill unity-asmdef-dylan8865

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Large Unity projects suffer from slow compile times and tangled code dependencies when everything lives in one default assembly. This Skill helps you decide whether assembly definitions (asmdef) are justified and how to structure them cleanly. ## Core Features & Use Cases - asmdef Justification Check: Evaluates whether your project size and structure actually benefit from assembly definitions before adding complexity. - Dependency Graph Planning: Proposes assemblies with a directional, shallow dependency graph and clear editor/runtime/test splits. - Migration Guidance: Provides step-by-step migration plans plus risks and churn to avoid, such as circular dependencies or dumping-ground assemblies. - Use Case: Your Unity project's compile times have grown painful and editor scripts are mixed with runtime code. Use this Skill to get a proposed assembly layout, allowed dependency directions, and a safe migration sequence. ## Quick Start Ask the assistant to review your Unity project structure and propose an asmdef layout that separates editor, runtime, and test code to speed up compilation.

Frequently Asked Questions about unity-asmdef

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

FAQPage Schema
How do I split Unity code into asmdef assemblies?▼

Start by separating editor code from runtime code, then group runtime code into a few meaningful domain assemblies. Keep the dependency graph directional and shallow, and migrate incrementally rather than restructuring everything at once.

When should I use assembly definitions in Unity?▼

Use asmdef when your project has multiple domains or systems, editor and runtime code are mixed, compile times are becoming noticeable, or tests need clean isolation. Tiny prototypes do not benefit and should avoid the added fragmentation.

Do asmdef files speed up Unity compile times?▼

Yes, assembly definitions let Unity recompile only the assemblies affected by a change instead of the entire project. The benefit grows with project size, but only when assemblies are split along meaningful boundaries with shallow dependencies.

Why does my Unity asmdef setup cause circular dependency errors?▼

Circular dependencies occur when two assemblies reference each other directly or through a chain. Fix this by reversing one dependency direction or extracting shared types into a lower-level assembly both sides can reference.

What are common mistakes when adding asmdef files?▼

Common mistakes include creating too many tiny assemblies, forcing everything through a shared dumping-ground assembly, and introducing circular references. Prefer a few meaningful assemblies with a clear editor/runtime/test split.