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/message-channel/RecordSelected.messageChannel-meta.xml
View on GitHub<?xml version="1.0" encoding="UTF-8"?>
<!--
LIGHTNING MESSAGE CHANNEL TEMPLATE
Message channels enable communication between LWC components
that don't have a parent-child relationship (cross-DOM communication).
Use cases:
- Components on different parts of the page
- LWC to Aura communication
- LWC to Visualforce communication
Replace: RecordSelected → YourChannelName
-->
<LightningMessageChannel xmlns="http://soap.sforce.com/2006/04/metadata">
<!-- Human-readable label shown in Setup -->
<masterLabel>Record Selected</masterLabel>
<!-- Description for documentation -->
<description>
Message channel for communicating record selection events between
components across the page. Used when a user selects a record in
one component and other components need to react.
</description>
<!-- Expose to Lightning web components -->
<isExposed>true</isExposed>
<!--
Message payload fields.
Define all data that can be sent through the channel.
-->
<lightningMessageFields>
<!-- Record ID field -->
<fieldName>recordId</fieldName>
<description>The Id of the selected record</description>
</lightningMessageFields>
<lightningMessageFields>
<!-- Record Name field -->
<fieldName>recordName</fieldName>
<description>The name of the selected record</description>
</lightningMessageFields>
<lightningMessageFields>
<!-- Object API Name field -->
<fieldName>objectApiName</fieldName>
<description>The API name of the object (e.g., Account, Contact)</description>
</lightningMessageFields>
<lightningMessageFields>
<!-- Source Component field -->
<fieldName>sourceComponent</fieldName>
<description>The name of the component that published this message</description>
</lightningMessageFields>
<lightningMessageFields>
<!-- Timestamp field -->
<fieldName>timestamp</fieldName>
<description>When the selection occurred (ISO 8601 format)</description>
</lightningMessageFields>
<!--
Additional fields for complex payloads.
Use JSON strings for nested data.
-->
<lightningMessageFields>
<fieldName>payload</fieldName>
<description>Additional data as JSON string for complex scenarios</description>
</lightningMessageFields>
</LightningMessageChannel>
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 |