PranavNagrecha/AwesomeSalesforceSkills / skills/admin/change-data-capture-admin
change-data-capture-admin
VerifiedUse when enabling, configuring, or monitoring Change Data Capture (CDC) entity selection, channel enrichment, and delivery usage limits from an admin perspective. Covers the PlatformEventChannel and PlatformEventChannelMember metadata, the standard ChangeEvents channel, custom __chn data channels, enrichedFields, filterExpression, destructive deselection, and PlatformEventUsageMetric / EventBusSubscriber monitoring. Trigger keywords: change data capture, CDC, entity selection, change event, platform event channel, channel member, enrichment, event delivery allocation. NOT for writing an Apex change-event trigger — use apex/change-data-capture-apex. NOT for subscribing an external system over Pub/Sub or CometD — use integration/change-data-capture-integration.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 24.6 KB |
| references/examples.md | markdown | 7.6 KB |
| references/gotchas.md | markdown | 15.1 KB |
| references/llm-anti-patterns.md | markdown | 6.3 KB |
| references/metadata-examples.md | markdown | 14.9 KB |
| references/well-architected.md | markdown | 6.3 KB |
| scripts/check_change_data_capture_admin.pyexecutable | script | 12.4 KB |
| templates/change-data-capture-admin-template.md | markdown | 3.3 KB |
templates/change-data-capture-admin-template.md
View on GitHub# Change Data Capture Admin — Work Template
Use this template when configuring or auditing Change Data Capture settings.
## Scope
**Skill:** `change-data-capture-admin`
**Salesforce edition:** [ ] Performance [ ] Unlimited [ ] Enterprise [ ] Developer
**Daily event delivery allocation, read from this org's CDC Allocations page:** ___
(Do not fill this from memory — the App Limits cheat sheet names the "Change Data Capture Allocations" set without printing its values.)
**Data Cloud active in org?** [ ] Yes [ ] No
## Pre-Configuration Check
- [ ] Checked for Data Cloud CRM Data Streams (if Data Cloud active)
- [ ] Identified which objects are Data Cloud-managed CDC (do not modify via Metadata API)
## CDC Entity Selection
| Object | Standard/Custom | CDC Enabled? | Channel URL |
|---|---|---|---|
| Account | Standard | [ ] | /data/AccountChangeEvent |
| Contact | Standard | [ ] | /data/ContactChangeEvent |
| | | [ ] | |
| | Custom | [ ] | |
## Channel Configuration
**Using per-object channels only?** [ ] Yes → No further channel configuration needed
**Using multi-entity channel?** [ ] Yes
| Setting | Value |
|---|---|
| Channel full name (`<Name>__chn`) | |
| Channel Type | data |
| Objects Included (`selectedEntity` per member) | |
| Enriched Fields (`enrichedFields`, API 51.0+) | |
| Filter Expression (`filterExpression`, API 56.0+) | |
- [ ] Enriched fields are persistent (not formula fields)
- [ ] Custom channel created via Tooling API or metadata
- [ ] Member full names have every doubled underscore collapsed (`Sales_chn_AccountChangeEvent`)
- [ ] Channel file and member files are in the same deployment package
## Deployable Source
| File | Present? |
|---|---|
| `platformEventChannels/<Name>__chn.platformEventChannel-meta.xml` (custom channels only) | [ ] |
| `platformEventChannelMembers/<Channel>_<Entity>ChangeEvent.platformEventChannelMember-meta.xml` (one per entity) | [ ] |
| `manifest/package.xml` listing both types | [ ] |
| `destructiveChanges.xml` prepared for the off switch | [ ] |
- [ ] `python3 scripts/check_change_data_capture_admin.py --manifest-dir <source dir>` run with no ERROR or WARN
## Usage Monitoring
**PlatformEventUsageMetric query configured?** [ ] Yes [ ] No
(`Name IN ('CHANGE_EVENTS_PUBLISHED','CHANGE_EVENTS_DELIVERED')`, `Value` as the count, `StartDate`/`EndDate` in UTC — see `references/metadata-examples.md`.)
**Enhanced Usage Metrics enabled in this org (API 58.0+)?** [ ] Yes → per-object figures available [ ] No → org-wide totals only
Estimated daily event volume for enabled objects: ___
Alert threshold (70% of the allocation recorded above): ___ events/day
- [ ] Monitoring alert configured
- [ ] Alert notification recipient: ___
## Post-Configuration Verification
- [ ] Selected objects appear in Setup > Integrations > Change Data Capture
- [ ] Integration team confirmed connection to correct channel URL
- [ ] Test events received by subscriber after updating a test record
- [ ] `EventBusSubscriber` shows `Status = 'Running'` for each in-org trigger/Flow on the topic
- [ ] External (Pub/Sub, CometD) subscribers confirmed by their owners — `EventBusSubscriber` does not list them
- [ ] Subscriber behaviour on `GAP_` change types agreed in writing
- [ ] Data Cloud CRM Data Streams still functioning (if applicable)
## Notes
(Record any Data Cloud interactions and decisions made.)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |