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/modal-component/modalComponent.html
View on GitHub<template>
<!-- Backdrop -->
<div class={backdropClass}></div>
<!-- Modal Container -->
<section
role="dialog"
tabindex="-1"
aria-modal="true"
aria-hidden={modalAriaHidden}
aria-labelledby="modal-heading"
aria-describedby="modal-content"
class={modalContainerClass}>
<div class="slds-modal__container outerModalContent" onclick={handleBackdropClick}>
<!-- Modal Content Box -->
<div class="slds-modal__content slds-p-around_medium" id="modal-content">
<!-- Header -->
<template lwc:if={showHeader}>
<header class="slds-modal__header slds-p-bottom_medium">
<lightning-button-icon
class="slds-modal__close"
icon-name="utility:close"
alternative-text="Close"
onclick={handleCancel}>
</lightning-button-icon>
<template lwc:if={modalHeader}>
<h2 id="modal-heading" class="slds-text-heading_medium slds-hyphenate">
{modalHeader}
</h2>
</template>
<template lwc:if={modalTagline}>
<p class="slds-m-top_x-small slds-text-color_weak">
{modalTagline}
</p>
</template>
</header>
</template>
<!-- Close button when no header -->
<template lwc:elseif={isOpen}>
<lightning-button-icon
class="slds-modal__close"
icon-name="utility:close"
alternative-text="Close"
onclick={handleCancel}>
</lightning-button-icon>
</template>
<!-- Slotted Body Content -->
<div class="slds-modal__body">
<slot name="body"></slot>
</div>
<!-- Footer -->
<template lwc:if={!hideFooter}>
<footer class="slds-modal__footer slds-p-top_medium">
<slot name="footer">
<!-- Default footer buttons -->
<lightning-button
label="Cancel"
onclick={handleCancel}
class="slds-m-right_x-small focusable">
</lightning-button>
<lightning-button
variant="brand"
label="Save"
onclick={handleSave}
class="focusable">
</lightning-button>
</slot>
</footer>
</template>
</div>
</div>
</section>
<!-- Background content (hidden when modal is open) -->
<div aria-hidden={isOpen}>
<slot name="background"></slot>
</div>
</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 |