Salesforce AI Skills for Scratch Orgs

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 covering 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.

Note

Sample prompts:

  • “Compare ExampleOrgA against ExampleOrgB and show me the drift report.”
  • “What’s different between the metadata of ExampleOrgA and ExampleOrgB?”
  • “Diff my two orgs — I want to see metadata, permissions, and license differences.”
  • “Analyze ExampleOrgB. What’s in this org?”
  • “Give me a full inventory of ExampleOrgA.”
  • “What metadata, packages, and permissions are in my org?”
dx-org-manage

Manage your scratch orgs with these tasks:

  • Create a scratch org from a scratch org definition file, an org snapshot, an org shape, or with just the edition defined.
  • List your scratch orgs.
  • Display information about a scratch org, including its alias, username, org ID, URL, status, and edition.
  • Resume the creation of an incomplete scratch org.
  • Delete a scratch org.
  • Open a scratch org.

Sample prompts:

  • “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.

Manage your org shapes with these tasks:

  • Create a shape from a source org.
  • List your org shapes.
  • Delete an org shape.

Sample prompts:

  • “Create the shape of this org.”
  • “List all org shapes.”
  • “Delete the org shape of ExampleTargetOrg.”
dx-org-snapshot-manage

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.

Sample prompts:

  • “When does my trial org expire?"
  • "Is my trial still active or has it expired?"
  • "Which of my orgs are expiring soon?"
  • "Set up a cron job for expiring orgs."
  • "Back up my org before it expires."
  • "How do I renew my Developer Edition org?”