Agent skill

Consumer Goods Tpe Dashboard Custom Kpi Configure

by forcedotcom in forcedotcom/sf-skills

Customize the Trade Promotion Effectiveness (TPE) Analytics dashboards' generic KPI slots (Promotion Measure 1-3, Tactic Measure 1-2) with customer-chosen KPI measure codes and display names…

Apache-2.0Auto-check passedBusiness, Finance & HR

Install Consumer Goods Tpe Dashboard Custom Kpi Configure

skills CLI
$ npx skills add forcedotcom/sf-skills --skill consumer-goods-tpe-dashboard-custom-kpi-configure -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forcedotcom/sf-skills consumer-goods-tpe-dashboard-custom-kpi-configure --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/consumer-goods-tpe-dashboard-custom-kpi-configure .claude/skills/consumer-goods-tpe-dashboard-custom-kpi-configure && rm -rf skills-src

Use ~/.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/

Facts

Skill name
consumer-goods-tpe-dashboard-custom-kpi-configure
GitHub stars
1.1k
Token cost
~2.4k tokens
SKILL.md length
1,189 words
Files
5 (incl. scripts, references)
Skills in repo
252
Repo updated
First seen
Licence
Apache-2.0

At a glance

Customize the Trade Promotion Effectiveness (TPE) Analytics dashboards' generic KPI slots (Promotion Measure 1-3, Tactic Measure 1-2) with customer-chosen KPI measure codes and display names…

  • Works in 5 steps: TPM System Admin username — verify… → Dry-run? — offer by default. → Suffix — distinguishes cloned metadata… → …
  • A customer/admin wants to customize TPE dashboards
  • SKILL.md covers The 5 KPI slots — two…, Inputs to collect first, How it works — phase list and Key rules (see…, plus 2 more sections
  • Runs JavaScript scripts from its folder; calls sf and node

What it does

Consumer Goods Tpe Dashboard Custom Kpi Configure is an agent skill from forcedotcom/sf-skills. Customize the Trade Promotion Effectiveness (TPE) Analytics dashboards' generic KPI slots (Promotion Measure 1-3, Tactic Measure 1-2) with customer-chosen KPI measure codes and display names, without touching the shipped base model. Use when a customer/admin wants to "customize TPE dashboards", "change the KPIs on the Promotion/Tactic Analysis dashboard", or "swap in our own measure codes on the TPE dashboard".

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/payload-shapes.md`, `references/procedure.md` and `scripts/clone-tpe-dashboards.js`).

It sits in Business, Finance & HR, covering OKRs and executive reporting. 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.

When your agent uses it

  • A customer/admin wants to customize TPE dashboards
  • Change the KPIs on the Promotion/Tactic Analysis dashboard
  • Swap in our own measure codes on the TPE dashboard

Example prompts

  • “customize TPE dashboards”
  • “change the KPIs on the Promotion/Tactic Analysis dashboard”
  • “swap in our own measure codes on the TPE dashboard”
  • “/consumer-goods-tpe-dashboard-custom-kpi-configure”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. TPM System Admin username — verify connectivity via
  2. Dry-run? — offer by default.
  3. Suffix — distinguishes cloned metadata from the base model (e.g. Cust). Suggest Cust as a
  4. Per-measure overrides — walk the customer through the 5 measures via AskUserQuestion,
  5. Which dashboards to produce — Promotion Analysis, Tactic Analysis, or both. Default to both

What it can do on your machine

Read from SKILL.md and the folder at commit 4bbae5c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Ships 2 files in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • sf
    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Consumer Goods Tpe Dashboard Custom Kpi Configure loads about 2.4k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 116 tokens; SKILL.md has 1,189 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~116
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from forcedotcom/sf-skills at commit 4bbae5c, republished under its Apache-2.0 licence (© forcedotcom). 1,189 words, ~2,367 tokens.

Download SKILL.mdSave it as .claude/skills/consumer-goods-tpe-dashboard-custom-kpi-configure/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
consumer-goods-tpe-dashboard-custom-kpi-configure
description
Customize the Trade Promotion Effectiveness (TPE) Analytics dashboards' generic KPI slots (Promotion Measure 1-3, Tactic Measure 1-2) with customer-chosen KPI measure codes and display names, without touching the shipped base model. Use when a customer/admin wants to "customize TPE dashboards", "change the KPIs on the Promotion/Tactic Analysis dashboard", or "swap in our own measure codes on the TPE dashboard".
metadata.version
1.0
metadata.domains
Consumer Goods
metadata.relatedSkills
consumer-goods-tpe-dashboard-configure

Customize TPE Dashboard KPIs

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 5 KPI slots — two artifacts per slot, not one

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):

  • APPEND mode (default): upserts one {measureCode, displayName} entry into the base menu by measure code — same code relabels in place, new code appends.
  • REPLACE mode: a full 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.

Inputs to collect first

Ask before starting. Do not guess.

  1. TPM System Admin username — verify connectivity via 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.
  2. Dry-run? — offer by default.
  3. Suffix — distinguishes cloned metadata from the base model (e.g. Cust). Suggest Cust as a default. Applied to every new artifact's API name/label — never reuse a base-model API name.
  4. Per-measure overrides — walk the customer through the 5 measures via 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.
  5. Which dashboards to produce — Promotion Analysis, Tactic Analysis, or both. Default to both if any measure on either has an override; otherwise ask explicitly.
Show full SKILL.md (435 more words)Show less

How it works — phase list

  1. Namespace detection — resolve NS via sf package installed list for consistency with sibling skills, but never apply it to any /services/data/... path (those are never namespaced).
  2. Phase 0 — Preflight & discovery: verify connectivity, pin API version 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.
  3. Phase 1 — Resolve the 5-slot plan: deep-copy each base parameter/measurement with overrides applied, print the plan, get explicit user confirmation before any writes.
  4. Phases 2-4 — Clone parameters, measurements, visualizations, dashboards: run 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).
  5. Phase 5 — Verify: GET every created artifact back and confirm parameters, measurements, visualizations, and dashboards all correctly reference the new suffixed clones, never a base apiName. Full detail: references/procedure.md.

Key rules (see references/procedure.md for the complete list)

  • Never mutate a base-model artifact — every write is a new POST of a suffixed copy.
  • Never create anything without explicit user go-ahead on the Phase 1 plan.
  • Always produce all 5 slots' worth of clones, even with zero overrides.
  • Never leave a cloned measurement's expression referencing a base parameter apiName.
  • Never hardcode an artifact id, api-name, or namespace across orgs.
  • Never assume only one visualization per dashboard needs cloning — clone every widget whose viz references a slot measurement.

Reference map

TopicFile
Full phase-by-phase procedure, script CLI usage, all real-write gotchas, complete Rules listreferences/procedure.md
Confirmed live JSON shapes for parameters, calculated measurements, visualizations, dashboards, and POST body shapes for all 4 create endpointsreferences/payload-shapes.md
Org REST helper (strips accessToken; org-status subcommand)scripts/sf-rest.js
Deterministic driver for Phases 2-4scripts/clone-tpe-dashboards.js

Report

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.

© 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

Files

SKILL.md and 4 other files (scripts, references) in skills/consumer-goods-tpe-dashboard-custom-kpi-configure of forcedotcom/sf-skills.

  • SKILL.md
  • references/payload-shapes.md
  • references/procedure.md
  • scripts/clone-tpe-dashboards.js
  • scripts/sf-rest.js

Open the folder on GitHubat commit 4bbae5c

Compare with similar skills

Consumer Goods Tpe Dashboard Custom Kpi Configure 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.

Consumer Goods Tpe Dashboard Custom Kpi Configure compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Consumer Goods Tpe Dashboard Custom Kpi Configure this skillforcedotcom/sf-skills1.1k—~2.4kAutomated safety check: PassApache-2.0
Pine BacktesterTradersPost/pinescript-agents1701 repos~3.9kAutomated safety check: PassNone
Analytics Strategyrampstackco/claude-skills945—~2.4kAutomated safety check: PassMIT
Onboarding Plannerbpinheiroms/dotfiles108—~5.4kAutomated safety check: PassNone
Replit Decksanqiufong/slides-from-anything1321 repos~2.9kAutomated safety check: PassApache-2.0
Building Streamlit Dashboardsiusztinpaul/designing-real-world-ai-agents-workshop512—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Pine Backtester

    TradersPost/pinescript-agents

    Implements comprehensive backtesting and performance metrics.

    170 GitHub starsUsed in 1 repo~3.9k tokens
    Business, Finance & HRAuto-check passed
  • Analytics Strategy

    rampstackco/claude-skills

    Design measurement frameworks including event taxonomy, KPI hierarchy, dashboard architecture, attribution models, and analytics implementation strategy.

    945 GitHub stars~2.4k tokensUpdated 4 days ago
    Business, Finance & HRAuto-check passed
  • Onboarding Planner

    bpinheiroms/dotfiles

    Plan high-conversion mobile app onboarding flows from scratch.

    108 GitHub stars~5.4k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Replit Deck

    sanqiufong/slides-from-anything

    Single-file horizontal-swipe HTML deck in the style of Replit Slides's landing-page template gallery.

    132 GitHub starsUsed in 1 repo~2.9k tokens
    Business, Finance & HRAuto-check passed
  • Building Streamlit Dashboards

    iusztinpaul/designing-real-world-ai-agents-workshop

    Building dashboards in Streamlit. An agent skill from iusztinpaul/designing-real-world-ai-agents-workshop.

    512 GitHub stars~1.1k tokensUpdated 4 mo ago
    Business, Finance & HRAuto-check passed
  • Massing Bim

    ibuilder/massing

    Drive a Massing BIM/AEC project from an AI agent over MCP — read a project's status, records, CDE, KPI and model-quality checks; run standards-compliance, schedule-risk, embodied-carbon, permit-…

    122 GitHub stars~1.1k tokensUpdated 2 days ago
    Business, Finance & HRAuto-check passed

More from forcedotcom/sf-skills

All 252 skills in this repo
  • Agentforce Architecture Analyze

    forcedotcom/sf-skills

    Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.

    1.1k GitHub stars~4.5k tokensUpdated yesterday
    Auto-check passed
  • Agentforce D360 Analyze

    forcedotcom/sf-skills

    Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.

    1.1k GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.3k tokensUpdated yesterday
    Auto-check: notes
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.4k tokensUpdated yesterday
    Auto-check: notes
  • Design Systems Slds Apply

    forcedotcom/sf-skills

    Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.

    1.1k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Experience Lwc Generate

    forcedotcom/sf-skills

    Lightning Web Components with PICKLES methodology and 165-point scoring.

    1.1k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Consumer Goods Tpe Dashboard Custom Kpi Configure

What does Consumer Goods Tpe Dashboard Custom Kpi Configure do?

Customize the Trade Promotion Effectiveness (TPE) Analytics dashboards' generic KPI slots (Promotion Measure 1-3, Tactic Measure 1-2) with customer-chosen KPI measure codes and display names…. Consumer Goods Tpe Dashboard Custom Kpi Configure is an agent skill from forcedotcom/sf-skills. Customize the Trade Promotion Effectiveness (TPE) Analytics dashboards' generic KPI slots (Promotion Measure 1-3, Tactic Measure 1-2) with customer-chosen KPI measure codes and display names, without touching the shipped base model.

When should I use Consumer Goods Tpe Dashboard Custom Kpi Configure?

Consumer Goods Tpe Dashboard Custom Kpi Configure fits situations like: A customer/admin wants to customize TPE dashboards; change the KPIs on the Promotion/Tactic Analysis dashboard; swap in our own measure codes on the TPE dashboard.

How do I install Consumer Goods Tpe Dashboard Custom Kpi Configure in Claude Code?

Run `npx skills add forcedotcom/sf-skills --skill consumer-goods-tpe-dashboard-custom-kpi-configure -a claude-code`. Or copy the skill folder (skills/consumer-goods-tpe-dashboard-custom-kpi-configure in forcedotcom/sf-skills) into .claude/skills/consumer-goods-tpe-dashboard-custom-kpi-configure in your project. Claude Code loads it when a task matches its description.

How do I install Consumer Goods Tpe Dashboard Custom Kpi Configure in Codex?

Run `npx skills add forcedotcom/sf-skills --skill consumer-goods-tpe-dashboard-custom-kpi-configure -a codex`. Or copy the skill folder (skills/consumer-goods-tpe-dashboard-custom-kpi-configure in forcedotcom/sf-skills) into .agents/skills/consumer-goods-tpe-dashboard-custom-kpi-configure in your project. Codex loads it when a task matches its description.

Can I use Consumer Goods Tpe Dashboard Custom Kpi Configure in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill consumer-goods-tpe-dashboard-custom-kpi-configure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/consumer-goods-tpe-dashboard-custom-kpi-configure, .gemini/skills/consumer-goods-tpe-dashboard-custom-kpi-configure, .github/skills/consumer-goods-tpe-dashboard-custom-kpi-configure and .opencode/skills/consumer-goods-tpe-dashboard-custom-kpi-configure in your project.

What does Consumer Goods Tpe Dashboard Custom Kpi Configure need to run?

Going by SKILL.md and its folder, Consumer Goods Tpe Dashboard Custom Kpi Configure needs JavaScript for the scripts in its folder and the command-line tools its instructions call (sf and node). Our summary lists: Node.js.

Does Consumer Goods Tpe Dashboard Custom Kpi Configure access the network?

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.

Is Consumer Goods Tpe Dashboard Custom Kpi Configure safe to install?

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.

What licence does Consumer Goods Tpe Dashboard Custom Kpi Configure use?

Consumer Goods Tpe Dashboard Custom Kpi Configure 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.

How many tokens does Consumer Goods Tpe Dashboard Custom Kpi Configure use?

About 2.4k tokens (SKILL.md is roughly 9.5k 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 12k tokens, read only when the agent opens those files.

What are the alternatives to Consumer Goods Tpe Dashboard Custom Kpi Configure?

Skills that share tags, products or a category with Consumer Goods Tpe Dashboard Custom Kpi Configure: Pine Backtester (TradersPost/pinescript-agents, 170 stars), Analytics Strategy (rampstackco/claude-skills, 945 stars), Onboarding Planner (bpinheiroms/dotfiles, 108 stars) and Replit Deck (sanqiufong/slides-from-anything, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Consumer Goods Tpe Dashboard Custom Kpi Configure?

forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,067 GitHub stars. The repository holds 252 skills in this directory. The repository was last updated on October 9, 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.