forcedotcom/sf-skills / plugins/builder/experience-lwc/skills/experience-lwc-base-components-integrate
experience-lwc-base-components-integrate
VerifiedPick 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.3 KB |
| references/lbc-expert-guidance.md | markdown | 3.8 KB |
| references/lightning-component-index.md | markdown | 24.8 KB |
| references/lightning-components.md | markdown | 431.3 KB |
| scripts/extract-component-docs.shexecutable | script | 1.7 KB |
scripts/extract-component-docs.sh
View on GitHub#!/usr/bin/env bash
# Extracts the API doc block for one or more Lightning Base Components from
# references/lightning-components.md. Each component block is delimited by a
# line containing only `---` and identified by a line matching exactly
# `- **Name:** <camelCaseName>` (the leading bullet + colon + trailing
# end-of-line together anchor the match, so `button` does NOT collide with
# `buttonGroup`, `buttonIcon`, or `buttonMenu`).
#
# Usage:
# scripts/extract-component-docs.sh <camelCaseName> [<camelCaseName>...]
#
# Example:
# scripts/extract-component-docs.sh datatable recordEditForm buttonIcon
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REF="$SCRIPT_DIR/../references/lightning-components.md"
if [[ ! -f "$REF" ]]; then
echo "reference file not found: $REF" >&2
exit 2
fi
if [[ $# -lt 1 ]]; then
echo "usage: $0 <camelCaseName> [<camelCaseName>...]" >&2
exit 2
fi
EMITTED=0
for NAME in "$@"; do
# awk: split on `^---$` delimiter lines using RS, buffer each block
# in `block`, print blocks whose Name line matches EXACTLY. Delimiter
# BETWEEN emitted blocks is inserted by the outer shell loop below —
# awk only knows about its own single invocation.
if [[ $EMITTED -eq 1 ]]; then
echo "---"
fi
awk -v target="- **Name:** $NAME" '
BEGIN { RS = "\n---\n"; found = 0 }
{
match_found = 0
n = split($0, lines, "\n")
for (i = 1; i <= n; i++) {
if (lines[i] == target) { match_found = 1; break }
}
if (match_found) {
if (found) print "---"
print $0
found = 1
}
}
END {
if (!found) {
printf "no component named %s found in reference\n", target > "/dev/stderr"
exit 1
}
}
' "$REF"
EMITTED=1
done
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |