Token导航 LogoToken导航

Agent Skill · 研究检索

dependency-analyzer(依赖性分析器)

dependency-analyzer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

dependency-analyzer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 59,803。

总安装 376周安装 16GitHub Stars 21下载 132核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dependency-analyzer(依赖性分析器)
来源仓库:https://github.com/matteocervelli/llms
仓库路径:skills/dependency-analyzer
安装命令:
npx skills add https://github.com/matteocervelli/llms --skill dependency-analyzer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/matteocervelli/llms --skill dependency-analyzer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于解析 Python 项目的依赖配置并构建依赖树。适用于 Codex、Claude、Cursor、Gemini CLI,支持 GitHub 安装。可检测版本冲突、兼容性约束及生成结构化的依赖报告。支持 requirements.txt 和 pyproject.toml 等格式。

输出包含依赖关系图与潜在问题,需人工判断处理优先级。

来源仓库内路径:skills/dependency-analyzer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/matteocervelli/llms --skill dependency-analyze…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

dependency-analyzer 怎么安装?

在终端执行 npx skills add https://github.com/matteocervelli/llms --skill dependency-analyzer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

dependency-analyzer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

dependency-analyzer 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

dependency-analyzer 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

dependency-analyzer 用的人多吗?

公开数据是累计安装 376 次,近一周安装 16 次,下载 132 次,GitHub 21 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

dependency-analyzer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
dependency-analyzer

依赖性分析器 · 本页

37621需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Dependency Analyzer Skill

Purpose

The Dependency Analyzer skill provides comprehensive dependency analysis capabilities for Python projects. It parses dependency configuration files (requirements.txt, pyproject.toml), builds dependency trees, detects version conflicts, and checks compatibility constraints.

Key Functions:

  • Parse and analyze current project dependencies
  • Identify new dependencies required for features
  • Build visual dependency trees
  • Detect version conflicts and incompatibilities
  • Check compatibility across Python versions
  • Generate structured dependency reports

When to Use

Use this skill when you need to:

  • Analyze current project dependencies before adding new features
  • Identify all dependencies required for a new feature implementation
  • Detect version conflicts between dependencies
  • Build dependency trees to understand package relationships
  • Verify compatibility of new dependencies with existing ones
  • Generate dependency reports for documentation

Typical Scenarios:

  • Phase 2 design (dependency analysis for PRP)
  • Pre-implementation dependency planning
  • Dependency upgrade planning
  • Conflict resolution
  • Security vulnerability assessment (dependency version analysis)

Workflow

1. Parse Current Dependencies

Action: Read and parse all dependency configuration files in the project

# Check for requirements.txt
if [ -f requirements.txt ]; then
  echo "Found requirements.txt"
  cat requirements.txt
fi

# Check for pyproject.toml
if [ -f pyproject.toml ]; then
  echo "Found pyproject.toml"
  grep -A 30 "dependencies\|requires" pyproject.toml
fi

# Check for setup.py
if [ -f setup.py ]; then
  echo "Found setup.py"
  grep -A 20 "install_requires\|extras_require" setup.py
fi

Output: Inventory of current dependencies with versions

2. Build Dependency Tree

Action: Use dependency-checker script to build complete dependency tree

python .claude/skills/dependency-analyzer/dependency-checker-script.py \
  --analyze \
  --project-root . \
  --output-format tree

Output: Visual dependency tree showing relationships

3. Identify New Dependencies

Action: Extract required libraries from feature analysis

Process:

  • Read feature analysis document
  • Extract library names from requirements section
  • Determine package sources (PyPI, npm, etc.)
  • Classify as core vs. development dependencies
  • Research latest stable versions

Output: List of new dependencies with recommended versions

4. Check Compatibility

Action: Verify version compatibility and constraints

python .claude/skills/dependency-analyzer/dependency-checker-script.py \
  --check-compatibility \
  --new-deps "package1>=1.0,package2~=2.0" \
  --python-version "3.11"

