audit-python-dependency-declarations-before-release

Use Deptry when an agent needs to verify that a Python project's declared dependencies still match the imports actually used in the code. The agent scans the repository, flags unused direct dependencies, missing declarations, and transitive imports that only work by accident, and converts findings into cleanup commits or release-blocking items.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "audit-python-dependency-declarations-before-release" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fe9d8e305e2927cef41fc83f1625ab7a94ada05606178d09e82117458d99623c. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/audit-python-dependency-declarations-before-release before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use Deptry when an agent needs to verify that a Python project's declared dependencies still match the imports actually used in the code. The agent scans the repository, flags unused direct dependencies, missing declarations, and transitive imports that only work by accident, and converts findings into cleanup commits or release-blocking items.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "Audit Python dependency declarations for unused, missing, and transitive imports before release"
slug: "audit-python-dependency-declarations-before-release"
version: "1.0.0"
displayName: "Audit Python dependency declarations for unused, missing, and transitive imports before release"
summary: "当代理需要验证 Python 项目的声明依赖仍然与代码实际使用的导入匹配时,请使用 Deptry。该代理扫描代码库,标记未使用的直接依赖、缺失的声明以及仅因偶然因素而生效的传递导入,然后将发现转化为清理提交或发布阻止项。"
license: "MIT"
description: "当代理需要验证 Python 项目的声明依赖仍然与代码实际使用的导入匹配时,请使用 Deptry。该代理扫描代码库,标记未使用的直接依赖、缺失的声明以及仅因偶然因素而生效的传递导入,然后将发现转化为清理提交或发布阻止项。"
github_stars: 1359
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 1359

在发布前审计 Python 依赖声明中的未使用、缺失和传递导入

当代理需要验证 Python 项目的声明依赖仍然与代码实际使用的导入匹配时,请使用 Deptry。该代理扫描代码库,标记未使用的直接依赖、缺失的声明以及仅因偶然因素而生效的传递导入,然后将发现转化为清理提交或发布阻止项。

先决条件

Python 加上针对目标仓库配置的 Deptry

安装

使用与您的环境匹配的上游安装或设置路径:

  • uv add --dev deptry
  • pip install deptry

来自上游的要求和注意事项:

  • 支持的 Python 版本
  • deptry 是一个命令行工具,用于检查 Python 项目中依赖项的问题,例如未使用或缺失的依赖项
  • using Poetry, pip, PDM, uv,

基本用法或入门笔记:

文档

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决 Python 项目发布前依赖声明与实际导入匹配的核心痛点
  • 提供高价值的依赖审计功能,显著提升开发效率
Trigger Precision95/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
Structure and Standards90/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    文档中缺少具体的 When to Use 章节和使用示例

    Recommendation: 建议补充 When to Use 章节和具体的使用示例,帮助用户更好地理解和使用该 Skill

Highlights

  • Phase/步骤清晰,有出口条件,frontmatter 完整
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 33
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • deptry.com
  • docs.astral.sh
  • github.com
  • img.shields.io
  • pdm-project.org
  • pip.pypa.io
  • pypi.org
  • python-poetry.org
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.