Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Dependency Tree Mapping

БесплатноБез исполняемых скриптовНе проверен

Generate comprehensive dependency graphs to identify "single-points-of-failure" and impact analysis chains.

Sounder25от Sounder25★ 29 звёзд на GitHub

Об этом скилле

SKILL-012: Dependency Tree Mapping

Overview

Executes "Structural Awareness" by building a map of how different parts of the project rely on each other. It uses language-specific tools (nuget, pip, npm, cargo) to extract the graph and visualize it.

Trigger Phrases

  • map dependencies
  • show dependency tree
  • check impact of <library>
  • find point of failure

Inputs

Parameter Type Required Default Description
--workspace-path string No Current directory Root of the project
--depth int No 3 Depth of dependency recursion
--format string No mermaid Output format: mermaid, json, text

Outputs

1. DEPENDENCY_GRAPH.mmd (Mermaid)

Visual graph ready for rendering:

graph TD
    A[Core.Engine] --> B[Utils.Math]
    A --> C[Utils.Logging]
    B --> D[External.NumPy]
    C --> E[External.Serilog]

2. RISK_REPORT.md

Analysis of the graph:

  • Critical Nodes: Libraries that >50% of the project depends on.
  • Cycle Detection: Circular dependencies that might cause build failures.
  • Version Conflicts: Multiple versions of the same library requested.

Preconditions

  1. Build files must exist (package.json, *.csproj, pyproject.toml).
  2. Dependencies must be resolvable (e.g., npm list works).

Implementation

Script: map_dependencies.ps1

  1. Detects Tech Stack: (Uses WORKSPACE_PROFILE.json if available).
  2. Extracts Graph:
    • Node.js: npm list --json
    • .NET: dotnet list package --include-transitive (parsed)
    • Python: pipdeptree --json (if installed)
  3. Generates Mermaid: Transforms raw data into Mermaid syntax.
  4. Analyzes Risk: Calculates centrality of nodes to identify critical points.

Use Cases

  1. QA Auditing: Identifying "single-points-of-failure" where a single library version mismatch could crash the system.
  2. Refactoring: Knowing that changing "AuthService" impacts "UserDashboard", "AdminPanel", and "ReportingJob".

Установить Dependency Tree Mapping в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/RISK_REPORT.mdmap_dependencies.ps1templates/RISK_REPORT.md

FAQ

Что делает скилл Dependency Tree Mapping?

Generate comprehensive dependency graphs to identify "single-points-of-failure" and impact analysis chains.

Как установить скилл Dependency Tree Mapping?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Dependency Tree Mapping запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Dependency Tree Mapping с