agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use this skill to plan, schedule, and monitor Salesforce package push upgrades from a Dev Hub. Finds subscriber orgs via the PackageSubscriber object, resolves and validates the target package version, builds a best-practice batched schedule (pilot sandboxes, then staggered
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill dx-packaging-push-upgrade-configure --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill dx-packaging-push-upgrade-configure -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill dx-packaging-push-upgrade-configure -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill dx-packaging-push-upgrade-configure -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill dx-packaging-push-upgrade-configure -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill dx-packaging-push-upgrade-configure -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill dx-packaging-push-upgrade-configure -a windsurf -y
name: dx-packaging-push-upgrade-configure
description: "Use this skill to plan, schedule, and monitor Salesforce package push upgrades from a Dev Hub. Finds subscriber orgs via the PackageSubscriber object, resolves and validates the target package version, builds a best-practice batched schedule (pilot sandboxes, then staggered off-peak production batches), generates the per-batch org-ID CSV, and — only after explicit confirmation — runs the sf package push-upgrade CLI commands, then monitors PackagePushRequest, PackagePushJob, and PackagePushError. Supports 2GP managed, unlocked, and 1GP-to-2GP push migrations. TRIGGER when the user wants to push a package upgrade to subscribers, find who has a package installed and at what version, batch a rollout by region, or schedule, monitor, or abort a push upgrade. DO NOT TRIGGER for post-install configuration of an installed package (use dx-pkg-post-install-configure), creating or versioning a package, or installing a package into one org."
metadata:
version: "1.0"
domains: ["Developer Experience"]
relatedSkills:
- "dx-pkg-post-install-configure"
cliTools:
- tool: ["sf"]
semver: ">=2.0.0"
accessCheck: "UserPermissions.PermissionsPackaging2"Plan and drive a Salesforce **package push upgrade** end-to-end: find subscriber orgs, resolve the target version, batch a schedule per best practices, generate the org CSV, run the `sf` CLI `push-upgrade` commands **after explicit confirmation**, and monitor the results.
Push upgrades change a package **in the customer's org without their action**. This is outward-facing and hard to reverse. The default posture of this skill is **generate → preview → confirm → run**: never call `push-upgrade schedule` or `push-upgrade abort` until the user has seen the batch plan and the org list and said go. See `references/best-practices.md` before scheduling anything to production.
Gather these from the user's request; parse identifiers loosely wherever they appear:
If the Dev Hub is not given, **assume the default Dev Hub owns the package and verify by querying** rather than prompting up front: 1. Read the default from `sf config get target-dev-hub --json`. If none is set, skip to step 3. 2. Probe that hub for the package — reuse Phase 1's resolution query against the given `033`/`04t` (or `SELECT Id, Name FROM MetadataPackage` if only a name is known). If it returns the package, you've confirmed ownership and done Phase 1 in one step — proceed, naming the resolved Dev Hub. 3. Only if the probe **fails** (no matching rows, or an auth/permission error), fall back to asking: run `sf org list --json` and ask the user which Dev Hub owns the package, then re-probe.
This keeps the happy path unattended while still catching a wrong/empty hub before any subscriber query or plan. Push upgrade objects and commands run against the **Dev Hub / package-owning org**, not a subscriber org.
---
Establish these before doing anything else; ask only for what you can't infer:
1. **Package type** — 2GP managed, unlocked, or a 1GP→2GP migration (`--migrate-to-2gp`).
and the feature must be enabled via a **Salesforce Partner Support case**. Unlocked packages have push upgrades enabled by default. 2. **Dev Hub is authenticated** — `sf org display --target-org <devhub> --json`. If it fails, tell the user to run `sf org login web --alias <devhub>` and wait. 3. **Permission** — scheduling needs the *Create and Update Second-Generation Packages* user permission on the Dev Hub. If a later command fails with an auth/permission error, surface that as the likely cause.
Do not assume security-review/enablement status — if the user hasn't confirmed it, note it as a prerequisite they must verify, and continue building the plan (it's still valid).
---
Goal: end with a confirmed **033 package ID** and a **04t target version ID** that is a valid push target.
> If the Dev Hub was resolved via the default-hub probe in **Inputs** above, that probe already ran > this resolution query — you may already have the package/version in hand. Don't re-query; pick up at > validation (step 2).
1. If only the 04t is known, resolve its package and version number:
sf data query --target-org <devhub> \
--query "SELECT Id, MetadataPackageId, Name, MajorVersion, MinorVersion, PatchVersion, BuildNumber, ReleaseState, IsDeprecated FROM MetadataPackageVersion WHERE Id = '<04t>'"2. Validate the target version is a legal push target:
**active, non-beta** version.
push a change a normal upgrade couldn't make (e.g. deleting components, deprecated-then-removed). 3. If the user only gave a 033, list candidate versions so they can pick the target:
sf data query --target-org <devhub> \
--query "SELECT Id, Name, MajorVersion, MinorVersion, PatchVersion, BuildNumber, ReleaseState FROM MetadataPackageVersion WHERE MetadataPackageId = '<033>' AND ReleaseState = 'Released' ORDER BY MajorVersion DESC, MinorVersion DESC, PatchVersion DESC, BuildNumber DESC"See `references/objects.md`
This repository provides Salesforce agent skills, plugins, and sample apps for building applications.
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use this skill to upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec…
Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific…
Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates,…
Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage Agent Health Monitoring (AHM)…
Use to design an AI agent persona — identity, voice, tone, behavioral style, guardrails — and encode it into Agent Script (.agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.