# Pulumi upgrade provider

> Pulumi upgrade provider is an open-source agent skill for developer tools. Guides an agent through upgrading a Pulumi provider repo to a new upstream version. 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/package-maintenance/skills/pulumi-upgrade-provider
- **Repository:** https://github.com/pulumi/agent-skills
- **GitHub stars:** 82
- **License:** Apache-2.0
- **Skill name:** pulumi-upgrade-provider
- **Collection:** https://github.com/pulumi/agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through running the upgrade-provider tool against a Pulumi provider repository in no-submit mode, so the upgrade is built locally and nothing is pushed to GitHub during the run. It covers recording pre-existing local changes before the tool stages files, capturing the run log outside the repository, and scanning for error lines. When the tool fails, the agent is pointed to a bundled error reference for known failure modes such as patch conflicts, missing module mappings, and Plugin SDKv2 to Plugin Framework migrations.

After a successful local run, the skill has the agent review the resulting branch: summarizing changed paths, checking patch commits in the upstream checkout, and auditing replacement entries for unresolved TODO placeholders. Submission is done manually with a lease-protected force push and gh commands, and the skill keeps the release label that the tool proposes rather than changing it. It also defines when to stop and report instead of retrying.

The skill expects a Pulumi provider repository, the upgrade-provider command on the PATH, git, and the GitHub CLI. It refers to a companion upstream-patches skill for patch work.

## When your agent uses it

> Automate Pulumi provider repo upgrades with the `upgrade-provider` tool. Use when upgrading a pulumi provider repository to a new upstream version, running `upgrade-provider`, and addressing its common failure modes like patch conflicts or missing module mappings.

## 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/package-maintenance/skills/pulumi-upgrade-provider)
- [License: Apache-2.0](https://github.com/pulumi/agent-skills/tree/HEAD/package-maintenance/skills/pulumi-upgrade-provider)

## Features

- **Local upgrade run:** Runs upgrade-provider in no-submit mode and keeps retries from pushing anything to GitHub.
- **Error triage loop:** Scans the run log for error lines and retries fixes using a bundled reference of known failures.
- **Pre-upgrade baseline:** Records existing working tree changes so unrelated files do not end up in the upgrade branch.
- **Patch review workflow:** Checks out upstream patches, reviews the applied commits, and checks the tree back in.
- **Placeholder audit:** Blocks submission when replacement docs still contain TODO placeholders.
- **Reviewed PR submission:** Pushes with a lease-protected force push and creates or updates the PR with gh, keeping the proposed release label.

## Good for

- Upgrade this Pulumi provider to the latest upstream release
- Fix the patch conflict that blocked the provider upgrade
- Check the local upgrade branch before opening a pull request
- Add missing module mappings so upgrade-provider can finish

## 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/pulumi-upgrade-provider`:

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

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

### Codex

Copy the skill folder to `~/.agents/skills/pulumi-upgrade-provider` 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/pulumi-upgrade-provider &&
cp -R "$tmp/package-maintenance/skills/pulumi-upgrade-provider" ~/.agents/skills/pulumi-upgrade-provider &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/pulumi-upgrade-provider` 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/pulumi-upgrade-provider &&
cp -R "$tmp/package-maintenance/skills/pulumi-upgrade-provider" ~/.cursor/skills/pulumi-upgrade-provider &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/pulumi-upgrade-provider` 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 package-maintenance/skills/pulumi-upgrade-provider
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### What does Pulumi upgrade provider need to run?

It needs the upgrade-provider tool available in PATH, a Pulumi provider repository, git, and the GitHub CLI for the review and submission steps.

### Does Pulumi upgrade provider push changes automatically?

No. The run loop uses --no-submit and must not push or change GitHub. Pushing happens only in the manual submission step after review.

### Which release label does Pulumi upgrade provider apply to the PR?

It uses exactly the label that upgrade-provider emits, based on the upstream version change, and does not change it.

### When should the agent stop instead of retrying?

When the tool is missing (exit 127), the same error persists after three fix attempts, the error is not covered by the reference, patch state is ambiguous, or the fix needs a human decision.

### How do I install Pulumi upgrade provider in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pulumi-upgrade-provider to use it in all your projects, or to .claude/skills/pulumi-upgrade-provider 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 Pulumi upgrade provider 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 Pulumi upgrade provider?

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 Pulumi upgrade provider?

The closest alternatives to Pulumi upgrade provider are Provider upgrade, Upstream patches, Pulumi debug failed operation, Pulumi delivery and Package usage.

## Where this comes from

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

## Alternatives

- [Provider upgrade](https://ai-powered.com/skills/provider-upgrade): Provider upgrade is an open-source agent skill for cloud and infrastructure.
- [Upstream patches](https://ai-powered.com/skills/upstream-patches): Upstream patches is an open-source agent skill for developer tools.
- [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 delivery](https://ai-powered.com/skills/pulumi-delivery): Pulumi delivery is an open-source agent skill for cloud and infrastructure.
- [Package usage](https://ai-powered.com/skills/package-usage): Package usage 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 automation API](https://ai-powered.com/skills/pulumi-automation-api): Pulumi automation API 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.

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