# python deps doctor

> Audit and repair Python dependencies for specific version compatibility and security.

python deps doctor is a free AI agent skill on Agensi by Arslan3x5, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Arslan3x5](https://www.agensi.io/creators/arslan3x5)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/python-deps-doctor
- Tags: llm-ops, python, pip, pypi, dependencies

## About this skill

Python dependency management is often a silent failure point where pinned versions rot, causing installation errors on newer environments or accumulating security vulnerabilities. This skill provides a systematic way to audit, validate, and repair Python requirements files without breaking your local setup. It identifies version conflicts before they happen by checking your specific target Python version against PyPI metadata.

### What it does
- **Targeted auditing** identifies incompatible, outdated, or unpinned packages based on a specific Python version.
- **Conflict resolution** finds newer releases that support modern Python runtimes to fix "no matching distribution found" errors.
- **Safety-first upgrades** performs changes in a fresh virtual environment to verify `pip check` and application stability before committing.
- **Security integration** incorporates security alerts and `pip-audit` findings into the upgrade prioritization.
- **Report generation** produces a clear summary of changes, status details, and testing results.

### How it works
1. Run the audit script against your `requirements.txt` or project folder, optionally specifying a target Python version like `--python 3.12`.
2. Review the Markdown report which categorizes packages as incompatible, outdated, or unpinned.
3. Prioritize fixes for incompatible packages first, followed by security alerts, then general updates.
4. Execute the upgrades in a new `.venv-audit` environment and run verification commands.

### Frameworks & tools
Built for Python projects using `requirements.txt`, `pyproject.toml`, or `setup.cfg`. It utilizes the `packaging` library and queries PyPI.org for real-time version data.

### Why this beats prompting it yourself
Standard LLMs hallucinate version numbers or suggest updates that conflict with your specific Python runtime. This skill uses a local script to fetch real metadata, ensuring every suggested version actually exists and is compatible with your environment.

### Use cases
- Upgrading an old project to a newer Python version without manual trial and error.
- Cleaning up a messy `requirements.txt` that has accumulated unpinned or redundant packages.
- Resolving complex "requires a different Python version" errors during CI/CD builds.
- Systematically addressing security alerts by matching them to compatible fixed versions.

### Known limitations
The automated script only reads `requirements*.txt` files. Changes to `pyproject.toml` or `setup.cfg` must be applied manually by the agent. Internet access to PyPI is required.

## Requires

- Python
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the python deps doctor skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Python Deps Doctor solve dependency conflicts better than manual troubleshooting?

This skill addresses 'dependency rot' by auditing requirements against live PyPI metadata for a specific Python version, ensuring suggested upgrades actually exist and won't cause 'no matching distribution' errors during deployment.

### Which AI agents and project structures are supported by this skill?

The skill is designed for any AI agent with filesystem access and internet connectivity, compatible with standard Python project structures like requirements.txt, pyproject.toml, and setup.cfg.

### Is it safe to run this skill on a live project without breaking my current environment?

Yes, the skill creates a dedicated '.venv-audit' virtual environment to test upgrades and run 'pip check' verification, ensuring your primary local development environment remains untouched until you approve the changes.

### What exactly is included in the Python Deps Doctor package?

You receive the core audit and repair scripts, a pre-configured agent prompt for dependency management, and a reporting template that summarizes security alerts and version compatibility.

### Are there any specific technical requirements or limitations I should be aware of?

The tool requires internet access to query PyPI for real-time version data and is currently limited to automatically editing 'requirements.txt' files; changes to 'pyproject.toml' require manual confirmation by the agent.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
