SuperAPI AI Directory

dependency-analyzer

Security & auditing

View repository

Updated 10-15 21:04

About this skill

Dependency Analyzer Skill

This skill analyzes project dependencies.

Overview

Analyzes dependency versions, vulnerabilities, licenses, and update availability.

Main Features

  • Version Check: Comparison with the latest version
  • Vulnerability Scan: CVE detection
  • License Check: Compatibility check
  • Dependency Tree: Visualization
  • Duplicate Detection: Multiple versions of the same package
  • Unused Detection: Unused dependencies

Analysis Example

package.json analysis

{
  "dependencies": {
    "express": "4.17.1",      // ⚠️ 最新: 4.18.2
    "lodash": "4.17.15",      // 🔴 CVE-2020-8203
    "react": "18.2.0",        // ✅ 最新
    "axios": "0.21.1"         // ⚠️ 最新: 1.6.0
  }
}

Analysis Results:

## 依存関係分析レポート

### 🔴 Critical Issues (2)

1. **lodash@4.17.15**
   - CVE: CVE-2020-8203
   - 重大度: High
   - 推奨: 4.17.21以上にアップデート
   - 影響: Prototype Pollution

2. **axios@0.21.1**
   - CVE: CVE-2021-3749
   - 重大度: Medium
   - 推奨: 1.6.0にアップデート

### ⚠️ 更新可能 (2)

- express: 4.17.1 → 4.18.2
- axios: 0.21.1 → 1.6.0

### ライセンス確認

| Package | Version | License | Compatible |
|---------|---------|---------|------------|
| express | 4.17.1 | MIT | ✅ |
| lodash | 4.17.15 | MIT | ✅ |
| react | 18.2.0 | MIT | ✅ |

### 推奨アクション

```bash
npm update lodash
npm update axios
npm update express

Dependency Tree

myapp
├── express@4.17.1
│   ├── body-parser@1.19.0
│   └── cookie@0.4.0
├── lodash@4.17.15 (⚠️ 脆弱性あり)
├── react@18.2.0
│   └── loose-envify@1.4.0
└── axios@0.21.1 (⚠️ 更新必要)

## コマンド例

### npm

```bash
# 脆弱性スキャン
npm audit

# 修正
npm audit fix

# 強制修正
npm audit fix --force

# 更新確認
npm outdated

# 依存関係ツリー
npm list

# 特定パッケージの依存
npm list express

yarn

# 脆弱性スキャン
yarn audit

# 更新確認
yarn outdated

# 依存関係ツリー
yarn list

# 重複検出
yarn dedupe

Python (pip)

# 更新確認
pip list --outdated

# 脆弱性スキャン
pip-audit

# 依存関係
pipdeptree

License Compatibility

MIT License

  • ✅ Commercial use allowed
  • ✅ Modification allowed
  • ✅ Distribution allowed

GPL License

  • ⚠️ Copyleft
  • Derivatives must also be GPL

Apache 2.0

  • ✅ Commercial use allowed
  • ✅ Patent protection

Version Information

  • Skill version: 1.0.0