Skip to content
Kitbay

experience-lds-best-practices-apply

Apache-2.0Updated on Nov 6, 20261,156GitHub stars

A Salesforce skill for reviewing how a Lightning Web Component reads and writes record data, and fixing problems in its use of Lightning Data Service.

What the skill teaches

A Salesforce skill for reviewing how a Lightning Web Component reads and writes record data, and fixing problems in its use of Lightning Data Service. The agent takes stock of the component's data layer, then works through a four-part checklist: building forms by hand where base record forms would do, using string field names instead of @salesforce/schema imports, mixing Apex and LDS without keeping the cache in sync, and calling Apex where UI API adapters would serve. It reports each section and then applies fixes for referential integrity and data consistency. It does not build new components or handle styling, security or accessibility reviews.

Capabilities

  • Review an LWC's data access against Lightning Data Service guidance
  • Replace hard-coded field names with schema imports
  • Keep the LDS cache in sync after Apex updates
  • Recommend UI API adapters or Apex for a data need