import-graph

Analyze module dependencies and detect circular imports across codebases.

1|Updated May 29, 2026
One-click install
npx skills add https://github.com/aimasteracc/mycelium --skill import-graph-aimasteracc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: import-graph
Source: https://github.com/aimasteracc/mycelium/tree/main/skills/import-graph
Command: npx skills add https://github.com/aimasteracc/mycelium --skill import-graph-aimasteracc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Navigate module dependencies by exposing direct imports, import trees, and importers across a codebase.

Core Features & Use Cases

  • Direct imports: identify what a file pulls in.
  • Import trees: traverse dependencies from a starting module to see its full surface.
  • Importers tree: discover who depends on a module to assess impact.
  • TypeImports awareness: handles type-only imports in languages like Python and TypeScript to avoid false positives.

Quick Start

Index your project, then run get-imports, get-import-tree, or get-importers-tree against a file to reveal its dependency graph.

Frequently Asked Questions about import-graph

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

FAQPage Schema
How do I map module dependencies and detect circular imports in a TypeScript codebase?

To map module dependencies in a TypeScript codebase, you can analyze direct imports and traverse transitive import trees to reveal the full dependency surface and detect circular imports. This process exposes exactly what each file pulls in and who depends on it.

What is the best way to see who imports a specific Python module across my project?

The best way to see who imports a specific Python module across your project is to generate an importers tree. This reveals all files that depend on your target module, allowing you to accurately assess the impact of modifying or deleting that file.

Does dependency graph analysis handle type-only imports in Python and TypeScript?

Yes, dependency graph analysis handles type-only imports in both Python and TypeScript. It features TypeImports awareness to correctly process these statements, ensuring your dependency surface mapping avoids false positives from type-only references.

How do I traverse a transitive import tree starting from a single JavaScript file?

To traverse a transitive import tree starting from a single JavaScript file, you run an import tree analysis against that file. This traverses all nested dependencies from your starting module to reveal its complete dependency graph.

Can I use import graph tools to plan codebase modularization for large projects?

Yes, you can use import graph tools to plan codebase modularization for large projects. By mapping direct imports and full dependency trees, you can assess dependency surfaces and identify structural boundaries to effectively split your codebase.