upgrade-risk

upgrade-risk is a skill for Claude Code from BerriAI/litellm-skills. It costs 125 tokens per session (2,183 once invoked), scanned A, original, MIT.

A read-only check for assessing a live LiteLLM proxy before a software upgrade or configuration change. LiteLLM is a service that routes requests to language models.

In plain words
What is it for?
Use it to review upgrade risk or the impact of a config.yaml or Helm configuration change.
Why use it?
It shows which models, settings, integrations, traffic, release changes, and database migrations might be affected before anything is changed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is grep -il "bedrock\|langfuse\|/v1/messages\|mcp" ./upgrade-risk-notes/.litellm-docs/release_notes/v*/index.md.

Good fit Use it to review upgrade risk or the impact of a config.yaml or Helm configuration change.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/BerriAI/litellm-skills
agentmods
npx agentmods add skills/berriai/litellm-skills/upgrade-risk

Made for: Claude Code.

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/berriai/litellm-skills/upgrade-risk/github.svg)](https://agentmods.dev/skills/berriai/litellm-skills/upgrade-risk)
Your own site
<a href="https://agentmods.dev/skills/berriai/litellm-skills/upgrade-risk"><img src="https://agentmods.dev/badge/skills/berriai/litellm-skills/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/berriai/litellm-skills/upgrade-risk"><img src="https://agentmods.dev/badge/skills/berriai/litellm-skills/upgrade-risk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,183 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00125 $0.02183
Opus 5.5 $0.00050 $0.00873
Sonnet 5.5 $0.00025 $0.00437
Haiku 4.5 $0.00013 $0.00218

Measured yesterday against content hash 7c57cf998ee7, 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 1 finding 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/upgrade_risk.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

compatibility: Requires curl, git and python3. psql is optional, for reading settings stored in the database.
upgrade-risk/SKILL.md · 154 lines

How it starts

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

Upgrade Risk

Tell the user what a LiteLLM upgrade or config change will do to the traffic their proxy serves today. The check is read-only. It never changes the proxy.

Setup

export LITELLM_BASE_URL=https://your-proxy.example.com
export LITELLM_API_KEY=sk-...   # proxy admin key
SKILL_DIR=~/.claude/skills/upgrade-risk

If either variable is unset, ask the user to export it in their shell. Do not ask them to paste the key into the chat.

Settings saved from the Admin UI or the API live in the proxy's database, not in config.yaml. The profile reads most of them through the API. To read all of them, ask the user to also export a read-only connection string for the proxy's Postgres database. This needs psql on the machine.

export LITELLM_DATABASE_URL=postgresql://readonly_user:...@db-host:5432/litellm   # optional

Ask the user

  1. The change: a target version (for example 1.110.0), a config change (for example "switch langfuse to langfuse_otel", or a YAML diff), or both.
  2. Their config.yaml and Helm values, if they can share them with secrets removed. The API exposes only part of general_settings and none of litellm_settings, environment variables or deployment details, so without these files the check is weaker. Say so in the report.
  3. Traffic window in days (default 30).

Step 1: Profile the deployment

python3 $SKILL_DIR/scripts/upgrade_risk.py profile --days 30

The output has the running version, database and cache state, callbacks, models (with provider and non-secret parameter names), guardrails, MCP servers, router and cache settings, and traffic: request and failure counts per endpoint, provider, model group, MCP server and guardrail. Credential values, URLs and hostnames come back as <redacted>.

The proxy merges config.yaml with settings stored in its database, and the profile shows the merged result:

  • models, config_callbacks, guardrails, mcp_servers, settings and db_objects (credentials, agents, vector stores, search tools, prompts, policies) include entries that exist only in the database
  • general_settings lists each value the API exposes with its source: db or config.yaml. A setting can be set in both places, so a config.yaml change may not take effect while a database value overrides it, and the reverse
  • pass_through_endpoints lists each custom route and its source
  • db_config is the LiteLLM_Config table read directly: every general_settings, litellm_settings and router_settings value saved in the database, and the names of stored environment variables. It needs LITELLM_DATABASE_URL. If it says skipped or error, list database-only litellm_settings and general_settings as an unknown in the report

Read the full file on GitHub · 154 lines

Files

What ships with it

1 file 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. yesterday First seen · 154 lines · 125 tokens per session scan A 7c57cf998ee7

Subscribe to this mod's changes

upgrade-risk is a skill published in the GitHub repository BerriAI/litellm-skills (114 stars, last pushed yesterday), licensed MIT. It adds 125 tokens to every session and 2,183 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.

Related

upgrade-risk compared with skills from other repositories

upgrade-risk next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
upgrade-riskBerriAI/litellm-skillsSkill114yesterdayMITA125Claude Code
gke-compute-classesgoogle/skillsSkill26ktodayApache-2.0A100Claude Code, Codex
cloud-operator-admin-setupgoogle/skillsSkill26ktodayApache-2.0A118Claude Code, Codex
gke-reliabilitygoogle/skillsSkill26ktodayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill26ktodayApache-2.0A171Claude Code, Codex
nemo-automodel-launcher-configNVIDIA/skillsSkill4.3ktodayApache-2.0A30Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3ktodayMITA78Claude Code