Upgrade Python Dependencies

VerifiedSafe

Upgrade Python dependencies using uv, then run post-upgrade checks to ensure nothing is broken.

Sby Skills Guide Bot
DevelopmentIntermediate
8/29/2026
Claude CodeCursorWindsurfCopilotCodex
#python#uv#dependency-upgrade#testing#maintenance

Recommended for

Automated summary

Upgrades all Python dependencies using uv with a 7-day cooldown, then runs type checking and tests to verify nothing is broken.

Strengths

  • Uses uv for fast and reliable dependency resolution
  • Enforces a 7-day grace period to reduce supply-chain risks
  • Runs mypy and tests to catch regressions
  • Commits changes via the /commit skill

Limitations

  • Assumes uv and make are already installed
  • The 7-day cooldown may delay important security updates
  • Some dependency changes may require manual intervention beyond automated checks
When to use it

Use when you need to refresh Python dependencies in a project and verify compatibility before committing.

When not to use it

Do not use for projects that do not use uv or Python, or when you need to upgrade a specific package only.

Security analysis

Safe
Quality score90/100

The skill only invokes uv commands to upgrade dependencies, sync the environment, run tests, and type checking. It includes a 7-day cooldown to mitigate supply-chain attacks and checks for conflicts. No destructive, exfiltrating, or obfuscated actions are present.

No concerns found

How this analysis is made

Examples

Upgrade all dependencies and test
Upgrade all Python dependencies in this project and make sure the tests still pass.
Full upgrade with checks
Run uv lock --upgrade --exclude-newer '7 days' and then sync and run mypy and make test.
Upgrade and commit if green
Update the Python dependencies, check for type errors, and run the test suite. If everything passes, commit the changes.

name: upgrade-python-deps description: Upgrade Python dependencies using uv, then run post-upgrade checks to ensure nothing is broken. allowed-tools: [ Bash(uv lock *), Bash(uv sync *), Bash(make test *), Bash(uv run mypy *), ]

Your task

Upgrade all Python dependencies and verify nothing is broken.

Step 1: Upgrade the lock file

Run uv lock --upgrade --exclude-newer "7 days" to upgrade all dependencies to their latest compatible versions (with a 7-day cooldown to mitigate supply-chain attacks).

Review the output for any resolution errors. If there are conflicts, report them to the user and ask how to proceed before continuing.

Step 2: Sync the environment

Run uv sync to install the upgraded dependencies into the virtual environment.

Step 3: Run post-upgrade checks

Run these checks sequentially, stopping if any step fails:

  • Type checking: Run uv run mypy . and report any new type errors. These may be caused by updated type stubs or changes in library APIs.
  • Tests: Run make test to verify the test suite still passes.

Step 4: Summarize and commit

Summarize what was done:

  • Which packages were upgraded (notable version changes)
  • Whether any type errors were introduced
  • Whether all tests passed
  • Any issues that need manual attention

If there were failures, present the issues and ask how the user wants to proceed.

If everything passed, ask the user if they'd like to commit the changes. If yes, commit using the /commit skill.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/upgrade-python-dependencies-mte1liab' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/upgrade-python-dependencies-mte1liab/download' --output '.skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md.part' && mv '.skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md.part' '.skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md' && test -s '.skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/upgrade-python-deps' && cp -R '.skill-downloads/upgrade-python-dependencies-mte1liab' '.claude/skills/upgrade-python-deps'

Cursor
test -f '.skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md' && test -s '.skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/upgrade-python-deps' && cp -R '.skill-downloads/upgrade-python-dependencies-mte1liab' '.cursor/skills/upgrade-python-deps'

Codex
test -f '.skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md' && test -s '.skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/upgrade-python-deps' && cp -R '.skill-downloads/upgrade-python-dependencies-mte1liab' '.agents/skills/upgrade-python-deps'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/upgrade-python-dependencies-mte1liab'

openskills read 'upgrade-python-dependencies-mte1liab'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/upgrade-python-dependencies-mte1liab/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills