aimasteracc/mycelium/import-graph

Claude Code and agent skill by aimasteracc/mycelium

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Navigate the import graph — direct imports, import trees, importers (who pulls this in).

Install

npx vskill@latest install aimasteracc/mycelium/import-graph

SKILL.md

import-graph — module dependencies, in both directions

This Skill bundles the three Imports edge-kind tools. Reach for it when the question is "what does this file pull in" or "who depends on this module".

Particularly useful for TypeScript, Python, JavaScript projects where the import statements are the load-bearing dependency contract. Rust projects have implicit use statements that this Skill also tracks — but you'll get more value out of call-graph for Rust.

When to invoke this Skill

Use when:

  • The user asks "who imports X", "what does X import", "is this module used".
  • Planning a module split — you need to see the import surface clearly.
  • Tracking down a circular import.

Do NOT use when:

  • The relationship is Calls (use call-graph), Extends/Implements (use inheritance).
  • The user wants symbol-level not module-level relationships — drop down to call-graph.

Quick examples

Developer questionTool
"What does src/api/routes.rs import?"mcp__mycelium__get_imports
"What imports src/auth/session.rs?"mcp__mycelium__get_importers_tree
"Show the full import tree starting from src/main.rs"mcp__mycelium__get_import_tree
"Are there circular imports in this project?"mcp__mycelium__get_import_tree

Capabilities under this umbrella

get_imports — direct imports of a file/module
mcp__mycelium__get_imports({ "path": "src/api/routes.rs" })
→ { "imports": ["src/auth/session.rs", "src/db.rs", "axum"], "count": 3 }

External crates (no path in the local index) appear as bare identifiers.

get_import_tree — recursive imports

When: "what does this file transitively pull in" — depth-bounded tree.

mcp__mycelium__get_import_tree({ "path": "src/main.rs", "max_depth": 3 })

Returns a nested { path, children: [...] } structure. Cycles render as { path, cycle: true } leaves. Default depth 3, capped at 10.

get_importers_tree — recursive who-imports-me

When: "who depends on this module, directly or transitively" — the import-edge analog of get_caller_tree.

mcp__mycelium__get_importers_tree({ "path": "src/auth/session.rs", "max_depth": 3 })

TypeImports — type-annotation-only imports (RFC-0096)

Python's if TYPE_CHECKING: pattern and TypeScript's import type create TypeImports edges rather than Imports edges. This keeps the default graph runtime-only and prevents false-positive cycle reports (Issue #227).

Wire string: "type_imports".

python
# These three calls produce TypeImports edges, not Imports:
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from mypackage.models import User # → TypeImports edge: file → mypackage/models
import collections # → TypeImports edge: file → collections
GoalTool / flag
Show only runtime imports (default)mcp__mycelium__get_imports (no flag)
Show type-annotation-only importsmcp__mycelium__get_imports { "edge_kind": "type_imports" }
Cycle detection — runtime only (default)mcp__mycelium__detect_cycles
Cycle detection — type-graphmcp__mycelium__detect_cycles { "edge_kind": "type_imports" }

Common chains

  • "Can I move this file?" → get_importers_tree to see the full set of files that would need updating.
  • "What's this module's external dependency surface?" → get_imports and filter for external (non-path) entries.
  • "Find a circular import" → get_import_tree and look for cycle: true leaves.
  • "Show only type-annotation dependencies" → get_imports { "edge_kind": "type_imports" } to map the TYPE_CHECKING graph separately.

Equivalent CLI

bash
mycelium get-imports "src/api/routes.rs" --format=json
mycelium get-import-tree "src/main.rs" --max-depth 3
mycelium get-importers-tree "src/auth/session.rs" --max-depth 3

Parity contract

Per RFC-0090: each CLI ↔ MCP pair is byte-identical. tests/parity.test.json asserts byte-equality for one input per capability.

Cross-references

  • Related Skill: call-graph — when the relationship is Calls not Imports.
  • Related Skill: inheritance (planned) — for Extends / Implements.
  • Related Skill: reachability — for multi-edge-kind reachability.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aimasteracc/mycelium/import-graph/badge)](https://verified-skill.com/skills/aimasteracc/mycelium/import-graph)

Something wrong with this skill or its page? Tell us.