unity-asmdef

Advise on Unity asmdef assembly groupings, dependency directions, and migration steps.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/lrbjk/FenShen_Remake_V0 --skill unity-asmdef-lrbjk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-asmdef
Source: https://github.com/lrbjk/FenShen_Remake_V0/tree/main/.codex/skills/unity-skills/skills/asmdef
Command: npx skills add https://github.com/lrbjk/FenShen_Remake_V0 --skill unity-asmdef-lrbjk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams introduce and structure Unity assembly definition files to reduce compilation time, enforce clear module boundaries, and separate editor, runtime, and test code so dependencies remain directional and manageable.

Core Features & Use Cases

  • Assembly design guidance: Recommend a few meaningful assemblies and avoid excessive fragmentation.
  • Dependency direction planning: Propose allowed dependency flows to prevent circular references and keep the graph shallow.
  • Editor/runtime/test separation: Advise how to isolate editor-only code and tests to speed iteration and enable clean test assemblies.
  • Use Case: For a growing Unity project experiencing slow compile cycles and tangled dependencies, provide proposed asmdef groupings, migration steps, and risk mitigations to safely introduce assembly definitions.

Quick Start

Advise on asmdef layout and migration for my Unity project focusing on reducing compile times and separating editor, runtime, and test code.

Frequently Asked Questions about unity-asmdef

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

FAQPage Schema
How do I reduce Unity compilation time using assembly definitions?

Unity compilation time drops when you group code into meaningful assembly definitions to prevent recompiling the entire project. This Skill advises on asmdef groupings, directional dependency graphs, and editor/runtime/test splits to optimize build cycles.

What is the best way to separate editor, runtime, and test code in Unity?

Separating editor, runtime, and test code in Unity requires strategically placing assembly definition files to isolate dependencies. This Skill advises on how to structure these asmdef splits to speed up iteration and enable clean test assemblies.

How do I plan Unity asmdef dependency directions to avoid circular references?

Planning Unity asmdef dependency directions involves proposing allowed dependency flows to keep the module boundary graph shallow. This Skill provides dependency direction planning to prevent circular references in mixed codebases.

How do I migrate a large Unity project to use assembly definitions?

Migrating a large Unity project to use assembly definitions requires structured steps to introduce module separation safely. This Skill produces recommended asmdef groupings, migration steps, and risk mitigation guidance without executing code changes.

When should I introduce assembly definitions in my Unity codebase?

You should introduce assembly definitions in medium-to-large Unity codebases experiencing slow compile cycles and tangled dependencies. This Skill helps teams enforce clear module boundaries and separate mixed editor, runtime, and test code.

What are the limitations of using Unity assembly definitions for compile time optimization?

Unity assembly definition limitations include the risk of excessive fragmentation if you create too many modules. This Skill advises on keeping a few meaningful assemblies to manage dependencies without overcomplicating the project structure.