本文へスキップ
Kitbay
スキル公式

experience-lds-best-practices-apply

Apache-2.02026年11月6日 更新1,156GitHubスター

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.

スキルの内容

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.

できること

  • 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