dependency-analyzer

Parse Python abstract syntax trees to classify and manage project dependencies.

86|18|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill dependency-analyzer-dkyazzentwatwa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dependency-analyzer
Source: https://github.com/dkyazzentwatwa/chatgpt-skills/tree/main/dependency-analyzer
Command: npx skills add https://github.com/dkyazzentwatwa/chatgpt-skills --skill dependency-analyzer-dkyazzentwatwa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps developers understand and manage Python project dependencies, identify unused code, and automate the generation of requirement files.

Core Features & Use Cases

  • Import Analysis: List all imports from Python files and classify them (stdlib, third-party, local).
  • Dependency Management: Generate requirements.txt files and detect circular imports.
  • Code Quality: Find unused imports to help clean up codebases.
  • Use Case: Before deploying a Python application, use this Skill to generate an accurate requirements.txt file and check for any circular dependencies that might cause runtime errors.

Quick Start

Analyze the Python project in the './src' directory and print the third-party dependencies.

Frequently Asked Questions about dependency-analyzer

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

FAQPage Schema
How do I generate a requirements.txt file from Python imports?

To detect circular imports in a Python project, this Skill analyzes the project structure and maps the dependency graph of local modules. It identifies recursive import cycles that could cause runtime errors and reports the specific files involved in the loop.

How do I find unused imports in a Python codebase?

You can find unused imports in a Python codebase by using this Skill to analyze your source files and cross-reference imported modules against their usage. It helps clean up codebases by flagging imported packages that are never actually called within the code.

What is the best way to detect circular imports in a Python project?

The best way to detect circular imports in a Python project is to analyze the import structure using this Skill. It maps local module dependencies to identify recursive import cycles, helping you resolve structural issues before deployment.

How do I list all third-party dependencies used in my Python project?

To list all third-party dependencies in your Python project, this Skill scans the source directory and extracts external package imports. It separates them from standard library and local modules, providing a clean list of external packages required to run the application.