{"id":"e95d379d-bc98-4cba-9ff5-1370ecc44e09","shortId":"vpB5kn","kind":"skill","title":"Audit Python dependency declarations for unused, missing, and transitive imports before release","tagline":"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 tur","description":"# Audit Python dependency declarations for unused, missing, and transitive imports before release\n\nUse 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.\n\n## Prerequisites\n\nPython plus Deptry configured against the target repository\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- uv add --dev deptry\n- pip install deptry\n\nRequirements and caveats from upstream:\n- [![Supported Python versions](https://img.shields.io/pypi/pyversions/deptry)](https://pypi.org/project/deptry/)\n- _deptry_ is a command line tool to check for issues with dependencies in a Python project, such as unused or missing\n- using [Poetry](https://python-poetry.org/), [pip](https://pip.pypa.io/), [PDM](https://pdm-project.org/), [uv](https://docs.astral.sh/uv/),\n\nBasic usage or getting-started notes:\n- To add _deptry_ to your project, run one of the following commands:\n- shell\n- poetry add --dev deptry\n\n- Source: https://github.com/osprey-oss/deptry\n- Extracted from upstream docs: https://raw.githubusercontent.com/osprey-oss/deptry/HEAD/README.md\n\n## Documentation\n\n- https://deptry.com/\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/audit-python-dependency-declarations-before-release/)","tags":["audit","python","dependency","declarations","before","release","skills","agentskillexchange","agent-skills","ai-agents","ai-tools","awesome-list"],"capabilities":["skill","source-agentskillexchange","skill-audit-python-dependency-declarations-before-release","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/audit-python-dependency-declarations-before-release","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,522 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:09:30.481Z","embedding":null,"createdAt":"2026-05-18T13:15:15.524Z","updatedAt":"2026-05-18T19:09:30.481Z","lastSeenAt":"2026-05-18T19:09:30.481Z","tsv":"'/),':185,189,193 '/osprey-oss/deptry':225 '/osprey-oss/deptry/head/readme.md':232 '/pypi/pyversions/deptry)](https://pypi.org/project/deptry/)':159 '/skills/audit-python-dependency-declarations-before-release/)':241 '/uv/),':197 'accid':54,110 'actual':34,90 'add':143,206,219 'agent':17,37,73,93,236 'agentskillexchange.com':240 'agentskillexchange.com/skills/audit-python-dependency-declarations-before-release/)':239 'audit':1,57 'basic':198 'blocker':120 'caveat':151 'check':167 'cleanup':116 'code':33,89 'codebas':40,96 'command':163,216 'commit':117 'configur':125 'declar':4,26,46,60,82,102 'depend':3,27,44,59,83,100,171 'deptri':14,70,124,145,148,160,207,221 'deptry.com':234 'dev':144,220 'direct':43,99 'doc':229 'docs.astral.sh':196 'docs.astral.sh/uv/),':195 'document':233 'environ':141 'exchang':238 'extract':226 'find':114 'flag':41,97 'follow':215 'get':202 'getting-start':201 'github.com':224 'github.com/osprey-oss/deptry':223 'img.shields.io':158 'img.shields.io/pypi/pyversions/deptry)](https://pypi.org/project/deptry/)':157 'import':10,31,49,66,87,105 'instal':130,134,147 'issu':169 'line':164 'match':29,85,139 'miss':7,45,63,101,180 'need':18,74 'note':204 'one':212 'path':137 'pdm':190 'pdm-project.org':192 'pdm-project.org/),':191 'pip':146,186 'pip.pypa.io':188 'pip.pypa.io/),':187 'plus':123 'poetri':182,218 'prerequisit':121 'project':24,80,175,210 'python':2,23,58,79,122,155,174 'python-poetry.org':184 'python-poetry.org/),':183 'raw.githubusercontent.com':231 'raw.githubusercontent.com/osprey-oss/deptry/head/readme.md':230 'releas':12,68,119 'repositori':129 'requir':149 'run':211 'scan':38,94 'setup':136 'shell':217 'skill':237 'skill-audit-python-dependency-declarations-before-release' 'sourc':222,235 'source-agentskillexchange' 'start':203 'still':28,84 'support':154 'target':128 'tool':165 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'transit':9,48,65,104 'tur':56 'turn':112 'unus':6,42,62,98,178 'upstream':133,153,228 'usag':199 'use':13,35,69,91,131,181 'uv':142,194 'verifi':20,76 'version':156 'work':52,108","prices":[{"id":"790edc4d-187c-4e28-9794-766104c9eb19","listingId":"e95d379d-bc98-4cba-9ff5-1370ecc44e09","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:15:15.524Z"}],"sources":[{"listingId":"e95d379d-bc98-4cba-9ff5-1370ecc44e09","source":"github","sourceId":"agentskillexchange/skills/audit-python-dependency-declarations-before-release","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/audit-python-dependency-declarations-before-release","isPrimary":false,"firstSeenAt":"2026-05-18T13:15:15.524Z","lastSeenAt":"2026-05-18T19:09:30.481Z"}],"details":{"listingId":"e95d379d-bc98-4cba-9ff5-1370ecc44e09","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"audit-python-dependency-declarations-before-release","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"d96cb776eb1b41068702ca12bdb2034e6e833aa2","skill_md_path":"skills/audit-python-dependency-declarations-before-release/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/audit-python-dependency-declarations-before-release"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"Audit Python dependency declarations for unused, missing, and transitive imports 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."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/audit-python-dependency-declarations-before-release"},"updatedAt":"2026-05-18T19:09:30.481Z"}}