commerce-b2b-open-code…
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Pick the right Lightning Base Component (`lightning-*`) for a given UI task, retrieve its full API (props, methods, events, slots) from the bundled per-component reference, and wire it into an LWC (LWC `.html`, `.js`, and `.css` files) without breaking SLDS. Use this skill when
$ npx -y skills add forcedotcom/sf-skills --skill experience-lwc-base-components-integrate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/experience-lwc-base-components-integrateContext preview
The summary Claude sees to decide when to auto-load this skill.
Pick the right Lightning Base Component (`lightning-*`) for a given UI task, retrieve its full API (props, methods, events, slots) from the bundled per-component reference, and wire it into an LWC (LWC `.html`, `.js`, and `.css` files) without breaking SLDS. Use this skill when
name: experience-lwc-base-components-integrate
description: "Pick the right Lightning Base Component (`lightning-*`) for a given UI task, retrieve its full API (props, methods, events, slots) from the bundled per-component reference, and wire it into an LWC (LWC `.html`, `.js`, and `.css` files) without breaking SLDS. Use this skill when users say \"I need a Lightning modal / datatable / combobox / record form\", ask which `lightning-*` component fits a use case, want a shortlist of LBC candidates, are about to hand-roll a UI that a base component already provides, or are editing an LWC bundle's `.html` / `.js` / `.css` and need to select or wire a base component. Also triggers on \"Lightning base component\", \"LBC\", \"lightning-combobox\", \"lightning-datatable\", \"use `lightning-` tag\". DO NOT TRIGGER for applying SLDS design tokens, blueprints, or styling guidance in general — that is `design-systems-slds-apply`; this skill only selects and wires `lightning-*` base components."
metadata:
version: "1.0"
domains: ["Experience"]
relatedSkills:
- design-systems-slds-apply<!-- adk-managed-skill -->
Lightning Base Components (LBC) are the `lightning-*` web components shipped by Salesforce. This skill routes an agent through the right decision sequence so the final component choice is **as specific as possible** and backed by real API docs — not a hand-rolled reimplementation of something that already exists.
"modal with footer") and asks which `lightning-*` component fits.
should be using LBC instead.
overriding SLDS classes or restyling LBC internals.
`lightning-*` tag.
public namespace; some platforms expose `lightning-community` or others — the user's meta files will clarify).
in [references/lightning-components.md](references/lightning-components.md). Each component is a `# Component API Structure` block; grep for `**Name:** <camelCaseName>` (e.g. `**Name:** datatable`) to jump to its Properties / Methods / Events / Slots. Read this rather than relying on cached knowledge — LBC evolves and the reference is the source of truth.
Open [lightning-component-index.md](references/lightning-component-index.md) and scan **all** entries before making any selection. This is non-negotiable: LBC's value comes from picking the most specialized component, and skipping the scan leads to reinventing compound widgets out of primitives.
As you scan, compile a **candidate list** — every component whose description touches any aspect of the use case. Do not filter or rank yet.
Once the scan is complete:
that covers it. Prefer a specialized compound (`lightning-record-form`, `lightning-tabset`, `lightning-datatable`) over a generic primitive (`lightning-input`, `lightning-button`) when the specialized one covers the scenario end-to-end.
record, do not pair it with `lightning-input-field` unless you're explicitly overriding behavior.
Present the final shortlist to the developer with a one-line rationale per component. Wait for explicit confirmation before pulling full API docs. This prevents the agent from burning context on components the developer has already mentally ruled out.
Once confirmed, use the bundled helper to pull the exact API blocks — this avoids ad-hoc grepping across a large reference:
scripts/extract-component-docs.sh <camelCaseName> [<camelCaseName>...]
Convert `lightning-<foo>` tags to camelCase (no `lightning-` prefix):
Each returned block has the same shape: **Basic Information** (tag, namespace, type), **Properties** (name, type, default, description), **Methods**, **Events**, **Slots**, and (where applicable) usage notes. This skill is about **picking** the components; the bundled reference is about **wiring** them.
Using the per-component reference, walk the developer through:
the event payload contains.
requires `object-api-name` and `record-id` for edit/view modes).
Do not override SLDS classes on LBC internals. See [lbc-expert-guidance.md](references/lbc-expert-guidance.md) for specifics. Common issues:
restyle an LBC — LBC ships inside a shadow root, so these selectors either leak into sibling components or get stripped entirely. Use the component's documented styling hooks (`--sds-c-button-*`, etc.) instead.
markup is hidden behind the shadow root. If the component doesn't expose the slot/prop you need, that's a platform-level gap, not a restyling job.
This repository provides a curated collection of Salesforce agent skills for building applications.
Repo: forcedotcom/sf-skills
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Replace 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…
Use this skill to diagnose and resolve what blocks a DevOps Center promotion of a work item's feature branch: Git merge conflicts and deployment failures.…
Use this skill to manage the full lifecycle of a DevOps Center pipeline — list all pipelines, get a single pipeline's details, create a new pipeline linked to…
Analyzes DevOps Center test failures and Code Analyzer violations in plain language — failure category, offending file/class/method/line, rule violated, fix…
Configures DevOps Center pipeline testing infrastructure: enables a test provider so its suites become available, re-syncs a configured provider to pull in new…