スキル一覧に戻る
Sounder25

dependency-tree-mapping

by Sounder25

Operational capabilities for high-leverage AI coding agents. Features deterministic execution, 100% tested safety gates, impasse detection, and adversarial review. Includes 'Gold Standard' meta-skills like Pre-Action Guard and Failure Postmortem to prevent loops and data loss.

8🍴 3📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: Dependency Tree Mapping description: Generate comprehensive dependency graphs to identify "single-points-of-failure" and impact analysis chains. version: 1.0.0 author: Antigravity Skills Library created: 2026-01-16 leverage_score: 5/5

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

ParameterTypeRequiredDefaultDescription
--workspace-pathstringNoCurrent directoryRoot of the project
--depthintNo3Depth of dependency recursion
--formatstringNomermaidOutput 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".

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です