Skip to content
Kitbay
Skill

setup-ts-deep-modules

MITUpdated on Nov 9, 2026321,493GitHub stars

A user-started skill from Matt Pocock's collection that sets up dependency-cruiser in a TypeScript repository so each package can only be used through the files at its root, with its implementation in subfolders kept private.

What the skill teaches

A user-started skill from Matt Pocock's collection that sets up dependency-cruiser in a TypeScript repository so each package can only be used through the files at its root, with its implementation in subfolders kept private. The agent detects the package manager and packages folder, installs dependency-cruiser, copies the bundled config with four rules (outside code imports only entry points, tests go through entry points, no cycles, and free imports inside a package), adds a boundary check to the existing lint run, scaffolds an example package, and proves the rules by adding a forbidden import and watching the check fail. It ends by documenting the layout and pointing AGENTS.md or CLAUDE.md to it.

Capabilities

  • Install and configure dependency-cruiser for package boundaries
  • Add a boundary check to the repository's lint run
  • Scaffold an example package with a private implementation
  • Prove the rules fail on a forbidden import