Skip to content
Development
Skill

/asmdef

Advise on Unity assembly definitions (asmdef). 为 Unity 程序集定义(asmdef)提供建议。

From plugin
unity-skills
1.6k74 skills5 commands
Install
$ npx -y skills add Besty0728/Unity-Skills --skill asmdef --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/asmdef

Context preview

The summary Claude sees to decide when to auto-load this skill.

Advise on Unity assembly definitions (asmdef). 为 Unity 程序集定义(asmdef)提供建议。

SKILL.md

asmdef.SKILL.md
name: unity-asmdef
description: Advise on Unity assembly definitions (asmdef). 为 Unity 程序集定义(asmdef)提供建议。

Triggers

  • Planning asmdef layout
  • Untangling assembly dependencies
  • Speeding up compilation
  • Splitting editor/runtime/test code
  • 规划 asmdef 结构、理顺程序集依赖、加速编译、拆分编辑器/运行时代码

Unity asmdef Advisor

Use this skill when the project is large enough that compile boundaries and dependency direction matter.

Recommend Only When Worth It

`asmdef` is usually worth discussing when:

  • the project has multiple domains/systems
  • editor code and runtime code are mixed
  • compile times are becoming noticeable
  • tests should be isolated cleanly

Output Format

  • Whether `asmdef` is justified now
  • Proposed assemblies
  • Allowed dependency direction
  • Editor/runtime/test split
  • Migration steps
  • Risks or churn to avoid

Default Guidance

  • Prefer a few meaningful assemblies over many tiny ones.
  • Split editor code from runtime first.
  • Keep the dependency graph directional and shallow.

Guardrails

> **Mode**: Documentation only — no REST skills to gate; load freely under any operating mode (Approval / Auto / Bypass).

  • Do not introduce `asmdef` fragmentation for a tiny prototype.
  • Do not create circular dependencies or force everything through a shared dumping-ground assembly.
Ships withunity-skills

REST API-based AI-driven Unity Editor Automation Engine Let AI control Unity scenes directly through Skills 🎉 We are now indexed by DeepWiki! Got questions? Check out the AI-generated docs → The current official maintenance baseline is Unity 2022.3+.

Get the whole plugin