upgrade-risk

upgrade-risk is a skill for Claude Code from juanmhidalgo/claude-plugins. It costs 138 tokens per session (1,947 once invoked), scanned A, original, MIT.

A Python dependency and runtime upgrade risk report based on the repository's actual code. It checks usage, breaking changes, and indirect dependencies without installing or changing anything.

In plain words
What is it for?
Use it before upgrading a Python package or moving to a new Python version to get a go, no-go, or go-with-caveats recommendation.
Why use it?
It shows what an upgrade could break instead of relying only on release notes. Dry-run checks leave project files, lock files, and environments unchanged.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the deps plugin — 1 skill shipped together

Good fit Use it before upgrading a Python package or moving to a new Python version to get a go, no-go, or go-with-caveats recommendation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/juanmhidalgo/claude-plugins/upgrade-risk
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.

Any agent
npx skills add juanmhidalgo/claude-plugins --skill upgrade-risk
Clone the repo
git clone --depth 1 https://github.com/juanmhidalgo/claude-plugins

Made for: Claude Code.

Or install deps, the plugin that ships this one along with the rest of its 1 skill.

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-risk

README.md
[![agentmods](https://agentmods.dev/badge/skills/juanmhidalgo/claude-plugins/upgrade-risk/github.svg)](https://agentmods.dev/skills/juanmhidalgo/claude-plugins/upgrade-risk)
Your own site
<a href="https://agentmods.dev/skills/juanmhidalgo/claude-plugins/upgrade-risk"><img src="https://agentmods.dev/badge/skills/juanmhidalgo/claude-plugins/upgrade-risk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upgrade-risk

Your own site · 80×15
<a href="https://agentmods.dev/skills/juanmhidalgo/claude-plugins/upgrade-risk"><img src="https://agentmods.dev/badge/skills/juanmhidalgo/claude-plugins/upgrade-risk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,947 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00138 $0.01947
Opus 5.5 $0.00055 $0.00779
Sonnet 5.5 $0.00028 $0.00389
Haiku 4.5 $0.00014 $0.00195

Measured 24d ago against content hash 3046ed912883, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

upgrade-risk 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 24d 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.

deps/skills/upgrade-risk/SKILL.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Upgrade Risk Report

Answers one question: what breaks in this repo if we move to the target version. A changelog summary anyone could get from the release notes is a failed run.

<no_mutation priority="critical"> This skill installs nothing, upgrades nothing, and writes no file in the repo. Lock files, pyproject.toml and the virtualenv are left exactly as found — every resolver command below is a dry run. If the only way to answer something is to actually install, that item is reported as UNKNOWN with the command the user can run, not resolved by installing it. </no_mutation>

<evidence_rule priority="critical"> Every claim carries its grounding, and the verdict is capped by the weakest one:

  • APPLIES — requires a file:line from Phase 1. No citation, no APPLIES.
  • DOES NOT APPLY — requires a stated reason ("we never call X.render_to_string"; "grep over **/*.py plus settings modules found no reference").
  • UNKNOWN — everything else, naming what would close it. A grep that came back empty on a dynamic-import codebase is UNKNOWN, not DOES NOT APPLY.

Never state a version, a CVE id, or a changelog entry that did not come from a fetched page or a command's output in this run. Recalled-from-training release notes are wrong often enough to make the whole report worthless. </evidence_rule>

Phase 0 — Target, mode, manager

Parse $ARGUMENTS into one of two modes:

Mode Trigger Extra reading
PACKAGE anything that is not python X.Y —
PYTHON python 3.13, python3.12, "the Python version" python-version.md — read it before Phase 1

Then, from resolvers.md:

  1. Detect the package manager from lock files present (uv / poetry / pip-tools / pipenv / pip).
  2. Read the current version from the lock file, not from the constraint in pyproject.toml — >=4.2 is a range, not a version. No lock file ⇒ say so and use the installed version, flagging that CI may resolve differently.
  3. Resolve the target. If $ARGUMENTS gave no version, use the latest release and say which.

Read the full file on GitHub · 174 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 24d ago First seen · 174 lines · 138 tokens per session scan A 3046ed912883

Subscribe to this mod's changes

upgrade-risk is a skill published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 2d ago), licensed MIT. It adds 138 tokens to every session and 1,947 once invoked, about $0.0006 per session on Opus 5.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-09-23.

Related

Other skills, from other repositories

python-code-quality

Code quality checks, linting, formatting, and type checking commands for the Agent Framework Python codebase. Use this when running checks, fixing lint errors, or troubleshooting CI failures.

microsoft/agent-framework · 40 tokens

plugin-architecture-patterns

Design, implement, or diagnose Xberg plugin traits, typed registries, priority collisions, lifecycle, native extractors, and Alef-generated Python plugin bridges. Load for plugin-system work, not ordinary extractor parsing.

xberg-io/xberg · 43 tokens

test-corpus

The testdocuments submodule is a bucket-fetched fixture corpus that is not committed. This skill covers readtestfixture, missing fixtures, valid A/B controls, and submodule push order. Load before running Rust tests on a fresh clone, setting up an A/B control, adding a fixture-backed test, or diagnosing…

xberg-io/xberg · 68 tokens

idapython

IDA Pro Python scripting for reverse engineering. Use when writing IDAPython scripts, analyzing binaries, working with IDA's API for disassembly, decompilation (Hex-Rays), type systems, cross-references, functions, segments, or any IDA database manipulation. Covers ida modules (50+), idautils iterators, and common…

mrexodia/ida-pro-mcp · 77 tokens

stack-trace-python-probe

Internal helper for meta-stack-trace-investigator. Use when a Python traceback needs Python-specific root-cause checks, pytest reproducer guidance, and defensive patch targets.

opensquilla/opensquilla · 40 tokens

memory-optimization

Optimize Python code for reduced memory usage and improved memory efficiency. Use when asked to reduce memory footprint, fix memory leaks, optimize data structures for memory, handle large datasets efficiently, or diagnose memory issues. Covers object sizing, generator patterns, efficient data structures, and memory…

benchflow-ai/skillsbench · 60 tokens