integration-eventing-cdc-configure
БесплатноБез исполняемых скриптовНе проверенUse to enable Salesforce Change Data Capture (CDC) on a standard or custom object, configure a custom event channel, set a filter expression, or add…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Managing Change Data Capture Enablement
Generate the metadata that subscribes Salesforce objects to Change Data Capture: PlatformEventChannelMember files for the default ChangeEvents channel or a custom channel, and PlatformEventChannel files for new custom channels. Covers enrichment fields, filter expressions, and the canonical naming and value formats that the Metadata API actually accepts (which differ from values that appear in many internal test fixtures and code-search hits).
Scope
- In scope: Generating
PlatformEventChannelMemberandPlatformEventChannelmetadata for CDC. Subscribing standard objects, custom objects, or both. Configuring enrichment fields. Configuring filter expressions. Defining custom data channels. - Out of scope: Publishing custom platform events (PE) — that's a different metadata type (
PlatformEvent). Pub/Sub API or external Kafka/Bayeux configuration. Pricing/limits guidance — refer the user to the CDC Developer Guide. Programmatic event-bus subscribers in Apex.
Clarifying Questions
Before generating, confirm with the user if not already clear:
- Which entity (or entities) need CDC enablement? Standard, custom, or both?
- Default channel (
ChangeEvents) or a custom channel? If custom, what's the channel label? - Any enrichment fields needed? (Lookup IDs that the consumer needs even when they didn't change.)
- Any filter expression needed? (A SOQL-WHERE-clause body that gates which change events emit.)
Required Inputs
Gather or infer before proceeding:
- Source entity API name(s) — e.g.
Account,Lead,Order__c. The skill internally translates this to the ChangeEvent entity name (see Workflow step 2). - Channel — either
ChangeEvents(default) or the developer name of a custom channel ending in__chn. - Enrichment fields (optional) — list of field API names on the source object whose values should be included in every change event.
- Filter expression (optional) — a predicate over fields on the change event payload (e.g.
Status__c != null).
Defaults unless specified:
- Channel:
ChangeEvents(the default CDC channel — no path prefix). - Enrichment fields: none.
- Filter expression: none.
If the user provides a clear, complete request, generate immediately without unnecessary back-and-forth.
Workflow
All steps are sequential. Do not skip or reorder.
Before generating anything, know the only valid CDC metadata types: CDC is expressed entirely through PlatformEventChannelMember (one per subscribed entity) and PlatformEventChannel (only for custom channels). Do NOT use <ChangeDataCapture>, .changeDataCapture-meta.xml, changeDataCapture/ directories, EnableChangeDataCapture, or ManagedEventSubscription — these are not in scope for CDC. If you find yourself writing any of them, stop and use a PlatformEventChannelMember file instead.
Identify the channel — if the user names a custom channel, you'll generate a
PlatformEventChannelfile (see step 4). Otherwise use the literal valueChangeEventsfor the default channel.Translate source entity to ChangeEvent entity name —
<selectedEntity>is the ChangeEvent type, NOT the source object:Source object <selectedEntity>valueAccountAccountChangeEventLeadLeadChangeEventContactContactChangeEventOrder__c(custom)Order__ChangeEventMyThing__c(custom)MyThing__ChangeEventFor standard objects: append
ChangeEvent. For custom objects: replace the trailing__cwith__ChangeEvent(the double-underscore is preserved).Generate the channel-member file — one file per
(entity, channel)pair. The filename and fullName always use a SINGLE underscore between the entity stem andChangeEvent— this is independent of howselectedEntityis formatted in the XML body. For custom objects, drop the__cfrom the source name when forming the filename:Source object Filename (and fullName) <selectedEntity>(in XML)AccountAccount_ChangeEvent.platformEventChannelMember-meta.xmlAccountChangeEventLeadLead_ChangeEvent.platformEventChannelMember-meta.xmlLeadChangeEventOrder__cOrder_ChangeEvent.platformEventChannelMember-meta.xml(NOTOrder__ChangeEvent)Order__ChangeEventMyThing__cMyThing_ChangeEvent.platformEventChannelMember-meta.xml(NOTMyThing__ChangeEvent)MyThing__ChangeEventThe custom-object case is the easiest place to slip — the filename uses single underscore, the
selectedEntitykeeps its double underscore. Readassets/PlatformEventChannelMember-template.xmlas the structural template.For a custom channel, generate a
PlatformEventChannelfile — required if any member ref
Установить integration-eventing-cdc-configure в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл integration-eventing-cdc-configure?
Use to enable Salesforce Change Data Capture (CDC) on a standard or custom object, configure a custom event channel, set a filter expression, or add enrichment fields. TRIGGER broadly on any of: 'enable CDC', 'enable Change Data Capture', 'turn on CDC', 'subscribe X to change events', 'only emit events for', 'filter change events', 'enrich change events', 'create a custom event channel'; or any mention of CDC, change events, PlatformEventChannel, PlatformEventChannelMember, EnrichedField, ChangeEvents channel, enrichment fields, change event filter; or when the user wants a downstream system to receive Salesforce data changes; or when the user touches .platformEventChannelMember-meta.xml / .platformEventChannel-meta.xml files. SKIP when publishing platform events, Pub/Sub API or REST/SOAP (use integration-connectivity-generate), or ManagedEventSubscription (out of scope for CDC). Always use this skill for CDC channel-membership metadata.
Как установить скилл integration-eventing-cdc-configure?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл integration-eventing-cdc-configure запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic