setup-ts-deep-modules

Builds a system in TypeScript where each package hides its code inside folders and only lets people use it through official entry points.

Installation
Run `npx skills add "https://github.com/vinvcn/mattpocock-skills-zh-cn" --skill "setup-ts-deep-modules"` to install this skill, then follow its SKILL.md instructions for my next request.

Paste this into Claude Code, Cursor, or any agent that can run commands.

What this skill does
What it does: - Sets up a tool called dependency-cruiser in your TypeScript project - Makes each package in your project a deep module, which means hiding the inside details - Creates rules that force other code to only use the public entry points of each package - Prevents code from sneaking into the hidden folders inside packages When to use it: - You want to organize your TypeScript packages so they have clear public interfaces - You want to hide implementation details inside folders and only expose what is needed - You want automatic checking to make sure nobody accidentally imports from the hidden parts - You are starting a new project or cleaning up an existing one to have better structure

The full skill text could not be loaded right now. It installs fine with the command above, or read it at the source.

Mirrored from the author's public source. Install counts from the open skills registry.

The systems behind these skills get built for partners every week.

Partner with us