npx skills add ...
npx skills add forcedotcom/sf-skills --skill segmenting-datacloud
Salesforce Data Cloud Segment phase. Use this skill when the user creates or publishes segments, manages calculated insights, or troubleshoots audience SQL in Data Cloud. TRIGGER when: user creates or publishes segments, manages calculated insights, inspects segment counts or membership, or troubleshoots audience SQL in Data Cloud. DO NOT TRIGGER when: the task is DMO/mapping/identity-resolution work (use harmonizing-datacloud), activation work (use activating-datacloud), query/search-index work (use retrieving-datacloud), or Standard Data Model (STDM)/session tracing (use observing-agentforce).
npx skills add forcedotcom/sf-skills --skill segmenting-datacloud
Use this skill when the user needs audience and insight work: segments, calculated insights, publish workflows, member counts, or troubleshooting Data Cloud segment SQL.
Use segmenting-datacloud when the work involves:
sf data360 segment *sf data360 calculated-insight *Delegate elsewhere when the user is:
Ask for or infer:
orchestrating-datacloud skill before mutating audience assets: node ../orchestrating-datacloud/scripts/diagnose-org.mjs -o <org> --phase segment --json.--api-version 64.0 when segment creation behavior is unstable on newer defaults.segment members when readable member details are needed.--api-version 64.0.segment members returns opaque IDs; use SQL joins when human-readable member details are needed.sf data360 segment create -o <org> -f segment.json --api-version 64.0 2>/dev/null
sf data360 calculated-insight create -o <org> -f ci.json 2>/dev/nullsf data360 segment publish -o <org> --name My_Segment 2>/dev/null
sf data360 calculated-insight run -o <org> --name Lifetime_Value 2>/dev/nullsf data360 segment count -o <org> --name My_Segment 2>/dev/null
sf data360 query sql -o <org> --sql 'SELECT COUNT(*) FROM "UnifiedssotIndividualMain__dlm"' 2>/dev/nullSegment task: <segment / calculated-insight>
Action: <create / publish / inspect / troubleshoot>
Target org: <alias>
Artifacts: <definition files / commands>
Verification: <member count / query result / publish state>
Next step: <act / retrieve / follow-up>