Tooluck logoTooluck
SKILL.md

unity-asmdef

Agent skill fromBesty0728/Unity-Skills

Advise on Unity assembly definitions (asmdef)

How to install unity-asmdef

install unity-asmdef
# install the Unity-Skills pack with the skills CLI
npx skills add Besty0728/Unity-Skills

# or add only this skill to Claude Code: copy the folder

SkillsForUnity/unity-skills~/skills/asmdef/

# into

~/.claude/skills/asmdef/ (all projects)

.claude/skills/asmdef/ (one project)

SkillsForUnity/unity-skills~/skills/asmdef/SKILL.md

MITFull file
1> **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.
2
3## Triggers
4- Planning asmdef layout
5- Untangling assembly dependencies
6- Speeding up compilation
7- Splitting editor/runtime/test code
8- 规划 asmdef 结构、理顺程序集依赖、加速编译、拆分编辑器/运行时代码
9
10# Unity asmdef Advisor
11
12Use this skill when the project is large enough that compile boundaries and dependency direction matter.
13
14## Recommend Only When Worth It
15
16`asmdef` is usually worth discussing when:
17
18- the project has multiple domains/systems
19- editor code and runtime code are mixed
20- compile times are becoming noticeable
21- tests should be isolated cleanly
22
23## Output Format
24
25- Whether `asmdef` is justified now
26- Proposed assemblies
27- Allowed dependency direction
28- Editor/runtime/test split
29- Migration steps
30- Risks or churn to avoid
31
32## Default Guidance
33
34- Prefer a few meaningful assemblies over many tiny ones.
35- Split editor code from runtime first.
36- Keep the dependency graph directional and shallow.
37
38## Guardrails
39
40> **Mode**: Documentation only — no REST skills to gate; load freely under any operating mode (Approval / Auto / Bypass).
41
42- Do not introduce `asmdef` fragmentation for a tiny prototype.
43…

Excerpt shown under the repository's MIT license.

More skills in Unity-Skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates