Skip to content
Back to skills

Audit Python Dependency Declarations Before Release

ASecurity

Use Deptry when an agent needs to verify that a Python project's declared dependencies still match the imports the code actually uses. The agent scans the codebase, flags unused direct dependencies, missing declarations, and transitive imports that only work by accident, then turns the findings into cleanup commits or release blockers.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 8, 2026
ai-agentspythongoshellgitsecuritydocumentation

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill audit-python-dependency-declarations-before-release --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit Python Dependency Declarations Before Release?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Audit Python Dependency Declarations Before Release
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-audit-python-dependency-declarations-before-releas/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-audit-python-dependency-declarations-before-releas)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Audit Python dependency declarations for unused, missing, and transitive imports before release"
slug: "audit-python-dependency-declarations-before-release"
description: "Use Deptry when an agent needs to verify that a Python project's declared dependencies still match the imports the code actually uses. The agent scans the codebase, flags unused direct dependencies, missing declarations, and transitive imports that only work by accident, then turns the findings into cleanup commits or release blockers."
github_stars: 1359
verification: "security_reviewed"
source: "https://github.com/osprey-oss/deptry"
author: "Osprey OSS"
publisher_type: "Open Source Project"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "osprey-oss/deptry"
  github_stars: 1359
---

# Audit Python dependency declarations for unused, missing, and transitive imports before release

Use Deptry when an agent needs to verify that a Python project's declared dependencies still match the imports the code actually uses. The agent scans the codebase, flags unused direct dependencies, missing declarations, and transitive imports that only work by accident, then turns the findings into cleanup commits or release blockers.

## Prerequisites

Python plus Deptry configured against the target repository

## Installation

Use the upstream install or setup path that matches your environment:
- uv add --dev deptry
- pip install deptry

Requirements and caveats from upstream:
- [![Supported Python versions](https://img.shields.io/pypi/pyversions/deptry)](https://pypi.org/project/deptry/)
- _deptry_ is a command line tool to check for issues with dependencies in a Python project, such as unused or missing
- using [Poetry](https://python-poetry.org/), [pip](https://pip.pypa.io/), [PDM](https://pdm-project.org/), [uv](https://docs.astral.sh/uv/),

Basic usage or getting-started notes:
- To add _deptry_ to your project, run one of the following commands:
- shell
- poetry add --dev deptry

- Source: https://github.com/osprey-oss/deptry
- Extracted from upstream docs: https://raw.githubusercontent.com/osprey-oss/deptry/HEAD/README.md

## Documentation

- https://deptry.com/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/audit-python-dependency-declarations-before-release/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.