# Provider upgrade

> Provider upgrade is an open-source agent skill for cloud and infrastructure. Guides safe Pulumi provider upgrades and reconciles the resulting preview diffs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/pulumi/agent-skills/tree/main/pulumi/skills/provider-upgrade
- **Repository:** https://github.com/pulumi/agent-skills
- **GitHub stars:** 82
- **License:** Apache-2.0
- **Skill name:** provider-upgrade
- **Collection:** https://github.com/pulumi/agent-skills
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through bumping a Pulumi provider SDK to a newer version, whether the dependency lives in package.json, requirements.txt, pyproject.toml, go.mod or Pulumi.yaml. It works from a loop: update the dependency, run a preview with refresh and program execution, then sort every non-same resource into code-caused changes or provider-caused changes before deciding on a fix.

The agent is directed to treat an upgrade as a translation of existing code into the new API so that the preview shows no difference. It covers handling new resources that need imports, removed resource types that require state cleanup, and the rule that deletes and replacements must be resolved before a pull request is opened. Accepted remaining diffs need a citation from an upgrade guide or provider documentation, and the skill ends with a structured upgrade summary.

The skill references supporting files for diagnostic investigation and a provider-specific guide for pulumi-gcp v10. It is written for Pulumi programs and expects access to the Pulumi CLI and the project's package manager.

## When your agent uses it

> Upgrade any Pulumi provider to a newer version and reconcile the resulting diff. Use when users want to upgrade or update a provider (including editing package.json, requirements.txt, pyproject.toml, go.mod, or Pulumi.yaml to bump a provider SDK), check for breaking changes before or during an upgrade, fix resources that broke after a provider upgrade, or resolve unexpected replacements, creates, or deletes in a post-upgrade preview, including pulumi-gcp v10 errors such as a missing gcp.notebooks or gcp.iap.Brand type or a required secretDataWoVersion. Applies to all providers (aws, azure-native, gcp, kubernetes, aws-native, cloudflare, datadog, etc.) — not just Tier 1. Do NOT use for querying which stacks use what package versions; use skill `package-usage` for cross-stack audits. Do NOT use for general infrastructure tasks.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/pulumi/agent-skills/tree/HEAD/pulumi/skills/provider-upgrade)
- [License: Apache-2.0](https://github.com/pulumi/agent-skills/tree/HEAD/pulumi/skills/provider-upgrade)

## Features

- **Dependency bump workflow:** Steps for updating a provider version across npm, pip, Go, .NET, Java and YAML projects.
- **Diff categorization checkpoint:** Sorts each non-same preview resource into changes from code edits or from the provider upgrade itself.
- **Replacement and delete guards:** Prevents leaving destructive deletes or replacements in the final preview before a pull request.
- **Import and state cleanup guidance:** Explains when to adopt existing cloud resources with imports or remove stale resources from state.
- **Upgrade summary template:** Produces a structured report of code changes, remaining diffs and manual steps.
- **Provider-specific reference notes:** Points to a pulumi-gcp v10 guide and a diagnostic toolbox for investigating differences.

## Good for

- Upgrade the aws provider from one major version to the next
- Fix a preview that shows unexpected replacements after a provider bump
- Resolve a missing gcp.iap.Brand type after upgrading pulumi-gcp to v10
- Check whether a post-upgrade preview diff is a safe no-op
- Prepare a pull request summarizing a Pulumi provider upgrade

## Install

### Claude Code

This skill ships in the `pulumi` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add pulumi/agent-skills
/plugin install pulumi@pulumi-agent-skills
```

Or copy only this skill to `~/.claude/skills/provider-upgrade`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/provider-upgrade &&
cp -R "$tmp/pulumi/skills/provider-upgrade" ~/.claude/skills/provider-upgrade &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/provider-upgrade` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/provider-upgrade` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/provider-upgrade &&
cp -R "$tmp/pulumi/skills/provider-upgrade" ~/.agents/skills/provider-upgrade &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/provider-upgrade` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/provider-upgrade` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/provider-upgrade &&
cp -R "$tmp/pulumi/skills/provider-upgrade" ~/.cursor/skills/provider-upgrade &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/provider-upgrade` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/pulumi/agent-skills.git --path pulumi/skills/provider-upgrade
```

Or copy the folder to `~/.gemini/skills/provider-upgrade` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/provider-upgrade`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/provider-upgrade &&
cp -R "$tmp/pulumi/skills/provider-upgrade" ~/.copilot/skills/provider-upgrade &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/provider-upgrade` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/pulumi/agent-skills.git
```

Then copy `agent-skills/pulumi/skills/provider-upgrade` into your agent's skills folder as `provider-upgrade`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does the skill run pulumi up?

No. It instructs the agent not to run pulumi up, since upgrades change source code that should go through review and CI/CD deployment.

### Which preview flags does Provider upgrade require?

It requires running pulumi preview with --refresh and --run-program so that cloud state is refreshed and the program executes before diffing.

### Which providers does Provider upgrade apply to?

The description says it applies to all Pulumi providers, including aws, azure-native, gcp, kubernetes, aws-native, cloudflare and datadog, not only the Tier 1 providers.

### What should Provider upgrade not be used for?

The skill says not to use it for querying which stacks use which package versions, which is the job of the separate package-usage skill, or for general infrastructure tasks.

### How do I install Provider upgrade in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/provider-upgrade to use it in all your projects, or to .claude/skills/provider-upgrade in one project. Or install the pulumi plugin, which includes it: /plugin marketplace add pulumi/agent-skills, then /plugin install pulumi@pulumi-agent-skills.

### Does Provider upgrade run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Provider upgrade?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Provider upgrade?

The closest alternatives to Provider upgrade are Pulumi upgrade provider, Package usage, Pulumi debug failed operation, Pulumi best practices and Pulumi overview.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Pulumi upgrade provider](https://ai-powered.com/skills/pulumi-upgrade-provider): Pulumi upgrade provider is an open-source agent skill for developer tools.
- [Package usage](https://ai-powered.com/skills/package-usage): Package usage is an open-source agent skill for cloud and infrastructure.
- [Pulumi debug failed operation](https://ai-powered.com/skills/pulumi-debug-failed-operation): Pulumi debug failed operation is an open-source agent skill for cloud and infrastructure.
- [Pulumi best practices](https://ai-powered.com/skills/pulumi-best-practices): Pulumi best practices is an open-source agent skill for cloud and infrastructure.
- [Pulumi overview](https://ai-powered.com/skills/pulumi-overview): Pulumi overview is an open-source agent skill for cloud and infrastructure.
- [Pulumi delivery](https://ai-powered.com/skills/pulumi-delivery): Pulumi delivery is an open-source agent skill for cloud and infrastructure.
- [Dependency upgrade](https://ai-powered.com/skills/dependency-upgrade): Dependency upgrade is an open-source agent skill for developer tools.
- [Cloudformation to pulumi](https://ai-powered.com/skills/cloudformation-to-pulumi): Cloudformation to pulumi is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/provider-upgrade
