Skip to content
Development
Skill

/asmdef

Advise on Unity assembly definitions (asmdef)

From plugin
unity-skills
1.7k82 skills4 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)

SKILL.md

asmdef.SKILL.md
name: unity-asmdef
description: Advise on Unity assembly definitions (asmdef)

> **Before calling any skill in this module:** if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via `GET /skills/recommend?includeSchema=true`) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.

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.
Read more
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
Stats
1,748
Stars
163
Forks
Active
Maintenance
C#
Language
MIT
License
18h ago
Last commit
7mo ago
Created

Repo: Besty0728/Unity-Skills

Other skills on unity-skills.