
Segmenting Datacloud
This handles the audience and insight layer of Salesforce Data Cloud: creating segments, publishing them, managing calculated insights, and troubleshooting the member counts or SQL when things don't add up. You'll reach for it after your DMOs and identity resolution are in place but before you activate anything downstream. It wraps the sf data360 segment and calculated-insight commands, forces you to verify with counts instead of assuming success, and includes a readiness classifier that checks whether your org is actually ready for segment work. The biggest gotcha is that segment SQL is not SOQL, and the members command returns opaque IDs, so you'll end up writing joins when you need readable details. Solid if you're doing repeatable audience builds with JSON definitions.
- skills.sh installs
- 518
- GitHub stars
- 705
- last updated
- Jul 14, 2026
Install
$ npx -y skills add forcedotcom/afv-library --skill segmenting-datacloud --agent claude-codeInstalls into .claude/skills of the current project.
Files
This handles the audience and insight layer of Salesforce Data Cloud: creating segments, publishing them, managing calculated insights, and troubleshooting the member counts or SQL when things don't add up. You'll reach for it after your DMOs and identity resolution are in place but before you activate anything downstream. It wraps the sf data360 segment and calculated-insight commands, forces you to verify with counts instead of assuming success, and includes a readiness classifier that checks whether your org is actually ready for segment work. The biggest gotcha is that segment SQL is not SOQL, and the members command returns opaque IDs, so you'll end up writing joins when you need readable details. Solid if you're doing repeatable audience builds with JSON definitions.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/afv-library
- First seen
- Jun 3, 2026
More from forcedotcom/afv-library
All 58- Building Omnistudio Flexcard511
- Analyzing Omnistudio Dependencies510
- Building Omnistudio Callable Apex509
- Building Omnistudio Integration Procedure509
- Deploying Omnistudio Datapacks509
- Modeling Omnistudio Epc Catalog509
- Building Omnistudio Omniscript508
- Building Omnistudio Datamapper507
- Trigger Refactor Pipeline470
- Generating Apex1.6K
- Generating Apex Test1.6K
- Generating Custom Field1.6K
- Generating Custom Object1.6K
- Generating Flow1.6K
- Generating Permission Set1.6K
- Building Ui Bundle App1.5K
- Building Ui Bundle Frontend1.5K
- Deploying Ui Bundle1.5K
- Developing Agentforce1.5K
- Generating Custom Application1.5K
- Generating Custom Lightning Type1.5K
- Generating Custom Tab1.5K
- Generating Flexipage1.5K
- Generating Lightning App1.5K