# Setup Ts Deep Modules (agent skill)

> Setup Ts Deep Modules is an agent skill (a SKILL.md file) from vinvcn/mattpocock-skills-zh-CN. 在 TypeScript repo 中接入 dependency-cruiser，让每个 package 成为 deep module：implementation 隐藏在 subfolders 中，只能通过 entry-point files 访问。User-invoked。. It works with Claude Code and Codex and has 5,289 GitHub stars across a repository of 3 listed skills.

在 TypeScript repo 中接入 dependency-cruiser，让每个 package 成为 deep module：implementation 隐藏在 subfolders 中，只能通过 entry-point files 访问。User-invoked。 让 repo 中每个 package 成为 deep module：用小 interface 隐藏大量 behaviour。Package 的 public surface 是其 entry points（package root 中的 files），所有 subfolders 都隐藏。这个 skill 会安装 dependency-cruiser，加入强制只能通过 entry points 访问的 rules，并证明这些 rules 确实会拦截违规。

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/vinvcn/mattpocock-skills-zh-CN |
| Skill path | skills/in-progress/setup-ts-deep-modules/SKILL.md |
| Skill name | setup-ts-deep-modules |
| GitHub stars | 5,289 |
| Installs on skills.sh | not listed |
| License | MIT |
| Skills in repo | 3 |
| Plugin marketplace | mattpocock |
| Official | no |
| Works with | Claude Code, Codex |
| Category | Coding |
| Last commit | Oct 20, 2026 |

## Add this skill

### Claude Code

```sh
/plugin marketplace add vinvcn/mattpocock-skills-zh-CN
/plugin install mattpocock-skills@mattpocock
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/vinvcn/mattpocock-skills-zh-CN.git
cp -r mattpocock-skills-zh-CN/skills/in-progress/setup-ts-deep-modules .agents/skills/setup-ts-deep-modules   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/vinvcn/mattpocock-skills-zh-CN.git
cp -r mattpocock-skills-zh-CN/skills/in-progress/setup-ts-deep-modules .cursor/skills/setup-ts-deep-modules   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/vinvcn-setup-ts-deep-modules
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
