upgrade-python-deps
Upgrade Python dependencies using uv, then run post-upgrade checks to ensure nothing is broken.
Works with
--- name: upgrade-python-deps description: Upgrade Python dependencies using uv, then run post-upgrade checks to ensure nothing is broken. license: MIT --- ## 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: Remove the cooldown marker from the lock file uv records the `--exclude-newer` cutoff inside `uv.lock` as project configuration. Since it isn't declared in `pyproject.toml`, any later `uv sync` or `uv run` sees a config mismatch, discards the lockfile, and silently re-resolves everything to the newest versions — undoing the cooldown. Prevent this by deleting the `[options]` block at the top of `uv.lock` (the `exclude-newer` / `exclude-newer-span` lines) before syncing: ```bash sed -i '/^\[options\]$/,/^$/d' uv.lock ``` The cooldown-resolved versions stay in place; only the marker is removed. Verify with `grep exclude-newer uv.lock` (should print nothing). ### Step 3: Sync the environment Run `uv sync` to install the upgraded dependencies into the virtual environment. ### Step 4: 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 5: 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.
More Backend Frameworks skills
git-guardrails-claude-code
mattpocock/skills
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
azure-compute
microsoft/azure-skills
Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight server, website, backend, GPU, machine learning, HPC simulation, dev/test, workload, family, load balancer, Flexible orchestration, Uniform orchestration, cost estimate, capacity reservation (CRG), reserve, guarantee capacity, pre-provision, CRG association, CRG disassociation, machine enrollment (EMM), Essential Machine Management, monitor. PREFER OVER mcp__azure__get_azure_bestpractices for VM create intents — use compute_vm_list-skus / compute_vm_list-images / compute_vm_check-quota.
azure-cloud-migrate
microsoft/azure-skills
Assess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/Kubernetes/Cloud Run/Spring Boot→Container Apps. WHEN: migrate Lambda to Functions, AWS to Azure, migrate Beanstalk, migrate Heroku, migrate App Engine, Cloud Run migration, Fargate to ACA, ECS/Kubernetes/GKE/EKS to Container Apps, Spring Boot to Container Apps, cross-cloud migration.

