aimasteracc/mycelium/import-graph
Claude Code and agent skill by aimasteracc/mycelium
- community
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-graphSKILL.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 doesXimport", "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(usecall-graph),Extends/Implements(useinheritance). - The user wants symbol-level not module-level relationships — drop down to
call-graph.
Quick examples
| Developer question | Tool | |
|---|---|---|
| "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
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.
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.
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".
| Goal | Tool / flag | |
|---|---|---|
| Show only runtime imports (default) | mcp__mycelium__get_imports (no flag) | |
| Show type-annotation-only imports | mcp__mycelium__get_imports { "edge_kind": "type_imports" } | |
| Cycle detection — runtime only (default) | mcp__mycelium__detect_cycles | |
| Cycle detection — type-graph | mcp__mycelium__detect_cycles { "edge_kind": "type_imports" } |
Common chains
- "Can I move this file?" →
get_importers_treeto see the full set of files that would need updating. - "What's this module's external dependency surface?" →
get_importsand filter for external (non-path) entries. - "Find a circular import" →
get_import_treeand look forcycle: trueleaves. - "Show only type-annotation dependencies" →
get_imports { "edge_kind": "type_imports" }to map the TYPE_CHECKING graph separately.
Equivalent CLI
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 isCallsnotImports. - Related Skill:
inheritance(planned) — forExtends/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
- SKILL.md in the repositoryCheckingskills/import-graph/SKILL.md
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
[](https://verified-skill.com/skills/aimasteracc/mycelium/import-graph)