/consumer-goods:consumer-goods-tpe-dashboard-custom-kpi-configurefrom Salesforce Consumer Goods Cloud
Clones and customizes TPE Analytics dashboard KPI slots (Promotion Measure 1-3, Tactic Measure 1-2) with customer-chosen measure codes and display names via sf CLI, without modifying the shipped base model.
Ships in Salesforce Consumer Goods Cloud. 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.
Headlessly clones the base TPE Analytics semantic-model parameters, visualizations, and dashboards
under a customer-chosen suffix, so a customer's own KPI measure codes appear on the Promotion/Tactic
Analysis dashboards without ever mutating the shipped base model. Driven entirely by sf CLI +
REST against an already-authenticated org. Requires consumer-goods-tpe-dashboard-configure to
have already installed the TPE Analytics app and the Extended TPM Analytics SDM — this skill never
installs those, only customizes on top of them.
Persona: a Salesforce TPM System Admin customizing TPE dashboards for their org's own KPIs.
There is no native "clone" endpoint for any of the three artifact types this skill touches (semantic-model parameters, visualizations, dashboards) — every clone is the same three-step pattern: GET the base artifact, deep-copy its JSON and apply overrides, POST the copy as a new artifact. Base-model artifacts are never mutated in place.
The shipped Extended TPM Analytics SDM exposes 5 generic List-type parameters that the standard
dashboards bind to: Promotion Measure 1-3 (Promotion_Measure_{1,2,3}_prm / _value) and Tactic
Measure 1-2 (Tactic_Measure_{1,2}_prm / _clc). Never assume Tactic mirrors Promotion's
_value naming — resolve both slots' measurement apiNames from the live model per slot, never by
pattern. See references/payload-shapes.md for the confirmed apiNames and JSON shapes.
Each slot is two SDM artifacts: the parameter (*_prm, a List type with allowedValues
menu entries and a defaultValue) and the calculated measurement (what visualizations actually
query; its expression links back to the parameter by apiName). Customizing a slot means cloning
both — the parameter gets the customer's KPI as a new/selected allowedValues entry, and the
measurement's expression is rewritten to reference the cloned parameter's new apiName.
This skill always produces clones of all 5 slots (10 artifacts), whether or not a given slot has a requested override — an unmentioned slot is still cloned as an exact copy of the base artifacts (only apiName/label suffixed).
Two override modes per slot (see references/procedure.md for exact --overrides shapes):
{measureCode, displayName} entry into the base menu by
measure code — same code relabels in place, new code appends.allowedValues array supplied by the customer becomes the entire menu.Either way this skill assumes the underlying measure data is already populated by prior
setup-rtr-datacloud-export/data-kit setup — it does not create that underlying data itself.
Ask before starting. Do not guess.
node ./scripts/sf-rest.js org-status --target-org <username> (never sf org display --json
directly — that leaks a live accessToken). Non-Connected ⇒ stop, ask the user to log in.Cust). Suggest Cust as a
default. Applied to every new artifact's API name/label — never reuse a base-model API name.AskUserQuestion,
batched by dashboard (Promotion Measure 1-3 in one call, Tactic Measure 1-2 in a second call —
never all 5 in one call, the tool caps at 4 questions per call), never using the internal term
"slot" toward the user. Never ask a separate plain free-text follow-up question to collect the
list — a plain-text message doesn't block the next tool call, so if you fire another
AskUserQuestion for the next measure before the customer's reply lands, their answer races
ahead and lands on the wrong question. Instead, collect the full list inside the same blocking
question: every AskUserQuestion question automatically gets a "Type Something" free-text
option appended after your listed options — no need to add your own placeholder option for it,
and never rely on a bare canned option label (e.g. "Replace with custom list") to actually carry
the list, since selecting it only returns that label text, not the customer's data. Word the
question and its second option's description to point the customer at "Type Something"
explicitly, e.g. option 2 = "Replace with custom list", description: "Select Type Something
(last option, below) and type comma-separated {measureCode}: {displayName} pairs, plus which
one should be default." A menu can have more than one entry — always collect the full array,
never just one pair (a single-pair answer is still an array of length 1). This collected array
maps directly to that slot's REPLACE-mode override ({"allowedValues":[...], "defaultValue": "<first displayName unless the customer says otherwise>"}) — see references/procedure.md's
override-mode shapes. Confirm the resolved list per measure back to the user before Phase 0.NS via sf package installed list for consistency with
sibling skills, but never apply it to any /services/data/... path (those are never namespaced).v67.0, resolve the
installed app + asset ids (model, both dashboards, visualizations) by walking the app's asset
list — never hardcode an id. Block with a pointer to consumer-goods-tpe-dashboard-configure if
prerequisites are missing. Full detail: references/procedure.md.scripts/clone-tpe-dashboards.js (preferred over hand-rolling individual REST calls) — see
references/procedure.md for the full CLI usage, override-mode payload shapes, and every
real-write gotcha the script encodes (label uniqueness, dataSource .type stripping rules,
cloning every KPI-bound visualization not just one "designated" viz, cosmetic label-text
replacement, upsert-by-measure-code).references/procedure.md.references/procedure.md for the complete list)expression referencing a base parameter apiName.| Topic | File |
|---|---|
| Full phase-by-phase procedure, script CLI usage, all real-write gotchas, complete Rules list | references/procedure.md |
| Confirmed live JSON shapes for parameters, calculated measurements, visualizations, dashboards, and POST body shapes for all 4 create endpoints | references/payload-shapes.md |
Org REST helper (strips accessToken; org-status subcommand) | scripts/sf-rest.js |
| Deterministic driver for Phases 2-4 | scripts/clone-tpe-dashboards.js |
At the end of a run, give the user a structured status per phase (0-5): pass / blocked / pending, with the specific blocking reason where applicable, and the final list of created artifacts (slot → new parameter, base viz → new viz, base dashboard → new dashboard). Call out anything skipped due to dry-run or a declined confirmation.
When invoked via delegation (the calling skill used the Skill tool to reach this file, rather
than the user directly — e.g. consumer-goods-tpe-dashboard-configure's customization step): this
report is an intermediate result. Return it to the calling skill and let it continue with its own
report — do not present this as the final answer to the user unless this skill was invoked
standalone.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub forcedotcom/sf-skills --plugin consumer-goods6 skills in this plugin
/consumer-goods-accruals-datakit-deployUse this skill to deploy the TPM Liability Accruals data kit end to end to a Salesforce org. Invoke when a customer or teammate wants to install the accrual engine, verify the Data Cloud connection, deploy the Data Kit components, and schedule the export and accrual calculation chain. Trigger phrases include: 'deploy the accrual data kit', 'set up liability accruals', 'install TPM accruals', 'headless accruals setup', 'configure the Data Cloud export connector', 'schedule the accrual chain'. Do NOT use for creating a Data Space alone (use platform-dataspace-access-configure), for generic Salesforce metadata deployment (use platform-metadata-deploy), for querying org data only (use platform-soql-query), or when setting up the data kit for the Trade Promotion Effectiveness (TPE) feature (use consumer-goods-tpe-datakit-deploy instead)./consumer-goods-rtr-datacloud-export-configureConfigure a Trade Promotion Management (TPM) org's RTR (Real Time Reporting) export pipeline to push promotion measures into Data Cloud (Data 360) for Trade Promotion Effectiveness (TPE) dashboards. Use when a customer or admin wants to set up the RTR export for Data Cloud measures, configure the RTR report for TPE, or as a delegated step from consumer-goods-tpe-dashboard-configure./consumer-goods-sync-management-configureUse this skill to set up Salesforce Consumer Goods (CG) Cloud Mobile Sync end-to-end for the Sync Management App managed package — it runs all three acts in order (Act 1 Setup Sync, Act 2 Assign Users, Act 3 Plan & Verify), not just installing the baseline, so a sales rep can see the day's planned visits offline. Use it when asked to "set up CG Cloud mobile sync", "configure Consumer Goods mobile sync", "set up sync for Retail Execution", "install the sync baseline", "assign a user to the sync configuration", "verify the sync setup", or "why can't my rep see their planned visits offline" when sync setup or the baseline install is suspected. DO NOT TRIGGER for general CG Cloud mobile-app troubleshooting unrelated to sync setup, for authoring new or custom sync baselines (this installs only shipped baselines discovered at runtime), or for building or customizing the mobile app UI itself — those are out of scope./consumer-goods-tpe-dashboard-configureEnd-to-end headless setup of Trade Promotion Effectiveness (TPE) dashboards for a Trade Promotion Management (TPM) Cloud org, covering tenant pairing checks, permission sets, SSOT and Tableau Next enablement, C360 SDM verification, the TPM Accruals data kit install, business-period export, RTR Data Cloud export configuration, the TPM_PROMOTION_MEASURE Data Transform, TPE Analytics app install, and optional KPI dashboard customization. Use when a customer or admin wants to set up TPE dashboards, enable Trade Promotion Effectiveness, install the TPE analytics app, or set up and customize TPE dashboards with their own KPIs./consumer-goods-tpe-datakit-deployDeploy the TPM Accruals Data Kit components specifically required for Trade Promotion Effectiveness (TPE) dashboards. Use when a customer or admin wants to install or deploy the TPM data kit for TPE dashboards, or as a delegated step from consumer-goods-tpe-dashboard-configure. Do not use this skill if the customer wants to deploy the TPM Accruals Data Kit for the Accruals feature.3 plugins in 2 repositories ship this exact skill · first indexed Sep 11, 2026
Other plugins' skills for the same job