Experience Lds Data Requirements Generate

作者 forcedotcome5164d94d751無授權條款1K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

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

AI 產生的概覽

把含糊的 Salesforce LWC 資料需求轉成已驗證、可直接寫入 PRD 的資料需求規格,並提出 API 建議。

功能
執行三階段分析流程:解析自然語言資料需求並列出待釐清問題,將每個物件與欄位 API 名稱驗證到 100% 正確,再依固定優先順序建議 GraphQL、UI API/LDS 或 Apex。最後輸出一個可直接貼上的規格區塊,涵蓋物件、欄位、關聯、範圍、存取模式、觸發方式、建議 API、實作模式、理由與下一步。
適用情境
適用於 PRD、Figma 留言或使用者需求提到 Salesforce 資料,但物件、欄位或操作仍含糊不清時,或在撰寫任何 wire 或 Apex 程式碼之前,需要把遺留的 TODO 變成精確規格時。不適用於資料層已完全明確、元件不涉及 Salesforce 資料,或端到端實作 LWC 的情況。
執行需求
不需腳本,只有指示與參考文件。需要自然語言需求描述、存取目標組織的 Setup Object Manager 以確認自訂物件與欄位 API 名稱,以及了解 GraphQL / UI API / Apex 的優先順序。
<!-- 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 [blocked] — Requirements Analysis Mode framework.
  • references/api-name-validation.md [blocked] — Precision Mode for object/field API names.
  • references/api-recommendation.md [blocked] — GraphQL → UI API → Apex decision framework.
  • references/lds-expert.md [blocked] — overall LDS patterns and pitfalls.
  • references/lds-data-consistency.md [blocked] — cache and consistency guarantees.
  • references/lds-referential-integrity.md [blocked] — 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.

Open every conversation with:

"I've analyzed your data requirement: '<REQ>'. Here's what I understand and what I need clarification on…"

Apply the four actions from references/requirements-analysis.md [blocked]:

  1. Operation type — Is it read, create, update, or delete? Ambiguous verbs trigger an immediate clarifying question. Confirm with: "I've identified this as a <OP> operation. Is this correct?"
  2. Data entity identification — Standard object (high confidence, proceed), suspected custom object (ask: "Is this a custom object <Term>__c? What's the exact API name?"), or unknown (ask for the API name from Object Manager).
  3. Field specification — Map generic references (phone, address, name, status) to specific API names. If multiple candidates exist, enumerate them and ask.
  4. Scope and context — One record vs. many; user-triggered vs. auto; expected volume; real-time vs. on-demand.

End-of-step gate. Consolidate into:

text
Clear Requirements: [confirmed facts]Need Clarification: [numbered questions from 1.1–1.4]

Proceed only when every question is answered with ≥90% confidence.

Step 2 — Validate Salesforce API names (Precision Mode)

Goal: 100% accuracy on every object and field API name before code is written.

Apply the validation framework from references/api-name-validation.md [blocked]:

  • Standard objects — Account, Contact, Lead, Opportunity, Case, User, Task, Event, Product2, Pricebook2, Order, OrderItem, Asset, Contract, Campaign pass immediately. Anything else triggers verification.
  • Custom objects — Never assume __c suffixes. Ask: "Is this <Term>__c or a different custom object API name?" Point users to Setup → Object Manager → <Object> → Details → API Name.
  • Standard fields — Map ambiguous references using the tables in the reference file.
  • Custom fields — Require __c suffix confirmation; case-sensitive.

Confirmation template:

text
Object API Name: <OBJECT>Field API Names: <FIELD_LIST>Confidence Level: 100% validated

If any uncertainty remains, stop. Emit the outstanding verification requests and the Setup navigation instructions. Do not advance to Step 3 or generate code.

Skip this step only when the caller has explicitly stated that API names are already validated upstream, or the requirement does not involve records at all. Record the skip reason in the Step 4 output.

Step 3 — Recommend the API (Solution Architecture Mode)

Goal: pick the right data access API using the decision framework in references/api-recommendation.md [blocked].

