PluginBench
Skill
Fail
Audit score 45

orchestrating-datacloud

forcedotcom/sf-skills

Orchestrate multi-phase Salesforce Data Cloud pipelines: connect, prepare, harmonize, segment, and act.

What is orchestrating-datacloud?

This skill guides you through end-to-end Data Cloud workflows spanning ingestion, transformation, identity resolution, segmentation, and activation. Use it when you need to set up or troubleshoot a complete pipeline, manage data spaces and data kits, or decide which phase owns your task.

  • Route tasks to the correct Data Cloud phase (Connect, Prepare, Harmonize, Segment, Act, Retrieve)
  • Verify org readiness and plugin setup before mutation-heavy work
  • Discover existing data spaces, data streams, DMOs, segments, and activations
  • Troubleshoot cross-phase issues where the root cause spans multiple workflow stages
  • Provide deterministic JSON templates for data streams, mappings, identity resolution, and segments

How to install orchestrating-datacloud

npx skills add https://github.com/forcedotcom/sf-skills --skill orchestrating-datacloud
Prerequisites
  • Salesforce CLI (sf) installed
  • External sf data360 community plugin linked to your Salesforce CLI
  • Data Cloud-enabled org with authentication configured
Claude Code
Cursor
Windsurf
Cline

How to use orchestrating-datacloud

  1. 1.Verify the sf CLI and data360 plugin are installed and linked to your target org
  2. 2.Run the org classifier (diagnose-org.mjs) to understand feature readiness and any existing issues
  3. 3.Use read-only commands (data-space list, data-stream list, dmo list, segment list) to inspect current state
  4. 4.Identify which phase owns your task using the phase-routing table; delegate to the phase-specific skill if work is isolated to one phase
  5. 5.Use provided JSON templates (data-stream.template.json, dmo.template.json, mapping.template.json, etc.) to define new artifacts deterministically
  6. 6.Execute phase-specific commands or delegate to the appropriate phase skill
  7. 7.Verify results with targeted inspection commands after each phase completes

Use cases

Good for
  • Design and validate a CRM-to-unified-profile pipeline from raw source to activation
  • Diagnose why a segment count is wrong by tracing data quality across Connect→Prepare→Harmonize→Segment
  • Set up a new data space and bootstrap its first data kit with connectors and streams
  • Verify that identity resolution and data graphs are healthy before launching a segment
  • Troubleshoot an activation failure by checking upstream DMO mappings and segment membership
Who it's for
  • Data Cloud architects designing multi-phase pipelines
  • Platform engineers setting up or maintaining data spaces and data kits
  • Data stewards troubleshooting end-to-end data quality issues
  • Salesforce admins verifying org readiness before Data Cloud feature rollout

orchestrating-datacloud FAQ

When should I use this skill instead of a phase-specific skill?

Use this skill when you need multi-phase setup, cross-phase troubleshooting, data space/kit management, or help deciding which phase owns your task. Delegate to a phase-specific skill (connecting-datacloud, preparing-datacloud, etc.) once the work is localized to one phase.

What does the org classifier (diagnose-org.mjs) tell me?

It distinguishes empty-but-enabled modules, feature-gated modules, query-plane issues, and runtime/auth failures. Run it before mutation-heavy work to avoid wasting time on unavailable features.

Is sf data360 doctor a complete readiness check?

No. It checks the search-index surface but may fail on partially provisioned orgs even when read-only commands like connectors, DMOs, or segments still work. Use diagnose-org.mjs for a fuller picture.

What if my task involves only CRM SOQL or Apex?

Delegate to querying-soql or generating-apex. This skill is for Data Cloud product workflows, not standard CRM operations.

Where do I find JSON templates for data streams, DMOs, and segments?

Templates are in assets/definitions/ (e.g., data-stream.template.json, dmo.template.json, segment.template.json). Use them to define artifacts deterministically instead of one-off manual steps.

Full instructions (SKILL.md)

Source of truth, from forcedotcom/sf-skills.


name: orchestrating-datacloud description: "Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. 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 phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex)." compatibility: "Requires an external community sf data360 CLI plugin and a Data Cloud-enabled org" metadata: version: "1.0"

orchestrating-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 orchestrating-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:

PhaseUse this skillTypical scope
Connectconnecting-datacloudconnections, connectors, source discovery
Preparepreparing-dataclouddata streams, DLOs, transforms, DocAI
Harmonizeharmonizing-datacloudDMOs, mappings, identity resolution, data graphs
Segmentsegmenting-datacloudsegments, calculated insights
Actactivating-datacloudactivations, activation targets, data actions
Retrieveretrieving-datacloudSQL, search indexes, vector search, async query

Delegate outside the family when the user is:

  • extracting Session Tracing / STDM telemetry → observing-agentforce
  • writing CRM SOQL only → querying-soql
  • loading CRM source data → handling-sf-data
  • creating missing CRM schema → generating-custom-object or generating-custom-field
  • implementing downstream Apex or Flow logic → generating-apex, generating-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:


Core Operating Rules

  • Use the external sf data360 plugin 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.mjs over guessing from one failing command.
  • For sf data360 commands, suppress linked-plugin warning noise with 2>/dev/null unless the stderr output is needed for debugging.
  • Distinguish Data Cloud SQL from CRM SOQL.
  • Do not treat sf data360 doctor as a full-product readiness check; the current upstream command only checks the search-index surface.
  • Do not treat query describe as 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:

  • sf is installed
  • the community Data Cloud plugin is linked
  • the target org is authenticated

Recommended checks:

sf data360 man
sf org display -o <alias>
bash ./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 ./scripts/diagnose-org.mjs -o <org> --json

Only use a query-plane probe after you know the table name is real:

node ./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.json
  • assets/definitions/dmo.template.json
  • assets/definitions/mapping.template.json
  • assets/definitions/relationship.template.json
  • assets/definitions/identity-resolution.template.json
  • assets/definitions/data-graph.template.json
  • assets/definitions/calculated-insight.template.json
  • assets/definitions/segment.template.json
  • assets/definitions/activation-target.template.json
  • assets/definitions/activation.template.json
  • assets/definitions/data-action-target.template.json
  • assets/definitions/data-action.template.json
  • assets/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 list requires --connector-type.
  • dmo list --all is useful when you need the full catalog, but first-page dmo list is often enough for readiness checks and much faster.
  • Segment creation may need --api-version 64.0.
  • segment members returns opaque IDs; use SQL joins for human-readable details.
  • sf data360 doctor can fail on partially provisioned orgs even when some read-only commands still work; fall back to targeted smoke checks.
  • query describe errors such as Couldn't find CDP tenant ID or DataModelEntity ... not found are 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:

  1. Task classification
  2. Runtime status
  3. Readiness classification
  4. Phase(s) involved
  5. Commands or artifacts used
  6. Verification result
  7. 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

NeedDelegate toReason
load or clean CRM source datahandling-sf-dataseed or fix source records before ingestion
create missing CRM schemagenerating-custom-object, generating-custom-fieldData Cloud expects existing objects/fields
deploy permissions or bundlesdeploying-metadataenvironment preparation
write Apex against Data Cloud outputsgenerating-apexcode implementation
Flow automation after segmentation/activationgenerating-flowdeclarative orchestration
session tracing / STDM / parquet analysisobserving-agentforcedifferent Data Cloud use case

Reference Map

Start here

Phase skills

  • connecting-datacloud
  • preparing-datacloud
  • harmonizing-datacloud
  • segmenting-datacloud
  • activating-datacloud
  • retrieving-datacloud

Deterministic helpers