Skill Detail
Enforce JavaScript and TypeScript dependency rules before architectural drift spreads with dependency-cruiser
Scan a JS or TS codebase for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations before they turn into structural drift.
Code Quality & ReviewMulti-Framework
Code Quality & Review
Multi-Framework
Security Reviewed
β 6.6k GitHub stars
β¬ 5.2M/wk npm
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill enforce-javascript-and-typescript-dependency-rules-before-architectural-drift-spreads-with-dependency-cruiser
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Node.js, npm or pnpm
Install & setup
Install with `npm install –save-dev dependency-cruiser` (or the yarn/pnpm equivalent), run `npx depcruise –init` to create a config, then run `npx depcruise` in CI or review workflows.
Author
sverweij
Publisher
Individual
Last updated
Apr 14, 2026
Quick brief
Use dependency-cruiser when an agent needs to check whether a JavaScript or TypeScript codebase still respects architecture boundaries, import rules, and package dependency expectations. It is the right invocation when you want a dependency-policy gate, violation report, or dependency graph for CI and review, rather than using a generic package tool normally. The scope boundary is narrow and skill-shaped: it validates and reports dependency structure against explicit rules, not general linting, package management, or broad code analysis.