Skip to content
pulumi avatar

Upstream Patches

Manages patches for the Terraform provider submodule by owning-commit lookup, amend, removal, and upstream rebase.

CCM score
76 of 100
skills.sh installs
660
GitHub stars
82
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers finding the owning patch for a change, amending that commit, removing whole patches or selected hunks, and rebasing onto a new upstream commit
  • Includes ./scripts/upstream.sh commands for init, checkout, rebase -i, rebase -o, and check_in, plus non-interactive amend steps for agents
  • Enforces checkout and check-in around every upstream edit and amends the owning commit instead of creating new patches unless requested
  • Designed for upgrade-provider runs and manual patch work that needs conflict fixes or recovery from an interrupted checkout or rebase

Install

$ npx -y skills add pulumi/agent-skills --skill upstream-patches -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Upstream Patches

upstream/ is a git submodule pointing to the upstream Terraform provider. patches/ contains patch files applied on top of it. Use ./scripts/upstream.sh to manage patch state.

Default Behavior

  • If fixing a regression introduced by an existing patch, amend the owning patch commit.
  • Do not create a new patch unless the user explicitly asks.

Commands Reference

CommandDescription
./scripts/upstream.sh initInitialize upstream and apply patches to working directory
./scripts/upstream.sh init -fDestructively discard checkout/rebase state and re-initialize upstream
./scripts/upstream.sh checkoutCreate branch with patches as commits for editing
./scripts/upstream.sh rebase -iInteractively edit patch commits
./scripts/upstream.sh rebase -o <commit>Rebase patches onto a new upstream commit
./scripts/upstream.sh check_inWrite commits back to patches and exit checkout mode

Guardrails

Details

Repository
github.com/pulumi/agent-skills
Categories
Git & Releases, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the upstream-patches skill do for Terraform provider submodules?

It creates, amends, removes, and rebases patches for Terraform provider submodules using ./scripts/upstream.sh. It is used when upgrade-provider or manual patch work needs owning-patch lookup, patch conflict fixes, patch or hunk removal, or an upstream rebase.

How do I install the upstream-patches skill?

Run npx -y skills add pulumi/agent-skills --skill upstream-patches -y in a project to install it. Once installed, the agent can look up the patch that owns a change, amend that commit, and write the patch files back with check_in.

Should the upstream-patches skill create a new patch when fixing a regression?

No, by default it amends the owning patch commit that introduced the regression. It creates a new patch only when the user explicitly asks for one.

Who is the upstream-patches skill for?

It is for developers maintaining Terraform provider repositories that use an upstream submodule with patches applied on top. It belongs to the Git & Releases category on Claude Marketplaces.

More from pulumi/agent-skills

All 12

Similar to Upstream Patches

More Git & Releases