Back to skills
SKILL.md
Enforce Javascript And Typescript Dependency Rules Before Architectural Drift Spreads With Dependency Cruiser
BSecurityScan a JS or TS codebase for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations before they turn into structural drift.
- 36 stars
- 0 votes
- 0 copies
- 0 views
- Added June 8, 2026
Security analysis
76/100- Installs packages at runtime which could introduce malicious dependencies
- Installs packages at runtime which could introduce malicious dependencies
- Installs packages at runtime which could introduce malicious dependencies
npx -y skills add agentskillexchange/skills --skill enforce-javascript-and-typescript-dependency-rules-before-architectural-drift-spreads-with-dependency-cruiser --agent claude-codeAre 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 with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-enforce-javascript-and-typescript-dependency-rules)---
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/)
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.