返回顶部
d

dep-graph依赖图分析

Analyze and visualize project dependency trees from manifest files. Supports Node.js (package.json), Python (requirements.txt, pyproject.toml), Go (go.mod), Rust (Cargo.toml), Ruby (Gemfile), and PHP (composer.json). Use when asked to list dependencies, show a dependency tree, check what packages a project uses, compare prod vs dev deps, or audit dependency counts.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
95
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

dep-graph

Dep Graph

从清单文件中解析并显示项目依赖树。自动检测项目类型。

快速开始

bash

分析当前项目


python3 scripts/dep_graph.py

分析指定目录

python3 scripts/dep_graph.py /path/to/project

JSON 格式输出

python3 scripts/dep_graph.py --json

仅显示摘要(仅计数)

python3 scripts/dep_graph.py --summary

强制指定项目类型

python3 scripts/dep_graph.py --type node

隐藏版本约束

python3 scripts/dep_graph.py --no-versions

支持的项目类型

类型清单文件分组
Node.jspackage.jsonproduction, dev, peer
Python
requirements.txt | production | | Python | pyproject.toml | production | | Go | go.mod | production, indirect | | Rust | Cargo.toml | production, dev | | Ruby | Gemfile | production, dev | | PHP | composer.json | production, dev |

自动检测同一项目中的多个清单文件并全部报告。

输出

树形视图按类型(production/dev/peer)分组显示依赖关系,并附带版本约束。使用 --json 进行程序化处理,或使用 --summary 快速查看计数。

依赖项

  • - Python 3.8+(仅标准库,无需 pip 包)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 dep-graph-1776050830 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 dep-graph-1776050830 技能

通过命令行安装

skillhub install dep-graph-1776050830

下载

⬇ 下载 dep-graph v1.0.0(免费)

文件大小: 4.17 KB | 发布时间: 2026-4-14 13:35

v1.0.0 最新 2026-4-14 13:35
dep-graph 1.0.0 — Initial release

- Analyze and visualize dependency trees for Node.js, Python, Go, Rust, Ruby, and PHP projects.
- Auto-detects manifest files; supports multiple manifests in a single project.
- Outputs tree-structured, JSON, or summary views of dependencies, grouped by type (e.g., production, dev).
- Command-line options: select output format, show/hide version constraints, force project type.
- Requires only Python 3.8+ standard library (no external dependencies).

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部