Codebase Dependency Graph / 代码依赖图谱生成器

Scan monorepo or polyglot projects to visualize import/module dependencies and circular references. / 扫描单仓库或多语言项目,可视化导入/模块依赖和循环引用。

Install

openclaw skills install @kingaiwork/codebase-dependency-graph

🕸️ Codebase Dependency Graph / 代码依赖图谱生成器

Scan monorepo or polyglot projects to visualize import/module dependencies and circular references. / 扫描单仓库或多语言项目,可视化导入/模块依赖和循环引用。

🦁 由 KingAI.Work 出品 — 智能进化|vip@kingai.work


Who This Is For / 适用人群

• Refactoring a legacy monolith: Identify tangled dependencies before splitting into microservices / 重构遗留单体应用时,先识别出纠缠的依赖关系,再拆分为微服务,避免架构崩塌 • Onboarding new developers: Generate a visual map of the project's module structure to accelerate team ramp-up / 新人加入项目时,生成模块结构可视化图,团队上手速度提升 50% • CI pipeline optimization: Block pull requests that introduce new circular dependencies automatically / CI 流水线中自动拦截引入新循环依赖的 PR,Pro 版支持自定义规则和通知

Core Capabilities / 核心能力

• Generates full dependency graphs for monorepo and multi-language projects / 为单仓库和多语言项目生成完整依赖图谱,一眼看清代码架构全貌 • Detects circular references and dead-code modules with cross-language support / 跨语言检测循环引用与死代码模块,避免重构陷阱,Pro 版支持深层追踪 • Visualizes import chains as interactive SVG or directed graphs / 将导入链可视化为可交互 SVG 或有向图,让依赖关系一目了然 • Filters by package, namespace, or file pattern for targeted analysis / 按包、命名空间或文件模式筛选进行精准分析,Pro 版解锁自定义过滤规则 • Exports dependency reports in JSON, CSV, or Markdown for CI integration / 导出 JSON、CSV 或 Markdown 格式的依赖报告,轻松集成 CI 流水线(Pro 版支持实时推送) • Incremental scanning to update large codebases without full rescan / 增量扫描机制,大型项目更新无需全量重扫,Pro 版节省 70% 扫描时间

Try It Now / 立即体验

bash
`depgraph scan --dir ./src --format svg --detect-cycles` Scans the ./src directory, detects circular dependencies, and outputs an SVG dependency graph. / 扫描 ./src 目录,检测循环依赖并输出 SVG 格式的依赖图谱。 

Feature Comparison / 功能对比

FreePro
Core / 核心
Batch / 批量
AI / AI 增强
SLA / 支持CommunityPriority

• Unlock deep-cycle analysis for large monorepos with 100K+ files 解锁十万级文件大型单仓库的深层循环分析,Pro 版支持 10 阶以上的依赖链追踪 • Get real-time dependency change alerts integrated with your Slack or Teams 集成 Slack 或 Teams 的实时依赖变更告警,让团队第一时间发现架构腐化信号 • Access priority support and custom export templates for enterprise compliance 获得优先技术支持与自定义导出模板,满足企业级合规与审计需求\n\n

📦 Published by King AI — kingai.work