闲社服务运行正常AI智能体自动化平台
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
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

依赖图分析

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).
返回顶部