Hunt Sqli
elementalsouls/Claude-BugHunter
Hunting skill for sqli vulnerabilities. An agent skill from elementalsouls/Claude-BugHunter.
MUST activate whenever a uiBundles//src/ project reads, writes, or displays Salesforce data — INCLUDING building a page, list, table, card grid, dashboard, or form that shows, filters, counts, or…
$ npx skills add forcedotcom/sf-skills --skill experience-ui-bundle-salesforce-data-access -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install forcedotcom/sf-skills experience-ui-bundle-salesforce-data-access --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/experience-ui-bundle-salesforce-data-access .claude/skills/experience-ui-bundle-salesforce-data-access && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "experience-ui-bundle-salesforce-data-access" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/experience-ui-bundle-salesforce-data-access into .claude/skills/experience-ui-bundle-salesforce-data-access/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experience-ui-bundle-salesforce-data-access", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/forcedotcom/sf-skills/tree/main/skills/experience-ui-bundle-salesforce-data-accessType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add forcedotcom/sf-skills --skill experience-ui-bundle-salesforce-data-access -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install forcedotcom/sf-skills experience-ui-bundle-salesforce-data-access --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/experience-ui-bundle-salesforce-data-access .agents/skills/experience-ui-bundle-salesforce-data-access && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "experience-ui-bundle-salesforce-data-access" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/experience-ui-bundle-salesforce-data-access into .agents/skills/experience-ui-bundle-salesforce-data-access/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experience-ui-bundle-salesforce-data-access", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill experience-ui-bundle-salesforce-data-access -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install forcedotcom/sf-skills experience-ui-bundle-salesforce-data-access --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/experience-ui-bundle-salesforce-data-access .cursor/skills/experience-ui-bundle-salesforce-data-access && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "experience-ui-bundle-salesforce-data-access" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/experience-ui-bundle-salesforce-data-access into .cursor/skills/experience-ui-bundle-salesforce-data-access/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experience-ui-bundle-salesforce-data-access", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/forcedotcom/sf-skills.git --path skills/experience-ui-bundle-salesforce-data-access--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add forcedotcom/sf-skills --skill experience-ui-bundle-salesforce-data-access -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install forcedotcom/sf-skills experience-ui-bundle-salesforce-data-access --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/experience-ui-bundle-salesforce-data-access .gemini/skills/experience-ui-bundle-salesforce-data-access && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "experience-ui-bundle-salesforce-data-access" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/experience-ui-bundle-salesforce-data-access into .gemini/skills/experience-ui-bundle-salesforce-data-access/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experience-ui-bundle-salesforce-data-access", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install forcedotcom/sf-skills experience-ui-bundle-salesforce-data-accessInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add forcedotcom/sf-skills --skill experience-ui-bundle-salesforce-data-access -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/experience-ui-bundle-salesforce-data-access .github/skills/experience-ui-bundle-salesforce-data-access && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "experience-ui-bundle-salesforce-data-access" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/experience-ui-bundle-salesforce-data-access into .github/skills/experience-ui-bundle-salesforce-data-access/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experience-ui-bundle-salesforce-data-access", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill experience-ui-bundle-salesforce-data-access -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install forcedotcom/sf-skills experience-ui-bundle-salesforce-data-access --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/experience-ui-bundle-salesforce-data-access .opencode/skills/experience-ui-bundle-salesforce-data-access && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "experience-ui-bundle-salesforce-data-access" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/experience-ui-bundle-salesforce-data-access into .opencode/skills/experience-ui-bundle-salesforce-data-access/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "experience-ui-bundle-salesforce-data-access", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
experience-ui-bundle-salesforce-data-accessMUST activate whenever a uiBundles//src/ project reads, writes, or displays Salesforce data — INCLUDING building a page, list, table, card grid, dashboard, or form that shows, filters, counts, or…
Experience UI Bundle Salesforce Data Access is an agent skill from forcedotcom/sf-skills. MUST activate whenever a uiBundles//src/ project reads, writes, or displays Salesforce data — INCLUDING building a page, list, table, card grid, dashboard, or form that shows, filters, counts, or edits records of any object (e.g. Propertyc, Account, Case), even when the prompt names only the UI or the object and never says query, GraphQL, or SDK. Records behind such a component come from Salesforce, so use this ALONGSIDE experience-ui-bundle-frontend-generate: that skill styles the component, this one wires its…
Its SKILL.md is about 7.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `references/caching.md`, `references/graphiti-cli.md` and `references/graphql-hand-authoring.md`).
It sits in Backend & APIs, covering CRM management and GraphQL. It works with Salesforce and GraphQL. The repository describes itself as: Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools. The licence is Apache-2.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e5164d9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
npxnpmbashFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npx and npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Experience UI Bundle Salesforce Data Access loads about 7.5k tokens when it runs, and up to ~23k if it reads all its reference files. Until then it costs about 264 tokens; SKILL.md has 3,047 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from forcedotcom/sf-skills at commit e5164d9, republished under its Apache-2.0 licence (© forcedotcom). 3,047 words, ~7,511 tokens.
.claude/skills/experience-ui-bundle-salesforce-data-access/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.All Salesforce data access in a UI bundle goes through the @salesforce/platform-sdk
data SDK. The SDK handles auth, CSRF, and base-URL resolution, and — on the WebApp
surface — caches every GraphQL query by default.
This file is the workflow + guardrail spine. Depth lives in linked docs:
graphiti CLI (sf-gql-*
commands) that compiles a small JSON spec into a schema-correct, guardrail-applied query +
variables + types. The preferred way to author the GraphQL in steps below; falls back to the
schema-grep script when unavailable.query/mutate call surface + generated-type
placement; the behavior nuance (surfaces, error stances, QueryResult) grounds on tier-2b.docs/data/ when installed, with the full version-stamped fallback here.@optional, pagination, limits,
semi-join, wrappers, error table…).sdk.fetch,
the supported-API allowlist, and the reactive/lifecycle integration patterns.@salesforce/sdk-data callable code
→ new namespace. The only place the dead API appears as usable code.const sdk = await createDataSDK(). Then sdk.graphql is a namespace, not a
function: sdk.graphql!.query({...}) for reads, sdk.graphql!.mutate({...})
for writes. On WebApp, every query() is cached by default (300s). HTTP 200 never
means success — always check result.errors. Verify every entity and field against the
schema before you query it: one unverified field fails the whole query at runtime, and
schema.graphql is too large to eyeball — look it up.
import { createDataSDK, gql } from "@salesforce/platform-sdk"; // gql tags the query string so codegen + eslint validate it
const sdk = await createDataSDK();
const result = await sdk.graphql!.query({ query: GET_ACCOUNTS, variables });
if (result.errors?.length) throw new Error(result.errors.map((e) => e.message).join("; "));
const rows = result.data?.uiapi?.query?.Account?.edges?.map((e) => e.node) ?? []; // unwrap edges/node; read field values via .valueTyped call params (query<GetAccountsQuery, GetAccountsQueryVariables>), the CacheControl
type, and NodeOfConnection<T> (extracts a node type from a Connection for clean typing) all
live in references/sdk-api.md.
This changed (breaking — PR #502). The previous callable
sdk.graphql(...)form and the previous package name are dead — the code above is the only correct form. If you encounter the old API in existing code (or a staledist/artifact), don't copy it; convert it per Working on existing code.
sdk.graphql!is WebApp-only. The non-null assertion above is correct only if the bundle runs solely on WebApp. On other surfaces it can crash — decide before you write it. See Surfaces —!vs guard below.
@salesforce/platform-sdk force-publishes on a shared version line and moves
fast. This SKILL's prose is a point-in-time snapshot of the call contract; the
installed declarations are authoritative for the version you actually have.
Before writing any query/mutate, read the installed types and let them win:
node_modules/@salesforce/platform-sdk/dist/core/data.d.ts — query/mutate
signatures, QueryResult (has subscribe/refresh) vs MutationResult (has
neither, by design), the CacheControl union, the default TTL.node_modules/@salesforce/platform-sdk/dist/data/index.d.ts — createDataSDK,
gql, NodeOfConnection.Precedence — installed .d.ts beats this SKILL's prose. If a signature,
type, or default here disagrees with the installed declaration, follow the
declaration and note the drift; do not "correct" the types to match the prose.
Grounding ladder (one model, two axes):
| Tier | Grounds | Answers | Via |
|---|---|---|---|
| tier-1 | GraphQL schema | what data exists | graphiti / graphql-search.sh (Precondition #2) |
| tier-2a | SDK contract | how you call it | the installed .d.ts above |
| tier-2b | SDK behavior | how it behaves | the installed docs/data/ folder (below) |
| spine | this SKILL.md | workflow + guardrails that orchestrate all three; the fallback when a tier can't ground |
Fallback when the .d.ts is absent — the package is installed but ships
no declarations (a stale or types-stripped build artifact). Then use this SKILL's
prose as best-effort. This fallback does not cover a missing package: if
@salesforce/platform-sdk isn't installed, stop and install it (Precondition #1)
— do not author calls from prose against a dependency you don't have.
The same package ships an authored behavior guide beside its types:
node_modules/@salesforce/platform-sdk/docs/data/ (numbered files, read them in order).
Tier-2a's .d.ts fixes the call contract; this folder is authoritative for the behavior the
contract doesn't spell out — the caching model, the surface !-vs-guard decision, error-handling
stances, the migration mindset. Read it before choosing a caching policy, a surface assertion, or
an error stance, and let it win — same precedence as tier-2a (the installed source beats this
prose; when present it's the fuller, version-current copy).
Fallback when the folder is absent (older SDK, or a types-only build): this SKILL keeps a thin
per-behavior fallback — below and in each section — sized only to keep you moving; act on it. As
with tier-2a, a missing package is different: if @salesforce/platform-sdk isn't installed, stop
and install it (Precondition #1).
sdk.graphql! vs guardsdk.graphql / sdk.fetch are genuinely optional (typed graphql?: …), and whether you may
assert them with ! is a runtime-crash decision — make it before writing any query/mutate.
Fallback rule: WebApp-only bundle → sdk.graphql! is safe; any bundle that might run
off-WebApp (Mosaic / OpenAI / MCPApps) → guard first (if (!sdk.graphql) return …), then call.
If you cannot prove WebApp-only, guard — a bare ! that later ships elsewhere throws
Cannot read properties of undefined and TypeScript won't catch it (same for sdk.fetch!).
The surface matrix, the portable guard snippet, and the full reasoning ground on tier-2b
docs/data/ (fallback above); the guard snippet is also in
references/sdk-api.md.
| The task is… | Go to |
|---|---|
| Read records | Read workflow below |
| Create / update / delete records | Write workflow below |
| Object/field metadata, picklist values, related-list metadata, aggregations | Beyond record CRUD below |
| Data is stale / "add a refresh button" / "cache it longer" | Freshness & caching below |
| Something GraphQL can't express (Apex REST, file upload, Einstein) | references/rest-and-integration.md |
Migrating old sdk.graphql?.(query, vars) code | Working on existing code below |
GraphQL covers far more than record reads and writes — prefer it for anything the uiapi
namespace exposes (see Beyond record CRUD). Reach for REST only when
the data genuinely lives outside uiapi (Apex REST, file upload, Einstein) — see
references/rest-and-integration.md.
<skill-dir> below is wherever this skill is installed (the directory this
SKILL.md loaded from). The schema-lookup script ships inside it. The script does
not hunt for schema.graphql by walking up the tree — an ancestor schema can
belong to a different org and would validate fields against the wrong one. Resolve
the schema explicitly: run from the SFDX project root (where schema.graphql lives),
or pass --schema <path> / set GRAPHQL_SCHEMA=<path>. The script echoes the schema
it resolved ([graphql-search] using schema: … on stderr) — glance at it to confirm
you grounded against the right file.
| # | Requirement | Verify | If missing |
|---|---|---|---|
| 1 | @salesforce/platform-sdk installed and its contract + behavior docs read | package.json in the UI bundle dir lists it; then read dist/core/data.d.ts + dist/data/index.d.ts (tier-2a) and the docs/data/ folder (tier-2b), and let them win over this SKILL's prose | Not installed → tell user to install it; cannot proceed. Installed but .d.ts / docs/ absent (stale or types-only artifact) → use prose fallback |
| 2 | A grounding tool resolves | Preferred: npx graphiti sf-gql-discover '{"org":"<alias>","mode":"list_objects"}' from the UI bundle dir returns objects. Fallback: bash <skill-dir>/scripts/graphql-search.sh <Entity> from the project root prints a lookup, not "schema.graphql not found" | No graphiti dep / org won't prime → use the script. Script can't find schema.graphql → pass --schema <path>, or npm run graphql:schema from the UI bundle dir. (references/graphiti-cli.md covers CLI setup) |
| 3 | Target objects/fields deployed | The object appears in sf-gql-discover (or graphql-search.sh <Entity> returns output) | Entity absent usually means it isn't deployed (or the cache/schema is stale). Refresh: npx graphiti sf-gql-connect '{"org":"<alias>","forceRefresh":true}' (CLI) or npm run graphql:schema (script). If still absent, deploy the metadata (the platform-metadata-deploy skill handles this) and assign the permission sets, then re-check |
If preconditions aren't met you may still scaffold components, routes, and layout — but
use empty arrays / null for data, mark query sites with
// TODO: add query after schema verification, and add a plan item to return. Do not
write GraphQL strings until the schema workflow is complete.
Look up the schema first — never guess a name. Preferred (graphiti): when the exact
API name is at all uncertain, list before you describe —
npx graphiti sf-gql-discover '{"org":"<alias>","mode":"list_objects","search":"<intent>"}'
to find the real name, then
npx graphiti sf-gql-discover '{"org":"<alias>","mode":"describe_object","object":"<Entity>"}'
for exact field/type names, picklist values, filterable/sortable. An empty list or missing object
is a fact about the org (wrong name or not deployed), not a tool failure — re-list or
forceRefresh; do not fall back to the script for this (see guardrail 2). Fallback is
only for a CLI that genuinely can't run (no graphiti dep / org won't prime):
bash <skill-dir>/scripts/graphql-search.sh <Entity> from the SFDX project root.
(Full rules: references/graphql-hand-authoring.md.)
Write the query. Preferred — compile it with graphiti:
npx graphiti sf-gql-list '{"org":"<alias>","object":"<Entity>","fields":[…],"first":N}'
returns a { query, variables, types, warnings } envelope with @optional, value/displayValue,
edges/node, and first:/pageInfo already applied. Confirm warnings: [] (a non-empty
array means the object wasn't in the primed schema — the query is degraded; don't ship it), then
paste the query verbatim into inline gql (simple) or an external .graphql file (one operation
per file, imported with the bundler's ?raw suffix — import Q from "./q.graphql?raw" brings the
file in as a plain string). Fallback — hand-author: apply @optional to every selectable
FLS-gated field — scalar leaf fields (Name @optional { value }) and parent/child
relationships and the fields inside them — but NOT on Id, on connection plumbing
(edges, node, the connection field itself), or on pageInfo; the graphiti output leaves
those bare and is the canonical placement. Always set first:, include pageInfo if it may
page. Either way, full mechanics and the primed-vs-degraded behavior:
references/graphiti-cli.md.
Generate types — npm run graphql:codegen (from the UI bundle dir) →
src/api/graphql-operations-types.ts.
Call query() with the generated types:
import type { GetAccountsQuery, GetAccountsQueryVariables } from "../graphql-operations-types";
const result = await sdk.graphql!.query<GetAccountsQuery, GetAccountsQueryVariables>({
query: GET_ACCOUNTS,
variables: { first: 20 },
// cacheControl, // optional — see Freshness & caching
});Handle the result. result.data + result.errors are the initial snapshot;
result.subscribe / result.refresh are the reactive handles. Always check
errors before reading data:
if (result.errors?.length) throw new Error(result.errors.map((e) => e.message).join("; "));
const rows = result.data?.uiapi?.query?.Account?.edges?.map((e) => e.node) ?? [];Defend consuming code with ?./?? (because @optional can omit fields). Error-handling
stances (strict / tolerant / discriminated) ground on tier-2b docs/data/ (fallback:
guardrail #1 — always check result.errors); NodeOfConnection typing in references/sdk-api.md.
1–3 as above (schema lookup → write the mutation → codegen). To compile the mutation with
graphiti, use sf-gql-create / sf-gql-update / sf-gql-delete — they emit the
uiapi { <Object>Create(input: $input) { Record {…} } } shape; the types field tells you
the input shape. Details: references/graphiti-cli.md.
4. Call mutate() — note the option key is mutation, not query, and that
mutations are never cached. The runtime variables shape differs per operation —
values are raw (never {value}-wrapped; that wrapper is a read-shape thing and breaks
writes) and nest under the entity key:
// create — input.<Entity> holds the new field values
variables: { input: { Account: { Name: "Acme", Industry: "Technology" } } }
// update — sibling Id alongside the entity key
variables: { input: { Id: "001…", Account: { Industry: "Finance" } } }
// delete — Id only, no entity key (generic RecordDeleteInput)
variables: { input: { Id: "001…" } }
const { data, errors } = await sdk.graphql!.mutate<CreateAccountMutation, CreateAccountMutationVariables>({
mutation: CREATE_ACCOUNT,
variables: { input: { Account: { Name: "Acme" } } },
});
if (errors?.length) throw new Error(errors.map((e) => e.message).join("; ")); This is the variables shape the spine owns; the CLI types-field interpretation is in
references/graphiti-cli.md and the GraphQL-document field constraints
(createable/updateable, ApiName references, @{alias} chaining) in
references/graphql-hand-authoring.md.
5. Re-freshen affected reads. mutate() has no refresh. To update a live list
after a write, hold the QueryResult from your earlier query() call (e.g.
accountsResult) and call await accountsResult.refresh() (forced re-fetch, pushes
to subscribers) — note this is the read's handle, not anything mutate() returns. See
Freshness & caching.
Mutation syntax is exacting: wrap under uiapi(input: { allOrNone: ... }), only
createable/updateable fields, Create/Update output is always Record but Delete has no
Record field — select Id only. Full template + chaining + constraints:
references/graphql-hand-authoring.md.
The uiapi namespace is not just record reads/writes. Before reaching for REST, check
whether GraphQL already covers it — the same sdk.graphql!.query() call, different
sub-selection. The top-level uiapi fields:
| Need | Use | Returns |
|---|---|---|
| Query records | uiapi { query { <Entity>(...) } } | records (the Read workflow) |
| Counts / sums / grouped rollups without pulling rows | uiapi { aggregate { <Entity>(groupBy: …) } } | aggregated buckets |
Object/field metadata — labels, data types, createable/updateable, record types | uiapi { objectInfos(apiNames: […]) } | ObjectInfo[] |
| Picklist values (per record type) | uiapi { objectInfos(objectInfoInputs: […]) { fields … on PicklistField { … } } } | picklist values |
| Related-list metadata — display columns, ordering for a parent's related list | uiapi { relatedListByName(parentApiName, relatedListName) } | RelatedListInfo |
Same rules as record reads: verify every type/field first, @optional where FLS applies, check
result.errors. Aggregations can be compiled with npx graphiti sf-gql-aggregate (pass
groupBy + aggregations); object metadata / picklists / related lists are hand-authored —
templates: references/graphql-hand-authoring.md.
Two related capabilities (the current-user record and layout delivery) need confirmation against a current org schema before this skill documents a query shape — tracked as a follow-up, not yet covered here.
Ground the cache model on tier-2b docs/data/ — cache-key mechanics, what-gets-cached,
the shared-by-baseUrl details, uncached-surface semantics, and the reactive-handle nuance all
live there (references/caching.md restates it as a version-stamped fallback). The
load-bearing fallback (enough to act when the folder is absent):
query() cached at 300s; no opt-in flag, no
factory, no /cache subpath. Do not build your own cache (React Query, SWR, localStorage,
hand-rolled Map). mutate() is never cached.createDataSDK()
targeting the same host and apiVersion is a cache hit = one network call; the per-instance
fetch pipeline stays isolated.cacheControl (one-shot policy on the options bag): "no-cache" (bypass, writes
back) / "only-if-cached" / { type: "max-age", maxAge: <seconds> }; default 300s. Thread it as
an optional param on the read fn and expose each policy as a thin named export in the same
data-layer file (refreshAccounts → "no-cache", offlineAccounts → "only-if-cached", …). An
"only-if-cached" miss surfaces on result.errors with extensions.code === "CACHE_MISS" —
render an empty state, do not fall back to the network (that defeats offline-first).subscribe / refresh (live handle on a QueryResult): subscribe(cb) fires on
later snapshots only (always unsubscribe on teardown); refresh() re-fetches, bypasses the
cache, pushes to subscribers — use it after a mutate() (which has no refresh). Multi-subscriber
fan-out / independence ground on tier-2b docs/data/.Only enter this path if the existing code actually uses the old API — i.e. it imports
@salesforce/sdk-data or calls the callable sdk.graphql(query, vars) form. For any new
read/write, ignore migration entirely and use the Read workflow /
Write workflow — those already show the only correct API.
When you do have old code to convert, see references/migration.md for the before→after diff (imports, query/mutate calls, optional-chaining → non-null assertion, codegen type placement) and a checklist. The target API is exactly what the Read/Write workflows above prescribe — migrating is just swapping the old form for that.
These are Salesforce GraphQL platform behaviors, independent of the SDK. Violations cause silent runtime failures. (Details + templates: references/graphql-hand-authoring.md.)
result.errors; the Promise resolves even on failure.sf-gql-discover (preferred) or
bash <skill-dir>/scripts/graphql-search.sh <Entity> before use. Case-sensitive;
__c/__e; _Record entity suffix (v60+). When graphiti is primed, a
"not found"/empty/Cannot query field answer (including from
graphql-codegen/@graphql-eslint, even when the message points at schema.graphql)
is a fact about the org — wrong name or undeployed/inaccessible metadata, not a tool
failure: fix the operation, or deploy the metadata (the platform-metadata-deploy skill)sf-gql-connect --forceRefresh / npm run graphql:schema). Do
not fall back to the script, hand-author around it, or guess a name — a guessed entity or
field silently fails the whole query at runtime; if lookups aren't converging, ask the user
rather than keep spiraling. schema.graphql and the codegen output
(src/api/graphql-operations-types.ts) are read-only generated mirrors — never open or edit
them (honor any # DO NOT EDIT marker). Hand-adding a missing type satisfies codegen/lint
but grants no org access; it just hides the failure until runtime. Fall back to the script
only when the CLI can't run at all (no dep / SCHEMA_PRIME_FAILED).@optional on every FLS-gated field at each nesting level — scalar leaf fields plus each
parent/child relationship and the fields inside it (FLS fails the whole query otherwise, v65+).
Do NOT decorate Id, the connection plumbing (edges, node, the connection field), or
pageInfo — those are not FLS-gated and the graphiti output leaves them bare. Consume with
?./??. Placement rules: references/graphql-hand-authoring.md.uiapi(input: { allOrNone: ... }); set allOrNone explicitly;
output excludes child/navigated-reference fields; the output field is literally named
Record (unrelated to the _Record entity suffix in rule 2) — Delete → Id only. GA v66+.first:, because the server silently caps at 10 and
you'll drop rows with no error; forward-only (first/after, no last/before);
upperBound (v59+) raises the per-request ceiling for large sets (when set, first must be 200–2000).uiapi queries compile to SOQL, so the same governor
limits are inherited: ≤10 subqueries, ≤5 child→parent levels, ≤1 parent→child level,
≤2,000 records/subquery. Split into multiple requests if you'd exceed them..value; displayValue is the
server-formatted string for UI. When a field is both shown and operated on (currency,
dates, picklists), select both value and displayValue so you don't reformat on the
client. Display-only fields can take just displayValue.BillingCity), not the wrapper (BillingAddress).uiapi), UI API REST, Apex REST, Connect REST,
Einstein LLM via sdk.fetch. NOT: Enterprise SOQL /query, Aura-enabled Apex, Chatter
(use uiapi.currentUser). See references/rest-and-integration.md.One SDK convention lives in the workflows, not this list (it's not a platform behavior): always run
npm run graphql:codegenand use the generated types after writing an operation (Read workflow step 3). Also in the Pre-flight checklist.graphiti applies most of these for you. When you compile a query with
sf-gql-*against an object that's in the primed schema, rules 3 (@optional), 4 (mutationRecordoutput envelope and entity-keyed input — notallOrNone, which you still add yourself), 5 (first:/pageInfo), and 7 (value/displayValuewrappers) come out already satisfied — which is exactly why you paste thequeryverbatim rather than re-deriving it. Rules 1 (checkresult.errors), 6 (governor limits), 8 (compound fields), and 9 (supported APIs) are still on you. And the automation only fires when the object is primed: a non-emptywarningsarray means it isn't, and the emitted query is degraded (bare fields, no guardrails) — see references/graphiti-cli.md.
<skill-dir>/ ← wherever this skill is installed
└── scripts/graphql-search.sh ← schema lookup (ships with the skill)
<project-root>/ ← SFDX project root; run the script from here
├── schema.graphql ← generated mirror; grep target (never open or edit; script reads ./schema.graphql)
└── force-app/main/default/uiBundles/<app>/ ← UI bundle dir
├── package.json ← npm scripts
└── src/api/ ← queries, generated types, SDK calls| Command | Run from | Purpose |
|---|---|---|
npx graphiti sf-gql-discover '{…}' | UI bundle dir | Discover objects/fields against the live org (preferred grounding) |
npx graphiti sf-gql-<list|detail|aggregate|create|update|delete|raw> '{…}' | UI bundle dir | Compile a guardrail-applied query/mutation (references/graphiti-cli.md) |
npx graphiti sf-gql-connect '{"org":"<alias>","forceRefresh":true}' | UI bundle dir | Refresh graphiti's schema cache after a deploy |
bash <skill-dir>/scripts/graphql-search.sh <Entity> | project root (or pass --schema <path>; no tree walk-up) | Schema lookup fallback (grep over local schema.graphql) |
npm run graphql:schema | UI bundle dir | Fetch/refresh schema.graphql (for the fallback script) |
npm run graphql:codegen | UI bundle dir | Generate operation types |
npx eslint <file> | UI bundle dir | Lint (catches gql schema violations) |
sdk.graphql! only if WebApp-only; otherwise guard with if (!sdk.graphql) … (Surfaces)dist/*.d.ts (types win over prose) (tier-2a)docs/data/ (docs win over prose; fallback if absent) (tier-2b)sf-gql-discover (preferred) or graphql-search.sh (fallback, against the right schema)warnings: [] confirmed (non-empty = degraded query, don't ship); query pasted verbatim@optional on FLS-gated fields + relationships (NOT Id/edges/node/pageInfo); ?./?? in consuming coderesult.errors checked before reading result.datacacheControl / refresh chosen deliberatelynpm run graphql:codegen run; generated types used; npx eslint passes© forcedotcom, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files (scripts, references) in skills/experience-ui-bundle-salesforce-data-access of forcedotcom/sf-skills.
Open the folder on GitHubat commit e5164d9
Experience UI Bundle Salesforce Data Access next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Experience UI Bundle Salesforce Data Access this skillforcedotcom/sf-skills | 1.1k | — | ~7.5k | Automated safety check: Pass | Apache-2.0 | |
| Hunt Sqlielementalsouls/Claude-BugHunter | 4.8k | — | ~5.5k | Automated safety check: Pass | MIT | |
| Sf IntegrationJaganpro/sf-skills | 424 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Implementing Zero Trust For SaaS Applicationsmukul975/Anthropic-Cybersecurity-Skills | 34k | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Shopifyasgeirtj/system_prompts_leaks | 69k | — | ~2k | Automated safety check: Pass | CC0-1.0 | |
| MondayLeoYeAI/openclaw-master-skills | 2.2k | — | ~4.3k | Automated safety check: Pass | MIT |
elementalsouls/Claude-BugHunter
Hunting skill for sqli vulnerabilities. An agent skill from elementalsouls/Claude-BugHunter.
Jaganpro/sf-skills
Salesforce integration architecture with 120-point scoring. An agent skill from Jaganpro/sf-skills.
mukul975/Anthropic-Cybersecurity-Skills
Secures SaaS apps (Microsoft 365, Google Workspace, Salesforce, Slack) via CASB/SSPM deployment, conditional access policies, OAuth app governance, and session-level DLP controls enforcing identity…
asgeirtj/system_prompts_leaks
Set up and operate a Shopify store with Shopify's official MCP server (the installed shopify command, NOT the npm Shopify CLI).
LeoYeAI/openclaw-master-skills
Manage monday.com boards, items, columns, groups, updates, and workflows via MCP server (preferred) and GraphQL API (fallback).
jeremylongshore/tons-of-skills-marketplace
Manage Shopify orders, customers, and fulfillments using the GraphQL Admin API.
forcedotcom/sf-skills
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.
forcedotcom/sf-skills
Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.
forcedotcom/sf-skills
Lightning Web Components with PICKLES methodology and 165-point scoring.
Works with
Categories
MUST activate whenever a uiBundles//src/ project reads, writes, or displays Salesforce data — INCLUDING building a page, list, table, card grid, dashboard, or form that shows, filters, counts, or…. Experience UI Bundle Salesforce Data Access is an agent skill from forcedotcom/sf-skills.g.
Experience UI Bundle Salesforce Data Access fits situations like: @salesforce/platform-sdk imports; sdk.graphql.query / mutate / sdk.fetch calls; stale data needing force-refresh; object/field schema changes.
Run `npx skills add forcedotcom/sf-skills --skill experience-ui-bundle-salesforce-data-access -a claude-code`. Or copy the skill folder (skills/experience-ui-bundle-salesforce-data-access in forcedotcom/sf-skills) into .claude/skills/experience-ui-bundle-salesforce-data-access in your project. Claude Code loads it when a task matches its description.
Run `npx skills add forcedotcom/sf-skills --skill experience-ui-bundle-salesforce-data-access -a codex`. Or copy the skill folder (skills/experience-ui-bundle-salesforce-data-access in forcedotcom/sf-skills) into .agents/skills/experience-ui-bundle-salesforce-data-access in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill experience-ui-bundle-salesforce-data-access -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/experience-ui-bundle-salesforce-data-access, .gemini/skills/experience-ui-bundle-salesforce-data-access, .github/skills/experience-ui-bundle-salesforce-data-access and .opencode/skills/experience-ui-bundle-salesforce-data-access in your project.
Going by SKILL.md and its folder, Experience UI Bundle Salesforce Data Access needs a shell for the scripts in its folder and the command-line tools its instructions call (npx, npm and bash). Our summary lists: Node.js; A Bash shell.
SKILL.md contains no URLs. Its commands use npx and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Experience UI Bundle Salesforce Data Access is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 7.5k tokens (SKILL.md is roughly 30k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 16k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Experience UI Bundle Salesforce Data Access: Hunt Sqli (elementalsouls/Claude-BugHunter, 4.8k stars), Sf Integration (Jaganpro/sf-skills, 424 stars), Implementing Zero Trust For SaaS Applications (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and Shopify (asgeirtj/system_prompts_leaks, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,060 GitHub stars. The repository holds 251 skills in this directory. The repository was last updated on October 7, 2026.
Source: forcedotcom/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.