sf-lwc-development

Develop and debug Lightning Web Components with Custom Elements and Shadow DOM.

13|2|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-lwc-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-lwc-development
Source: https://github.com/jiten-singh-shahi/salesforce-claude-code/tree/main/.cursor/skills/sf-lwc-development
Command: npx skills add https://github.com/jiten-singh-shahi/salesforce-claude-code --skill sf-lwc-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LWC development enables teams to build modern, responsive Salesforce interfaces using Lightning Web Components, streamlining reactive data flows, component communication, and Apex integration while avoiding Aura and Visualforce when not needed.

Core Features & Use Cases

  • Create and debug Lightning Web Components (LWC) that adhere to Salesforce's modern web standards (Custom Elements, Shadow DOM, ES modules).
  • Migrate Aura components to LWC and wire data from Apex using the wire service, imperative Apex calls, and @api-driven composition.
  • Compose LWCs across record pages, app pages, Home Pages, and Experience Cloud sites; implement events and cross-component communication for dynamic UX.

Quick Start

Create a basic LWC component (HTML, JavaScript, and metadata) and attach it to a Salesforce page to verify rendering and reactive updates.

Frequently Asked Questions about sf-lwc-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Lightning Web Component and add it to a Salesforce record page?

Creating a Lightning Web Component involves defining its HTML, JavaScript, and metadata files, then configuring the component to render on Salesforce record pages, app pages, or Experience Cloud sites for reactive user interface updates.

What is the best way to migrate Aura components to Lightning Web Components?

Migrating Aura components to Lightning Web Components involves replacing legacy framework patterns with modern web standards like Custom Elements and Shadow DOM, while refactoring data binding and event handling into ES modules and wire services.

How does the wire service work when integrating Apex with Lightning Web Components?

The wire service in Lightning Web Components streams reactive Salesforce data to Apex methods by mapping server-side data directly to component properties, automatically refreshing the UI when data changes without requiring imperative calls.

Can I use Lightning Web Components for parent-child communication and custom events?

Lightning Web Components handle parent-child communication by exposing public properties and methods via the @api decorator, allowing components to dispatch custom DOM events that trigger reactive updates across the component hierarchy.

When should I use imperative Apex calls instead of the wire service in LWC?

Imperative Apex calls in Lightning Web Components are used for operations requiring manual execution control, such as conditional data fetching or complex server-side processing, whereas the wire service handles automatic reactive data streaming.

Do I need to understand Shadow DOM to build Lightning Web Components in Salesforce?

Understanding Shadow DOM is necessary for Lightning Web Components because Salesforce enforces this web standard to provide CSS encapsulation and secure DOM boundaries, ensuring component styles and markup do not bleed across the page.