npx skills add ...
npx skills add forcedotcom/sf-skills --skill building-sf-integrations
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 configuring-connected-apps), Apex-only logic (use generating-apex), data import/export (use handling-sf-data), or CDC channel-membership metadata such as PlatformEventChannel, PlatformEventChannelMember, or EnrichedField (use managing-cdc-enablement).
npx skills add forcedotcom/sf-skills --skill building-sf-integrations
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 building-sf-integrations 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 | configuring-connected-apps | consumer key / cert / app config |
| advanced callout service code | generating-apex | Apex implementation |
| declarative HTTP callout / Flow wrapper | generating-flow | Flow orchestration |
| deploy integration metadata | deploying-metadata | validation and rollout |
| use integration from Agentforce | developing-agentforce | 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 templateshooks/scripts/suggest_credential_setup.py — auto-suggests credential configuration steps when integration files are detectedhooks/scripts/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 |