forcedotcom/sf-skills / plugins/builder/integration/skills/integration-connectivity-generate
integration-connectivity-generate
VerifiedSalesforce 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).
assets/named-credentials/custom-auth.namedCredential-meta.xml
View on GitHub<?xml version="1.0" encoding="UTF-8"?>
<!--
Named Credential Template: Custom Authentication (API Key / Basic Auth)
Use Case: Simple APIs with API key or username/password
- Internal APIs
- Legacy systems
- APIs with simple authentication
- Development/testing environments
Authentication Types:
- Basic Auth: Username + Password in Authorization header
- API Key: Custom header with API key value
Setup Steps:
1. Replace all {{placeholder}} values
2. Deploy to org
3. Enter credentials via Setup → Named Credentials UI
File Location: force-app/main/default/namedCredentials/{{CredentialName}}.namedCredential-meta.xml
-->
<NamedCredential xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>{{CredentialName}}</fullName>
<label>{{CredentialLabel}}</label>
<!-- Base URL for the external service -->
<endpoint>{{BaseEndpoint}}</endpoint>
<!--
Authentication Configuration
For Basic Auth:
- principalType: NamedUser
- protocol: Password
- generateAuthorizationHeader: true
For API Key (via custom header):
- principalType: Anonymous
- protocol: NoAuthentication
- Use calloutOptions or Apex to add header
-->
<principalType>NamedUser</principalType>
<protocol>Password</protocol>
<!--
Username for Basic Auth
Password is entered via UI after deployment (NOT stored in metadata)
-->
<username>{{Username}}</username>
<!-- Request Options -->
<generateAuthorizationHeader>true</generateAuthorizationHeader>
<allowMergeFieldsInBody>true</allowMergeFieldsInBody>
<allowMergeFieldsInHeader>true</allowMergeFieldsInHeader>
<!--
SECURITY WARNING:
- Password is stored securely by Salesforce, NOT in this file
- After deployment, configure password via:
Setup → Named Credentials → Edit → Enter Password
- Never commit passwords to source control
For API Key pattern (in Apex):
HttpRequest req = new HttpRequest();
req.setEndpoint('callout:{{CredentialName}}/endpoint');
req.setHeader('X-API-Key', '{!$Credential.Password}');
Or use External Credentials (API 61+) with Custom headers for cleaner API key handling.
-->
</NamedCredential>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |