/dx-packaging:dx-packaging-move-to-2gp-migratefrom Salesforce Packaging
Finalizes the irreversible Move-to-2GP cutover for a converted 1GP managed Salesforce package, dispatching via Connect API after eligibility checks and user affirmations.
Ships in Salesforce Packaging. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Finalize the irreversible, one-way Move-to-2GP cutover for a converted 1GP managed package — afterward, new major/minor 1GP versions can NEVER be created. Use when an ISV admin asks to move a 1GP package to 2GP development. The agent dispatches the finalize directly via the packaging Connect API (POST /connect/packaging/package/{packageId}/finalize-move-to-2gp, shipped 266) after clearing the eligibility + conversion/subscriber-migration-testing gates and obtaining the three explicit affirmations the endpoint requires; it then wire-verifies the result against PackageConversion.EndDate (read-only Tooling exposure, shipped 264).
BACKEND / VERSIONING MECHANICS (relocated from the discover card — describe-only, never shown on the card):
/udd/AllPackage/viewAllPackage.apexp (any authenticated browser session to the packaging org reaches it), which hosts the "Move to Second-Generation Managed Packaging" dialog and its Proceed action. This remains the fallback for orgs on a pre-266 release.sf package1 version create nor via the major/minor upload flow on viewAllPackage.apexp; all new major/minor innovation must use 2GP via sf package version create. Customers running on prior 1GP versions are unaffected.sf package version create, so their absence immediately post-finalize is expected, not a failure signal (i.e. there is no Package2Version-based wire-verify; EndDate is the reliable signal). verify-finalize-by-user-confirmation remains available as an optional human cross-check but is no longer the only verification surface.sf-specific): only the 1GP DE (packaging) org is genuinely required — it backs the 266 Connect finalize endpoint, the read-only PackageConversion wire-verify (264), the 1GP-side eligibility query (MetadataPackageVersion), and the browser Setup page for the pre-266 fallback. Reachability can come from an sf alias OR any valid bearer token for the org (raw REST); the skill is not coupled to the sf CLI. The DevHub org (Package2 / Package2Version) is OPTIONAL — it only enables the proactive eligibility pre-check; when it is absent the finalize endpoint still validates eligibility server-side (a not-yet-converted/not-promoted package → 400), so the skill can proceed DevHub-less. This also sidesteps the multi-org-auth burden of skills that hard-require two authenticated orgs.Preconditions:
sf alias is the convenient way to authenticate, but the skill is NOT coupled to the sf CLI: any caller that can present a valid bearer token for this org (e.g. a raw REST call) works equally. The 1GP DE org hosts MetadataPackageVersion (the authoritative highest-Released 1GP version for the eligibility gate), is the org the finalize Connect API endpoint (266) runs against, hosts the read-only PackageConversion Tooling exposure (264) the wire-verify queries, and is the org the pre-266 manual browser fallback opens. (check: PackagingOrgAuthenticated)DevHubOrgAuthenticated)UserPermissions.CreatePackaging)ConversionTestingComplete)sf package version retrieve --package 04tXXX --output-dir my-folder --target-dev-hub <devhub> to retrieve, then edits sfdx-project.json's versionName, versionNumber, and ancestorVersion. This is preparatory work for ongoing 2GP development AFTER finalize, but the doc places it in the workflow sequence — the agent should remind the user. (check: PackageSourceRetrievedAndProjectFileUpdated)Operational rules:
sf CLI: an sf alias is convenient, but any valid bearer token for the org works for a raw REST call. Ask the user for the packaging-org alias (and, if they want the eligibility pre-check, the DevHub alias) at the start if not already provided; sf org list --json confirms what's authed. If the packaging org is missing, instruct the user to make it reachable (e.g. sf org login web --alias <name>) and wait. If only DevHub is missing you may still finalize — skip the DevHub-side eligibility queries and rely on the endpoint's server-side validation (a not-yet-converted/not-promoted package returns a 400 with a specific reason), and tell the user the proactive pre-check was skipped.
MULTI-ORG DISPATCH (read once, important): this workflow spans two orgs — the 1GP DE (packaging) org and the DevHub org. Each step's invocation block carries a target_org field naming which org the call must hit ({packaging_org_alias} vs {devhub_alias}); route each call to the org its target_org names rather than assuming a single org for the whole workflow. Route to the DevHub org: discover-package-on-devhub, check-eligibility-2gp-converted-released, and check-already-done. Route to the packaging org: check-eligibility-1gp-released, finalize-move-to-2gp, and verify-finalize-on-packaging-org. If your execution channel can only reach one connected org at a time, run each off-target read-only step against the org named in its target_org before dispatching the finalize against the packaging org; a CLI-driven runner can map that routing onto its own tooling. A step sent to the wrong org returns empty or misleading results.
TWO ROOT INTENTS — pick by user phrasing.
INTENT A — "tell me how to move my package to 2GP" (planning /
education): walk the user through the full sequence —
discover-package-on-devhub → check-eligibility-1gp-released →
check-eligibility-2gp-converted-released → check-already-done →
remind-of-prerequisites (testing, source retrieval) → describe the
manual finalize step in Setup. Treat this as a planning
conversation, NOT a dispatch action.After every write operation, confirm the effect by re-reading state:
finalize-move-to-2gp: call verify-finalize-on-packaging-org directly (normal 266+ path) OR verify-finalize-by-user-confirmation then verify-finalize-on-packaging-org (pre-266 manual fallback only).Read Operations reference before executing this workflow. It contains the original operation definitions, dependencies, inputs, and verification instructions.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/dx-packaging-push-upgrade-configureUse 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./dx-pkg-post-install-configureUse this skill to automate managed package post-install configuration. Package-agnostic — works with any managed package (LMA, FMA, work.com, Certinia, etc.). TRIGGER when: user installs a managed package and needs post-install configuration, mentions LMA/FMA/work.com post-install setup, asks to configure permission sets/FLS/page layouts for an installed package, says 'post-install', 'package setup', 'configure LMA', 'set up FMA', 'post-install steps'. DO NOT TRIGGER for: standalone permission set assignment (use dx-org-permission-set-assign), generating permission set metadata XML (use platform-permission-set-generate), package installation, or org switching.npx claudepluginhub forcedotcom/sf-skills --plugin dx-packagingOther plugins' skills for the same job