Agent skill · forcedotcom

experience-lds-data-requirements-generate

Use when a Lightning Web Component data need is described in ambiguous natural language — turn \"get contact info\" or \"show account data\" into a clear, PRD-ready data-requirements spec. TRIGGER when the user says \"define data requirements for this LWC\", \"turn this PRD data section into validated object/field names\", \"recommend GraphQL vs UIAPI for this data need\", \"validate these Salesforce API names\", or \"spec out the LDS adapter for this component\", or references LWC bundle files (`.js`, `.js-meta.xml`) whose data layer is not yet specified. DO NOT TRIGGER when the data layer is already fully specified, when authoring the actual query or adapter code from a known spec, or when implementing an LWC end-to-end (use experience-lwc-generate).

What it needs

About 6k tokens when loaded.

What this skill does

<!-- adk-managed-skill --> Generating LDS Data Requirements Run a three-stage analyst workflow — requirements clarification, API name validation, API recommendation — so a downstream developer can implement a Lightning Data Service (LDS) solution without guessing. When to Use A PRD, Figma comment, or user ask mentions Salesforce data but objects/fields/operations are vague ("show customer info", "update the record", "list upcoming gigs"). Before writing any @wire/Apex code for a new data need, or before handing the recommendation to a downstream implementation workflow. You inherited TODOs like // TODO: fetch related records and need to turn them into precise specs. Do NOT use this skill when: The data need is already fully specified (object API name, field API names, operation type, scope). The component does not touch Salesforce data at all (UI-only, external REST, local state). Prerequisites The natural-language requirement (PRD snippet, user ask, or TODO comment). Access to the target org's Setup → Object Manager for confirming custom object/field API names. Awareness of the current GraphQL / UI API / Apex priority order (top-of-funnel is GraphQL when it can serve the read). Knowledge Bases references/requirements-analysis.md — Requirements Analysis Mode framework. references/api-name-validation.md — Precision Mode for object/field API names. references/api-recommendation.md — GraphQL → UI API → Apex decision framework. references/lds-expert.md — overall LDS patterns and pitfalls. references/lds-data-consistency.md — cache and consistency guarantees. references/lds-referential-integrity.md — parent/child and related-record rules. Workflow Run the three steps strictly in order. Do not skip a step unless the caller has already confirmed its output. Step 1 — Parse data requirement (Requirements Analysis Mode) Goal: extract everything you know and surface every uncertainty before moving on. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills forcedotcom/experience-lds-data-requirements-generate--2582e5

View the source on GitHub

Browse the @skills marketplace