Checks:

  • Python version compatibility (3.11+)
  • Dependency version constraints (>=, ~=, ^, ==)
  • Breaking changes between versions
  • Platform-specific requirements

Output: Compatibility report with warnings and recommendations

5. Detect Conflicts

Action: Identify version conflicts in dependency tree

python .claude/skills/dependency-analyzer/dependency-checker-script.py \
  --check-conflicts \
  --new-deps "package1,package2,package3"

Detects:

  • Version conflicts (Package A requires B>=2.0, Package C requires B<2.0)
  • Circular dependencies
  • Incompatible package combinations
  • Transitive dependency conflicts

Output: Conflict report with resolution strategies

Output Format

Dependency Analysis Report

## Dependency Analysis

### Current Dependencies (12 total)
**Core Dependencies:**
- requests==2.31.0 - HTTP library
- pydantic==2.5.0 - Data validation
- click==8.1.7 - CLI framework

**Development Dependencies:**
- pytest==7.4.3 - Testing framework
- black==23.12.0 - Code formatter
- mypy==1.7.1 - Type checker

### New Dependencies Required (3 total)
| Package | Version | Purpose | Type | Source |
|---------|---------|---------|------|--------|
| httpx | >=0.27.0 | Async HTTP client | core | PyPI |
| pydantic-settings | >=2.0.0 | Settings management | core | PyPI |
| pytest-asyncio | >=0.21.0 | Async test support | dev | PyPI |

### Dependency Tree

project-root/ ├── requests==2.31.0 │ ├── urllib3>=1.21.1,<3 │ ├── certifi>=2017.4.17 │ └── charset-normalizer>=2,<4 ├── pydantic==2.5.0 │ ├── typing-extensions>=4.6.1 │ └── annotated-types>=0.4.0 └── [new] httpx>=0.27.0 ├── httpcore>=1.0.0 ├── certifi └── sniffio

### Compatibility Check
✅ Python 3.11+ compatible
✅ No breaking changes detected
✅ All version constraints satisfied
⚠️  httpx and requests overlap (both HTTP clients)

### Conflicts Detected
**None** - All dependencies compatible

### Recommendations
1. Consider migrating from requests to httpx for async support
2. Pin versions in production: httpx==0.27.2
3. Update requirements.txt with new dependencies
4. Run `pip install -r requirements.txt` to verify installation

Best Practices

Version Specification

  • Use version ranges for flexibility: package>=1.0,<2.0
  • Pin exact versions in production: package==1.2.3
  • Understand specifiers:

- >=1.0 - Minimum version 1.0 - ~=1.2 - Compatible release (>=1.2, <2.0) - ^1.2.3 - Caret (npm-style, rare in Python) - ==1.2.3 - Exact version

Dependency Management

  • Separate core and dev dependencies clearly
  • Use pyproject.toml for modern Python projects
  • Document dependency rationale in comments
  • Regular updates to patch security vulnerabilities
  • Test after updates to catch breaking changes

Conflict Resolution

  1. Identify conflict source (which packages require incompatible versions)
  2. Check if upgradeable (can Package A use newer B?)
  3. Find compatible versions (use compatibility matrix)
  4. Test resolution with dry-run installation
  5. Document resolution in dependency report

Supporting Resources

dependency-checker-script.py

Location: .claude/skills/dependency-analyzer/dependency-checker-script.py

Usage:

# Analyze current dependencies
python dependency-checker-script.py --analyze --project-root .

# Check compatibility
python dependency-checker-script.py --check-compatibility \
  --new-deps "httpx>=0.27.0,pydantic-settings>=2.0"

# Detect conflicts
python dependency-checker-script.py --check-conflicts \
  --new-deps "package1,package2"

# Generate full report
python dependency-checker-script.py --full-report \
  --output dependency-report.md

Features:

  • Parse requirements.txt, pyproject.toml, setup.py
  • Build dependency trees
  • Check version compatibility
  • Detect conflicts
  • Query PyPI for latest versions
  • Generate markdown reports

compatibility-matrix.md

Location: .claude/skills/dependency-analyzer/compatibility-matrix.md

