extract-dependencies

Analyze import statements to extract and categorize module dependencies.

18|5|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/mvillmow/ProjectOdyssey --skill extract-dependencies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-dependencies
Source: https://github.com/mvillmow/ProjectOdyssey/tree/main/.claude/skills/tier-2/extract-dependencies
Command: npx skills add https://github.com/mvillmow/ProjectOdyssey --skill extract-dependencies

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires grep, pipdeptree.

What problem does it solve?

Understanding module coupling, identifying circular dependencies, and visualizing the overall project structure can be complex and time-consuming in large codebases.

Core Features & Use Cases

  • Import Analysis: Scans import statements to identify all external and internal module dependencies.
  • Dependency Graph Generation: Creates a clear graph of module relationships and traces dependency chains.
  • Use Case: When refactoring a large Python application, use this skill to generate a dependency graph, helping you identify tightly coupled modules and potential circular dependencies.

Quick Start

Use the extract-dependencies skill to list all unique Python import statements in the current directory.

Frequently Asked Questions about extract-dependencies

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

FAQPage Schema
How do I identify circular dependencies in my Python project?

Extract dependencies analyzes import statements across your codebase to detect circular dependencies—modules importing each other directly or through chains. This reveals tightly coupled code that needs refactoring to decouple modules and improve maintainability.

What's the best way to map all imports in a large Python codebase?

Scan import statements with dependency extraction to generate a complete dependency graph showing external, internal, and standard library imports. This visualizes module relationships and project structure without manual tracing.

Can I use this to plan a refactoring and identify unused dependencies?

Yes. Extract dependencies categorizes all imports and reports unnecessary dependencies, helping you plan removal and reorganize code structure. This prepares you to decouple tightly coupled modules during refactoring.

Does this work with large Python projects and monorepos?

Dependency extraction scans the current directory recursively to identify all import statements across Python files. It scales to large codebases and generates comprehensive dependency graphs for complex project structures.

How do I get a visual representation of module relationships?

Extract dependencies produces a dependency graph tracing all module connections and import chains. This output helps you understand code coupling, spot bottlenecks, and plan architectural improvements.