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
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.shcommands forinit,checkout,rebase -i,rebase -o, andcheck_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-providerruns 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 -yInstalls 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
| Command | Description |
|---|---|
./scripts/upstream.sh init | Initialize upstream and apply patches to working directory |
./scripts/upstream.sh init -f | Destructively discard checkout/rebase state and re-initialize upstream |
./scripts/upstream.sh checkout | Create branch with patches as commits for editing |
./scripts/upstream.sh rebase -i | Interactively edit patch commits |
./scripts/upstream.sh rebase -o <commit> | Rebase patches onto a new upstream commit |
./scripts/upstream.sh check_in | Write 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 12Similar to Upstream Patches
More Git & Releasespulumi-upgrade-providerSkillpulumi/agent-skills723 installsUpgrade a Pulumi provider repository with the upgrade-provider tool, fixing failures until a local result is ready.
provider-upgradeSkillpulumi/agent-skills919 installsUpgrades a Pulumi provider to a newer version, then reconciles the resulting preview diff with the code.
gh-stackSkillgithub/gh-stack23.6K installsManages stacked PRs and splits multi-part work into dependent, reviewable branch layers with gh-stack.
Git CourerMCP serveralejandro-m-p46 starsGit Courer gives agents a safe, structured interface to Git with automatic backups before every mutation.
git-pluginPluginlaurigates/claude-plugins60 starsGit workflows - commits, branches, PRs, issue processing, conflict resolution, and repository management