Priority order (non-negotiable):

  1. GraphQL wire adapter (lightning/graphql) — top choice for reads it can serve.
  2. UI API / LDS — CRUD writes, metadata, layouts, picklists, simple reads.
  3. Apex — fallback only.

Walk the six decision sub-steps:

  1. Operation type (read / write / mixed).
  2. Object & field support in UI API.
  3. Relationship complexity (single vs. multi-object, parent/child).
  4. Query complexity (filtering, sorting, pagination, aggregation).
  5. Performance & scalability (round trips, payload size).
  6. Specialized needs (metadata, atomic transactions, business logic, elevated permissions).

Recommendation rules:

  • GraphQL when read-only on supported objects; multi-object joins; pagination/sort/filter; aggregation; minimizing round trips.
  • UI API when CRUD writes, metadata (picklists, layouts, object info), getRecordCreateDefaults + createRecord, list views.
  • Apex when UI API doesn't support the object/field; multi-record atomic transactions; custom business logic; system-context permissions.

Present with the "Show Your Work" template — explicitly explain why not GraphQL / why not UI API / why not Apex.

Hand-off:

  • GraphQL recommended → document the query shape (root object, requested fields, filters) in the Step 4 output; downstream authoring of the actual lightning/graphql wire adapter is the caller's next step.
  • UI API recommended → document the specific UI API adapter (getRecord, getRelatedListRecords, createRecord, updateRecord, getRecordCreateDefaults, etc.) and any layout/picklist prerequisites.
  • Apex recommended → document the reason in the Step 4 output and hand off to the project's Apex workflow of record.

Step 4 — Emit the PRD-ready specification

Produce a single block the caller can paste into a PRD or component file header:

text
## Data Requirement: <CLEAR_TITLE>
### Technical Specification- Primary Object: <OBJECT_API_NAME>- Required Fields: <FIELD_API_NAMES>- Relationships: <RELATED_OBJECTS_OR_LOOKUPS_OR_NONE>- Data Scope: <SINGLE_RECORD | MULTIPLE_RECORDS | QUERY_BASED>- Access Pattern: <READ_ONLY | READ_WRITE | WRITE_ONLY>- Trigger: <USER_ACTION | AUTO_ON_LOAD | REACTIVE>
### Implementation Details- Recommended LDS API: <GRAPHQL | UI_API | APEX>- Implementation Pattern: <WIRE | IMPERATIVE>- Rationale: <WHY THIS API, NOT THE OTHERS>- Next step: <author the GraphQL wire adapter | author the UI API adapter call | project's Apex workflow>

Few-Shot Patterns

Vague askClarifying question
"get contact info""Which Contact fields specifically? (Email, Phone, MailingAddress, Department, …)"
"show account data""Which Account fields do you need? And are we showing one record or a list?"
"custom gym records""Is this a custom object Gym__c? What specific fields are you looking for?"
"update the record""Which object? Which fields? Which record (ID at runtime)?"
"all customer information""Account or Contact? Which fields? Single record or query?"

Verification Checklist

  • Every ambiguous term from the original requirement resolved to a confirmed API name.
  • Operation type confirmed (R / C / U / D).
  • Scope (single vs. many) and trigger (user vs. auto) documented.
  • API recommendation justified against all three options (GraphQL / UI API / Apex).
  • Concrete next action named — either the specific downstream adapter to wire (lightning/graphql, getRecord, createRecord, etc.) or the project's Apex workflow of record.
  • If Step 2 was skipped, the reason is recorded in the output.
  • Specification block copy-pasteable into the PRD.

Cross-References

  • Skills:
    • Output is consumed by experience-lwc-generate when wiring @wire adapters into a component.
  • Downstream authoring steps (not skill-bound today):
    • GraphQL path — the caller writes the lightning/graphql wire adapter using the schema pulled from the target org.
    • UI API path — the caller wires the recommended UI API adapter (getRecord, createRecord, etc.).

來源與署名

來源:forcedotcom/sf-skills位於skills/experience-lds-data-requirements-generate提交e5164d9

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 forcedotcom/sf-skills 的技能

Service Itsm Teams Itservice Configure

forcedotcom

