返回 Skill 列表
extension
分类: 开发与工程无需 API Key

unity-asmdef

Unity项目的程序集定义顾问。当用户希望获得更好的模块边界、更快的迭代速度、更清晰的依赖关系,或者编辑器/运行时/测试程序集分离时使用。触发条件:asmdef, assembly definition, 模块边界, 编译时间, 依赖图, 程序集定义, 模块边界.

person作者: jakexiaohubgithub

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: Both (Semi-Auto + Full-Auto) — advisory only, no REST skills

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