dependency-cruiserjavascripttypescript

Scans JavaScript or TypeScript codebases for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations to detect issues before structural drift occurs.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "dependency-cruiserjavascripttypescript" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6c4ab73d5078af94a2af3d6e4e3aaaeee9f14123674743ee5792a03f18517d7a. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/enforce-javascript-and-typescript-dependency-rules-before-architectural-drift-spreads-with-dependency-cruiser before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Scans JavaScript or TypeScript codebases for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations to detect issues before structural drift occurs.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Scan a JS or TS codebase for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations before they turn into structural drift.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "在架构漂移扩散之前,使用 dependency-cruiser 强制执行 JavaScript 和 TypeScript 依赖规则"
slug: "enforce-javascript-and-typescript-dependency-rules-before-architectural-drift-spreads-with-dependency-cruiser"
version: "1.0.0"
displayName: "在架构漂移扩散之前,使用 dependency-cruiser 强制执行 JavaScript 和 TypeScript 依赖规则"
summary: "在代码库出现结构漂移之前,扫描JS或TS代码库中的禁止导入、循环依赖、孤立模块和其他依赖规则违规情况。"
license: "MIT"
description: "在代码库出现结构漂移之前,扫描JS或TS代码库中的禁止导入、循环依赖、孤立模块和其他依赖规则违规情况。"
github_stars: 6557
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 6557
  npm_package: "dependency-cruiser"
  npm_weekly_downloads: 5181412

在架构漂移扩散之前,使用 dependency-cruiser 强制执行 JavaScript 和 TypeScript 依赖规则

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:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value88/100

Highlights

  • 解决 JavaScript/TypeScript 代码库中架构漂移、循环依赖等实际工程痛点
  • 提供依赖规则检查功能,属于代码质量保障领域的高频刚需工具
Trigger Precision85/100

Highlights

  • description 明确描述了核心功能,触发词覆盖合理,边界清晰
Structure and Standards65/100

Areas to improve

  • 缺少端到端使用示例 Reported severity: Minor

    文档缺少完整的使用示例,如具体命令执行和输出解读

    Recommendation: 补充一个端到端的使用示例,展示从安装、配置到执行扫描的完整流程

  • 步骤划分不够清晰 Reported severity: Minor

    Phase/步骤划分不够清晰,无明确的出口条件或门控机制

    Recommendation: 将使用流程划分为清晰的步骤,并添加每个步骤的完成条件和出口机制

Highlights

  • 文档包含 Prerequisites、Installation 等基本结构
  • 提供了多种包管理器的安装命令
Execution Reliability70/100

Areas to improve

  • 异常处理覆盖不足 Reported severity: Minor

    未覆盖主要异常情况,如安装失败、配置错误、权限问题等

    Recommendation: 补充常见异常情况的处理建议,如网络问题、权限不足、配置错误等

Highlights

  • 工具来源明确,提供了官方 npm 包 dependency-cruiser
  • 提供了多种包管理器的安装命令,适配不同开发环境
Evidence Verifiability (mean of the first four)77/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 34, 37
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Scan a JS or TS codebase for forbidden imports, circular dependencies, orphaned modules, and other dependency-rule violations before they turn into structural drift.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.