Soql Lib Query Builder
beyond-the-cloud-dev/soql-lib
Builds Salesforce SOQL queries using the SOQL Lib fluent builder API (SOQL.cls).
A skill your agent uses to set up, configure, ground, or go live with a Salesforce Help Agent (an Agentforce Service Agent in Service Cloud) via a guided four-checkpoint flow.
$ npx skills add forcedotcom/sf-skills --skill service-helpagent-coordinate -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install forcedotcom/sf-skills service-helpagent-coordinate --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/service-helpagent-coordinate .claude/skills/service-helpagent-coordinate && 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 "service-helpagent-coordinate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/service-helpagent-coordinate into .claude/skills/service-helpagent-coordinate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "service-helpagent-coordinate", 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/service-helpagent-coordinateType 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 service-helpagent-coordinate -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install forcedotcom/sf-skills service-helpagent-coordinate --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/service-helpagent-coordinate .agents/skills/service-helpagent-coordinate && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "service-helpagent-coordinate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/service-helpagent-coordinate into .agents/skills/service-helpagent-coordinate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "service-helpagent-coordinate", 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 service-helpagent-coordinate -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install forcedotcom/sf-skills service-helpagent-coordinate --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/service-helpagent-coordinate .cursor/skills/service-helpagent-coordinate && 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 "service-helpagent-coordinate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/service-helpagent-coordinate into .cursor/skills/service-helpagent-coordinate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "service-helpagent-coordinate", 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/service-helpagent-coordinate--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 service-helpagent-coordinate -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install forcedotcom/sf-skills service-helpagent-coordinate --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/service-helpagent-coordinate .gemini/skills/service-helpagent-coordinate && 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 "service-helpagent-coordinate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/service-helpagent-coordinate into .gemini/skills/service-helpagent-coordinate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "service-helpagent-coordinate", 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 service-helpagent-coordinateInstalls 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 service-helpagent-coordinate -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/service-helpagent-coordinate .github/skills/service-helpagent-coordinate && 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 "service-helpagent-coordinate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/service-helpagent-coordinate into .github/skills/service-helpagent-coordinate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "service-helpagent-coordinate", 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 service-helpagent-coordinate -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 service-helpagent-coordinate --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/service-helpagent-coordinate .opencode/skills/service-helpagent-coordinate && 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 "service-helpagent-coordinate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/service-helpagent-coordinate into .opencode/skills/service-helpagent-coordinate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "service-helpagent-coordinate", 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.
service-helpagent-coordinateA skill your agent uses to set up, configure, ground, or go live with a Salesforce Help Agent (an Agentforce Service Agent in Service Cloud) via a guided four-checkpoint flow.
Service Helpagent Coordinate is an agent skill from forcedotcom/sf-skills. Use to set up, configure, ground, or go live with a Salesforce Help Agent (an Agentforce Service Agent in Service Cloud) via a guided four-checkpoint flow. Use whenever a user says any of: set up / create / build / add a help agent, service agent, or support chat agent; add or embed a chat widget on a website or Experience Cloud / LWR site; put a help agent on a channel (web chat, voice, phone, help portal); ground a help agent on Salesforce Knowledge; or wants an AI to answer customer questions, manage support…
Its SKILL.md is about 7.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files and assets (for example `README.md`, `assets/help-agent-spec.md` and `references/agent-script.md`).
It sits in Sales & Support, covering CRM management and OAuth and OpenID Connect. It works with Salesforce. 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.
3 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 these tools, so the agent can use them without asking each time:
BashReadWriteEditGlobGrepWebFetchAskUserQuestionTodoWriteFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
sfpython3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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.
Service Helpagent Coordinate loads about 7.3k tokens when it runs, and up to ~28k if it reads all its reference files. Until then it costs about 237 tokens; SKILL.md has 3,470 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 noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, WebFetch, AskUserQuestion, TodoWriteAutomated 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); files beside SKILL.md are not scanned.
The full file from forcedotcom/sf-skills at commit e5164d9, republished under its Apache-2.0 licence (© forcedotcom). 3,470 words, ~7,286 tokens.
.claude/skills/service-helpagent-coordinate/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.Use this skill to stand up a Service Cloud Help Agent (an Agentforce Service Agent) on a Salesforce org from Claude Code, following the same guided flow as the Help Agent Quick Setup wizard. This is a coordinate skill: it orchestrates existing skills against a canonical spec — it does not author a new agent primitive.
Salesforce's official Help Agent template-creation API is not yet shipped. Without it, Claude has no built-in concept of "Help Agent" and would otherwise generate a generic agent. assets/help-agent-spec.md substitutes for the missing API: its agent script is the canonical template the eventual Quick Start UI will produce. Treat the spec as source of truth for the agent's lineage (topics, actions, instructions).
In scope:
Out of scope — delegate elsewhere:
agentforce-generateplatform-metadata-deployREADME.md)salesforce-api-context, metadata-experts, sobject-reads.agents/skills/ (or .claude/skills/)assets/help-agent-spec.md §4.0 detects each feature and enables what can be enabled; it stops with a clear message if a required capability is missing and cannot be turned on.The spec feeds these existing skills — do not author a new Help Agent skill:
| Skill | Role |
|---|---|
agentforce-generate | Agent authoring + ADL provisioning/grounding (see its references/data-library-reference.md, references/org-setup-for-adl.md) |
dx-org-permission-set-assign | Data Cloud permission-set assignment |
service-digital-engagement-channel-configure + service-agentforce-channel-configure | Deploy channel (Queue routing), then PATCH SessionHandlerId to bind agent (see references/channel-web-chat.md) |
service-digital-engagement-deployment-configure | Embedded Service Deployment — supports both LWR (ChatterNetworkPicasso) and Aura (ChatterNetwork) sites |
experience-lwr-site-generate | Experience Cloud (LWR) site — used when the org has no Live LWR site yet |
service-digital-engagement-messaging-site-integrate | Widget placement + embed (Checkpoint 4) |
This skill delegates to several sibling skills. Depending on the runtime, those dependencies resolve one of two ways: as directories under .claude/skills/, or through a runtime skill catalog that the harness resolves on demand (no local directory). An absent .claude/skills/<name> directory therefore does not prove a dependency is unavailable — it is normal when the catalog resolves skills at invocation time.
Run this check once, silently, for your own awareness — never as the run's first user-facing output:
for skill in agentforce-generate dx-org-permission-set-assign service-digital-engagement-channel-configure service-digital-engagement-deployment-configure experience-lwr-site-generate service-digital-engagement-messaging-site-integrate service-concierge-portal-generate service-agentforce-channel-configure; do
[ -d ".claude/skills/$skill" ] && echo "OK: $skill" || echo "resolve-at-runtime: $skill"
doneDo not stop, and do not open the run with a missing-dependency roll call. Proceed with the checkpoints; delegate to each sibling skill only when the flow actually reaches it. If — and only if — a delegation step is actually reached and that specific skill cannot be resolved at that moment, surface that one skill by name at that point. Never front-load the full eight-skill inventory as the deliverable; it is not a decision the user owns and it is not the report.
Read assets/help-agent-spec.md first — it is the authoritative flow and is intentionally kept small. Do not pre-load the rest. The heavy or conditional material is split into references/ and read only when the flow reaches it (progressive disclosure — this is deliberate, to keep token usage low):
references/agent-script.md — the ~500-line canonical agent script + placeholder list. Load it only when you are ready to create the agent, after Checkpoint 2 — not during Checkpoints 1, 3, or 4.references/channel-web-chat.md — Web Chat provisioning detail. Load only if the user picks Web Chat at Checkpoint 3.service-concierge-portal-generate — Help Portal / Agentforce Concierge portal deploy. Delegate to this skill if the user picks Help Portal at Checkpoint 3 — do not inline the portal runbook steps here. Pass $ORG, $BOT_ID, and $BOT_DEV_NAME as context so the skill skips its own entry-point questions.references/channel-voice.md — Voice channel wiring detail (existing numbers only). Load only if the user picks Voice.Read the one channel file that matches the user's selection — never all three. Then run the interactive setup without one-shotting: walk the user through four checkpoints in order, waiting for a reply at each.
Order is load-bearing — running step 3 before step 2 fails with PermissionSet not found: GenieUserEnhancedSecurity because the Data Cloud permission sets do not exist in the org until Data Cloud itself is turned on:
Verify PSL seat availability, then create a dedicated Einstein Agent User for this agent. First confirm the three required PSLs have available seats:
sf data query --target-org $ORG --json \
--query "SELECT MasterLabel, TotalLicenses, UsedLicenses FROM PermissionSetLicense WHERE DeveloperName IN ('AgentforceServiceAgentUserPsl', 'GenieDataPlatformStarterPsl', 'EinsteinGPTPromptTemplatesPsl')"For each, UsedLicenses < TotalLicenses must be true. If any PSL is at capacity, stop and surface which one is exhausted — the PSG assignment will fail and there is nothing the skill can do until a seat is freed or provisioned.
If all three have capacity, create the user. Do not reuse any existing Einstein Agent User — each Help Agent gets its own. Username: {agentDevName}_user@{orgId}.ext (15-char org Id from sf org display). Email: noreply@salesforce.com. Profile: Einstein Agent User (query SELECT Id FROM Profile WHERE Name = 'Einstein Agent User' to get the ProfileId, then sf data create record --sobject User). If a user with exactly that username already exists, reuse it (idempotent). Then assign all four of the following before publishing the agent:
AgentforceServiceAgentUserPsg (Permission Set Group) — assigns three PSLs in one call: Agentforce Service Agent User, Data Cloud, and Einstein Prompt Templates. Use sf org assign permsetgroup.AgentforceServiceAgentSecureBase (Permission Set) — required for all service agents. Use sf org assign permset.AgentforceKnowledgeUser (Permission Set, force namespace) — required because the Help Agent uses the knowledge: block. Use sf org assign permset.{AgentName}_Access (custom Permission Set) — created by agentforce-generate for agent-specific Apex/object access.Verify PSL assignments landed: SELECT PermissionSetLicense.DeveloperName FROM PermissionSetLicenseAssign WHERE Assignee.Username = '{agentDevName}_user@{orgId}.ext' — expect AgentforceServiceAgentUser, DataCloud, EinsteinPromptTemplates.
Capture the username ({agentDevName}_user@{orgId}.ext) — it is the value for <default_agent_user_placeholder> in the agent script. The agent runs as this user at runtime.
Pre-publish gate — verify before every sf agent publish authoring-bundle call. Skipping this causes a masked 401→404: SFAP returns HTTP 401 "User doesn't have access to agent" when the Einstein Agent User is missing AgentforceServiceAgentUserPsg, and jsforce's session-refresh retry silently converts that 401 to ERROR_HTTP_404. Verify all four assignments are present before invoking the CLI:
AGENT_USER_ID=$(sf data query --target-org $ORG --json \
--query "SELECT Id FROM User WHERE Username='{agentDevName}_user@{orgId}.ext'" \
| python3 -c "import sys,json; print(json.load(sys.stdin)['result']['records'][0]['Id'])")
# Must return exactly 1 row — if 0, assign before continuing
sf data query --target-org $ORG --json \
--query "SELECT PermissionSetGroup.DeveloperName FROM PermissionSetAssignment \
WHERE AssigneeId='${AGENT_USER_ID}' \
AND PermissionSetGroup.DeveloperName='AgentforceServiceAgentUserPsg'"
# Must return 2 rows — if any are missing, assign before continuing
sf data query --target-org $ORG --json \
--query "SELECT PermissionSet.Name FROM PermissionSetAssignment \
WHERE AssigneeId='${AGENT_USER_ID}' \
AND PermissionSet.Name IN ('AgentforceServiceAgentSecureBase','AgentforceKnowledgeUser')"Do not call sf agent publish authoring-bundle until all four assignments return non-empty results.
Enable Data Cloud — must complete before step 3 (permission sets don't exist until Data Cloud is on). If Data Cloud is not yet provisioned, offer the user the choice up front — enable and come back later, or wait through it now.
CRITICAL — Assign the Data Cloud permission sets immediately after enablement. Non-negotiable — skipping it ships an agent whose grounding returns empty knowledgeSummary at runtime even though ADL indexing reports SUCCESS. The PSG assigned in step 1 covers this once Data Cloud is on.
Checkpoint 1 (agent identity) and Checkpoint 3 (channel) must always be confirmed with the user in the current conversation — never inferred from a previous session, a compacted summary, or skill arguments. These are decisions the user owns; acting on stale context from a prior run will configure the wrong agent or the wrong channel.
If the user's opening message in the current conversation turn explicitly names the agent and/or channel (e.g. "set up Master Yoda on Web Chat"), accept those as the inputs and confirm them before proceeding. If not stated in the current turn, ask.
For the org alias: if the user has been working against a specific org in the current session, use that. Otherwise ask.
Do not assume every run starts at Checkpoint 1. Read the opening prompt and enter at the right checkpoint: identity decided → Checkpoint 2 (grounding); grounding done → Checkpoint 3 (channel). When the prompt explicitly names or implies a later checkpoint (e.g. "set up the grounding", "wire up the web chat channel") — and states or clearly implies prior checkpoints are already done — accept those prior checkpoints as established, enter scoped at the named checkpoint, and produce a settled-facts report for it. Do NOT force a full guided-identity re-confirmation, do NOT restart at Checkpoint 1, and do NOT demand in-conversation re-confirmation of prior decisions. Values the prompt supplies for the entered checkpoint (audience → authMode, named site, categories) are decided, not questions to re-ask.
If the opening prompt names Voice / phone / telephony / IVR, read references/channel-voice.md and follow it from the top of Checkpoint 3 as the Voice branch.
Ask for four things (offer these exact defaults so the guided-decision report can enumerate them without loading assets/help-agent-spec.md):
Help Agent (DeveloperName Help_Agent).en_US."Hi, I'm {Agent Name}. How can I help you today?"."calm, patient, friendly service agent — warm but professional, short sentences, never robotic."When the opener names Q&A / case management / human escalation, note explicitly that these map to the canonical four-subagent shape (Agent Router → General FAQ, Service Customer Verification, Case Management, Escalation) — do not invent a different design.
Ask which knowledge source (Salesforce Knowledge / files / website sync). Grounding is provisioning an Agentforce Data Library, not designing a search — the agent's knowledge: block does the retrieval at runtime. This checkpoint MUST produce all five of:
agentforce-generate — it owns ADL create/index/publish. Do not hand-roll data-library metadata.Help_Agent_Knowledge. Never wire the stock All_Records_and_Fields_Default (it sits in NOT_SCHEDULED on trial or preloaded sample-data orgs and returns empty knowledgeSummary with no error).indexingStatus.status ∈ {COMPLETED, READY, SUCCESS}. NOT_SCHEDULED is not success.rag_feature_config_id (format ARFPC_<libraryId>) and wire it into the agent script's knowledge: block — never hardcode.Anti-rule: never respond to a grounding request by designing a SOQL/SOSL/GraphQL/Apex search over Knowledge articles. Grounding is ADL provisioning; retrieval is the agent's job at runtime.
First, always discover what already exists — never present only Web Chat / Help Portal / Voice as if they were the only options. Follow assets/help-agent-spec.md §4.3 Step 1 in full: query every MessagingChannel, classify each by <messagingChannelType>, and surface every type present (WhatsApp, SMS, etc.), not just the three branches below. Skipping this discovery is the bug this section prevents.
Deploy new channels with Queue routing (service-digital-engagement-channel-configure), then delegate agent wiring to service-agentforce-channel-configure. Branch by channel type:
Web Chat → read references/channel-web-chat.md. Create messaging channel + Embedded Service Deployment. Ask deployment target first, before querying anything: "own (non-Salesforce) website" (recommended default — short-circuits to the embed-snippet path) or "a Salesforce Experience Cloud site". Only if the user picks Experience Cloud, run the query-first pattern:
SELECT Id, Name, UrlPathPrefix, SiteType, Status
FROM Site
WHERE SiteType IN ('ChatterNetworkPicasso', 'ChatterNetwork') AND Status = 'Active'Both LWR (ChatterNetworkPicasso) and Aura (ChatterNetwork) sites support the experience_messaging:embeddedMessaging widget. Filter out ESW_-prefixed sites (internal ESD scaffolding, not real Experience Cloud sites). Resolve the site in the same turn, do not defer:
experience-lwr-site-generate (recommend the Help Center template), or fall back to "Deploy on my own website (get snippet)".Name | Type | UrlPathPrefix), state "no site is created or modified until you choose," then ask which to target (offer "Create a new LWR site" and "Deploy on my own website"). Don't defer with "I'll get back to you" — present results now.Do not filter by hardcoded name or URL path prefix — the correct site depends on the customer's org.
Help Portal → delegate to service-concierge-portal-generate (deploys an Agentforce Concierge experience on an LWR site). Pass the resolved $ORG, $BOT_ID, and $BOT_DEV_NAME so it can skip its entry-point questions.
Voice → read references/channel-voice.md and follow it fully. Wires a PstnVoice MessagingChannel via service-agentforce-channel-configure Branch B; if none exists, the reference delegates procurement to service-agentforce-contact-center-coordinate.
Any other existing channel (WhatsApp, SMS, Facebook, Apple Business Chat, Line, Email-to-Case, Custom) → no dedicated reference file. List channels of that type from discovery, let the user pick one ("Add agent to: {MasterLabel}"), and delegate straight to service-agentforce-channel-configure with the agent and channel DeveloperNames — it resolves the fallback queue and picks the routing branch itself (Branch A for Enhanced Chat/Messaging, Branch C for Email-to-Case). This skill only wires an agent to a channel that already exists; it never provisions the underlying 3rd-party/email infrastructure.
After each channel branch completes, loop — ask if the user wants to add another channel. Once a channel branch finishes (success or failure), present via AskUserQuestion:
MessagingChannel, rebuild the type list, omit already-wired channels from the options).Track wired channels so they are not re-offered; the loop continues until the user selects "Done" or all channels are wired.
Outbound escalation is wired here, immediately after inbound routing, not at Checkpoint 4. For Web Chat/Voice branches, invoke service-agentforce-channel-configure Phase 3 (resolve escalation queue → create/reuse RoutingFlow → add connection block → republish) within the same delegated call as inbound routing. Deferring connection-block wiring to Checkpoint 4 duplicates Phase 3's atomic sequencing and forces an extra republish.
When the opening prompt names two or more channels up front (e.g. "add web chat, then also Voice — add both"), the prompt authorizes every named channel — treat them all as committed work. No fresh user reply is needed to advance from one named channel to the next; the up-front request is that authorization. Skip the between-branch AskUserQuestion for prompt-named channels, wire each in stated order, and fall back to the loop's AskUserQuestion only for channels the prompt did not name. The report must show every named channel wired — never only the first with the rest framed as an intention or "next step" (that scores as an incomplete loop even when the first channel is perfect). In the settled-facts Checkpoint 3 row (or a short trace below the tables), make all of these explicit, in order:
authMode for Web Chat, resolved site/number, ESD state) — not "will then add".Once the channel loop exits ("Done"), run two phases (Phase A below is what used to be a standalone "Checkpoint 3.5"):
Phase A — Silent pre-flight (INTERNAL — never announce). Run silently; surface output only on failure. Every check must pass before Phase B:
agentforce-generate).rag_feature_config_id; if empty despite SUCCESS, surface the Known manual step (Data Space scope on the permission set) verbatim, wait for confirmation, re-run.Phase B — Explicit go-live steps (narrated to the user). Verify the widget landed on the site (LWR + Aura) — placement already happened at Checkpoint 3 Step C.5 via service-digital-engagement-messaging-site-integrate; re-run injection only if verification fails. Then: (a) confirm the Escalation Flow is wired (configured at Checkpoint 3 via Phase 3 — verify, don't re-wire); (b) Publish the Embedded Service Deployment in Setup → Embedded Service Deployments; then offer to test together. An unpublished deployment silently ships a dead widget.
AskUserQuestion is capped at 4 options. For discovered item lists (sites, channels, queues, ADLs) where the user picks one: 1–6 items — paginate 3 per page, "Show more (N remaining)" as option 4, fixed options (Create new, etc.) on the final page only. 7+ items — list names in plain text, ask the user to type their choice, validate case-insensitively, confirm before proceeding.
Exception — multi-select lists (e.g. Checkpoint 3's channel-type picker) never paginate. Pagination assumes single-select. For any multi-select list, once options exceed 4, skip straight to the plain-text list-and-type pattern regardless of count — see assets/help-agent-spec.md §4.3 Step 1.
| Rule | Rationale |
|---|---|
| Never one-shot the setup | It is a guided conversation; wait for user input at each checkpoint |
| Never skip or reorder the readiness steps | Permission sets don't exist before Data Cloud enablement — you'll see PermissionSet not found: GenieUserEnhancedSecurity |
| Never advance past Checkpoint 4 Phase A with empty ADL retrieval | Ships a silently-broken agent |
| Never hardcode a site name or URL path prefix | The correct target LWR site depends on the customer's org — query first, then decide |
| Never present ESW-prefixed sites as widget deployment targets | ESW_* sites are internal ESD endpoint scaffolding — filter them out in post-processing before presenting site options to the user |
Create the Embedded Service Deployment as V2 via the Connect API, never bare Metadata deploy — and embed the V2 ESD via the experience_messaging:embeddedMessaging LWR component | Metadata API defaults to legacy V1 (WebV1, "Web (v1)" in Setup) which breaks Enhanced Web Chat; create via Connect API on v67.0+ with clientVersion: WebV2. The customer widget mounts via the LWR component keyed on deploymentName. Full six-attribute shape, the Tooling-API patch path, and guest-browser verification are in references/channel-web-chat.md |
Always create a dedicated ADL for the Help Agent — never wire the stock All_Records_and_Fields_Default library | On trial or preloaded sample-data orgs the stock library is stuck in NOT_SCHEDULED and never indexes; wiring the agent to it produces empty knowledgeSummary at runtime with no visible error. Create Help_Agent_Knowledge at Checkpoint 2 and wait for indexingStatus ∈ {COMPLETED, READY, SUCCESS} before wiring |
| Never leave Checkpoint 4 without publishing the Embedded Service Deployment and activating the channel | Both are required for the widget to serve. If the ESD was created via the Connect API deployment/setup call it is already published — verify "Published on:" is stamped and the title has no (v1) suffix |
Web Chat, Help Portal, and Voice have dedicated branches; any other existing channel type (WhatsApp, SMS, Facebook, Apple Business Chat, Line, Email-to-Case, Custom) is wired generically via service-agentforce-channel-configure | Discovery (§4.3 Step 1) must surface every channel type present — offering only the three dedicated branches when others exist is the bug this checkpoint guards against. For Web Chat, always run the post-deploy assertion (re-fetch the MessagingChannel, assert embeddedConfig.authMode; default UnAuth) — a wrong choice silently ships a widget that won't render for guests. Report authMode as a bare value (authMode: UnAuth); don't narrate the assertion. Never emit a legacy esw.min.js / Live Agent V1 snippet |
The one deliverable is a single report.md: a status report of what was decided and done, not a design doc. Two shapes exist — a settled-facts report when the flow executed a step (concrete decided values in tables), and a guided-decision report when the flow is at a decision the user owns (present the choices, do not fabricate). Never hedge inside decision cells ("to be captured", "pending", "will create"); never fabricate opaque IDs; never manufacture blockers on checkpoints the request did not target. Full templates, per-shape rules, one-decision reasoning callouts (readiness ordering, authMode), and the "never include" scored-failure list live in references/output-report-format.md — read it before writing the report.
| File | When to read |
|---|---|
assets/help-agent-spec.md | Always (first) — the canonical flow; small by design. Points to the files below |
references/agent-script.md | At agent creation only (after Checkpoint 2) — the canonical agent script + placeholders |
references/channel-web-chat.md | Only if the user selects Web Chat at Checkpoint 3 |
service-concierge-portal-generate (external skill) | Only if the user selects Help Portal at Checkpoint 3 — delegate, do not inline |
references/channel-voice.md | Only if the user selects Voice (wires a PstnVoice channel; delegates procurement when none exists) |
references/output-report-format.md | Right before writing the final report.md — the two report shapes, templates, and scored-failure list |
© 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 6 other files (references, assets) in skills/service-helpagent-coordinate of forcedotcom/sf-skills.
Open the folder on GitHubat commit e5164d9
Service Helpagent Coordinate 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 |
|---|---|---|---|---|---|---|
| Service Helpagent Coordinate this skillforcedotcom/sf-skills | 1.1k | — | ~7.3k | Automated safety check: Notes | Apache-2.0 | |
| Soql Lib Query Builderbeyond-the-cloud-dev/soql-lib | 154 | — | ~4.3k | Automated safety check: Pass | MIT | |
| Sf DatacloudJaganpro/sf-skills | 424 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Soql Lib Selectorbeyond-the-cloud-dev/soql-lib | 154 | — | ~2k | Automated safety check: Pass | MIT | |
| Dev SetupPortwood-Global-Solutions/Portwood | 125 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Sf FlowJaganpro/sf-skills | 424 | — | ~1.8k | Automated safety check: Pass | MIT |
beyond-the-cloud-dev/soql-lib
Builds Salesforce SOQL queries using the SOQL Lib fluent builder API (SOQL.cls).
Jaganpro/sf-skills
Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows.
beyond-the-cloud-dev/soql-lib
Creates Salesforce Apex selector classes using the SOQL Lib selector pattern.
Portwood-Global-Solutions/Portwood
Get from a fresh clone of Portwood to a working, fully-tested Salesforce org.
Jaganpro/sf-skills
Creates and validates Salesforce Flows with 110-point scoring.
Jaganpro/sf-skills
Salesforce integration architecture with 120-point scoring. An agent skill from Jaganpro/sf-skills.
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
A skill your agent uses to set up, configure, ground, or go live with a Salesforce Help Agent (an Agentforce Service Agent in Service Cloud) via a guided four-checkpoint flow. Service Helpagent Coordinate is an agent skill from forcedotcom/sf-skills. Use to set up, configure, ground, or go live with a Salesforce Help Agent (an Agentforce Service Agent in Service Cloud) via a guided four-checkpoint flow.
Service Helpagent Coordinate fits situations like: go live with a Salesforce Help Agent (an Agentforce Service Agent in Service Cloud) via a guided four-checkpoint flow; A user says any of: set up / create / build / add a help agent; support chat agent; embed a chat widget on a website.
Run `npx skills add forcedotcom/sf-skills --skill service-helpagent-coordinate -a claude-code`. Or copy the skill folder (skills/service-helpagent-coordinate in forcedotcom/sf-skills) into .claude/skills/service-helpagent-coordinate in your project. Claude Code loads it when a task matches its description.
Run `npx skills add forcedotcom/sf-skills --skill service-helpagent-coordinate -a codex`. Or copy the skill folder (skills/service-helpagent-coordinate in forcedotcom/sf-skills) into .agents/skills/service-helpagent-coordinate 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 service-helpagent-coordinate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/service-helpagent-coordinate, .gemini/skills/service-helpagent-coordinate, .github/skills/service-helpagent-coordinate and .opencode/skills/service-helpagent-coordinate in your project.
Going by SKILL.md and its folder, Service Helpagent Coordinate needs the command-line tools its instructions call (sf and python3). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash, Read, Write, Edit, Glob, Grep, WebFetch, AskUserQuestion, TodoWrite.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Service Helpagent Coordinate 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.3k tokens (SKILL.md is roughly 29k 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 20k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Service Helpagent Coordinate: Soql Lib Query Builder (beyond-the-cloud-dev/soql-lib, 154 stars), Sf Datacloud (Jaganpro/sf-skills, 424 stars), Soql Lib Selector (beyond-the-cloud-dev/soql-lib, 154 stars) and Dev Setup (Portwood-Global-Solutions/Portwood, 125 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.