Skip to content

forcedotcom/sf-skills / plugins/builder/experience-lwc/skills/experience-lwc-generate

experience-lwc-generate

Unverified

Lightning 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.

FileKindSize
README.mdmarkdown4.1 KB
SKILL.mdskill md9.6 KB
assets/apex-controller/LwcController.clsother12.0 KB
assets/basic-component/basicComponent.cssother1.5 KB
assets/basic-component/basicComponent.htmlother4.5 KB
assets/basic-component/basicComponent.jsscript7.3 KB
assets/basic-component/basicComponent.js-meta.xmlconfig4.5 KB
assets/datatable-component/datatableComponent.htmlother4.1 KB
assets/datatable-component/datatableComponent.jsscript13.1 KB
assets/flow-screen-component/flowScreenComponent.cssother1.7 KB
assets/flow-screen-component/flowScreenComponent.htmlother7.1 KB
assets/flow-screen-component/flowScreenComponent.jsscript13.9 KB
assets/flow-screen-component/flowScreenComponent.js-meta.xmlconfig3.9 KB
assets/form-component/formComponent.htmlother6.4 KB
assets/form-component/formComponent.jsscript11.3 KB
assets/graphql-component/graphqlComponent.htmlother4.8 KB
assets/graphql-component/graphqlComponent.jsscript10.7 KB
assets/jest-test/componentName.test.js.exampleother15.6 KB
assets/message-channel/RecordSelected.messageChannel-meta.xmlconfig2.4 KB
assets/message-channel/lmsPublisher.jsscript3.8 KB
assets/message-channel/lmsSubscriber.jsscript7.0 KB
assets/modal-component/modalComponent.htmlother3.2 KB
assets/modal-component/modalComponent.jsscript5.5 KB
assets/record-picker/recordPicker.htmlother2.0 KB
assets/record-picker/recordPicker.jsscript5.4 KB
assets/state-store/store.jsscript9.1 KB
assets/typescript-component/typescriptComponent.cssother1.3 KB
assets/typescript-component/typescriptComponent.htmlother4.3 KB
assets/typescript-component/typescriptComponent.js-meta.xmlconfig2.4 KB
assets/typescript-component/typescriptComponent.test.ts.exampleother13.6 KB
assets/typescript-component/typescriptComponent.tsscript11.7 KB
assets/workspace-api/workspaceComponent.htmlother3.4 KB
assets/workspace-api/workspaceComponent.jsscript8.0 KB
references/accessibility-guide.mdmarkdown22.3 KB
references/advanced-features.mdmarkdown2.8 KB
references/async-notification-patterns.mdmarkdown19.7 KB
references/cli-commands.mdmarkdown12.6 KB
references/component-patterns.mdmarkdown44.5 KB
references/flow-integration-guide.mdmarkdown19.0 KB
references/jest-testing.mdmarkdown25.3 KB
references/lms-guide.mdmarkdown21.9 KB
references/lwc-best-practices.mdmarkdown36.3 KB
references/performance-guide.mdmarkdown20.3 KB
references/scoring-and-testing.mdmarkdown3.8 KB
references/slds-blueprints.jsonconfig781.3 KB
references/slds-design-guide.mdmarkdown10.7 KB
references/state-management.mdmarkdown19.9 KB
references/template-anti-patterns.mdmarkdown20.1 KB
references/triangle-pattern.mdmarkdown12.5 KB
scripts/local-dev-preview.shscript1.1 KB
scripts/lwc-lsp-validate.pyscript8.6 KB
scripts/post-tool-validate.pyscript14.7 KB
scripts/slds_data/deprecated_patterns.jsonconfig3.4 KB
scripts/slds_data/styling_hooks.jsonconfig2.9 KB
scripts/slds_data/valid_slds_classes.jsonconfig7.4 KB
scripts/slds_linter_wrapper.pyscript8.9 KB
scripts/slds_rules/__init__.pyscript593 B
scripts/template_validator.pyscript13.5 KB
scripts/validate_slds.pyscript26.5 KB

references/slds-design-guide.md

View on GitHub
# SLDS Design

## Overview

**Use blueprints** when building custom HTML/CSS, targeting non-Salesforce platforms, or when no Lightning Base Component exists.

