Setup TS Deep Modules 让 repo 中每个 package 成为 deep module :用小 interface 隐藏大量 behaviour。Package 的 public surface 是其 entry points (package root 中的 files),所有 subfolders 都隐藏。这个 skill 会安装 dependency-cruiser,加入强制只能通过 entry points 访问的 rules,并证明这些 rules 确实会拦截违规。 Vocabulary(deep module、interface、seam、depth)来自调用 Skill 工具并指定 ;整个过程都使用它的语言。 The shape this enforces Public surface 是 package 的 root files ,并非指定的单个 。按 convention,implementation 放在 ,tests 放在 ,使所有 packages 采用相同的 two-folder shape。Rule 本身是通用的: 任何 subfolder 中的 任何 内容都是 private,因此永远无需为了新增 folder 扩展 config。 四条 rules,全部为 : 1. Entry-point boundary — packag…