npx skills add ...
npx skills add forcedotcom/sf-skills --skill integration-connectivity-generate
Salesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use integration-connectivity-connected-app-configure), Apex-only logic (use platform-apex-generate), data import/export (use platform-data-manage), or CDC channel-membership metadata such as PlatformEventChannel, PlatformEventChannelMember, or EnrichedField (use integration-eventing-cdc-configure).
npx skills add forcedotcom/sf-skills --skill integration-connectivity-generate
Use this skill when the user needs integration architecture and runtime plumbing: Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, CDC, and event-driven integration design.
Use integration-connectivity-generate when the work involves:
.namedCredential-meta.xml or External Credential metadataDelegate elsewhere when the user is:
Ask for or infer:
| Need | Default pattern |
|---|---|
| authenticated outbound API call | Named Credential / External Credential + Apex or Flow |
| spec-driven API client | External Service |
| trigger-originated callout | async callout pattern |
| decoupled event publishing | Platform Events |
| change-stream consumption | CDC |
Prefer secure runtime-managed auth:
Use the provided assets under:
assets/named-credentials/assets/external-credentials/assets/external-services/assets/callouts/assets/platform-events/assets/cdc/assets/soap/Check:
Use:
Common anti-patterns:
When finishing, report in this order:
Suggested shape:
| Need | Delegate to | Reason |
|---|---|---|
| OAuth app setup | integration-connectivity-connected-app-configure | consumer key / cert / app config |
| advanced callout service code | platform-apex-generate | Apex implementation |
| declarative HTTP callout / Flow wrapper | automation-flow-generate | Flow orchestration |
| deploy integration metadata | platform-metadata-deploy | validation and rollout |
| use integration from Agentforce | agentforce-generate | agent action composition |
assets/named-credentials/ — Named Credential XML templates (OAuth, JWT, Certificate, Custom auth)assets/external-credentials/ — External Credential XML templates (OAuth, JWT)assets/external-services/ — External Service registration template and operations guideassets/callouts/ — REST sync, Queueable, retry handler, and HTTP response handler Apex templatesassets/platform-events/ — Platform Event definition, publisher, and subscriber templatesassets/cdc/ — CDC handler and subscriber trigger templatesassets/soap/ — SOAP callout service template and wsdl2apex guideassets/endpoint-security/ — Remote Site Setting and CSP Trusted Site XML templatesscripts/suggest_credential_setup.py — auto-suggests credential configuration steps when integration files are detectedscripts/validate_integration.py — validates integration patterns before agent responsesWhen this skill completes an integration task, it produces:
assets/named-credentials/ or assets/external-credentials/ filled with org-specific values.cls file using the Named Credential pattern, with async/sync pattern chosen based on context.object-meta.xml, subscriber trigger, or CDC config (when event-driven pattern is chosen)| Score | Meaning |
|---|---|
| 108+ | strong production-ready integration design |
| 90–107 | good design with some hardening left |
| 72–89 | workable but needs architectural review |
| < 72 | unsafe / incomplete for deployment |