Skip to content
Back to skills

Enforce Javascript And Typescript Dependency Rules Before Architectural Drift Spreads With Dependency Cruiser

BSecurity

Scan 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
ai-agentsjavascripttypescriptgojavashellnodegitsecuritydocumentation

Security analysis

B76/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill enforce-javascript-and-typescript-dependency-rules-before-architectural-drift-spreads-with-dependency-cruiser --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Enforce Javascript And Typescript Dependency Rules Before Architectural Drift Spreads With Dependency Cruiser
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-enforce-javascript-and-typescript-dependency-rules/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-enforce-javascript-and-typescript-dependency-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.