Refer to the SLDS blueprints in [slds-blueprints.json](slds-blueprints.json)

**Use Lightning Base Components** when working within Salesforce (LWC, Aura, Visualforce) — they handle accessibility, events, and framework integration automatically.

---

## Blueprints by Category

### Actions (4 components)

| Blueprint              | Description                      | Lightning Component      |
| ---------------------- | -------------------------------- | ------------------------ |
| **Buttons**            | Action triggers with text labels | `lightning-button`       |
| **Button Icons**       | Icon-only action triggers        | `lightning-button-icon`  |
| **Button Groups**      | Related buttons in a row         | `lightning-button-group` |

---

### Input (23 components)

| Blueprint                 | Description                                    | Lightning Component                 |
| ------------------------- | ---------------------------------------------- | ----------------------------------- |
| **Checkbox**              | Binary selection control                       | `lightning-input` (type="checkbox") |
| **Checkbox Button**       | Checkbox styled as a button                    | `lightning-checkbox-button`         |
| **Checkbox Button Group** | Set of checkbox buttons in a fieldset          | N/A                                 |
| **Checkbox Toggle**       | Toggle-style checkbox                          | N/A                                 |
| **Combobox**              | Text input with dropdown list                  | `lightning-combobox`                |
| **Counter**               | Number input with increment/decrement controls | `lightning-input`                   |
| **Datepickers**           | Calendar date selection                        | `lightning-input` (type="date")     |
| **Datetime Picker**       | Combined date and time selection               | N/A                                 |
| **Dueling Picklist**      | Multi-select with two lists                    | N/A                                 |
| **Expression**            | Formula builder interface                      | N/A                                 |
| **File Selector**         | File upload with drag-and-drop                 | `lightning-file-upload`             |
| **Form Element**          | Wrapper for form inputs                        | N/A                                 |
| **Input**                 | Text/number input                              | `lightning-input`                   |
| **Lookups**               | Search and select from a dataset               | N/A                                 |
| **Picklist**              | Dropdown from predefined options               | N/A                                 |
| **Radio Group**           | Single selection from exclusive options        | `lightning-radio-group`             |
| **Radio Button Group**    | Radio buttons in a styled group                | `lightning-radio-group`             |
| **Rich Text Editor**      | Text editor with formatting toolbar            | `lightning-input-rich-text`         |
| **Select**                | Native dropdown selection                      | `lightning-select`                  |
| **Slider**                | Numeric range input via draggable handle       | `lightning-slider`                  |
| **Textarea**              | Multi-line text input                          | `lightning-textarea`                |
| **Timepicker**            | Time selection interface                       | `lightning-input` (type="time")     |
| **Visual Picker**         | Visual tile-based selection                    | N/A                                 |

---

### Layout (12 components)

| Blueprint              | Description                          | Lightning Component    |
| ---------------------- | ------------------------------------ | ---------------------- |
| **Accordion**          | Collapsible stacked sections         | `lightning-accordion`  |
| **Brand Band**         | Visual header with branding          | `lightning-brand-band` |
| **Builder Header**     | Header for app builder interfaces    | N/A                    |
| **Cards**              | Container with header/body/footer    | `lightning-card`       |
| **Carousel**           | Slideshow with navigation controls   | `lightning-carousel`   |
| **Docked Form Footer** | Fixed bottom footer for form actions | N/A                    |
| **Expandable Section** | Collapsible content block            | N/A                    |
| **Page Headers**       | Page title, metadata, and actions    | N/A                    |
| **Panels**             | Structured side or overlay container | `lightning-panel`      |
| **Split View**         | Resizable two-pane layout            | N/A                    |
| **Summary Detail**     | Collapsible key-value layout         | N/A                    |
| **Tiles**              | Card-like grid content items         | `lightning-tile`       |

---

### Navigation (12 components)