Configure the "Set Up Salesforce IT Service" checklist for Microsoft Teams Employee Service (ITSM) — the employee side, covering app enablement, marketplace install guidance, user access assignment, and Digital Experience Site selection. Use this for: 'turn on Salesforce IT Service', 'set up IT Service on Teams', 'assign Teams for Employee permission set', 'give employees access to Teams for Employee Service', 'manage user access for Teams ITSM', 'grant users the permission sets needed for Teams Employee Service', 'select a digital experience site for Teams', 'install Salesforce IT Service app on Teams', or any request to complete the IT Service half of the Teams ITSM Go page checklist (including the Manage User Access step). DO NOT TRIGGER for the base Teams Salesforce Go page toggle or Azure/Entra app setup (service-itsm-teams-configure) or for the IT Desk/fulfiller half of the checklist (service-itsm-teams-itdesk-configure).

待分類1K昨天更新

Service Itsm Teams Coordinate

forcedotcom

End-to-end autopilot orchestrator for setting up Microsoft Teams integration in Salesforce Service Cloud ITSM — runs the whole flow (enable the Teams for Employee Service Go feature, register the Microsoft Entra app, populate Named Credentials, configure the IT Desk and IT Service checklists, turn on Swarming, and optionally embed the Agentforce agent) in one continuous pass, stopping only at the points a human must act. Use when the user asks to set up Microsoft Teams for ITSM end to end, 'set up teams for it service', 'do the whole teams itsm setup', 'configure microsoft teams for employee service', or wants a guided Teams ITSM walkthrough. Delegates each stage to a specialized child skill while driving the sequence itself. DO NOT TRIGGER when the user asks to enable Teams alone, configure just the IT Desk or IT Service checklist alone, or enable Swarming alone — delegate directly to the specific child skill in those cases.

待分類1K昨天更新

Service Itsm Teams Itdesk Configure

forcedotcom

Configure the "Set Up Salesforce IT Desk" checklist for Microsoft Teams Employee Service (ITSM) — the fulfiller/agent side, covering app enablement, marketplace install guidance, user access assignment, and Swarming collaboration-tool setup. Use this for: 'turn on Salesforce IT Desk', 'set up IT Desk on Teams', 'assign Teams for IT Desk permission set', 'set Teams as collaboration tool for swarming', 'install Salesforce IT Desk app on Teams', or any request to complete the IT Desk half of the Teams ITSM Go page checklist. DO NOT TRIGGER for the base Teams Salesforce Go page toggle or Azure/Entra app setup (service-itsm-teams-configure) or for the IT Service/employee half of the checklist (service-itsm-teams-itservice-configure).

待分類1K昨天更新

Service Itsm Teams Debug

forcedotcom

透過對 Salesforce 組織執行通過/失敗設定檢查清單,診斷 Microsoft Teams 員工服務(ITSM)設定失敗問題。

DevOps & Cloud1K昨天更新

Service Itsm Teams Employee Agent Configure

forcedotcom

Configure the embedded Agentforce Employee Agent so it replies inside the Microsoft Teams ITSM custom client ('Salesforce Employee Assist' / 'Ask AI Agent'). Use this for: 'set up employee agent in Teams', 'embed Agentforce agent in Teams', 'make the IT Service Employee Agent reply in Teams', 'Teams Ask AI Agent not responding', 'agent joins then leaves without replying', 'configure MIAW deployment for Teams employee agent', 'Teams embedded messaging agent setup'. Builds the whole stack headlessly (zero Setup-UI clicks): the Web messaging channel with User Verification ON, the Enhanced Chat User Verification Key Set (JWKS_URL) it requires, the Teams_AgentForce custom-client deployment, the routing flow to the agent, and the Agent Access permission set that lets the portal user reach the agent. DO NOT TRIGGER for enabling the Teams feature Salesforce Go page toggle (service-itsm-teams-configure) or for configuring notification preferences.

待分類1K昨天更新

Service Itsm Swarming Configure

forcedotcom

透過 Connect API 呼叫啟用 Salesforce Swarming ITSM 功能,並將協作工具設為 Teams。

DevOps & Cloud1K昨天更新