setup-ts-deep-modules SKILL.md skillA

setup-ts-deep-modules from vinvcn/mattpocock-skills-zh-cn is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add vinvcn/mattpocock-skills-zh-cn/setup-ts-deep-modules@git:20260921.49ef591

Pins git:20260921.49ef591 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
vinvcn/mattpocock-skills-zh-cn
Path
skills/in-progress/setup-ts-deep-modules/SKILL.md
Versions recorded
3
Latest version
git:20260921.49ef591, committed Sep 21, 2026
First version recorded
Jul 12, 2026
Size
7,360 bytes
Repository stars
5,110
License
MIT

在 TypeScript repo 中接入 dependency-cruiser,让每个 package 成为 deep module:implementation 隐藏在 subfolders 中,只能通过 entry-point files 访问。User-invoked。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Setup TS Deep Modules

让 repo 中每个 package 成为 **deep module**:用小 interface 隐藏大量 behaviour。Package 的 public surface 是其 **entry points**(package root 中的 files),所有 subfolders 都隐藏。这个 skill 会安装 [dependency-cruiser](https://github.com/sverweij/dependency-cruiser),加入强制只能通过 entry points 访问的 rules,并证明这些 rules 确实会拦截违规。

Vocabulary(deep module、interface、seam、depth)来自调用 Skill 工具并指定 `codebase-design`;整个过程都使用它的语言。

## The shape this enforces

```
src/packages/
  <name>/
    index.ts        ← an entry point (public). Import this from outside.
    client.ts       ← another entry point. Packages may expose SEVERAL.
    lib/            ← implementation: hidden from outside, free to import each other.
    tests/          ← co-located tests + fixtures (a subfolder, so private).
```

Public surface 是 package 的 **root files**,并非指定的单个 `index.ts`。按 convention,implementation 放在 `lib/`,tests 放在 `tests/`,使所有 packages 采用相同的 two-folder shape。Rule 本身是通用的:*任何* subfolder 中的*任何*内容都是 private,因此永远无需为了新增 folder 扩展 config。

四条 rules,全部为 `error`:

1. **Entry-point boundary** — package 外的 code(app code 或其他 package)只能 import 该 package 的 entry points(root files),不能 import subfolder 中的任何内容。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add vinvcn/mattpocock-skills-zh-cn/setup-ts-deep-modules@sha256:f76e158f770017d4

The line at the top of this page pins the label git:20260921.49ef591, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_achy73wyzbcqtl3e.svg)](https://markdownregistry.com/a/art_achy73wyzbcqtl3e)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Jul 12, 2026 and Sep 21, 2026, about one every 35 days.

versioncommittedcommitsizeaudit
git:20260921.49ef591 latest2026-09-21 49ef591 7,360 BA view · diff
git:20260722.fb10cdb2026-07-22 fb10cdb 7,339 BA view · diff
git:20260712.62cf4a92026-07-12 62cf4a9 7,303 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7360 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

vinvcn/mattpocock-skills-zh-cn · 5,110 stars · license MIT · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_achy73wyzbcqtl3e
GET https://markdownregistry.com/api/v1/resolve?ref=vinvcn/mattpocock-skills-zh-cn/setup-ts-deep-modules
GET https://markdownregistry.com/api/v1/blob/f76e158f770017d43a099301845742ed5b3ff193e1c5af13d8ee78b60327514f

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from vinvcn/mattpocock-skills-zh-cn

translate-skill SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · .skills/translate-skill/SKILL.md · 将 mattpocock/skills 的内容翻译、刷新或复核到简体中文本地化仓库 vinvcn/mattpocock-skills-zh-CN 时使用这个项目级 skill。适用于 skill files、README…
git:20261008.5be0dc1 · audit A · 5,110 stars
AGENTS.md AGENTS.md file
vinvcn/mattpocock-skills-zh-cn · AGENTS.md
git:20261008.f659bb3 · audit A · 5,110 stars
CLAUDE.md CLAUDE.md file
vinvcn/mattpocock-skills-zh-cn · CLAUDE.md
git:20261008.f659bb3 · audit A · 5,110 stars
ask-matt SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/ask-matt/SKILL.md · 询问当前情境适合哪个技能或流程;它是本仓库所有 skills 的路由器。
git:20261008.5be0dc1 · audit A · 5,110 stars
code-review SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/code-review/SKILL.md · 从固定点(commit、branch、tag 或 merge-base)开始,按 Standards(代码是否符合本仓库记录的编码标准?)和 Spec(代码是否符合来源 issue/spec…
git:20261008.5be0dc1 · audit A · 5,110 stars
codebase-design SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/codebase-design/SKILL.md · 用于设计深模块的共享词汇。适用于用户想设计或改进模块接口、寻找深化机会、决定 seam 放在哪里、让代码更容易测试或更适合 AI 导航,或其他技能需要深模块词汇时。
git:20261008.5be0dc1 · audit A · 5,110 stars
diagnosing-bugs SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/diagnosing-bugs/SKILL.md · 面向棘手缺陷和性能回退的诊断循环。适用于用户说 “diagnose” / “debug this”,或报告某些东西 broken、throwing、failing、slow 时。
git:20261008.5be0dc1 · audit A · 5,110 stars
domain-modeling SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/domain-modeling/SKILL.md · 构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR。
git:20261008.5be0dc1 · audit A · 5,110 stars
grill-with-docs SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/grill-with-docs/SKILL.md · 一个用来打磨计划或设计的持续追问式访谈,并在过程中创建文档(ADRs 和词汇表)。
git:20260921.49ef591 · audit A · 5,110 stars
implement-spec SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/implement-spec/SKILL.md · 在代码中实现 /to-spec 和 /to-tickets 的产出。
git:20261008.5be0dc1 · audit A · 5,110 stars
implement SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/implement/SKILL.md · 基于 spec 或 ticket 集合实现一段工作。
git:20260722.fb10cdb · audit A · 5,110 stars
improve-codebase-architecture SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/improve-codebase-architecture/SKILL.md · 扫描代码库中的深化机会,生成可视化 HTML 报告,然后围绕你选中的候选项继续追问。
git:20261008.5be0dc1 · audit A · 5,110 stars

Every file in vinvcn/mattpocock-skills-zh-cn

Other files named setup-ts-deep-modules

setup-ts-deep-modules SKILL.md skill
vodailocz/kilo-kit-mcp · skills/productivity/setup-ts-deep-modules/SKILL.md · Wire dependency-cruiser into a TypeScript repo so each package is a deep module, with implementation hidden in…
git:20260821.05c0d52 · audit A · 28 stars
setup-ts-deep-modules SKILL.md skill
mambo-wang/codewiki-plus · .codebuddy/skills/setup-ts-deep-modules/SKILL.md · Wire dependency-cruiser into a TypeScript repo so each package is a deep module, with implementation hidden in…
git:20260916.5a385b8 · audit A · 20 stars
setup-ts-deep-modules SKILL.md skill
mambo-wang/codewiki-plus · .trae/skills/setup-ts-deep-modules/SKILL.md · Wire dependency-cruiser into a TypeScript repo so each package is a deep module, with implementation hidden in…
git:20260916.5a385b8 · audit A · 20 stars
setup-ts-deep-modules SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/in-progress/setup-ts-deep-modules/SKILL.md · 將 dependency-cruiser 接入 TypeScript repo,讓每個套件都是深模組 — 實作藏在子資料夾中,只能透過其進入點檔案觸達。使用者觸發。
git:20260806.5bfe60b · audit A · 3 stars

Browse by kind, by grade A, or by owner.