forcedotcom/sf-skills / plugins/builder/experience-lwc/skills/experience-lwc-generate
experience-lwc-generate
UnverifiedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use platform-apex-generate), Aura components, or Visualforce.
assets/workspace-api/workspaceComponent.html
View on GitHub<template>
<lightning-card title="Workspace Tab Manager" icon-name="utility:tabset">
<div class="slds-p-horizontal_medium">
<!-- Console Detection -->
<template lwc:if={isNotConsole}>
<div class="slds-notify slds-notify_alert slds-alert_warning" role="alert">
<span class="slds-assistive-text">Warning</span>
<lightning-icon icon-name="utility:warning" size="x-small" class="slds-m-right_x-small"></lightning-icon>
<h2>Not in Console App</h2>
<p class="slds-m-top_x-small">
This component requires a Console App (Service Console or Sales Console) to function.
Tab management APIs are not available in standard Lightning pages.
</p>
</div>
</template>
<!-- Console Context UI -->
<template lwc:if={isConsole}>
<!-- Current Tab Info -->
<div class="slds-box slds-m-bottom_medium">
<h3 class="slds-text-heading_small slds-m-bottom_small">Current Tab</h3>
<dl class="slds-list_horizontal">
<dt class="slds-item_label">Tab ID:</dt>
<dd class="slds-item_detail">{currentTabId}</dd>
<dt class="slds-item_label">Label:</dt>
<dd class="slds-item_detail">{currentTabLabel}</dd>
</dl>
</div>
<!-- Tab Actions -->
<div class="slds-button-group" role="group">
<lightning-button
label="Refresh Tab"
onclick={handleRefresh}
icon-name="utility:refresh">
</lightning-button>
<lightning-button
label="Get All Tabs"
onclick={handleGetAllTabs}
icon-name="utility:list">
</lightning-button>
</div>
<!-- All Tabs List -->
<template lwc:if={allTabs.length}>
<h3 class="slds-text-heading_small slds-m-top_medium slds-m-bottom_small">
Open Tabs ({allTabs.length})
</h3>
<ul class="slds-has-dividers_bottom-space">
<template for:each={allTabs} for:item="tab">
<li key={tab.tabId} class="slds-item">
<div class="slds-grid slds-grid_align-spread">
<span class="slds-truncate">{tab.title}</span>
<span class="slds-text-color_weak slds-text-body_small">{tab.tabId}</span>
</div>
</li>
</template>
</ul>
</template>
<!-- Error Display -->
<template lwc:if={error}>
<div class="slds-notify slds-notify_alert slds-alert_error slds-m-top_medium" role="alert">
<span class="slds-assistive-text">Error</span>
<h2>{error}</h2>
</div>
</template>
</template>
</div>
</lightning-card>
</template>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |