Agent skill · forcedotcom
platform-salesforce-connect-adapter-generate
Custom Apex adapter generation for Salesforce Connect — connects any external REST API to Salesforce as live, queryable External Objects without ETL or data copying. TRIGGER when: user wants to connect a non-standard external API to Salesforce, asks to write a DataSource.Provider or DataSource.Connection, wants to surface external data as Salesforce records, says \"connect my API to Salesforce without copying data\", or asks whether custom Apex is the right approach for any system. Also trigger on: \"custom adapter\", \"ExternalId field\", \"DataSource namespace\". DO NOT TRIGGER when: user is configuring a standard adapter they already have and is NOT asking about custom Apex (e.g., OData endpoint setup, Snowflake connector config). DO NOT TRIGGER when: user wants to copy or bulk-sync data — use platform-data-manage. DO NOT TRIGGER for Apex callouts outside Connect — use platform-apex-generate or integration-connectivity-generate.
What it needs
About 11k tokens when loaded.
What this skill does
Salesforce Connect — Custom Apex Adapter Route the user through building a complete custom Salesforce Connect Apex adapter: two Apex classes, metadata deployment, and registration. Do not guess at the user's API shape — ask before generating. Scope In scope: Generating DataSource.Connection and DataSource.Provider Apex classes, Named Credential metadata, deployment via sf CLI, and step-by-step Setup registration guidance for any REST API. Out of scope: Configuring standard adapters (OData, Snowflake, GraphQL — those have their own flows). Generating the External Data Source metadata file (not deployable via sf CLI — must be registered manually in Setup). Writing Apex that calls external APIs outside the Salesforce Connect framework (use platform-apex-generate or integration-connectivity-generate). Before starting Confirm two things. If either is missing, ask before proceeding. 1. Is this actually a Salesforce Connect use case? The user wants to… Right tool --- --- Query external data live without copying it — read-only or read-write, appears as Salesforce records This skill Copy or sync data into Salesforce on a schedule platform-data-manage Connect to OData, GraphQL, DynamoDB, Athena, or Cross-Org Standard adapter setup — no Apex needed, different flow Connect to Snowflake via Salesforce's native Snowflake adapter (direct Snowflake protocol) Built-in Snowflake adapter — no Apex needed Access Snowflake (or any database) data via a REST or HTTP API This skill — Snowflake REST endpoint → custom Apex adapter Call an external API from Apex or Flow logic platform-apex-generate or integration-connectivity-generate Expose Salesforce data to an external system integration-connectivity-generate Receive real-time pushed data or subscribe to external events Not Salesforce Connect — Connect is pull-only. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills forcedotcom/platform-salesforce-connect-adapter-generate