Agent Skills
› Besty0728/Unity-Skills
› unity-asmdef
unity-asmdef
GitHub为 Unity 项目提供程序集定义(asmdef)规划建议,优化编译边界、依赖方向及编辑器/运行时代码拆分,以加速编译并降低耦合。
Trigger Scenarios
规划 asmdef 结构
理顺程序集依赖
加速编译
拆分编辑器/运行时代码
Install
npx skills add Besty0728/Unity-Skills --skill unity-asmdef -g -y
SKILL.md
Frontmatter
{
"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
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: Documentation only — no REST skills to gate; load freely under any operating mode (Approval / Auto / Bypass).
- Do not introduce
asmdeffragmentation for a tiny prototype. - Do not create circular dependencies or force everything through a shared dumping-ground assembly.
Version History
-
25d511e
Current 2026-08-13 09:12
压缩 description 至约5191字符,并将路由说明移至 Triggers 部分。
- ec9f870 2026-07-05 14:39


