import-graph

Analyze static imports to build dependency graphs and domain clusters.

95|4|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/aspenkit/aspens --skill import-graph
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: import-graph
Source: https://github.com/aspenkit/aspens/tree/main/.agents/skills/import-graph
Command: npx skills add https://github.com/aspenkit/aspens --skill import-graph

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Static import analysis to automatically build dependency graphs, domain clusters, hub files, git churn hotspots, and file priority rankings for large codebases.

Core Features & Use Cases

  • Static analysis of JS/TS/Python imports to generate actionable code maps and prioritization.
  • Identify hub files, clustering domains, and hotspots to focus refactoring and reviews.
  • Use for code maintenance, architectural reviews, and onboarding with a readable dependency overview.

Quick Start

Run the import-graph analysis on your repository to produce dependency graphs and domain clusters efficiently.

Frequently Asked Questions about import-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a static dependency graph for a multi-language codebase?

To generate a static dependency graph for a multi-language codebase, you can analyze JS, TS, and Python imports to automatically build dependency edges, identify hub files, and extract domain clusters for refactoring.

What is static import analysis and how does it identify code hotspots?

Static import analysis parses codebase imports to map dependencies and calculate file churn metrics. It identifies code hotspots by ranking files based on import volume and churn data to prioritize refactoring efforts.

Can I use static analysis to find hub files in JavaScript and Python projects?

Yes, you can find hub files in JavaScript and Python projects by applying static analysis. The process parses imports to rank files by dependency connectivity, highlighting central hub files for architectural reviews.

How do I cluster domains and extract subgraphs from large codebases?

To cluster domains and extract subgraphs from large codebases, static analysis reverses import edges and applies domain clustering algorithms. Persistence helpers enable fast lookup and subgraph extraction for targeted code maintenance.

What is the best way to visualize code-map skylines for onboarding?

The best way to visualize code-map skylines for onboarding is to run a static import analysis pipeline. It processes file metrics and rankings to produce a readable dependency overview of the codebase architecture.

Does static import analysis work without executing the code?

Yes, static import analysis works without executing the code. It parses source files directly to build dependency graphs and calculate metrics, ensuring safe analysis for JS, TS, and Python projects.