setup-ts-deep-modules
Agent skill from mattpocock/skills.
What it does
- Package manager — pnpm-lock.yaml → pnpm, yarn.lock → yarn, bun.lockb → bun, else npm. Use it for every command below (pnpm/yarn/npm run/bunx).
- Packages root — if src/ exists use src/packages, else packages. Confirm the choice with the user if the repo already has a different obvious convention.
- Add a lint:boundaries script: depcruise <packages-root> (or depcruise src).
- If there is no umbrella script, add lint:boundaries and tell the user to include it in CI.
- index.ts — an entry point. Export one function that delegates to an internal file (so the package is visibly deep, not a pass-through).
- lib/impl.ts — an internal file in a subfolder, imported by index.ts, not reachable from outside.
- tests/example.test.ts — imports only ../index (an entry point), and asserts against the public function.
Requirements & configuration
Configuration: PACKAGES_ROOTREADMECLAUDEAGENTS
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
Source
Repository: https://github.com/mattpocock/skills
setup-ts-deep-modules FAQ
What does the setup-ts-deep-modules skill do?
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked. Package manager — pnpm-lock.yaml → pnpm, yarn.lock → yarn, bun.lockb → bun, else npm. Use it for every command below (pnpm/yarn/npm run/bunx). Packages root — if src/ exists use src/packages, else packages. Confirm the choice with the user if the repo already has a different obvious convention.
What does setup-ts-deep-modules require?
Configuration keys: PACKAGES_ROOT, README, CLAUDE, AGENTS.
How do I install setup-ts-deep-modules?
Run: npx -y skills add https://github.com/mattpocock/skills --skill setup-ts-deep-modules --agent claude-code — the source lives at github.com/mattpocock/skills.
Maintain setup-ts-deep-modules?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/mattpocock-skills-setup-ts-deep-modules?ref=badge) npx agentictools info skills/mattpocock-skills-setup-ts-deep-modules The second line is the CLI lookup for this page — handy in READMEs and docs.