assembly-definitions

Create and validate Berit BSM BSR .NET assemblies with TDS and MDS support.

3|Updated Jun 27, 2026
One-click install
npx skills add https://github.com/OmerZeyveli/kinglet-unity --skill assembly-definitions-omerzeyveli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assembly-definitions
Source: https://github.com/OmerZeyveli/kinglet-unity/tree/main/.claude/skills/core/assembly-definitions
Command: npx skills add https://github.com/OmerZeyveli/kinglet-unity --skill assembly-definitions-omerzeyveli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps Unity developers organize scripts into assembly definitions, reducing unnecessary recompilation and preventing dependency mistakes across runtime, editor, and test code.

Core Features & Use Cases

  • Assembly Design: Decide when to create assemblies and structure Core, Systems, Gameplay, Editor, and Test code.
  • Dependency Management: Define valid reference directions, platform filters, optional package constraints, and namespace conventions.
  • Use Case: Use this Skill to separate a large Unity project into focused assemblies so changes to gameplay scripts do not recompile unrelated systems, while editor and test code stays out of production builds.

Quick Start

Use the assembly-definitions skill to design an asmdef structure for my Unity project and identify any invalid dependency directions.

Frequently Asked Questions about assembly-definitions

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

FAQPage Schema
How do I reduce Unity recompilation time when making small script changes?

Reduce Unity recompilation time by organizing scripts into assembly definitions. This structures runtime, editor, and test code into focused boundaries so changes only recompile the modified assembly rather than the entire project.

What is the correct way to structure assembly definitions for Unity editor and test code?

Structure Unity editor and test assemblies using separate assembly definitions with correct references and test constraints. This isolates editor-only and test code from runtime builds while maintaining valid dependency directions.

Can I use assembly definitions to manage third-party package dependencies in Unity?

Yes, Unity assembly definitions support optional dependency defines and package constraints. You can configure valid reference directions and platform filters to manage third-party code boundaries and prevent compilation dependency errors.

Why does my Unity project have circular dependency errors after adding assembly definitions?

Circular dependency errors in Unity assembly definitions happen when reference directions are invalid. Fix them by restructuring assemblies hierarchically, ensuring core code never references gameplay, editor, or test assemblies.

When should I not use assembly definitions in a Unity project?

Avoid assembly definitions in small Unity projects with few scripts, as managing asmdef JSON files outweighs recompilation benefits. They suit large projects needing structured runtime, editor, test, and shared-library boundaries.