Works with the AI Agents you already use
Python Dependency Hygiene and Lockfile Audit
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
$5
Python Dependency Hygiene and Lockfile Audit
Example session with this skill installed
Run the Python Dependency Hygiene and Lockfile Audit skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the python dependency hygiene
Here is what the Python Dependency Hygiene and Lockfile Audit skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
dependency check: 13 requirements in 2 files, 10 findings
HIGH index.credentials [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements.txt:3]: credentials embedded in an index URL (value hidden)
-> rotate the credential; use PIP_INDEX_URL or keyring instead of committing it
HIGH conflict httpx [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements-dev.txt:4]: no version of httpx satisfies all of: -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements-dev.txt:4 (httpx>=0.27,<0.25)
-> align the specifiers
HIGH conflict urllib3 [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements.txt:6]: urllib3==1.26.18 contradicts >=2.0 (-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements-dev.txt:2); sources: -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements-dev.txt:2 (urllib3>=2.0), -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements.txt:6 (urllib3==1.26.18)
-> align the specifiers; generate pins from one input file
MEDIUM hashes.partial [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements.txt]: 1 of 9 requirements have --hash; pip's hash-checking mode rejects the rest
-> regenerate with pip-compile --generate-hashes or uv pip compile --generate-hashes
MEDIUM duplicate django [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements.txt:12]: 'django' listed twice in requirements.txt (also -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements.txt:4)
-> keep one entry
MEDIUM vcs.unpinned internal-sdk [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements.txt:8]: VCS requirement without a full commit hash; a branch or tag can move
-> pin to @<40-char commit sha>, or publish a release
MEDIUM unpinned requests [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements.txt:5]: 'requests' is not pinned; every install can resolve a different version
-> pin with == in a lock/requirements file (pip-compile, uv pip compile, uv lock)
LOW range_only celery [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements.txt:7]: 'celery>=5.3' is a range in a requirements file; deployments are not reproducible
-> keep ranges in requirements.in / pyproject and compile a pinned lock
LOW range_only httpx [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements-dev.txt:4]: 'httpx>=0.27,<0.25' is a range in a requirements file; deployments are not reproducible
-> keep ranges in requirements.in / pyproject and compile a pinned lock
LOW range_only urllib3 [-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/python-dev-skills/tests/fixtures/dependency-hygiene/app/requirements-dev.txt:2]: 'urllib3>=2.0' is a range in a requirements file; deployments are not reproducible
-> keep ranges in requirements.in / pyproject and compile a pinned lock
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Keep Python dependencies reproducible, minimal and patched - ranges in pyproject.toml for libraries vs pinned lock files for applications, requirements.in to requirements.txt with pip-compile or uv pip compile, uv.lock, constraints files, dependency groups, hash-checking mode, VCS pins, removing unused packages and triaging vulnerabilities. Includes a checker for requirements*.txt (with -r/-c includes), pyproject.toml dependencies, optional-dependencies and [dependency-groups], and uv.lock that reports unpinned, exactly pinned library, duplicate and conflicting specifiers, VCS requirements without a commit, credentials in index URLs, partial --hash use and a stale uv.lock; plus a pip-audit JSON triage script that groups advisories by package and computes the minimum fixed version.
Who it's for
Use when the user asks to clean up, pin, upgrade or audit dependencies, sees ResolutionImpossible or "conflicting dependencies", gets a pip-audit/Dependabot alert, or sets up requirements or lock files.
What's inside
- Tested, offline Python script(s): dep_check.py, audit_triage.py (deterministic results, standard library only unless noted)
- Reference guides: workflows.md, checks.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/python-dev-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.8+