/sf-experience:experience-lwc-legacy-migratefrom Salesforce — Experience, LWC & Mobile
Verifies Aura-to-LWC conversion completeness and migrates Lightning Out Beta host pages to LO 2.0, including OAuth PKCE and web component upgrades.
Ships in Salesforce — Experience, LWC & Mobile. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Two distinct migration workflows live here because users in the middle of migrating Aura components are often also migrating Lightning Out host pages — they benefit from one skill that knows both.
| Migration | Use when | Reference |
|---|---|---|
| Aura → LWC completeness check | An Aura component was converted, verify nothing is lost | aura-to-lwc-completeness-checklist.md |
| Lightning Out Beta → LO 2.0 | Migrating an external host page off lightning.out.js | lightning-out-beta-to-2-migration.md |
$Lightning.use() / $Lightning.createComponent() calls
to the <lightning-out-application> web component pattern.If the user wants to build a brand-new LO 2.0 host page from scratch (no Beta code to migrate), the LO 2.0 system reference inside this skill is still the right source of truth — point them at it directly.
__tests__
(Jest) and __utam__ (UTAM) folders if they exist.Goal: rate an already-done Aura-to-LWC conversion across 12 dimensions and produce actionable recommendations.
Ask the user for the component name (e.g. accountTile). Locate the Aura
source ({componentName}.cmp, controller, helper, CSS) and the LWC output
({componentName}.html, .js, .css, .js-meta.xml).
Follow aura-to-lwc-completeness-checklist.md verbatim:
End with an overall confidence statement and a prioritized list of specific, actionable recommendations (what to fix, in what order).
Goal: transform a Lightning Out Beta host page into a Lightning Out 2.0 host page while leaving the customer's HTML structure, styling, and business logic intact.
Internalize the architecture before editing code: lightning-out-2-system-reference.md.
Key takeaway: LO 2.0 is not a library upgrade. It runs the LWC inside an iframe with a closed shadow DOM — host-page JS cannot touch the LWC and vice versa, and host-page CSS does not cascade in.
Use Phase 1 of the migration guide to locate:
lightning.out.js (extract the domain).$Lightning.use(...) call.$Lightning.createComponent(...) call.See lightning-out-beta-to-2-migration.md § Phase 1.
The script-tag URL, the component tag name, and the attribute names are deterministic conversions — derive them with the helper script so they are exact every time (namespace preserved, camelCase → kebab-case, Beta host → versioned LO 2.0 library URL):
python3 scripts/convert-lo-names.py \
--component c:myComponent \
--attributes recordId,ownerId \
--my-domain https://<DOMAIN>.lightning.force.com
It prints the <c-...> tag, the kebab-case attributes, and the versioned LO
2.0 library URL. Then work through Phase 2 of the guide:
library-url the script prints; add async.component-tag and kebab-case
attributes the script prints.<c-...> tag directly in HTML at the target
location (a judgement call — place it where the Beta render target was).$Lightning block — delete it entirely and start from
assets/lo20-host-page-template.html,
filling in the config constants; it already includes the helper functions,
mountLo20(frontdoorUrl, orgUrl), boot(), and the OAuth listeners.These rules cause silent runtime failures if violated, and every one is a deterministic code-structure check. Enforce them with the validator script rather than by eye — run it against the migrated page and fix every FAIL:
python3 scripts/validate-lo20-page.py <migrated-page.html>
It prints a PASS/FAIL line per rule (plus the LO 2.0 library and Beta-removal checks) and exits non-zero if any rule fails. The six rules it enforces:
customElements.whenDefined(...) must receive a literal string, not
the components variable.mountLo20(frontdoorUrl, orgUrl) must accept two parameters.clearCachedResult() before every mountLo20(...).mountLo20(...), even if
orgUrl is undefined.boot() and call boot() at the end.display:none — control visibility
via the loading indicator.External Client App (ECA) — Setup → App Manager → New Connected App → External Client App. Enable OAuth with PKCE. Copy the Consumer Key.
Lightning Out 2.0 App — apply this decision before continuing:
| Condition | Action |
|---|---|
Host page sets app-id="..." | Setup → Lightning Out → New LO App; copy the 18-character App ID into the host page's app-id attribute |
Host page embeds LWC directly (no app-id) | Skip the LO App entirely |
Helper files the migration assumes exist alongside the host page:
frontdoor-url.html (OAuth callback) and utils/LightningOutAuth.js
(PKCE implementation).
First run python3 scripts/validate-lo20-page.py <migrated-page.html> to clear
the mechanical checks, then walk the remaining manual items in the full
post-migration checklist — cover every item before declaring the migration
done. See the "Verification Checklist" section at the end of
lightning-out-beta-to-2-migration.md.
For Aura → LWC:
For LO Beta → LO 2.0:
.my.salesforce.com/lightning/lightning.out.latest/index.iife.prod.js with async.$Lightning.use / $Lightning.createComponent remain.mountLo20(frontdoorUrl, orgUrl) takes two parameters.customElements.whenDefined(...) uses a literal string.boot() and boot() is called once.display:none.app-id / frontdoor-url values are correct.assets/lo20-host-page-template.html (opens in a new tab)references/aura-to-lwc-completeness-checklist.md (opens in a new tab)references/lightning-out-2-system-reference.md (opens in a new tab)references/lightning-out-beta-to-2-migration.md (opens in a new tab)scripts/convert-lo-names.py (opens in a new tab)scripts/validate-lo20-page.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
salesforce, aura-to-lwc, lightning-out, migration, host-page
npx claudepluginhub reej-consulting/reej-sf-skills --plugin sf-experience48 skills in this plugin
/commerce-b2b-open-code-components-integrateIntegrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention "integrate open code components", "open source B2B commerce", "add open code components", "forcedotcom/b2b-commerce-open-source-components", or want to add open source commerce components to their store. Copies all components and labels so they become available in Experience Builder./commerce-b2b-open-code-components-replaceReplace OOTB (out-of-the-box) B2B Commerce components with open source equivalents in site metadata content.json files, or look up the equivalent open code `site:` component for OOTB definitions. Use when users mention "replace OOTB components", "replace commerce components with open code", "swap OOTB for open source", "replace commerce_builder:", "replace OOTB in site", "replace component in site metadata", "replace component definition", "find open code equivalent", "equivalent open code component", "OOTB to open code mapping", "what is the site component for", components "in this view" or "for a given view", or a specific list of component names — and want to update or only discover mappings in their store metadata./commerce-b2b-store-createInteractive workflow to create Commerce B2B Stores and retrieve storefront metadata. Use when users want to: create B2B Commerce stores, build Commerce storefronts, set up B2B stores from Vibes, retrieve Commerce metadata, deploy Commerce experiences, work with DigitalExperienceBundle for Commerce./commerce-react-storefront-createStand up the commerce-b2b-headless reference React storefront in a Salesforce B2B Commerce org, end to end — discover the org's WebStores, pick one, fill the four org-specific values (WebStore Id, BuyerGroup Id, buyer permission set group, Vite org alias), build + deploy the UI Bundle, assign the site guest user the auth permission set, and hand back the live Experience Cloud storefront URL. Use whenever the user says "create a react storefront in my org", "set up the headless B2B storefront", "deploy commerce-b2b-headless", "stand up a React storefront for <org-alias>", "get me a hosted headless commerce storefront", or points at a cloned commerce-b2b-headless repo and wants it running against their org./experience-accessibility-validateUse this skill to determine whether a Lightning Web Component (LWC) is accessible and meets WCAG accessibility guidelines. TRIGGER when the user asks "is my component accessible?", "does my LWC meet accessibility guidelines?", "is this component WCAG compliant?", "find accessibility problems in this LWC", "is this LWC keyboard accessible?", "does this component work with a screen reader?", "does this component have sufficient color contrast?", "check ARIA usage in this LWC", or "WCAG 2.2 accessibility check". Also TRIGGER when the user wants to fix or improve accessibility (a11y, WCAG, ARIA) in an LWC's HTML, JS, or CSS — semantic markup, focus, keyboard nav, contrast, screen-reader labels, WCAG 2.2 SC. Produces `a11y-review.md` with WCAG-cited findings. DO NOT TRIGGER for general LWC generation (use `experience-lwc-generate`) or SLDS visual/design review not focused on accessibility (use `design-systems-slds-validate`)./experience-afv-analytics-querySystem-of-record for the public Lightning Instrumentation Headless Connect REST API route that retrieves Agentforce Vibes (AFV) metrics, analytics, data, and adoption/usage insights, including token/LOC, weekly active-user, and per-user activity. Supports local result filtering by period (default current), orgType (default All), recordType, modelName (default All), and other explicitly returned row fields after one parameterless API call.3 plugins in 2 repositories ship this exact skill · first indexed Sep 23, 2026
Other plugins' skills for the same job