unity-asmdef

Evaluate asmdef assemblies to improve Unity module boundaries and reduce compile times.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/muddyrain/valley-mas --skill unity-asmdef-muddyrain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-asmdef
Source: https://github.com/muddyrain/valley-mas/tree/main/.codex/skills/unity-skills/skills/asmdef
Command: npx skills add https://github.com/muddyrain/valley-mas --skill unity-asmdef-muddyrain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Assembly definitions help manage Unity module boundaries and reduce compile times by isolating editor, runtime, and test code and clarifying dependencies.

Core Features & Use Cases

  • Module isolation: Define clear boundaries between runtime, editor, and test code.
  • Faster compilation: Reduce compile times by limiting cross-assembly references.
  • Migration guidance: Provide a safe path to introduce or restructure asmdef files without breaking existing code.

Quick Start

Define initial asmdef assemblies for your core modules and run a build to verify improved compile performance.

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 compile times for a large multi-domain project?

Unity compile times are reduced by introducing assembly definitions to isolate editor, runtime, and test code. This limits cross-assembly references, clarifying the dependency graph and ensuring only modified modules recompile.

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

Separating editor and runtime code in Unity is done by creating distinct assembly definition files for each domain. This enforces clear module boundaries and prevents editor-specific scripts from inflating runtime builds.

How do I safely introduce asmdef files without breaking an existing Unity project?

To safely introduce asmdef files, follow a structured migration path that defines initial assemblies for core modules. Verify allowed dependency directions and run a build to check for circular references before expanding further.

When do I need assembly definitions in my Unity project?

Assembly definitions are needed when your Unity project spans multiple domains and requires isolated editor, runtime, and test code. They become essential to manage module boundaries and improve build performance as codebase complexity grows.

How do I avoid circular references when setting up Unity assembly definitions?

Avoiding circular references in Unity assembly definitions requires defining a strict allowed dependency direction between modules. Evaluate the dependency graph to ensure runtime, editor, and test code concerns are separated without backward links.