🎯

ln-713-pip-upgrader

🎯Skill

from levnikolaevich/claude-code-skills

VibeIndex|
What it does

Upgrades Python dependencies across pip, poetry, and pipenv with automatic breaking change detection and security auditing.

πŸ“¦

Part of

levnikolaevich/claude-code-skills(85 items)

ln-713-pip-upgrader

Installation

pip installInstall Python package
pip install --upgrade <package>
πŸ“– Extracted from docs: levnikolaevich/claude-code-skills
11Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Upgrades Python pip/poetry/pipenv dependencies with breaking change handling

Overview

# ln-713-pip-upgrader

Type: L3 Worker

Category: 7XX Project Bootstrap

Parent: ln-710-dependency-upgrader

Upgrades Python dependencies with automatic breaking change detection.

---

Overview

| Aspect | Details |

|--------|---------|

| Input | Project path, package manager type |

| Output | Updated requirements.txt/pyproject.toml |

| Supports | pip, poetry, pipenv |

---

Workflow

See [diagram.html](diagram.html) for visual workflow.

Phases: Pre-flight β†’ Detect Manager β†’ Security Audit β†’ Check Outdated β†’ Apply Upgrades β†’ Verify Installation β†’ Report

---

Phase 0: Pre-flight Checks

| Check | Required | Action if Missing |

|-------|----------|-------------------|

| requirements.txt OR pyproject.toml OR Pipfile | Yes | Block upgrade |

| Virtual environment active | No | Warn user (risk of system pollution) |

> Workers assume coordinator (ln-710) already verified git state and created backup.

---

Phase 1: Detect Manager

| Manager | Indicator Files |

|---------|-----------------|

| pip | requirements.txt |

| poetry | pyproject.toml + poetry.lock |

| pipenv | Pipfile + Pipfile.lock |

---

Phase 2: Security Audit

Commands

| Manager | Command |

|---------|---------|

| pip | pip-audit --json |

| poetry | poetry audit (via plugin) |

| pipenv | pipenv check |

Actions

| Severity | Action |

|----------|--------|

| Critical | Block upgrade, report |

| High | Warn, continue |

| Moderate/Low | Log only |

---

Phase 3: Check Outdated

Commands

| Manager | Command |

|---------|---------|

| pip | pip list --outdated --format=json |

| poetry | poetry show --outdated |

| pipenv | pipenv update --outdated |

---

Phase 4: Apply Upgrades

Commands

| Manager | Command |

|---------|---------|

| pip | pip install --upgrade |

| pip (freeze) | pip freeze > requirements.txt |

| poetry | poetry update |

| pipenv | pipenv update |

---

MCP Tools for Migration Search

Priority Order (Fallback Strategy)

| Priority | Tool | When to Use |

|----------|------|-------------|

| 1 | mcp__context7__query-docs | First choice for library docs |

| 2 | mcp__Ref__ref_search_documentation | Official docs and PyPI |

| 3 | WebSearch | Latest info, community solutions |

Context7 Usage

| Step | Tool | Parameters |

|------|------|------------|

| 1. Find library | mcp__context7__resolve-library-id | libraryName: "pydantic" |

| 2. Query docs | mcp__context7__query-docs | query: "pydantic v1 to v2 migration breaking changes" |

MCP Ref Usage

| Action | Tool | Query Example |

|--------|------|---------------|

| Search | mcp__Ref__ref_search_documentation | "python pydantic 2 migration guide" |

| Read | mcp__Ref__ref_read_url | URL from search results |

WebSearch Fallback

Use when Context7/Ref return no results:

  • " python breaking changes migration"
  • " fix"

---

Phase 5: Verify Installation

Commands

| Check | Command |

|-------|---------|

| Import test | python -c "import " |

| Tests | pytest or python -m pytest |

---

Phase 6: Report Results

Report Schema

| Field | Description |

|-------|-------------|

| project | Project path |

| packageManager | pip, poetry, or pipenv |

| duration | Total time |

| upgrades[] | Applied upgrades |

| verification | PASSED or FAILED |

---

Common Breaking Changes

> See [breaking_changes_patterns.md](../ln-710-dependency-upgrader/references/breaking_changes_patterns.md) for full patterns.

| Package | Breaking Version | Key Changes |

|---------|------------------|-------------|

| pydantic | 1 β†’ 2 | V1 compatibility layer needed |

| sqlalchemy | 1 β†’ 2 | Query syntax changes |

| fastapi | 0.99 β†’ 0.100+ | Pydantic v2 required |

---

Configuration

```yaml

Options:

# Upgrade scope

upgradeType: major # major | minor | patch

# Security

auditLevel: high

minimumReleaseAge: 14

# Python specific

pythonVersion: "3.12"

useVirtualenv: true

# Verification

runTests: true

```

---

Error Handling

| Error | Cause | Solution |

|-------|-------|----------|

| ImportError | Breaking API change | Search Context7/Ref for migration |

| Dependency conflict | Version mismatch | Try pip-compile or poetry lock |

---

References

  • [breaking_changes_patterns.md](../ln-710-dependency-upgrader/references/breaking_changes_patterns.md)
  • [python_venv_handling.md](references/python_venv_handling.md)

---

Version: 1.1.0

Last Updated: 2026-01-10

More from this repository10

πŸͺ
levnikolaevich-claude-code-skillsπŸͺMarketplace

Official marketplace for Agile Linear Workflow plugin - complete end-to-end automation for software development teams using Linear. Includes 7XX Project Bootstrap series for technology-agnostic project migration.

🎯
ln-140-test-docs-creator🎯Skill

Generates comprehensive test documentation with testing strategy and test organization structure for software projects.

🎯
ln-110-project-docs-coordinator🎯Skill

Coordinates project documentation by gathering context once, detecting project type, and delegating document creation to 5 specialized workers.

🎯
ln-114-frontend-docs-creator🎯Skill

Generates design guidelines documentation for frontend projects with WCAG 2.1 compliance when a frontend framework is detected.

🎯
ln-113-backend-docs-creator🎯Skill

Generates backend documentation files (API spec and database schema) automatically when backend or database technologies are detected in a project.

🎯
ln-610-code-comments-auditor🎯Skill

Audits code comments and docstrings across 6 quality categories, generating a comprehensive compliance score and actionable recommendations for improvement.

🎯
ln-115-devops-docs-creator🎯Skill

Generates a comprehensive runbook.md for DevOps setup, dynamically tailored to project's Docker configuration and deployment specifics.

🎯
ln-772-error-handler-setup🎯Skill

Configures global exception handling middleware for .NET and Python backend applications with standardized error responses.

🎯
ln-120-reference-docs-creator🎯Skill

Generates reference documentation structure and smart documents for project tech stack, creating only justified architectural decision records and guides.

🎯
ln-625-dependencies-auditor🎯Skill

Audits dependencies for outdated packages, unused imports, unnecessary libraries, and custom implementations, providing actionable recommendations.