pulumi-upgrade-provider
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 this skill does
# Pulumi Upgrade Provider ## Overview Run `upgrade-provider`, fix known failures, and rerun until success. Keep git operations read-only in the repo; the tool owns branch/commit/PR state. ## Run Loop 1. Create output directory: ```bash mkdir -p .pulumi ``` 2. Run from repo root: ```bash upgrade-provider $ORG/$REPO --repo-path . > .pulumi/upgrade-provider-stdout.txt 2> /dev/null ``` 3. Wait for completion (can take up to 10 minutes). 4. Check for errors by scanning `.pulumi/upgrade-provider-stdout.txt` lines starting with `error: `. 5. If failed, fix using this skill's `references/upgrade-provider-errors.md` (from the skill folder, not the repo), then rerun. For upstream `go get` failures involving ignored `replace` directives or `unknown revision v0.0.0`, rerun with `--target-version` after applying the documented `provider/go.mod` replacements; preserve the original major/non-major intent and add `--major` only for actual major version upgrades. 6. If a fix requires creating/amending/removing/rebasing patches, use the `upstream-patches` skill for the patch workflow. 7. If you fixed a conflict, report exact edits (file paths + concrete changes or preserved intent). 8. If the upgrade changed patches, run `./scripts/upstream.sh checkout` and review applied `upstream` commits: - List commit SHAs/titles from `upstream`. - Summarize the intent of each commit in plain language. - Call out any behavioral changes or risks. 9. On success, proceed to Post-run Tasks. ## When to Stop and Report Failure Stop iterating and report failure if any of these conditions are met: 1. **Command not found (exit code 127)**: The `upgrade-provider` tool is not in PATH. 2. **Same error 3 times**: You've attempted to fix the same error 3 times without success. 3. **Unknown error pattern**: The error is not covered in `references/upgrade-provider-errors.md` and you cannot determine a safe fix. 4. **Requires human judgment**: The fix needs user input, such as: - Choosing between multiple valid approaches - Breaking changes that affect public API - Deprecation strategies - Architectural decisions about module organization When stopping, report: 1. The error(s) encountered. 2. What fixes were attempted (with file paths and changes). 3. Why human intervention is needed. 4. Any partial progress. ## Post-run Tasks The tool creates a PR on successful upgrade. 1. MUST fetch the PR URL for the current branch using read-only commands: ```console gh pr view --json url --jq .url || gh pr list --head "$(git branch --show-current)" --json url --jq '.[0].url' ``` 2. MUST append a "Fixes applied to unblock upgrade" section to the existing PR body if any fixes were applied (do not overwrite): ```console repo=$(gh repo view --json nameWithOwner --jq .nameWithOwner) pr_number=$(gh pr view --json number --jq .number) gh pr view --json body --jq .body > /tmp/pr_body.txt cat <<'EOF' >> /tmp/pr_body.txt --- ### Fixes applied to unblock upgrade - <list concrete unblocker edits here, with file paths and intent> EOF gh api -X PATCH "repos/$repo/pulls/$pr_number" --raw-field body="$(cat /tmp/pr_body.txt)" ``` Use REST (`gh api`) instead of `gh pr edit` to avoid GraphQL project-card errors. Keep existing body content; only append. ## Notes - `git rebase --continue --no-edit` is not supported in older git versions. Use `git rebase --continue` and accept the existing commit message. - To avoid the editor prompt during `git rebase --continue`, run it with `GIT_EDITOR=true` (or `GIT_EDITOR=:`). ## Guardrails - Never commit, push, or create branches manually; only run read-only git commands. - `./scripts/upstream.sh checkout|rebase|check_in` are allowed because the tool manages git state. - Do not stash changes; the tool manages git state. ## References - Use this skill's `references/upgrade-provider-errors.md` (from the skill folder, not the repo) for patch conflict, ignored upstream replacement, vendored upstream dependency, .NET duplicate file, and new module mapping fixes.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.