Sf datacloud
Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
By- name:
- sf-datacloud
- description:
- Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
sf-datacloud: Salesforce Data Cloud Orchestrator
Use this skill when the user needs product-level Data Cloud workflow guidance rather than a single isolated command family: pipeline setup, cross-phase troubleshooting, data spaces, data kits, or deciding whether a task belongs in Connect, Prepare, Harmonize, Segment, Act, or Retrieve.
This skill intentionally follows sf-skills house style while using the external sf data360 command surface as the runtime. The plugin is not vendored into this repo.
When This Skill Owns the Task
Use sf-datacloud when the work involves:
- multi-phase Data Cloud setup or remediation
- data spaces (
sf data360 data-space *) - data kits (
sf data360 data-kit *) - health checks (
sf data360 doctor) - CRM-to-unified-profile pipeline design
- deciding how to move from ingestion → harmonization → segmentation → activation
- cross-phase troubleshooting where the root cause is not yet clear
Delegate to a phase-specific skill when the user is focused on one area:
| Phase | Use this skill | Typical scope |
|---|---|---|
| Connect | sf-datacloud-connect | connections, connectors, source discovery |
| Prepare | sf-datacloud-prepare | data streams, DLOs, transforms, DocAI |
| Harmonize | sf-datacloud-harmonize | DMOs, mappings, identity resolution, data graphs |
| Segment | sf-datacloud-segment | segments, calculated insights |
| Act | sf-datacloud-act | activations, activation targets, data actions |
| Retrieve | sf-datacloud-retrieve | SQL, search indexes, vector search, async query |
Delegate outside the family when the user is:
- extracting Session Tracing / STDM telemetry → sf-ai-agentforce-observability
- writing CRM SOQL only → sf-soql
- loading CRM source data → sf-data
- creating missing CRM schema → sf-metadata
- implementing downstream Apex or Flow logic → sf-apex, sf-flow
Required Context to Gather First
Ask for or infer:
- target org alias
- whether the plugin is already installed and linked
- whether the user wants design guidance, read-only inspection, or live mutation
- data sources involved: CRM objects, external databases, file ingestion, knowledge, etc.
- desired outcome: unified profiles, segments, activations, vector search, analytics, or troubleshooting
- whether the user is working in the default data space or a custom one
- whether the org has already been classified with
scripts/diagnose-org.mjs - which command family is failing today, if any
If plugin availability or org readiness is uncertain, start with:
- references/plugin-setup.md
- references/feature-readiness.md
scripts/verify-plugin.shscripts/diagnose-org.mjsscripts/bootstrap-plugin.sh
Core Operating Rules
- Use the external
sf data360plugin runtime; do not reimplement or vendor the command layer. - Prefer the smallest phase-specific skill once the task is localized.
- Run readiness classification before mutation-heavy work. Prefer
scripts/diagnose-org.mjsover guessing from one failing command. - For
sf data360commands, suppress linked-plugin warning noise with2>/dev/nullunless the stderr output is needed for debugging. - Distinguish Data Cloud SQL from CRM SOQL.
- Do not treat
sf data360 doctoras a full-product readiness check; the current upstream command only checks the search-index surface. - Do not treat
query describeas a universal tenant probe; only use it with a known DMO/DLO table after broader readiness is confirmed. - Preserve Data Cloud-specific API-version workarounds when they matter.
- Prefer generic, reusable JSON definition files over org-specific workshop payloads.
Recommended Workflow
1. Verify the runtime and auth
Confirm:
sfis installed- the community Data Cloud plugin is linked
- the target org is authenticated
Recommended checks:
sf data360 man
sf org display -o <alias>
bash ~/.claude/skills/sf-datacloud/scripts/verify-plugin.sh <alias>
Treat sf data360 doctor as a broad health signal, not the sole gate. On partially provisioned orgs it can fail even when read-only command families like connectors, DMOs, or segments still work.
2. Classify readiness before changing anything
Run the shared classifier first:
node ~/.claude/skills/sf-datacloud/scripts/diagnose-org.mjs -o <org> --json
Only use a query-plane probe after you know the table name is real:
node ~/.claude/skills/sf-datacloud/scripts/diagnose-org.mjs -o <org> --phase retrieve --describe-table MyDMO__dlm --json
Use the classifier to distinguish:
- empty-but-enabled modules
- feature-gated modules
- query-plane issues
- runtime/auth failures
3. Discover existing state with read-only commands
Use targeted inspection after classification:
sf data360 doctor -o <org> 2>/dev/null
sf data360 data-space list -o <org> 2>/dev/null
sf data360 data-stream list -o <org> 2>/dev/null
sf data360 dmo list -o <org> 2>/dev/null
sf data360 identity-resolution list -o <org> 2>/dev/null
sf data360 segment list -o <org> 2>/dev/null
sf data360 activation platforms -o <org> 2>/dev/null
4. Localize the phase
Route the task:
- source/connector issue → Connect
- ingestion/DLO/stream issue → Prepare
- mapping/IR/unified profile issue → Harmonize
- audience or insight issue → Segment
- downstream push issue → Act
- SQL/search/index issue → Retrieve
5. Choose deterministic artifacts when possible
Prefer JSON definition files and repeatable scripts over one-off manual steps. Generic templates live in:
assets/definitions/data-stream.template.jsonassets/definitions/dmo.template.jsonassets/definitions/mapping.template.jsonassets/definitions/relationship.template.jsonassets/definitions/identity-resolution.template.jsonassets/definitions/data-graph.template.jsonassets/definitions/calculated-insight.template.jsonassets/definitions/segment.template.jsonassets/definitions/activation-target.template.jsonassets/definitions/activation.template.jsonassets/definitions/data-action-target.template.jsonassets/definitions/data-action.template.jsonassets/definitions/search-index.template.json
6. Verify after each phase
Typical verification:
- stream/DLO exists
- DMO/mapping exists
- identity resolution run completed
- unified records or segment counts look correct
- activation/search index status is healthy
High-Signal Gotchas
connection listrequires--connector-type.dmo list --allis useful when you need the full catalog, but first-pagedmo listis often enough for readiness checks and much faster.- Segment creation may need
--api-version 64.0. segment membersreturns opaque IDs; use SQL joins for human-readable details.sf data360 doctorcan fail on partially provisioned orgs even when some read-only commands still work; fall back to targeted smoke checks.query describeerrors such asCouldn't find CDP tenant IDorDataModelEntity ... not foundare query-plane clues, not automatic proof that the whole product is disabled.- Many long-running jobs are asynchronous in practice even when the command returns quickly.
- Some Data Cloud operations still require UI setup outside the CLI runtime.
Output Format
When finishing, report in this order:
- Task classification
- Runtime status
- Readiness classification
- Phase(s) involved
- Commands or artifacts used
- Verification result
- Next recommended step
Suggested shape:
Data Cloud task: <setup / inspect / troubleshoot / migrate>
Runtime: <plugin ready / missing / partially verified>
Readiness: <ready / ready_empty / partial / feature_gated / blocked>
Phases: <connect / prepare / harmonize / segment / act / retrieve>
Artifacts: <json files, commands, scripts>
Verification: <passed / partial / blocked>
Next step: <next phase, setup guidance, or cross-skill handoff>
Cross-Skill Integration
| Need | Delegate to | Reason |
|---|---|---|
| load or clean CRM source data | sf-data | seed or fix source records before ingestion |
| create missing CRM schema | sf-metadata | Data Cloud expects existing objects/fields |
| deploy permissions or bundles | sf-deploy | environment preparation |
| write Apex against Data Cloud outputs | sf-apex | code implementation |
| Flow automation after segmentation/activation | sf-flow | declarative orchestration |
| session tracing / STDM / parquet analysis | sf-ai-agentforce-observability | different Data Cloud use case |
Reference Map
Start here
Phase skills
- sf-datacloud-connect
- sf-datacloud-prepare
- sf-datacloud-harmonize
- sf-datacloud-segment
- sf-datacloud-act
- sf-datacloud-retrieve
Deterministic helpers
<!-- Modified by Automation Skills on 2026-11-24: relative links to files that were not copied now point to the original repository. -->Open this reference as its own page
Data Cloud Feature Readiness
Use this guide when a Data Cloud command fails and you need to decide whether the issue is:
- runtime / plugin setup
- org authentication
- product provisioning
- feature gating
- empty-but-enabled configuration
- a bad table name or wrong probe
The goal is to detect first, classify second, and guide third instead of blindly executing a command and surfacing a raw error.
Core principle
Do not treat one failing command as proof that all of Data Cloud is unavailable.
Different command families hit different backend surfaces. A failure in one area can coexist with successful read-only access in another.
Examples:
sf data360 doctorchecks the search-index endpoint only.sf data360 query describechecks the query plane and requires a real DMO/DLO table name.sf data360 dmo listchecks a catalog/listing endpoint.sf data360 activation platformschecks the activation destination surface.
Recommended first step
Run the shared readiness classifier before mutation-heavy work:
node ~/.claude/skills/sf-datacloud/scripts/diagnose-org.mjs -o myorg --json
For retrieve/query work, only add a table probe when you already know the table name is real:
node ~/.claude/skills/sf-datacloud/scripts/diagnose-org.mjs -o myorg --phase retrieve --describe-table MyDMO__dlm --json
Signal matrix
| Signal | What it usually means | What to do next | What not to assume |
|---|---|---|---|
sf data360 man fails |
Runtime/plugin missing | Install or relink the community runtime | Do not debug org features yet |
sf org display -o <org> fails |
Org auth missing | Re-authenticate the org | Do not blame Data Cloud |
No results. |
Feature is reachable but currently empty | Continue with create/setup flow | Do not say the feature is disabled |
This feature is not currently enabled for this user type or org: [CdpXxx] |
Specific module is gated for the current org/user | Guide the user to setup/provisioning/permission review for that module | Do not say the entire product is disabled |
Couldn't find CDP tenant ID. Please enable CDP first. |
The query plane could not resolve a CDP tenant for that request | Re-check broader readiness with data-space list, dmo list, and doctor; then retry with a known table if appropriate |
Do not treat this as universal proof that all Data Cloud endpoints are off |
NOT_FOUND: DataModelEntity ... is not found |
The table name is not queryable in that org | Pick a real DMO/DLO from dmo list, dlo list, or dmo get |
Do not say the whole query feature is unavailable |
Request failed |
Generic endpoint failure or inconclusive response | Fall back to neighboring read-only probes | Do not stop after one generic failure |
High-signal feature gates
CdpDataStreams
Typical impact:
sf data360 data-stream list- prepare / ingestion workflows
Suggested guidance:
- review Data Cloud Setup provisioning
- review source connector readiness
- confirm the user has the right Data Cloud permissions
- for Salesforce CRM ingestion, confirm the connector/integration user has object + field read access in the source org
CdpIdentityResolution
Typical impact:
sf data360 identity-resolution list- harmonize / unified profile workflows
Suggested guidance:
- review harmonization and identity-resolution entitlements
- verify Data Cloud permission sets for the acting user
- confirm upstream DLO/DMO work is already healthy before retrying IR
CdpActivationTarget
Typical impact:
sf data360 activation-target list- downstream audience delivery setup
Suggested guidance:
- review Data Cloud activation permissions
- review target/destination setup in Data Cloud Setup
- confirm the org/edition actually exposes activation-target management for that user
CdpActivationExternalPlatform
Typical impact:
sf data360 activation platforms- platform catalog for destinations such as ads or storage targets
Suggested guidance:
- review Activation Targets setup
- review destination-specific authentication/configuration
- check whether the org exposes additional toggles in Data Cloud Setup → Feature Manager
CdpDataSpace
Typical impact:
sf data360 data-space list- core multi-space administration
Suggested guidance:
- review core Data Cloud provisioning and user access
- confirm the user is intended to administer/view data spaces
What is usually not fully programmatic
Do not promise a pure CLI flow for:
- initial Data Cloud tenant provisioning
- license assignment
- every org-wide Data Cloud enablement step
These commonly require Setup UI, provisioning, licensing, or account-level activation.
What is often programmatic after provisioning
Once the org is properly provisioned, many workflows are programmatic through sf data360, including:
- data-space listing / get / create / update
- DMO catalog inspection and some DMO mutations
- segment and calculated insight lifecycle operations
- activation target and data action target operations
- search-index lifecycle operations
- hybrid search and related retrieve-plane workflows on newer runtime versions
Exact coverage still depends on org entitlements and the user's permissions.
Known partial-automation gap
Some external database connectors can be created via API while the corresponding data-stream creation flow still requires UI steps or org-specific browser automation.
Practical guidance:
- treat connection creation and stream creation as separate capability checks
- do not assume a successful external connection create call means
data-stream createwill work for that connector - if the org relies on that path, guide the user toward manual UI creation or a locally validated Playwright/browser automation helper rather than promising a generic CLI-only workflow
User-facing guidance model
When blocked, respond in this order:
- Classify the failing surface — runtime, auth, provisioning, feature gate, empty state, or bad table
- Show the evidence — the specific command + high-signal error text
- Give the next setup step — Data Cloud Setup, permissions, Feature Manager, source-object permissions, destination auth, etc.
- Avoid false claims — don't say "Data Cloud is off" unless multiple core probes support that conclusion
Setup guidance to point users toward
Depending on the failing feature, guide users to review:
- Setup → Data Cloud Setup for core provisioning / Get Started flow
- Standard Data Cloud permission sets appropriate to the task (for example Architect/Admin vs activation-focused roles)
- Data Cloud Setup → Feature Manager for org-specific toggles or beta features that are actually exposed there
- Source org permissions for CRM ingestion users when streams/connectors depend on object/field access
- Activation target and destination authentication when activation features are partially enabled but not usable yet
Skill author checklist
Before telling the user a feature is unavailable:
- Did I run a targeted probe for this phase?
- Did I check at least one neighboring read-only probe?
- Did I avoid treating
doctoras a full product readiness check? - Did I avoid treating
query describeas a universal tenant probe? - Did I tell the user exactly what setup area to review next?
Open this reference as its own page
Data Cloud Community Plugin Setup
The sf-datacloud family uses a community sf data360 CLI runtime. sf-skills does not vendor or fork that plugin.
Why this setup exists
- keeps sf-skills focused on skills, prompts, docs, and templates
- lets the upstream runtime continue to evolve independently
- avoids MCP and keeps execution deterministic
Prerequisites
- Node.js 18+
- yarn
- Salesforce CLI (
sf) - git
- a Data Cloud-enabled org authenticated with
sf org login web -a <alias>
Recommended setup path
The command examples below assume the skill is installed under ~/.claude/skills/ via the full Claude Code installer. If you are working from a cloned sf-skills repo instead, run the same scripts from that checkout path.
If you use the Python installer, it can install this optional runtime for you:
python3 ~/.claude/sf-skills-install.py --with-datacloud-runtime
Or use the helper script directly:
bash ~/.claude/skills/sf-datacloud/scripts/bootstrap-plugin.sh
By default it clones the plugin into ~/.sf-community-tools/datacloud/sf-cli-plugin-data360, installs dependencies, compiles it, and links it into the local Salesforce CLI.
Manual setup
git clone https://github.com/Jaganpro/sf-cli-plugin-data360.git
cd sf-cli-plugin-data360
yarn install
npx tsc
node ~/.claude/skills/sf-datacloud/scripts/generate-manifest.mjs .
sf plugins link .
Verification
sf data360 man
bash ~/.claude/skills/sf-datacloud/scripts/verify-plugin.sh
bash ~/.claude/skills/sf-datacloud/scripts/verify-plugin.sh myorg
node ~/.claude/skills/sf-datacloud/scripts/diagnose-org.mjs -o myorg --json
For newer command families such as sf data360 query hybrid and recent pagination fixes, update the community runtime to the latest upstream commit by re-running the bootstrap helper.
sf data360 doctor is useful, but it is not the only readiness signal. On partially provisioned orgs it can fail even when other read-only Data Cloud commands still work. The helper script treats doctor as advisory and falls back to additional smoke checks.
Use diagnose-org.mjs when you need phase-specific readiness classification instead of a simple pass/fail check. It helps distinguish:
- empty-but-enabled modules
- feature-gated modules
- query-plane issues
- runtime/auth failures
Output-noise tip
When using linked community plugins, stderr can include warning noise. For normal usage, prefer:
sf data360 dmo list --all -o myorg 2>/dev/null
sf data360 segment list -o myorg 2>/dev/null
Troubleshooting
ESM auto-transpile warning
If you see Warning: @gthoppae/sf-cli-plugin-data360 is a linked ESM module and cannot be auto-transpiled, generate the oclif command manifest:
node ~/.claude/skills/sf-datacloud/scripts/generate-manifest.mjs ~/.sf-community-tools/datacloud/sf-cli-plugin-data360
This tells oclif to use pre-compiled output directly instead of attempting auto-transpilation. The npx oclif manifest alternative may fail on newer Node.js versions due to @oclif/core version mismatches.
Clone error references gthoppae/sf-cli-plugin-data360
If the clone failure mentions gthoppae/sf-cli-plugin-data360, your local ~/.claude/sf-skills-install.py copy is outdated. Refresh the installer first, then retry the optional runtime install:
python3 ~/.claude/sf-skills-install.py --force-update
python3 ~/.claude/sf-skills-install.py --with-datacloud-runtime
Or rerun the latest installer directly from GitHub:
curl -sSL https://raw.githubusercontent.com/Jaganpro/sf-skills/main/tools/install.py | python3 - --with-datacloud-runtime
Plugin not found after install
If sf was installed globally (with sudo), the default data directory may be root-owned. Set SF_DATA_DIR in your shell profile:
export SF_DATA_DIR="${HOME}/.local/share/sf"
Then re-run sf plugins link . from the plugin directory, or re-run the bootstrap script.
What to do if the plugin is missing
- run the bootstrap script
- re-open your shell if
sfplugin discovery is stale - verify with
sf data360 man - only then start live Data Cloud work
Setup guidance reminder
The runtime can help you detect missing capability, but it cannot fully replace Setup for:
- initial Data Cloud provisioning / tenant creation
- license assignment
- every org-wide feature enablement step
When a module is gated, guide users toward the right setup area instead of promising a fully programmatic enablement flow. See feature-readiness.md.
Scope reminder
This setup is for the Data Cloud product family:
sf-datacloudsf-datacloud-connectsf-datacloud-preparesf-datacloud-harmonizesf-datacloud-segmentsf-datacloud-actsf-datacloud-retrieve
For STDM/session tracing/parquet work, use sf-ai-agentforce-observability instead of this plugin-focused family.
More in this playbook
Cross crm opportunity sync
Coordinate opportunities and customer records across multiple CRMs while preserving attribution, visibility, commissions, and governance.
IntegrationsMIT Wade Foster + 1Co-founder & CEO @ ZapierInstall zapier
Install and connect Zapier, routing to the right surface (MCP, SDK, or CLI) for what the person needs. Use when someone says "install Zapier", "add Zapier", "connect Zapier", or "set up Zapier", or when they want an AI client (Claude, ChatGPT, Cursor) to use their apps, want to call Zapier from code, or want Zapier in the terminal.
IntegrationsMIT Wade Foster + 1Co-founder & CEO @ ZapierMcp sheet cache bridge
Keep Zapier Tables or another MCP-connected record store as the source of truth while Google Sheets-based tools read an event-driven cache tab.

