audit-python-dependency-declarations-before-release
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.
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
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
来自上游的要求和注意事项:
基本用法或入门笔记:
-
要将 deptry 添加到您的项目中,请运行以下命令之一:
-
shell
-
poetry add --dev deptry
-
Extracted from upstream docs: https://raw.githubusercontent.com/osprey-oss/deptry/HEAD/README.md
文档
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 Python 项目发布前依赖声明与实际导入匹配的核心痛点
- 提供高价值的依赖审计功能,显著提升开发效率
Highlights
- 触发词精准完整,覆盖多种变体,边界清晰
Areas to improve
-
缺少 When to Use/示例章节 Reported severity: Minor
文档中缺少具体的 When to Use 章节和使用示例
Recommendation: 建议补充 When to Use 章节和具体的使用示例,帮助用户更好地理解和使用该 Skill
Highlights
- Phase/步骤清晰,有出口条件,frontmatter 完整
Highlights
- 工具来源明确,参数正确,覆盖主要异常
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
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.
User discussion
No verified reviews yet.