Contents:

  • Common Python library compatibility rules
  • Known incompatible package combinations
  • Platform-specific dependency notes
  • Python version compatibility matrix
  • Resolution strategies for common conflicts

Example Usage

Scenario 1: Pre-Feature Dependency Analysis

Input: Feature requires webhook notifications with async HTTP

Process:

  1. Parse current dependencies → Find requests==2.31.0
  2. Identify new dependencies → Need httpx for async support
  3. Check compatibility → httpx>=0.27.0 compatible with Python 3.11+
  4. Detect conflicts → No conflicts (httpx and requests can coexist)
  5. Generate report → Structured dependency analysis

Output:

### New Dependencies Required
- httpx>=0.27.0 - Async HTTP client for webhook delivery

### Compatibility: ✅ Compatible
- Python 3.11+ supported
- No conflicts with existing dependencies

### Installation:

pip install httpx>=0.27.0


### Scenario 2: Conflict Detection

**Input**: Feature requires `package-a>=2.0` but existing `package-b` requires `package-a<2.0`

**Process**:

1. Analyze current dependencies → Find `package-b==1.5` requires `package-a<2.0`
2. Check new requirements → Feature needs `package-a>=2.0`
3. Detect conflict → Version conflict detected
4. Research solutions → Check if `package-b>=2.0` supports `package-a>=2.0`
5. Generate report → Conflict report with resolution strategy

**Output**:

Conflicts Detected

Conflict: package-a version conflict

  • Feature requires: package-a>=2.0
  • package-b==1.5 requires: package-a<2.0

Resolution Strategy:

  1. Upgrade package-b to 2.0.0 (supports package-a>=2.0)
  2. Update requirements.txt:

- package-a>=2.0 - package-b>=2.0

Validation:

pip install --dry-run package-a>=2.0 package-b>=2.0
## Integration with Feature Implementation Flow

**Input**: Analysis document with dependencies section

**Process**:
1. Dependency Manager agent activates this skill
2. Skill parses current dependencies from project files
3. Skill extracts new dependencies from analysis document
4. Skill checks compatibility and detects conflicts
5. Skill generates structured dependency report

**Output**: Dependency analysis section for PRP

**Next Step**: Design Orchestrator synthesizes dependency analysis into complete PRP

## Error Handling

### Common Errors

**Missing dependency file**:

Error: No dependency configuration file found Resolution: Create requirements.txt or pyproject.toml

**Invalid version specifier**:

Error: Invalid version specifier "package>=abc" Resolution: Use valid version format (e.g., "package>=1.0.0")

**Conflict detected**:

Warning: Version conflict detected Action: Review conflict report and apply resolution strategy

**PyPI query failure**:

Error: Failed to query PyPI for package "xyz" Resolution: Check network connectivity or package name spelling

## Advanced Features

### Custom Compatibility Rules

Define project-specific compatibility rules in `compatibility-matrix.md`:

Example rule

package-a: python: ">=3.11" conflicts: - package-b<2.0 recommends: - package-c>=1.0


### Dependency Tree Visualization

Generate visual dependency trees for documentation:

python dependency-checker-script.py --analyze --format tree --output tree.txt


Output:

myproject==1.0.0 ├── requests==2.31.0 │ ├── urllib3>=1.21.1,<3 │ ├── certifi>=2017.4.17 │ └── charset-normalizer>=2,<4 ├── pydantic==2.5.0 │ ├── typing-extensions>=4.6.1 │ └── annotated-types>=0.4.0 └── httpx==0.27.2 ├── httpcore==1.0.2 ├── certifi └── sniffio


---

**Version**: 2.0.0 **Agent**: @dependency-manager **Phase**: 2 (Design & Planning) **Created**: 2025-10-29

平台分布

Gemini CLI

31.26%
按下载量换算41

Codex

24.71%
按下载量换算33

Claude Code

16.1%
按下载量换算21

Antigravity

14.25%
按下载量换算19

OpenCode

7.92%
按下载量换算10

Cursor

3.49%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills