commerce-b2b-open-code…
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Use ALWAYS when a prompt mentions GraphQL, lightning/uiGraphQLApi, @wire(graphql, ...), or gql template tags in an LWC context — even if the surface ask is \"build an LWC\". Owns the ENTIRE flow: introspect the org's LDS GraphQL schema, identify entities/fields, construct the
$ npx -y skills add forcedotcom/sf-skills --skill experience-lds-graphql-generate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/experience-lds-graphql-generateContext preview
The summary Claude sees to decide when to auto-load this skill.
Use ALWAYS when a prompt mentions GraphQL, lightning/uiGraphQLApi, @wire(graphql, ...), or gql template tags in an LWC context — even if the surface ask is \"build an LWC\". Owns the ENTIRE flow: introspect the org's LDS GraphQL schema, identify entities/fields, construct the
name: experience-lds-graphql-generate
description: "Use ALWAYS when a prompt mentions GraphQL, lightning/uiGraphQLApi, @wire(graphql, ...), or gql template tags in an LWC context — even if the surface ask is \"build an LWC\". Owns the ENTIRE flow: introspect the org's LDS GraphQL schema, identify entities/fields, construct the schema-validated gql query or mutation, wire it into the LWC via lightning/uiGraphQLApi, verify against a connected org. REQUIRED whenever a prompt asks to render, list, or edit Salesforce records (Account, Contact, Case, custom objects) via GraphQL — the .html and .js scaffolding IS in scope. DO NOT delegate to experience-lwc-generate: that skill has NO GraphQL schema introspection, NO create_lds_graphql_read_query binding, and defaults to getRecord/getRelatedListRecords wire adapters which will not satisfy a GraphQL prompt. DO NOT TRIGGER only if the prompt forbids GraphQL, chooses UIAPI/Apex (use experience-lds-best-practices-apply), or asks for data requirements (use experience-lds-data-requirements-generate)."
metadata:
relatedSkills:
- "experience-lds-best-practices-apply"
- "experience-lds-data-requirements-generate"
- "experience-lwc-generate"
version: "1.0"
domains: ["Experience", "Platform"]
cliTools:
- tool: ["python3"]
semver: ">=3.8"
- tool: ["sf"]
semver: ">=2.0.0"<!-- adk-managed-skill -->
Generate schema-validated Salesforce LDS GraphQL queries (read or mutation), either as standalone queries or wired into a Lightning Web Component via the `lightning/graphql` adapters. The skill encodes the schema-as-source-of-truth workflow end-to-end. Two bundled bash scripts handle the org-aware steps — `scripts/fetch-lds-graphql-schema.sh` for schema introspection and `scripts/test-lds-graphql-query.sh` for live-org validation.
Do NOT use this skill for:
These apply to every step — they are the rules this skill enforces:
1. **Sequential execution** — Steps 1→6 run in order. Every step is mandatory unless its triggering conditions are not met. 2. **Hard stop on failure** — A failed step blocks subsequent steps until remediation is complete. 3. **Schema is the single source of truth** — Every entity name, field name, field type, and relationship must come from `schema.graphql` introspection. Never use common Salesforce knowledge (e.g., do not assume `Owner` is a `User` — it may be polymorphic). 4. **Report each step** — Use the provided templates before advancing. 5. **Error reporting** — Categorize errors; never echo raw tool output into the chat.
The full normative workflow lives in [references/generation-guide.md](references/generation-guide.md). Read it before starting. Read-query specifics are in [references/generation-query.md](references/generation-query.md); mutation specifics are in [references/generation-mutation.md](references/generation-mutation.md).
Collect and echo back:
Query type: [read | mutation] Namespace: [uiapi | setup] Output format: [standalone | LWC integration]
If any is unclear, ask once and wait.
1. Ask for the `usernameOrAlias`. If a default is inferred from context, present it and wait for explicit confirmation. 2. Run `scripts/fetch-lds-graphql-schema.sh USERNAME_OR_ALIAS [OUTPUT_PATH] [API_VERSION]` with the confirmed alias. The script writes the SDL to `schema.graphql` (or the path you pass) so the schema never enters the chat context. If a non-empty `schema.graphql` already exists at `OUTPUT_PATH`, the script exits early (set `LDS_FETCH_FORCE=1` to re-fetch). 3. On failure: **hard stop**, report category, ask user to resolve org access, then retry.
The schema is 265,000+ lines. **NEVER** read the whole file — use targeted `grep` calls only.
**Search budget**: max 4–5 grep calls per entity. Plan before executing.
1. Entity names are PascalCase. 2. If names aren't given, extract candidates from `^type <Name> implements Record` matches. 3. If any entity is still unresolved, ask the user and wait. 4. Report:
Identified entities: - EntityName (Field1, Field2, ...) Unknown entities: - <textual name> Step 3 status: SUCCESS | FAILED
5. If `Unknown entities` is non-empty → status `FAILED` → ask for clarification → restart Step 3.
Iteration limit: **3 cycles** (primary entity → references → child relationships). Hard-stop after 3.
Per cycle:
1. Remove already-introspected entitie
This repository provides a curated collection of Salesforce agent skills for building applications.
Repo: forcedotcom/sf-skills
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Replace OOTB (out-of-the-box) B2B Commerce components with open source equivalents in site metadata content.json files, or look up the equivalent open code…
Use this skill to diagnose and resolve what blocks a DevOps Center promotion of a work item's feature branch: Git merge conflicts and deployment failures.…
Use this skill to manage the full lifecycle of a DevOps Center pipeline — list all pipelines, get a single pipeline's details, create a new pipeline linked to…
Analyzes DevOps Center test failures and Code Analyzer violations in plain language — failure category, offending file/class/method/line, rule violated, fix…
Configures DevOps Center pipeline testing infrastructure: enables a test provider so its suites become available, re-syncs a configured provider to pull in new…