| Blueprint               | Description                    | Lightning Component             |
| ----------------------- | ------------------------------ | ------------------------------- |
| **App Launcher**        | Grid for app discovery         | N/A                             |
| **Breadcrumbs**         | Hierarchical location trail    | `lightning-breadcrumbs`         |
| **Dynamic Menu**        | Contextual menu in popover     | `lightning-menu`                |
| **Global Header**       | Primary application header     | N/A                             |
| **Global Navigation**   | Main navigation bar            | N/A                             |
| **Menus**               | Contextual action lists        | `lightning-menu-item`           |
| **Path**                | Linear process stage indicator | N/A                             |
| **Scoped Tabs**         | Tabs scoped to a context       | `lightning-tabset`              |
| **Tabs**                | Switchable content panels      | `lightning-tabset`              |
| **Trees**               | Hierarchical list              | `lightning-tree`                |
| **Vertical Navigation** | Vertical nav menu              | `lightning-vertical-navigation` |
| **Vertical Tabs**       | Vertical tab interface         | `lightning-tabset`              |

---

### Display (9 components)

| Blueprint             | Description                      | Lightning Component |
| --------------------- | -------------------------------- | ------------------- |
| **Activity Timeline** | Chronological event list         | N/A                 |
| **Avatar**            | User or entity image placeholder | `lightning-avatar`  |
| **Avatar Group**      | Stacked avatar collection        | N/A                 |
| **Badges**            | Small status label               | `lightning-badge`   |
| **Dynamic Icons**     | Animated contextual icons        | N/A                 |
| **Files**             | File attachment card             | N/A                 |
| **Icons**             | SVG icons from SLDS sprite       | `lightning-icon`    |
| **Illustration**      | Empty/error state graphic        | N/A                 |
| **Pills**             | Removable tag or filter token    | `lightning-pill`    |

---

### Data (2 components)

| Blueprint       | Description             | Lightning Component   |
| --------------- | ----------------------- | --------------------- |
| **Data Tables** | Sortable tabular data   | `lightning-datatable` |
| **Tree Grid**   | Hierarchical data table | `lightning-tree-grid` |

---

### Feedback (9 components)

| Blueprint                | Description                         | Lightning Component            |
| ------------------------ | ----------------------------------- | ------------------------------ |
| **Alert**                | Page-level status banner            | N/A                            |
| **Notifications**        | System notification messages        | N/A                            |
| **Progress Bar**         | Linear completion indicator         | `lightning-progress-bar`       |
| **Progress Indicator**   | Multi-step process tracker          | `lightning-progress-indicator` |
| **Progress Ring**        | Circular progress indicator         | `lightning-progress-ring`      |
| **Scoped Notifications** | Notification scoped to a container  | N/A                            |
| **Spinners**             | Loading state indicator             | `lightning-spinner`            |
| **Toast**                | Temporary notification message      | N/A                            |
| **Trial Bar**            | Trial status and call-to-action bar | N/A                            |

---

### Overlay (6 components)

| Blueprint           | Description                            | Lightning Component |
| ------------------- | -------------------------------------- | ------------------- |
| **Docked Composer** | Bottom-docked content creation panel   | N/A                 |
| **Modals**          | Blocking dialog overlay                | N/A                 |
| **Popovers**        | Contextual overlay anchored to trigger | N/A                 |
| **Prompt**          | Confirmation or input dialog           | N/A                 |
| **Tooltips**        | Hover-triggered label                  | N/A                 |
| **Welcome Mat**     | Onboarding introduction overlay        | N/A                 |

---

### Complex Components (8 components)

| Blueprint           | Description                           | Lightning Component      |
| ------------------- | ------------------------------------- | ------------------------ |
| **Chat**            | Chronological chat message display    | N/A                      |
| **Color Picker**    | Color selection with hex/swatch input | N/A                      |
| **Drop Zone**       | Drag-and-drop target area             | N/A                      |
| **Feeds**           | Chronological activity feed           | N/A                      |
| **List Builder**    | Drag-and-drop list ordering           | `lightning-dual-listbox` |
| **Map**             | Interactive map display               | `lightning-map`          |
| **Publishers**      | Content creation panel                | N/A                      |
| **Setup Assistant** | Guided onboarding checklist           | N/A                      |

---

## Framework Notes

- **LWC / Aura**: Prefer the mapped Lightning component when listed — it handles accessibility and events.
- **React / Vue / Angular / plain HTML**: Use the blueprint HTML structure and CSS classes directly.
- **Customization**: Apply styling hooks (CSS custom properties) to theme components without overriding base styles.
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall