upgrade-python-deps

upgrade-python-deps is a skill for Claude Code, Codex from saaspegasus/django-boilerplate. It costs 23 tokens per session (553 once invoked), scanned A, original, MIT.

A Python dependency update procedure using uv, a Python project and package management tool, followed by environment checks.

In plain words
What is it for?
Use it to upgrade a project's Python packages, resolve conflicts, sync the virtual environment, and check that the project still works.
Why use it?
It updates compatible package versions while using a seven-day cutoff to reduce exposure to very recent supply-chain problems. It also prevents uv from silently discarding the lock file's chosen versions.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/saaspegasus/django-boilerplate/upgrade-python-deps
Any agent
npx skills add saaspegasus/django-boilerplate --skill upgrade-python-deps
Clone the repo
git clone --depth 1 https://github.com/saaspegasus/django-boilerplate

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upgrade-python-deps

README.md
[![agentmods](https://agentmods.dev/badge/skills/saaspegasus/django-boilerplate/upgrade-python-deps.svg)](https://agentmods.dev/skills/saaspegasus/django-boilerplate/upgrade-python-deps)
Your own site
<a href="https://agentmods.dev/skills/saaspegasus/django-boilerplate/upgrade-python-deps"><img src="https://agentmods.dev/badge/skills/saaspegasus/django-boilerplate/upgrade-python-deps.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 553 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00023 $0.00553
Opus 5 $0.00012 $0.00277
Sonnet 5 $0.00005 $0.00111
Haiku 4.5 $0.00002 $0.00055

Measured 5d ago against content hash d0f49210dcc6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

upgrade-python-deps scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/upgrade-python-deps/SKILL.md · 64 lines

What it actually says

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:

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 64 lines · 0 tokens per session scan A d0f49210dcc6

Subscribe to this mod's changes

upgrade-python-deps is a skill published in the GitHub repository saaspegasus/django-boilerplate (166 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 553 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.