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 sf-skills. 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
/sf-skills:experience-lwc-legacy-migratefrom sf-skills
sf-skills@sf-skills-plugin is listed by ccmalcom/sf-skills-plugin — review the source before installing
npx claudepluginhub ccmalcom/sf-skills-plugin --plugin sf-skills3 plugins in 2 repositories ship this exact skill · first indexed Sep 23, 2026
266 skills in this plugin
/afcc-setup-coordinateOrchestrates end-to-end headless setup of Agentforce Contact Center (AFCC) on a Salesforce org. Scans the org first, presents a delta plan for approval, then sequentially provisions demo users, Omni-Channel base settings, a human queue with routing config and members, presence statuses, permission sets, a PSTN voice number, and an active PstnVoice MessagingChannel wired to the queue. Interactive at key decision points — never assumes country, number type, queue names, or user counts. TRIGGER: set up AFCC, configure Agentforce Contact Center, stand up voice contact center, AFCC migration setup, provision AFCC org headlessly./agentforce-architecture-analyzeDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable architecture document and Mermaid invocation graph from design-time metadata (not runtime audit rows). TRIGGER when user asks to describe, diagram, inventory, audit, document, or diff (e.g. v3 vs v5) the architecture / action tree / topic structure / tool inventory of a specific agent by agent API name in a specific org. DO NOT TRIGGER for runtime session traces, conversation transcripts, generation timings, or gateway audit chains — this skill reads design-time metadata only (use agentforce-d360-analyze for session traces).Other plugins' skills for the same job