agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
ALWAYS USE THIS SKILL to create, check the status of, list, or delete scratch org snapshots. A snapshot is a point-in-time copy of a scratch org's metadata AND data, referenced by name in the `snapshot` field of a scratch org definition file. Use when the user asks to
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill dx-org-snapshot-manage --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill dx-org-snapshot-manage -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill dx-org-snapshot-manage -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill dx-org-snapshot-manage -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill dx-org-snapshot-manage -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill dx-org-snapshot-manage -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill dx-org-snapshot-manage -a windsurf -y
name: dx-org-snapshot-manage
description: "ALWAYS USE THIS SKILL to create, check the status of, list, or delete scratch org snapshots. A snapshot is a point-in-time copy of a scratch org's metadata AND data, referenced by name in the `snapshot` field of a scratch org definition file. Use when the user asks to create/take a snapshot, check a snapshot's status or creation progress, list/show/view existing snapshots (including filtering for snapshots expiring soon), or delete/remove a snapshot. Requires a Dev Hub with Scratch Org Snapshots enabled. DO NOT TRIGGER for creating org shapes (use dx-org-shape-manage) or for creating scratch orgs, including from an existing snapshot via `--snapshot` (use dx-org-manage)."
metadata:
version: "1.0"
domains: ["Developer Experience"]
minApiVersion: "60.0"
relatedSkills:
- "dx-org-manage"
- "dx-org-shape-manage"
cliTools:
- tool: ["sf"]
semver: ">=2.0.0"
- tool: ["jq"]
semver: ">=1.6"
accessCheck: "OrgPreferences.ScratchOrgSnapshotPref"Coordinates the full lifecycle of Salesforce scratch org snapshots — **create**, **get** (status), **list**, and **delete** — via `sf org create snapshot`, `sf org get snapshot`, `sf org list snapshot`, and `sf org delete snapshot`. A snapshot is a point-in-time copy of a scratch org (its metadata **and** data) that you reference by name in a scratch org definition file to spin up new orgs from saved state.
---
**Use ONLY the Bash tool** to execute the `sf org ... snapshot` commands. Do NOT use MCP tools — ignore them completely.
**Output artifacts for eval/testing:** ALWAYS write the command's complete JSON response to a file when an output directory is available. Do NOT ask the user what file to write — this skill defines the filenames. After executing each command: (1) if the user specified an output path, write there immediately; (2) otherwise run `[ -d force-app/main/adk-eval-output/ ] && echo 'force-app/main/adk-eval-output'` to detect the eval directory; (3) write the command's full, unmodified JSON response to `<output-dir>/<filename>` using these filenames: `create-snapshot-result.json`, `get-snapshot-result.json`, `list-snapshots-result.json`, or `delete-snapshot-result.json`. This is the generated output — write it without asking. (4) If no output directory can be found by either check, include the command's complete, unmodified JSON response verbatim (e.g. in a fenced code block) in your final reply instead of skipping the artifact.
---
This skill owns the **full snapshot lifecycle** — create, get status, list, and delete. It does not create scratch orgs.
| | Snapshot (this skill) | Org Shape (`dx-org-shape-manage`) | |--|----------|-----------| | Captures | Full point-in-time copy: metadata **and** data | Baseline config only: features, limits, edition, Metadata API settings | | Commands | `sf org create/get/list/delete snapshot` | `sf org create/list/delete shape` | | Referenced via | `snapshot` (name) in the scratch def file | `sourceOrg` (org ID) in the scratch def file | | Prerequisite | **Dev Hub** has Scratch Org Snapshots enabled | **Source org** has Org Shape for Scratch Orgs enabled | | Operates against | A **Dev Hub** (`--target-dev-hub`) | The **source org** (`--target-org`) |
---
---
Infer from the user's request:
---
1. **Identify the operation** and match it to the command pattern below. 2. **Resolve the Dev Hub** — if `--target-dev-hub` isn't provided, check the default with `sf config get target-dev-hub`. Never fabricate a placeholder Dev Hub name (e.g. `my-dev-hub`) — an unresolved hub is a hard stop; advise `sf org login web --set-default-dev-hub` instead. 3. **For create, confirm the source org and snapshot name** — the source must be a scratch org; the name must be unique in the Dev Hub and ≤15 characters. 4. **Execute via Bash tool** with the `--json` flag. 5. **Report the result** (see Output Expectations and the example files).
| Operation | User intent | Execute via Bash tool | |-----------|-------------|------------------------| | **Create** | Create snapshot with name only | `sf org create snapshot --source-org <orgId\|alias> --name <SnapshotName> --json` | | **Create*
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.