forcedotcom/sf-skills is a collection of reusable instructions that help AI coding agents build and work with Salesforce applications and platform features. Developers use it for Agentforce agents, Lightning apps, Flow, Apex, SOQL, Lightning Web Components, and related Salesforce configuration. The catalogue entries are the repository’s skills, plugins, commands, MCP servers, and agents for AI tools that support skills.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/forcedotcom/sf-skillsnpx agentmods add skills/forcedotcom/sf-skills/consumer-goods-promotion-bo-api-deployWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/forcedotcom/sf-skills/consumer-goods-promotion-bo-api-deploy)<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/consumer-goods-promotion-bo-api-deploy"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/consumer-goods-promotion-bo-api-deploy/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/consumer-goods-promotion-bo-api-deploy"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/consumer-goods-promotion-bo-api-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 86 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00125 | $0.05106 |
| Opus 5.5 | $0.00050 | $0.02042 |
| Sonnet 5.5 | $0.00025 | $0.01021 |
| Haiku 4.5 | $0.00013 | $0.00511 |
Grade A, and why
consumer-goods-promotion-bo-api-deploy scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
2. **Retrieve + expand the resource cross-platform via SFDX** — use `sf project retrieve`, which unpacks a zip StaticResource into a folder on every OS (no `curl`, no `unzip` — `unzip` isn't present on Windows by default How it starts
The opening of the file, as written. The whole thing — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Deploy the Promotion BO API
What this does
Turns on the Consumer Goods Cloud TPM Promotion Business Object (BO) API in a
Salesforce org, interviews the user for one custom Workflow Step to add to
the promotion pipeline, generates and deploys that Apex class, registers it
against a BO API entity, wires it into the customer's chosen subset of
{create, update, copy} workflows, then proves the whole path end-to-end via
three REST endpoints:
POST /services/apexrest/<prefix>/promotions/initializePOST /services/apexrest/<prefix>/promotions/ingestGET /services/apexrest/<prefix>/promotions/status?importId=...
It is meant for headless delivery: point it at an org, answer the interview,
and the skill installs the step and verifies it. The Promotion BO API ships in
the CGCloud managed package (namespace cgcloud released, cgcloud_dev
dev/beta). Every Apex identifier, object/field API name, and REST URL is derived
from the detected package prefix at runtime — this skill never hard-codes it.
derive is out of scope here (a follow-up skill covers it). Detailed runbooks
for the write and smoke phases live under references/:
references/conventions-and-payload-rules.md— sales-org partitioning, schema-first contract derivation, and the eight cross-workflow payload rules R1–R8.references/generate-and-wire.md— Phase 5a (generate + deploy the class) and Phase 5b (register + wire the step), with the fullregister-step.apex.references/smoke-and-verify.md— Phase 6 (contract derivation, payload materialization, create/update/copy legs + verification).references/reference-example-set-comment-value.md— the shippedSetCommentValuepreset (assets atassets/set-comment-value/).
Inputs to collect first
Ask before starting; do not guess.
- Org alias — the
sfalias of the target org. Required. - Sales org — required pre-parameter, default
0001. Must be 4 chars, uppercase (mirrorsTPMSetupData.validateSalesOrg). Every downstream lookup (promotion template, tactic template, anchor account, product filter criteria, SKUs) is scoped to this sales org — seereferences/conventions-and-payload-rules.md("Sales-org partitioning"). - Yes to seeding? — Phase 3a fetches the packaged BO API seed and asks for confirmation before inserting ~232 rows across 8 objects. Offer
--yesfor CI callers. - Dry run? —
--dry-runruns Phases 1, 2, 3a-preview, the Phase 5 interview, and a validate-only deploy. Writes nothing.
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/set-comment-value/interview-answers.json 363 B
- assets/set-comment-value/payloads/copy.json 172 B
- assets/set-comment-value/payloads/create.json 458 B
- assets/set-comment-value/payloads/update.json 326 B
- assets/set-comment-value/README.md 1.1 KB
- assets/set-comment-value/SetCommentValue.cls 3.0 KB
- assets/set-comment-value/SetCommentValue.cls-meta.xml 174 B
- references/conventions-and-payload-rules.md 15 KB
- references/generate-and-wire.md 11 KB
- references/reference-example-set-comment-value.md 4.7 KB
- references/smoke-and-verify.md 12 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 276 lines · 125 tokens per session scan A 3b2518b8b32e
consumer-goods-promotion-bo-api-deploy is a skill published in the GitHub repository forcedotcom/sf-skills (1,201 stars, last pushed 5d ago), licensed Apache-2.0. It adds 125 tokens to every session and 5,106 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.
consumer-goods-promotion-bo-api-deploy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| consumer-goods-promotion-bo-api-deployforcedotcom/sf-skills | Skill | 1.2k | 5d ago | Apache-2.0 | A | 125 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 5d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 695 | yesterday | MIT | A | 105 | Claude Code, Codex |