本文へスキップ
Kitbay
スキル

setup-ts-deep-modules

MIT2026年11月9日 更新321,493GitHubスター

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.

スキルの内容

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.

できること

  • 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