Sf Apex
Jaganpro/sf-skills
Generates and reviews Salesforce Apex code with 150-point scoring.
Custom Apex adapter generation for Salesforce Connect — connects any external REST API to Salesforce as live, queryable External Objects without ETL or copying.
$ npx skills add forcedotcom/sf-skills --skill platform-salesforce-connect-adapter-generate -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install forcedotcom/sf-skills platform-salesforce-connect-adapter-generate --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/platform-salesforce-connect-adapter-generate .claude/skills/platform-salesforce-connect-adapter-generate && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "platform-salesforce-connect-adapter-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-salesforce-connect-adapter-generate into .claude/skills/platform-salesforce-connect-adapter-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-salesforce-connect-adapter-generate", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-salesforce-connect-adapter-generateType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add forcedotcom/sf-skills --skill platform-salesforce-connect-adapter-generate -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install forcedotcom/sf-skills platform-salesforce-connect-adapter-generate --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/platform-salesforce-connect-adapter-generate .agents/skills/platform-salesforce-connect-adapter-generate && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "platform-salesforce-connect-adapter-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-salesforce-connect-adapter-generate into .agents/skills/platform-salesforce-connect-adapter-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-salesforce-connect-adapter-generate", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill platform-salesforce-connect-adapter-generate -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install forcedotcom/sf-skills platform-salesforce-connect-adapter-generate --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/platform-salesforce-connect-adapter-generate .cursor/skills/platform-salesforce-connect-adapter-generate && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "platform-salesforce-connect-adapter-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-salesforce-connect-adapter-generate into .cursor/skills/platform-salesforce-connect-adapter-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-salesforce-connect-adapter-generate", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/forcedotcom/sf-skills.git --path skills/platform-salesforce-connect-adapter-generate--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add forcedotcom/sf-skills --skill platform-salesforce-connect-adapter-generate -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install forcedotcom/sf-skills platform-salesforce-connect-adapter-generate --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/platform-salesforce-connect-adapter-generate .gemini/skills/platform-salesforce-connect-adapter-generate && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "platform-salesforce-connect-adapter-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-salesforce-connect-adapter-generate into .gemini/skills/platform-salesforce-connect-adapter-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-salesforce-connect-adapter-generate", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install forcedotcom/sf-skills platform-salesforce-connect-adapter-generateInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add forcedotcom/sf-skills --skill platform-salesforce-connect-adapter-generate -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/platform-salesforce-connect-adapter-generate .github/skills/platform-salesforce-connect-adapter-generate && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "platform-salesforce-connect-adapter-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-salesforce-connect-adapter-generate into .github/skills/platform-salesforce-connect-adapter-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-salesforce-connect-adapter-generate", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill platform-salesforce-connect-adapter-generate -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install forcedotcom/sf-skills platform-salesforce-connect-adapter-generate --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/platform-salesforce-connect-adapter-generate .opencode/skills/platform-salesforce-connect-adapter-generate && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "platform-salesforce-connect-adapter-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-salesforce-connect-adapter-generate into .opencode/skills/platform-salesforce-connect-adapter-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-salesforce-connect-adapter-generate", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
platform-salesforce-connect-adapter-generateCustom Apex adapter generation for Salesforce Connect — connects any external REST API to Salesforce as live, queryable External Objects without ETL or copying.
Platform Salesforce Connect Adapter Generate is an agent skill from forcedotcom/sf-skills. Custom Apex adapter generation for Salesforce Connect — connects any external REST API to Salesforce as live, queryable External Objects without ETL or copying. TRIGGER when: connecting a non-standard external API, writing a DataSource.Provider/Connection or a .cls/.cls-meta.xml custom adapter class, adding a .namedCredential-meta.xml for the adapter's callout, surfacing external data as records, "custom adapter", "ExternalId field", "DataSource namespace", or whether custom Apex fits. DO NOT TRIGGER when: a…
Its SKILL.md is about 4.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/official-examples.md` and `references/scenarios.md`).
It sits in Sales & Support, covering CRM management, Data warehousing and REST APIs. It works with Salesforce and Snowflake. The repository describes itself as: Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools. The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e5164d9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
sfFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
soap.sforce.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Platform Salesforce Connect Adapter Generate loads about 4.9k tokens when it runs, and up to ~7.8k if it reads all its reference files. Until then it costs about 194 tokens; SKILL.md has 2,123 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from forcedotcom/sf-skills at commit e5164d9, republished under its Apache-2.0 licence (© forcedotcom). 2,123 words, ~4,911 tokens.
.claude/skills/platform-salesforce-connect-adapter-generate/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.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.
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 the platform-apex-generate or integration-connectivity-generate skills).
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 | the platform-data-manage skill |
| 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 | the platform-apex-generate skill 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. Use Platform Events or Change Data Capture instead |
| Sync or copy data for analytics or bulk processing | Data Cloud or ETL — Connect is zero-copy virtualization only |
If the user has a standard adapter available, tell them — writing a custom adapter when a standard one fits is unnecessary work.
2. Do they have a Salesforce Connect license?
A custom adapter requires a Salesforce Connect license (one license per External Data Source). Without it, the External Data Source menu won't show the Apex option. If the user doesn't have one, tell them before going further.
If the user does not specify an org alias, use demo-org.
If the user does not specify an SFDX project path, use ~/salesforce-connect-apex-skill/sfconnect-demo/.
These are the defaults for local testing — always override if the user specifies their own.
Never generate code without these. If any are missing, ask:
| Input | Why it matters |
|---|---|
| API name and what it does | Names the classes and sets context for field mapping |
| Base URL | Becomes the Named Credential endpoint |
| Auth type | Determines Named Credential setup and getAuthenticationMode() |
| Key GET endpoint(s) + sample response | Defines the External Object schema — field names, types, nesting |
| Write support needed? | Determines whether to implement upsertRows() and deleteRows() |
| Org type (DE, scratch, sandbox) | Sets apiVersion in .cls-meta.xml |
If the user provides an OpenAPI spec, extract:
DataSource.TableDataSource.Column entriesid / uuid / primary key → map to ExternalIdEvery custom Salesforce Connect adapter is exactly two Apex classes.
Handles communication with the external API. Exact signatures:
override global DataSource.TableResult query(DataSource.QueryContext context)
override global List<DataSource.TableResult> search(DataSource.SearchContext context)
// Write support — only if API supports it:
global override List<DataSource.UpsertResult> upsertRows(DataSource.UpsertContext context)
global override List<DataSource.DeleteResult> deleteRows(DataSource.DeleteContext context)Key distinction: query() always operates on one table (QueryContext has a single TableSelection). search() can operate on multiple tables simultaneously (SearchContext has multiple TableSelection instances) — handle each in a loop and return a result per table.
Declares the adapter's capabilities and schema to Salesforce. Required methods:
getAuthenticationMode() — return ANONYMOUS for public APIs; NAMED_PRINCIPAL or PER_USER for authenticated APIsgetCapabilities() — declare QUERY, SEARCH; add ROW_CREATE, ROW_UPDATE, ROW_DELETE only if implementing writesgetConnection(ConnectionParams params) — return new YourConnection(params)sync() — called when the user clicks "Validate and Sync" in Setup; returns List<DataSource.Table> defining the External Object schema and columnsThe Provider class appears in Salesforce Setup as Custom-[ClassName] under the External Data Source type dropdown.
Critical: whenever you edit the Connection class, you must resave the Provider class too — even with no changes. Otherwise the adapter disappears from the Type picklist and existing External Object tabs break.
| External API type | Use this |
|---|---|
| string / text | DataSource.DataType.TEXT_TYPE |
| number / integer / decimal | DataSource.DataType.NUMBER_TYPE |
| boolean | DataSource.DataType.BOOLEAN_TYPE |
| date (ISO 8601) | DataSource.DataType.DATE_TYPE |
| datetime / timestamp | DataSource.DataType.DATETIME_TYPE |
| URL | DataSource.DataType.URL_TYPE |
DataSource.DataType.EMAIL_TYPE | |
| phone | DataSource.DataType.PHONE_TYPE |
| enum / picklist | TEXT_TYPE — map enum values as strings |
| nested object / JSON blob | Flatten to scalar fields, or TEXT_TYPE and parse in query() |
| array | Derive a count field (NUMBER_TYPE), or flatten first-element fields |
| string > 255 chars | Long text area — do not truncate; Salesforce maps it automatically |
Every DataSource.Table must include these columns:
DataSource.Column.text('ExternalId', 255) // unique key from external system — REQUIRED
DataSource.Column.text('Name', 255) // display label shown in Salesforce UI — REQUIRED
DataSource.Column.url('DisplayUrl') // link to the record in the external system — recommendedMissing ExternalId is the most common reason an adapter deploys but records don't appear.
DisplayUrl enables the clickable link icon in list views — populate it with the external record's URL.
Four scenarios: (1) public read-only, (2) authenticated API key/OAuth, (3) read-write with upsert/delete, (4) paginated API. Full code patterns for each are in references/scenarios.md.
Key differences by scenario:
| Scenario | Auth mode | Extra capabilities | Named Credential |
|---|---|---|---|
| Public read-only | ANONYMOUS | QUERY, SEARCH | Deploy as metadata |
| Authenticated | NAMED_PRINCIPAL or PER_USER | QUERY, SEARCH | Create manually in Setup — never deploy credentials as metadata |
| Read-write | ANONYMOUS or auth | Add ROW_CREATE, ROW_UPDATE, ROW_DELETE | Per above |
| Paginated | Any | Any | Use context.tableSelection.numberOfRows (default 500 if null); no automatic queryMore |
sf data query \
--query "SELECT ExternalId, Name__c FROM [YourObject]__x LIMIT 5" \
--target-org [org-alias]If rows come back, the adapter is working. If 0 rows, check the troubleshooting steps below.
Deploy a Visualforce page + Apex controller that queries [Object]__x and renders rows in an apex:pageBlockTable. Open at [orgUrl]/apex/[PageName]. More reliable than list views for testing — bypasses tab requirements, deployment status, and filter issues. See references/scenarios.md for the standard template.
For the list view to show records, all four of these must be true:
| Symptom | Cause | Fix |
|---|---|---|
| SOQL returns 0 | Remote Site Setting missing | Setup → Remote Site Settings → New |
| SOQL returns 0 | Named Credential not found | Setup → Named Credentials → confirm callout: name matches exactly |
| SOQL returns 0 | Org proxy blocks external URLs | Use loopback pattern or switch to an external DE org |
| List view shows 0 | Deployment Status = In Development | Object Manager → [Object]__x → Edit → Deployed |
| List view shows 0 | Filter is "Recently Viewed" | Change filter to "All" |
| App Launcher shows nothing | No tab created | Setup → Tabs → Custom Object Tabs → New |
sf project deploy start command)| File | Notes |
|---|---|
classes/[API]DataSourceConnection.cls + meta | Always |
classes/[API]DataSourceProvider.cls + meta | Always |
namedCredentials/[API].namedCredential-meta.xml | Public APIs only — skip for any API requiring credentials |
Do NOT generate externalDataSources/[API].externalDataSource-meta.xml. The External Data Source must be registered manually in Setup after deploying the Apex classes. The sf project deploy start command cannot deploy custom Apex External Data Sources — the sf CLI will error with "Could not infer a metadata type." Tell the user to go to Setup → External Data Sources → New after deployment.
Correct NamedCredential XML format (no <name> element — the API name comes from the filename):
<?xml version="1.0" encoding="UTF-8"?>
<NamedCredential xmlns="http://soap.sforce.com/2006/04/metadata">
<label>My API</label>
<endpoint>https://api.example.com</endpoint>
<allowMergeFieldsInBody>false</allowMergeFieldsInBody>
<allowMergeFieldsInHeader>false</allowMergeFieldsInHeader>
<generateAuthorizationHeader>false</generateAuthorizationHeader>
<principalType>Anonymous</principalType>
<protocol>NoAuthentication</protocol>
</NamedCredential>Deploy command:
sf project deploy start \
--source-dir force-app/main/default/ \
--target-org [org-alias]Validate and Sync triggers a live call to the external API to discover its schema and create External Object definitions. This cannot be scripted.
Setup → External Data Sources → [your data source] → Validate and Sync
Check the box next to each External Object → Sync
App Launcher → search [External Object name] → confirm records appearAlways end with: "Deployment complete. One step left: open the External Data Source in Salesforce Setup and click Validate and Sync."
Never let an exception propagate uncaught out of query() — Salesforce shows a generic error to the user with no context.
| Situation | Handle it by |
|---|---|
| HTTP 401 | throw new DataSource.OAuthTokenExpiredException() |
| HTTP 429 / rate limit | Return empty rows; log via System.debug() |
| HTTP 500 or network error | Return empty rows; do not rethrow |
| Null field in response | record.get('field') != null ? (String) record.get('field') : '' |
| Nested JSON that won't flatten | Return raw JSON string as a TEXT_TYPE field rather than failing the whole query |
query() call is one transactionThe Salesforce Connect: Custom (Developed with Apex) type only appears in the External Data Source type dropdown after at least one DataSource.Provider subclass is deployed in the org.
This is not a permissions issue. It is a dependency — Salesforce discovers available Provider classes at runtime. No deployed Provider = no option in the dropdown.
Correct sequence — always:
sf project deploy start)If the user says "I don't see the Custom Apex option in the dropdown", the answer is: deploy the classes first, then come back to Setup.
The external API's base URL must be whitelisted or callouts fail silently — query() returns empty rows with no exception, no error message. Deploy as metadata or add at Setup → Remote Site Settings → New.
After Validate and Sync, Salesforce creates the External Object with status "In Development". Records return 0 results in list views and SOQL until this is changed. No error is shown — another silent failure.
Setup → Object Manager → [YourObject]__x → Edit
Deployment Status → Deployed → SaveAlways tell the user this step after Validate and Sync completes.
External Objects are invisible in the UI without a tab. Create one at:
Setup → Tabs → Custom Object Tabs → New → select [YourObject]__x → Save| Don't | Why | Do |
|---|---|---|
| Generate code without knowing the API shape | Wrong field types, wrong ExternalId mapping, broken adapter | Ask for API name, base URL, auth type, sample response first |
| Deploy ExternalDataSource as metadata | Not a deployable metadata type — sf CLI will error | Register the External Data Source manually in Setup after deploying the Apex classes |
Use upsertRow() or deleteRow() (singular) | These methods don't exist — compile error | Use upsertRows() and deleteRows() (plural) |
Put sync() only on Provider | On some API versions sync() must be on Connection — compiler will tell you | Implement sync() on Connection; remove from Provider if it errors |
| Hardcode the API URL in Apex | Credentials exposed in source, callout blocked | Always use callout:NamedCredentialName |
Return a single DataSource.TableResult from search() | search() returns List<DataSource.TableResult> — compile error | Loop over context.tableSelections and return one result per table |
Skip COUNT handling in query() | List views fire COUNT queries; without detection they return wrong results | Check columnsSelected[0].aggregation == DataSource.QueryAggregation.COUNT |
| Leave External Object in "In Development" | Records return 0 with no error — invisible to the user | After Validate and Sync: Object Manager → [Object]__x → Edit → Deployed |
| Skip the Remote Site Setting | Callout fires silently, returns empty rows, no exception | Deploy remoteSiteSettings/[API].remoteSite-meta.xml or add manually in Setup |
Confirm: inputs collected (API name, URL, auth, sample response, write support) → code has sync() + query() + search() on Connection, getCapabilities() + getConnection() on Provider, ExternalId and nameColumn on every table, COUNT handling in query(), mock data for tests, callout: prefix on all endpoints → both .cls-meta.xml files generated → deploy command given → post-deploy steps communicated (Named Credential setup, Remote Site Setting, External Data Source registered, Validate and Sync, Deployment Status → Deployed, tab created).
See references/official-examples.md for annotated study of the official Salesforce Connect adapter examples — GitHub Issues (full DML, picklist, cross-table relationships), Google Drive (OAuth + test mock), Google Books (pagination), StackOverflow (multiple tables), and Loopback (filter translation). Read before generating for a new user.
Before deploying, they need a project structure. If one doesn't exist, generate it first:
sf project generate --name my-adapter --output-dir .
cd my-adapterThis creates force-app/main/default/classes/ and the required sfdx-project.json. All generated files go into this structure. The developer does not need VS Code, Agentforce Vibes, or any Salesforce IDE — just sf CLI installed and an org authenticated via sf org login web --alias my-org.
This skill works with any coding agent that can read a context file — Claude Code, Cursor, Windsurf, GitHub Copilot, or any agent with the SKILL.md loaded. No Salesforce MCP server, no Agentforce Vibes, no internal Salesforce tooling required.
Generate files in this order, then give the deploy command:
force-app/main/default/classes/[API]DataSourceConnection.clsforce-app/main/default/classes/[API]DataSourceProvider.clsforce-app/main/default/classes/[API]DataSourceConnection.cls-meta.xmlforce-app/main/default/classes/[API]DataSourceProvider.cls-meta.xmlforce-app/main/default/namedCredentials/[API].namedCredential-meta.xml — public APIs onlyOne-line comment at top of each Apex class: // Salesforce Connect custom adapter for [API name]
No other inline comments unless a logic choice is non-obvious.
© forcedotcom, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in skills/platform-salesforce-connect-adapter-generate of forcedotcom/sf-skills.
Open the folder on GitHubat commit e5164d9
Platform Salesforce Connect Adapter Generate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Platform Salesforce Connect Adapter Generate this skillforcedotcom/sf-skills | 1.1k | — | ~4.9k | Automated safety check: Pass | Apache-2.0 | |
| Sf ApexJaganpro/sf-skills | 424 | — | ~2k | Automated safety check: Pass | MIT | |
| Adding Warehouse Person PropertiesPostHog/posthog | 40k | — | ~2.9k | Automated safety check: Pass | Custom licence | |
| Sf DebugJaganpro/sf-skills | 424 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Churn Riskindranilbanerjee/digital-marketing-pro | 859 | 1 repos | ~2.4k | Automated safety check: Pass | MIT | |
| Lead Importindranilbanerjee/digital-marketing-pro | 859 | 1 repos | ~3.3k | Automated safety check: Pass | MIT |
Jaganpro/sf-skills
Generates and reviews Salesforce Apex code with 150-point scoring.
PostHog/posthog
Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties already work: feature flag targeting…
Jaganpro/sf-skills
Salesforce debug log analysis and troubleshooting with 100-point scoring.
indranilbanerjee/digital-marketing-pro
Score customer segments for churn risk from behavioral signals — email engagement decline, purchase recency, usage drops, support sentiment — producing a 0-100 risk scorecard with four tiers…
indranilbanerjee/digital-marketing-pro
Import leads into Salesforce, HubSpot, Zoho, or Pipedrive with validation, deduplication against existing CRM records, lead scoring, consent and compliance checks, and source attribution — then push…
indranilbanerjee/digital-marketing-pro
Update CRM deals — move stages, change values and close dates, attach notes and activities, create follow-up tasks — with validation against pipeline rules, a before-and-after comparison, and…
forcedotcom/sf-skills
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.
forcedotcom/sf-skills
Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.
forcedotcom/sf-skills
Lightning Web Components with PICKLES methodology and 165-point scoring.
Works with
Categories
Custom Apex adapter generation for Salesforce Connect — connects any external REST API to Salesforce as live, queryable External Objects without ETL or copying. Platform Salesforce Connect Adapter Generate is an agent skill from forcedotcom/sf-skills. Custom Apex adapter generation for Salesforce Connect — connects any external REST API to Salesforce as live, queryable External Objects without ETL or copying.
Platform Salesforce Connect Adapter Generate fits situations like: : connecting a non-standard external API; writing a DataSource.Provider/Connection; A .cls/.cls-meta.xml custom adapter class; adding a .namedCredential-meta.xml for the adapters callout.
Run `npx skills add forcedotcom/sf-skills --skill platform-salesforce-connect-adapter-generate -a claude-code`. Or copy the skill folder (skills/platform-salesforce-connect-adapter-generate in forcedotcom/sf-skills) into .claude/skills/platform-salesforce-connect-adapter-generate in your project. Claude Code loads it when a task matches its description.
Run `npx skills add forcedotcom/sf-skills --skill platform-salesforce-connect-adapter-generate -a codex`. Or copy the skill folder (skills/platform-salesforce-connect-adapter-generate in forcedotcom/sf-skills) into .agents/skills/platform-salesforce-connect-adapter-generate in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill platform-salesforce-connect-adapter-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/platform-salesforce-connect-adapter-generate, .gemini/skills/platform-salesforce-connect-adapter-generate, .github/skills/platform-salesforce-connect-adapter-generate and .opencode/skills/platform-salesforce-connect-adapter-generate in your project.
Going by SKILL.md and its folder, Platform Salesforce Connect Adapter Generate needs the command-line tools its instructions call (sf).
SKILL.md names 1 domain. In commands or code: soap.sforce.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Platform Salesforce Connect Adapter Generate is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.9k tokens (SKILL.md is roughly 20k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Platform Salesforce Connect Adapter Generate: Sf Apex (Jaganpro/sf-skills, 424 stars), Adding Warehouse Person Properties (PostHog/posthog, 40k stars), Sf Debug (Jaganpro/sf-skills, 424 stars) and Churn Risk (indranilbanerjee/digital-marketing-pro, 859 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,065 GitHub stars. The repository holds 251 skills in this directory. The repository was last updated on October 7, 2026.
Source: forcedotcom/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.