Use AI Skills to manage the full lifecycle of your scratch orgs from your AI coding client.
AI Skills are packaged instruction sets that give AI coding clients specialized knowledge for building on the Salesforce platform. Skills are available from the forcedotcom/sf-skills repository in GitHub. See AI Skills in the Salesforce Development Plugin Guide for more information.
dx-org-analyze
Compare two Salesforce orgs and generate a drift report that covers metadata components, org permissions, system permissions, profiles, installed packages, licenses, and org limits. Analyze a single org and generate an inventory report covering its metadata, installed packages, org settings, org limits, licenses, system permissions, and deep data (flows and named credentials).
This skill can compare and analyze any orgs you’re authenticated to through the Salesforce CLI, including scratch orgs.
“Create a Developer Edition scratch org with the alias ExampleScratchOrg.”
“Create a scratch org with the alias ExampleScratchOrg.”
“Create a scratch org using the definition file config/scratch-def.json with the alias ExampleScratchOrg.”
“List my scratch orgs.”
“Create a scratch org from a snapshot named ExampleSnapshot with the alias ExampleScratchOrg.”
dx-org-shape-manage
An org shape includes the org’s features, Metadata API settings with boolean fields, edition, limits, and licenses. An org shape doesn’t include installed packages, Metadata API settings with integer or string fields, metadata types, or data. See Create a Scratch Org Based on an Org Shape for more information.
A scratch org snapshot is a point-in-time copy of a scratch org that includes installed packages, features, limits, licenses, metadata, and data. See Scratch Org Snapshots for more information.
Manage your scratch org snapshots with these tasks:
Create a scratch org snapshot.
Check the status of a scratch org snapshot.
List your snapshots.
Delete a snapshot.
Sample prompts:
“Create a snapshot named ExampleSnapshot from my scratch org ExampleScratchOrg.”
“Is ExampleScratchOrgSnapshot ready to use yet?”
“List all scratch org snapshots in my Dev Hub.”
“Delete the snapshot named ExampleScratchOrgSnapshot.”
dx-org-trial-expiration-check
Check when trial orgs, Developer Edition orgs, or scratch orgs expire or if they have already expired. Generate structured output (JSON or CSV) to create alerts or cron jobs for orgs that are about to expire. Get guidance on how to back up an org before it expires. Ask how to extend a trial.