⚛️ Salesforce Multi-Framework skill — by Dylan Andersen · v2.2
An agent skill that teaches your AI coding agent to build, wire, and deploy React apps on the Salesforce Agentforce 360 Platform (the UIBundle metadata type) the right way — Data SDK + GraphQL, routing, styling, permissions, and CI deploy — plus a 100-point scoring rubric it can use to grade its own output.
Format and cross-skill conventions inspired by Jag Valaiyapathy's SF Skills. Built from official Salesforce docs +
trailheadapps/multiframework-recipes. Deployment corrections from hands-on, end-to-end deploy testing by Evan Jochims, Distinguished, Strategic Solution Engineer at Salesforce. Works in any MCP-capable agent or IDE.
npx skills add dylandersen/sf-multiframework --globalYour agent should reach for this skill whenever you ask it to scaffold, build, review, or deploy a Salesforce Multi-Framework / UIBundle React app — for example "build a React app for Salesforce", "query records with the Data SDK", or "deploy my UIBundle".
- SKILL.md — the core rules, build/deploy workflow, and 100-point scoring rubric.
- references/ — deep dives: Data SDK & GraphQL, error handling, Beta→GA migration, routing, styling, testing, CI deploy, permissions/CSP, LWC↔React mapping, and more.
- assets/ — ready-to-copy templates and examples (
vite.config.ts, metadata XML, GraphQL client, sample components).
Targets Salesforce Multi-Framework GA (July 16, 2026) — Summer '26+, API v67.0+, all org editions. Uses the GA Data SDK (@salesforce/platform-sdk, imported from @salesforce/platform-sdk/data).
- Data SDK renamed + moved: install
@salesforce/platform-sdk, import from the@salesforce/platform-sdk/datasubpath (Beta was@salesforce/sdk-data). - GraphQL API split:
.query()for reads,.mutate()for writes;result.datais now possiblyundefined(optional-chain it). - Reactive + cached queries:
QueryResult.subscribe()/refresh()(the@wirereplacement) and a shared GraphQL cache withcacheControl(default 300s TTL). CustomApplicationtarget replaces the BetaAppLauncher; employee apps now run on the dedicatedsalesforce.appdomain.- No more scratch opt-in: the deprecated
UiBundleSettings/webAppOptInconfig is removed — GA needs no opt-in on Summer '26+. - New/rewritten references: Beta→GA migration playbook, mutation CRUD + refresh/optimistic patterns, cache-control semantics, and an LWC→React mapping.
generating-apex (REST) ─┐
developing-agentforce (Agent) ─┤→ sf-multiframework → deploying-metadata
generating-permission-set (PSets) ─┘ (CI deploy)
Older sf-skills releases name these sf-apex, sf-ai-agentforce, sf-permissions, sf-deploy — see CREDITS.md for the full mapping.
MIT