unity-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
asmdefis 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: Both (Semi-Auto + Full-Auto) — advisory only, no REST skills
- Do not introduce
asmdeffragmentation for a tiny prototype. - Do not create circular dependencies or force everything through a shared dumping-ground assembly.
More from besty0728/unity-skills
unity-editor
Unity Editor control. Use when users want to enter play mode, select objects, undo/redo, or execute menu commands. Triggers: play, stop, pause, select, undo, redo, menu, editor, Unity编辑器, Unity播放, Unity撤销, Unity选择.
18unity-material
Unity material and shader properties. Use when users want to create materials, set colors, textures, emission, or shader properties. Triggers: material, shader, color, texture, emission, albedo, metallic, smoothness, 材质, 颜色, 纹理, 发光.
17unity-testability
Unity testability advisor. Use when users want to improve testability, isolate logic from MonoBehaviour, or plan EditMode/PlayMode tests. Triggers: testability, unit test, how to test, write tests, editmode test, playmode test, isolate logic, mock, 怎么测试, 写测试, 可测试, 测试性, 单元测试, 逻辑分离.
16unity-package
Unity Package Manager operations. Use when users want to install, remove, or inspect packages. Triggers: package, UPM, install, dependency, Cinemachine, TextMeshPro, 包管理, Unity安装, Unity依赖.
16unity-blueprints
Mini-game architecture blueprint advisor. Use when users want a starting structure for a small Unity game — platformer, shooter, runner, puzzle, tower defense, clicker, card game. Triggers: blueprint, game template, game structure, prototype, gameplay loop, how to start a game, platformer, tower defense, 游戏模板, 小游戏架构, 做个游戏, 从零开始, 平台跳跃, 塔防, 卡牌, 游戏框架.
16unity-scene-contracts
Scene composition contract advisor for Unity. Use when users want to define required scene objects, component dependencies, bootstrap logic, or reference wiring rules. Triggers: scene contract, bootstrap, required references, scene wiring, scene dependencies, what must be in the scene, 场景契约, 场景装配, 场景依赖, 场景里必须有什么, 引用怎么连.
15