/sf-platform:sales-call-scoring-configurefrom Salesforce — Platform & Apex
Configures AI Call Scoring (Call Coaching) on ECI-enabled Salesforce orgs. Flips ECICallScoringEnabled via SOAP Metadata API, enables Einstein Generative AI Platform, and manages Coaching Competency records (install OOTB set, Momentum prompts, or custom competencies).
Ships in Salesforce — Platform & Apex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Configure Call Coaching (a.k.a. AI Call Scoring / Coaching Competencies)
on a Salesforce org. Detects the org's current state, enables dependent
features it is authorized to enable, and flips the ECICallScoringEnabled
org preference via the SOAP Metadata API.
In scope
enableECICallScoring to true via SOAP Metadata API v68.Out of scope
sf CLI authenticated — sf org login web --alias <org-alias>.ConversationPilot org permission (Phase 0
purchase gate) and enableCallCoaching pref (Phase 1, the
ConversationPilotPref preference). (River Rush/Momentum is a separate
arm covered by the same server-side gate but not checked by this skill
yet — see Key Considerations.)com.salesforce.eci.callScoringEnabled open on the org's pod
(RelEng-controlled; not admin-toggleable).Einstein GenAI Platform is a soft prerequisite — the skill enables it automatically when off.
Ask the admin: target org alias? Sandbox refresh scenario? (The pref has
disableOnSandboxCopy=true, so it must be re-flipped after every refresh —
that's normal, not a failure.)
CRITICAL: This skill serves admin users, not developers. The full 13-rule spec with rationale for each rule lives in references/admin-communication.md — consult it before your first response in this skill. Summary of the load-bearing rules:
run_in_background: true).EnablementCompetencyDef, enableECICallScoring, EvaluationInstructions, SourceCompetencyTemplate in primary chat text.references/competency-crud.md §S9).Next: <script>, run it in the same turn without asking. Exception: State 3 → rule #13.install-ootb-competencies.sh --list and let the admin choose. Only checkpoint in this skill where Claude asks before writing.See references/admin-communication.md for the full 13-rule spec, including error-surfacing, outcome-vs-steps reporting, and the S9 carve-out rationale.
Resolves org auth via the shared scripts/shared/auth.sh helper
(resolve_org_auth "$ORG_ALIAS"), which every script in this skill sources:
validate the alias format, call sf org display for instanceUrl and
accessToken (falling back to sf org auth show-access-token when the CLI
redacts the token), refuse a non-HTTPS instance URL, and fail closed with an
explicit sf org login web --alias <alias> instruction if the org isn't
reachable or no token can be extracted. If ACCESS_TOKEN/INSTANCE_URL are
already exported for the same alias — e.g. a parent shell already resolved
auth and is chaining multiple of these scripts in one session — resolution
is skipped and the cached values are reused. orgId is not part of this
helper; enable-call-scoring.sh fetches it separately (via its own
sf org display) purely for the status banner.
Before any state detection, query the ConversationPilot OrgPermission via
Tooling API (OrganizationSettingsDetail, same pattern as the
ECICallScoringAI gate in Phase 3). This is a license/purchase check,
distinct from enableCallCoaching below (the admin's Setup toggle for an
org that's already licensed):
enableCallCoaching check.SOAP readMetadata at /services/Soap/m/68.0 against two settings types:
ConversationalIntelligenceSettings → read enableCallCoaching (ECI arm)
and enableECICallScoring (current Call Coaching state).EinsteinGptSettings → read enableEinsteinGptPlatform.(RiverRushSettings/riverRushEnabled — Momentum — is NOT read. That
detection is deferred until the River Rush arm goes live; see Key
Considerations for where to re-add it.)
Query existing competencies via Tooling API:
SELECT COUNT() FROM EnablementCompetencyDef.
Classify the org into one of 4 states:
| State | Detection |
|---|---|
| 1a. Not available (no ECI license) | Cannot read ConversationalIntelligenceSettings |
| 2. Available, not enabled | enableCallCoaching=true AND enableECICallScoring=false |
| 3. Enabled, no competencies | enableECICallScoring=true AND count = 0 |
| 4. Enabled, with competencies | enableECICallScoring=true AND count > 0 |
OrganizationSettingsDetail
(Tooling API) for the ECICallScoringAI OrgPermission. Only an explicit
false refuses — exit with: "AI call coaching is not available in this
org and org requires Agentforce for Sales license." (Non-zero exit.) If the
permission can't be read — the query is rejected with INVALID_TYPE
(some org editions, for example Developer Edition) or returns no row — treat
it as unknown and proceed; do NOT fail closed on an unreadable signal.
The Einstein GenAI TYPE_UNAVAILABLE pre-check catches most unlicensed
orgs; the enable updateMetadata write is the final check. This mirrors the Phase 0
ConversationPilot gate, which defers on any non-conclusive read.
This runs even when enableCallCoaching/enableECICallScoring
already read favorably, since those settings don't by themselves confirm the
org is licensed. Must run before the ECI-off check below — a genuinely
unlicensed org
and a licensed-but-toggled-off org both read enableCallCoaching=false,
so checking ECI first would misdiagnose a licensing gap as a self-serve
Setup toggle (the regression the NoLicense eval dataset guards against).updateMetadata on EinsteinGptSettings
with enableEinsteinGptPlatform=true. PRD explicitly authorizes this. If
it's already on, skip the updateMetadata call and tell the admin it's
already enabled. If the update fails because the org isn't licensed for
EinsteinGptSettings (or is explicitly refused with no fault): tell the
admin they need Agentforce for Sales to enable AI Call Scoring, and
that without it they can still set up manual call scoring via
Salesforce Go setup. A distinct auth/permission or network/timeout failure
gets its own message (check CLI session / retry) rather than the licensing
message, since those aren't licensing gaps.If enableECICallScoring already reads true (e.g. it changed out-of-band
between Phase 1's read and here), skip the update and tell the admin it's
already enabled. Otherwise SOAP updateMetadata on
ConversationalIntelligenceSettings with enableECICallScoring=true.
Require <success>true</success>.
Re-read enableECICallScoring. Require true. Print SOAP response on failure.
enableECICallScoring is not
present in the ConversationalIntelligenceSettings schema at lower API
versions on some builds — v68 is the safe minimum. The Pipeline skill uses
v64 because its target field (SalesDealAgentSettings.enableDealAgent) is
present there; Call Scoring is not.sf mdapi deploy for this pref. It has a silent failure
mode where the CLI reports success but the pref doesn't flip. Use raw
SOAP updateMetadata — the response's <success> boolean is authoritative.orgHasCallScoring access check allows the ECI arm OR the River Rush
(Momentum) arm — see CoachingCompetenciesFeature.isFeatureAvailableInOrg().
This skill deliberately narrows to the ECI arm (MVP scope per the spike).enable-call-scoring.sh used to
read RiverRushSettings.riverRushEnabled and refuse Momentum-only orgs
with a distinct "State 1b" message / emit a Momentum-available-but-off
advisory; both were removed. Re-add them (the read, the State 1b branch,
and the Phase 3 advisory) once River Rush ships — the removed code is
recoverable from git history on this file.disableOnSandboxCopy=true — every sandbox refresh disables this pref.
Admins re-running the skill after a refresh is the expected pattern; the
idempotency check makes that safe.com.salesforce.eci.callScoringEnabled must be open on
the org's pod. It's not admin-toggleable and not readable via SOAP. If
closed, updateMetadata returns a well-formed response with
<success>false</success> and an <errors><statusCode>…</statusCode></errors>
block — it does NOT emit a SOAP <Fault>. parse_soap_response extracts
the statusCode and surfaces it via the WRITE_ERROR:… classification.enableCallCoaching flips on, the dependent enableECICallScoring field
is server-side read-only and updateMetadata returns
INSUFFICIENT_ACCESS_OR_READONLY. enable-call-scoring.sh maps this to a
transient "still finishing turning on — wait a few minutes and re-run"
message rather than a terminal failure.CURL_TIMEOUT in
enable-call-scoring.sh, matching the only existing timeout precedent in
this repo — the Pipeline skill's setup-all.sh) and classified via
shared/soap.sh's parse_soap_response into true / false /
AUTH_ERROR:... / TYPE_UNAVAILABLE:... / WRITE_ERROR:… /
NETWORK_ERROR. This distinguishes "org isn't licensed for this setting"
from "auth/permission fault" from "server refused the write with a specific
statusCode" from "network/timeout error" — instead of collapsing them into
an empty string or dumping raw SOAP XML at the admin.enable-call-scoring.sh uses raw SOAP, not sf api request rest.
Every other script in this skill uses sf api request rest so the CLI
manages auth end-to-end. enable-call-scoring.sh is the sole exception:
it calls the SOAP Metadata API (readMetadata/updateMetadata) directly,
because no non-beta Salesforce CLI command exposes SOAP Metadata reads/
writes for ConversationalIntelligenceSettings et al., and sf mdapi deploy has the silent-failure mode noted above for this exact field. This
is a deliberate, scoped exception, not an oversight.skills/sales-agentforce-pipeline-management-configure/scripts/shared/soap.sh (copied from the Pipeline skill —
redact_token, parse_soap_response)ConversationalIntelligence.accessChecks.xml
— orgHasCallScoring = ECI arm OR River Rush arm; orgHasECICallScoringWithAI
adds Einstein GenAI + ECICallScoringAI license perm on top.ConversationalIntelligence.settings.xml
— <orgPreference name="ECICallScoringEnabled" mdApiName="enableECICallScoring" ...>CoachingCompetenciesFeature.javaOnce Phase 5 confirms Call Coaching is enabled (or Phase 1 detects State 3/4), Claude runs the Next: script directly, in the same turn. Records are managed via Tooling API on EnablementCompetencyDef (setup entity, keyPrefix 1nA, module conversation-udd). Cap: 8 simultaneously active per org (CoachingCompetenciesFeature.MAX_ACTIVE_COMPETENCIES).
All scripts share shared/auth.sh / resolve_org_auth — token propagates across chained invocations, no re-auth. Tooling API writes go through sf api request rest where practical; a subset (custom-CRUD variants, best-practice installer) drops to raw curl for finer request shape.
Scripts fall into two parallel families:
{create,edit,toggle,get}-competency.sh — works on any competency.*-custom-competency.sh — harden the write path with SpecificCallsOnly filter JSON and richer validation.Prefer custom variants when the admin's intent is unambiguously custom (S5-created); fall back to generic on OOTB or unknown-provenance records.
Full spec — S3 through S10 script contracts, S5's Q1-Q4 conversational drafting sequence, the admin-intent × org-state execution matrix, and chaining checkpoints — is in references/competency-crud.md. Consult it whenever the admin's ask touches competency records (list, install, create/edit, activate, verify, delete).
| Script | Purpose |
|---|---|
enable-call-scoring.sh <alias> | Detect state, enable Einstein GenAI if off, flip the Call Coaching pref (Phase 0-5). |
list-competencies.sh <alias> [--verbose|--json] | List all competencies + status. Admin-safe by default; --verbose adds Ids/DeveloperNames; --json for the calling agent only. |
install-ootb-competencies.sh <alias> [--dry-run] | Install the 6 PRD-canonical OOTB competencies. |
install-best-practice-competencies.sh <alias> [--dry-run] [--only "Name1,Name2"] | Install the 7 Momentum best-practice reference prompts. --only filters by MasterLabel. |
create-competency.sh <alias> <payload.json> | Create one competency (generic — usable on OOTB or custom). |
create-custom-competency.sh <alias> <payload.json> | Create one custom competency (hardened variant — prefer for S5). |
edit-competency.sh <alias> <ident> ... | Edit description / instructions (generic). |
edit-custom-competency.sh <alias> <ident> ... | Edit description / instructions (custom-CRUD variant). |
toggle-competency.sh <alias> <ident> <activate|deactivate> | Activate / deactivate (generic). |
toggle-custom-competency.sh <alias> <ident> <activate|deactivate> | Activate / deactivate (custom-CRUD variant). |
get-competency.sh <alias> <ident> [--field <f>] | Fetch a record or single field (generic). |
get-custom-competency.sh <alias> <ident> [--field <f>] | Fetch a record or single field (custom-CRUD variant). |
verify-ootb-competencies.sh <alias> ["Name" ...] | Confirm expected competencies exist and are active — outputs the S9 admin-visible markdown table. |
| no delete script (yet) | Use sf data delete record --sobject EnablementCompetencyDef --record-id <Id> --use-tooling-api — see §S10. |
After a successful run, the admin can independently verify:
Via UI — Salesforce Go → Coaching Competencies should now be reachable and show the feature as enabled with the configured competencies.
Via CLI — two Tooling API queries:
# Feature enabled?
sf data query --target-org <alias> --use-tooling-api \
--query "SELECT IsEciCallScoringEnabled FROM ConversationalIntelligenceSettings"
# Competencies configured?
sf data query --target-org <alias> --use-tooling-api \
--query "SELECT MasterLabel, IsActive, SourceCompetencyTemplate FROM EnablementCompetencyDef ORDER BY MasterLabel"
assets/ootb-competencies.json — 6 PRD-canonical OOTB prompt bodies
(installed by install-ootb-competencies.sh).assets/best-practice-competencies.json — 7 Momentum best-practice
prompt bodies (S5 authoring reference; also installable via
create-competency.sh).assets/best-practice-competencies.json (opens in a new tab)assets/ootb-competencies.json (opens in a new tab)references/admin-communication.md (opens in a new tab)references/competency-crud.md (opens in a new tab)scripts/create-competency.sh (opens in a new tab)scripts/create-custom-competency.sh (opens in a new tab)scripts/edit-competency.sh (opens in a new tab)scripts/edit-custom-competency.sh (opens in a new tab)scripts/enable-call-scoring.sh (opens in a new tab)scripts/get-competency.sh (opens in a new tab)scripts/get-custom-competency.sh (opens in a new tab)scripts/install-best-practice-competencies.sh (opens in a new tab)scripts/install-ootb-competencies.sh (opens in a new tab)scripts/list-competencies.sh (opens in a new tab)scripts/shared/auth.sh (opens in a new tab)scripts/shared/cap.sh (opens in a new tab)scripts/shared/soap.sh (opens in a new tab)scripts/shared/soql.sh (opens in a new tab)scripts/toggle-competency.sh (opens in a new tab)scripts/toggle-custom-competency.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 plugins ship this exact skill · first indexed Nov 1, 2026
43 skills in this plugin
/crm-analytics-wave-generateUse to build a Wave Recipe, deploy a CRM Analytics dataset or dashboard, or author the full CRMA asset stack — apps, Wave Recipes (.wdpr), datasets, and dashboards — against a connected Salesforce org via REST and Metadata APIs, without CRM Analytics Studio or Dashboard Builder. TRIGGER when: user asks to build or create a Wave Recipe, generate a .wdpr or .wdpr-meta.xml, deploy a .wdash or .wapp, run a recipe or dataflowjob programmatically, upload CSV data via InsightsExternalData, validate a dataset schema with synthetic data, fetch dataset XMD, audit dashboard SAQL re-encoding, or find unused dataset fields. TRIGGER on keywords: Wave Recipe, CRMA, CRM Analytics, wdpr, wdash, wapp, WaveRecipe, Wave dataflow, dataflowjob, InsightsExternalData, SAQL, dataset XMD, Analytics Studio, R3 format, wave/recipes, wave/dashboards, or analytics on Salesforce objects (opportunities, leads, cases, accounts, sales). DO NOT TRIGGER for standard Salesforce reports or LWC components unrelated to CRM Analytics./design-systems-slds2-migrateMigrate Lightning Web Components from SLDS 1 to SLDS 2 by running the SLDS linter and fixing violations. Use this skill whenever users mention SLDS 2, SLDS uplift, linter violations, LWC token migration, class overrides, hardcoded CSS values that need SLDS hook replacement, or styling hook selection. Covers all styling hook categories — color, spacing, sizing, typography, borders, radius, and shadows. Also use when users mention no-hardcoded-values, no-slds-class-overrides, lwc-to-slds-hooks, no-deprecated-tokens-slds1, or ask about SLDS component migration — even if they don't explicitly say "uplift" or "migration".npx claudepluginhub reej-consulting/reej-sf-skills --plugin sf-platformOther plugins' skills for the same job