Skip to content
Development
Skill

/experience-aura-lwc-migrate

Use this skill to analyze a Salesforce Aura component bundle (.cmp, .app, .evt, .intf, Controller.js, Helper.js, Renderer.js) and produce a framework-agnostic migration blueprint (PRD.yaml / PRD.md / PRD.json) capturing public API, data requirements, slots, events, states,

From plugin
sf-skills
1.1k200 skills6 agents15 commands4 MCP

Claude Code

$ npx -y skills add forcedotcom/sf-skills --skill experience-aura-lwc-migrate --agent claude-code

SKILL.md

experience-aura-lwc-migrate.SKILL.md
name: experience-aura-lwc-migrate
description: "Use this skill to analyze a Salesforce Aura component bundle (.cmp, .app, .evt, .intf, Controller.js, Helper.js, Renderer.js) and produce a framework-agnostic migration blueprint (PRD.yaml / PRD.md / PRD.json) capturing public API, data requirements, slots, events, states, accessibility, styling, localization, and security posture. This is Phase 1 (analysis + PRD) only — it does NOT author or edit component code, wire adapters, or Jest tests, and does not write .html/.js/.css/.js-meta.xml. TRIGGER when the user says \"analyze this Aura component\", \"migrate Aura\", \"convert .cmp\", \"produce a migration blueprint\", \"generate a PRD for this Aura component\", or mentions aura:attribute, aura:handler, force:recordData, $Label, $Resource, component.get, cmp.find, or an input directory containing .cmp files. DO NOT TRIGGER when there is no Aura source (delegate downstream LWC authoring to experience-lwc-generate), for post-migration scoring, or for refactoring an existing modern component."
metadata:
  version: "1.0"
  domains: ["Experience"]
  relatedSkills:
    - experience-lwc-generate

<!-- adk-managed-skill -->

Migrating Aura to LWC

Migrate an existing Salesforce Aura component bundle to a Lightning Web Component using a PRD-driven workflow. The Aura source is analyzed through eight expert lenses (static references, data, API surface, slots, styling, default values, unknown dependencies, redundant-code cleanup) to produce a framework-agnostic PRD, which is handed to the LWC authoring skills and verified against the Aura→LWC completeness checklist.

When to Use

  • Porting an Aura bundle (`.cmp`, `.controller.js`, `.helper.js`, `.renderer.js`, `.css`, `.design`, `.evt`, `.intf`) to LWC.
  • Producing a framework-agnostic PRD from Aura source so a sibling team can implement the LWC equivalent.
  • Auditing an Aura component for patterns that need explicit mapping before LWC conversion (facets, `aura:id` DOM access, `force:recordData`, application events).

Do NOT use this skill for:

  • Authoring a brand-new LWC from a Figma or PRD with no Aura source (delegate to `experience-lwc-generate`).
  • Refactoring an existing LWC (delegate to `experience-lwc-generate`).
  • Post-hoc completeness scoring of a conversion that was already done without this skill, or Lightning Out Beta → 2.0 host-page migration — no checked-in skill covers these today.

Prerequisites

  • Aura component bundle files (minimum: `.cmp`; usually also controller / helper / CSS / events / interfaces).
  • Target LWC path (module folder) — discover the caller's module tree from `sfdx-project.json` `packageDirectories` (typically an `lwc/<name>/` subdirectory under one of the listed package paths).
  • For resolver-assisted dependency lookup (Phase 2, step 7): the `@sfdc-internal/adk-knowledge` package installed in the caller's workspace. If it is not present, the skill surfaces the missing dependency as an unknown rather than failing.
  • Awareness of the project's downstream LWC authoring flow — this skill hands off a PRD to that flow but does not invoke it.

Core Principles

Apply the Aura → LWC migration principles before and during each phase: understand before converting, prioritize functionality equivalence over structural equivalence, leverage native web standards, migrate iteratively, and test thoroughly. The architectural deltas (two-way → one-way binding, Aura events → DOM events, `aura:id` → `this.template.querySelector`, etc.) are documented in [references/aura-migration-guidelines.md](references/aura-migration-guidelines.md).

Knowledge Bases

  • [references/aura-prd-framework.md](references/aura-prd-framework.md) — the 14-section framework for drafting a framework-agnostic PRD from an Aura component.
  • [references/aura-migration-guidelines.md](references/aura-migration-guidelines.md) — core principles + Aura-vs-LWC architectural differences + markup / JS / event / lifecycle translation tables.
  • [references/aura-reference-expert.md](references/aura-reference-expert.md) — static resources, global value providers, HTML-to-generic wording, URLs, component dependencies, `Aura.Action` handlers.
  • [references/aura-data-expert.md](references/aura-data-expert.md) — data requirements, `force:recordData`, `lightning:recordViewForm`, Apex controllers.
  • [references/aura-api-expert.md](references/aura-api-expert.md) — API surface: public attributes, methods, layout, component events, DOM events.
  • [references/aura-slots-expert.md](references/aura-slots-expert.md) — default and named slots (Aura facets / `{!v.body}` → LWC slots).
  • [references/aura-style-expert.md](references/aura-style-expert.md) — CSS, SLDS, design tokens, dynamic styling.
  • [references/aura-values-expert.md](references/aura-values-expert.md) — default values and initialization patterns.
  • [references/aura-resolver-expert.md](references/aura-resolver-expert.md) — resolving unknown components, events, interfaces, and libraries via the `@sfdc-internal/adk-knowledge` package.
  • [references/aura-redundant-code-expert.md](references/aura-redundant-code-expert.md) — strip Aura-only noise (commented-out code, telemetry, unused private attributes/methods) from the PRD before LWC handoff.
  • WCAG 2.2 — Aura-scoped accessibility reviewers (SC 1.3.1 (ii) Tables, 1.3.5 Identify Input Purpose, 3.2.1 On Focus, 3.2.2 On Input, 3.3.2 Labels or Instructions, 4.1.2 Name / Role / Value) are planned to land as a separate `accessibility-code-review-aura` skill in a follow-up PR; until then, Phase 3 applies the WCAG preamble inline.
  • [references/aura-to-lwc-completeness-checklist.md](references/aura-to-lwc-completeness-checklist.md) — post-conversion verification rubric.

Open the relevant reference before drafting or enhancing the corresponding PRD section.

Workflow

This skill covers the analysis and PRD-generation phases only. It **does not** produce, edit, or validate LWC bundles, wire adapters, or tests. Phases 1

Read more
@forcedotcom
Ships withsf-skills

This repository provides Salesforce agent skills, plugins, and sample apps for building applications.

1.1k200 skills6 agents4 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.1k
Star history of forcedotcom/sf-skills on GitHub, a chart by star-history.com

Other skills on sf-skills.

agentforce-observe

agentforce-observe

Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage Agent Health Monitoring (AHM)…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about experience-aura-lwc-migrate.

Which coding agents can use experience-aura-lwc-migrate?
experience-aura-lwc-migrate installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.