Scan a JS or TS codebase for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations before they turn into structural drift.
Install to Claude Code
npx -y skills add agentskillexchange/skills --skill enforce-javascript-and-typescript-dependency-rules-before-architectural-drift-spreads-with-dependency-cruiser --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Enforce Javascript And Typescript Dependency Rules Before Architectural Drift Spreads With Dependency Cruiser?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-enforce-javascript-and-typescript-dependency-rules)More formats (shields.io, HTML) on the badges page.
---
name: "Enforce JavaScript and TypeScript dependency rules before architectural drift spreads with dependency-cruiser"
slug: "enforce-javascript-and-typescript-dependency-rules-before-architectural-drift-spreads-with-dependency-cruiser"
description: "Scan a JS or TS codebase for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations before they turn into structural drift."
github_stars: 6557
verification: "security_reviewed"
source: "https://github.com/sverweij/dependency-cruiser"
author: "sverweij"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "sverweij/dependency-cruiser"
github_stars: 6557
npm_package: "dependency-cruiser"
npm_weekly_downloads: 5181412
---
# 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.
## Prerequisites
Node.js, npm or pnpm
## Installation
Use the upstream install or setup path that matches your environment:
- npm install --save-dev dependency-cruiser
- yarn add -D dependency-cruiser
- pnpm add -D dependency-cruiser
- npx depcruise --init
Basic usage or getting-started notes:
- shell
- # or
- ### ... and generate a config
- Source: https://github.com/sverweij/dependency-cruiser
- Extracted from upstream docs: https://raw.githubusercontent.com/sverweij/dependency-cruiser/HEAD/README.md
## Documentation
- https://github.com/sverweij/dependency-cruiser
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/enforce-javascript-and-typescript-dependency-rules-before-architectural-drift-spreads-with-dependency-cruiser/)
Scanned 6/8/2026
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!