Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

experience-lwc-legacy-migrate

Skill by forcedotcom

Migrates legacy Salesforce UI code to modern LWC. It checks Aura-to-LWC conversions for completeness and moves Lightning Out Beta host pages to Lightning Out 2.0. Aimed at developers maintaining Salesforce UI migrations.

  • Score 83
  • 1.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install experience-lwc-legacy-migrate

Built from the published package, never by AI.

git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/skills/experience-lwc-legacy-migrate ~/.claude/skills/experience-lwc-legacy-migrate

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install experience-lwc-legacy-migrate in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill covers two migration workflows for legacy Salesforce UI stacks. The first rates an existing Aura-to-LWC conversion across 12 dimensions, such as functional parity, event handling, error handling, and test coverage, then gives a prioritized list of recommendations. The second converts a Lightning Out Beta host page to Lightning Out 2.0 by applying a set of deterministic name and script transformations, a host page template, and six structural rules that are checked by a validator script.

It is intended for developers who are already migrating Aura components or who maintain external pages that embed Salesforce LWC through Lightning Out Beta. The source says it does not handle the initial Aura-to-LWC conversion, React-to-LWC migrations, or building a new LWC, and points users to other skills for those tasks.

Written from the project's SKILL.md and checked against it.

What it can do

  • Aura to LWC completeness checkScores an existing Aura-to-LWC conversion on 12 metrics using a six-level rating scale.
  • Completeness recommendationsEnds the Aura check with an overall confidence statement and prioritized fixes.
  • Lightning Out Beta to 2.0 migrationConverts a Beta host page by updating the script tag, component tag, and attributes.
  • Name conversion scriptUses convert-lo-names.py to produce the component tag, kebab-case attributes, and LO 2.0 library URL.
  • Host page templateProvides a LO 2.0 host page template with mountLo20, boot, and OAuth listener helpers.
  • Host page validatorRuns validate-lo20-page.py to check six rules and print PASS or FAIL for each.
  • OAuth PKCE setup guidanceExplains how to replace a hardcoded Lightning Out token with OAuth PKCE and an External Client App.

What you need

  • Access to the Aura component files or the Beta host page source
  • Python 3.8 or newer (python3)
  • Ability to create an External Client App in Salesforce Setup
  • Optional Lightning Out 2.0 App to get an 18-character App ID

Try asking

  • Verify Aura to LWC migration completeness for the accountTile component
  • Migrate this Lightning Out Beta host page to LO 2.0
  • Replace the hardcoded LO token in my page with OAuth PKCE

Good to know

  • Does not cover the initial Aura-to-LWC conversion, React-to-LWC migration, or building a new LWC
  • Lightning Out 2.0 runs the LWC in an iframe with a closed shadow DOM, so host page JavaScript and CSS do not reach the LWC
  • Assumes helper files frontdoor-url.html and utils/LightningOutAuth.js already exist alongside the host page
  • Missing UTAM or Jest coverage may be acceptable if the team uses another test strategy

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/experience-lwc-legacy-migrate/SKILL.md, skills/experience-lwc-legacy-migrate/scripts/convert-lo-names.py, skills/experience-lwc-legacy-migrate/scripts/validate-lo20-page.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • assets/lo20-host-page-template.html7 KB
  • references/aura-to-lwc-completeness-checklist.md8 KB
  • references/lightning-out-2-system-reference.md22 KB
  • references/lightning-out-beta-to-2-migration.md25 KB
Show all 7 files
  • scripts/convert-lo-names.py3 KB
  • scripts/validate-lo20-page.py6 KB

Alternatives to experience-lwc-legacy-migrate

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

experience-lwc-legacy-migrate: common questions

Does this skill convert Aura components to LWC?

No. The source says the initial Aura-to-LWC conversion should use the experience-aura-lwc-migrate skill. This skill checks an existing conversion for completeness.

What changes when moving from Lightning Out Beta to LO 2.0?

The source says the script tag, component tag, and attributes are converted, the $Lightning block is replaced with a template, and a hardcoded token is swapped for OAuth PKCE. It also requires the postMessage, BroadcastChannel, and storage listeners.

How is the migrated page checked?

Running validate-lo20-page.py on the page prints a PASS or FAIL line for each rule and exits non-zero if any rule fails. The source then lists manual checks to complete before the migration is done.

How do I install experience-lwc-legacy-migrate?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is experience-lwc-legacy-migrate free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is experience-lwc-legacy-migrate safe to use?

It scores 83 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to experience-lwc-legacy-migrate?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

experience-lwc-legacy-migrate Install

Add to stack

Loading.