commerce-pricing-and-promotions

commerce-pricing-and-promotions is a skill for Claude Code, Codex from BanibrataChatterjee/AwesomeSalesforceSkills. It costs 90 tokens per session (3,486 once invoked), scanned A, original, Apache-2.0.

A guide to configuring prices and discounts for Salesforce online stores. It covers pricebooks, volume-based pricing, promotions, coupon codes, and cart discounts.

In plain words
What is it for?
Use it to assign store pricebooks, set tiered prices, configure promotions and coupons, and apply discounts during checkout.
Why use it?
It helps find pricing problems caused by pricebook limits or by promotions that were activated but not connected to checkout.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to assign store pricebooks, set tiered prices, configure promotions and coupons, and apply discounts during checkout.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/banibratachatterjee/awesomesalesforceskills/commerce-pricing-and-promotions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BanibrataChatterjee/AwesomeSalesforceSkills --skill commerce-pricing-and-promotions
Clone the repo
git clone --depth 1 https://github.com/BanibrataChatterjee/AwesomeSalesforceSkills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for commerce-pricing-and-promotions

README.md
[![agentmods](https://agentmods.dev/badge/skills/banibratachatterjee/awesomesalesforceskills/commerce-pricing-and-promotions/github.svg)](https://agentmods.dev/skills/banibratachatterjee/awesomesalesforceskills/commerce-pricing-and-promotions)
Your own site
<a href="https://agentmods.dev/skills/banibratachatterjee/awesomesalesforceskills/commerce-pricing-and-promotions"><img src="https://agentmods.dev/badge/skills/banibratachatterjee/awesomesalesforceskills/commerce-pricing-and-promotions/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.

agentmods 80×15 button for commerce-pricing-and-promotions

Your own site · 80×15
<a href="https://agentmods.dev/skills/banibratachatterjee/awesomesalesforceskills/commerce-pricing-and-promotions"><img src="https://agentmods.dev/badge/skills/banibratachatterjee/awesomesalesforceskills/commerce-pricing-and-promotions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,486 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.03486
Opus 5 $0.00045 $0.01743
Sonnet 5 $0.00018 $0.00697
Haiku 4.5 $0.00009 $0.00349

Measured 8d ago against content hash 8459cb4267bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

commerce-pricing-and-promotions scanned grade A with 0 findings 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check_commerce_pricing_and_promotions.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/admin/commerce-pricing-and-promotions/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Commerce Pricing and Promotions

This skill activates when a practitioner needs to configure pricebook assignment, tiered pricing, or promotions (including coupons and cart-level discounts) for a Salesforce B2B or D2C Commerce store. It covers the full pricing resolution stack — from pricebook attachment through discount application at checkout — and explains all silent-failure limits that cause real production bugs.


Before Starting

Gather this context before working on anything in this domain:

  • Store type and Id: B2B and D2C stores share the same pricing objects but differ in guest-buyer access patterns. Retrieve the WebStore.Id first.
  • Pricebook resolution limit: The price engine evaluates at most 25 pricebooks per API call. Pricebooks ranked beyond 25 are silently excluded — no error is raised. Count assigned pricebooks before adding new ones.
  • Promotions do not self-apply: Activating a Promotion record does not automatically apply discounts at checkout. The checkout flow must include the PromotionsCartCalculator subflow. Confirm this before debugging "promotion not working" reports.
  • API version floor: PriceAdjustmentSchedule (tiered pricing parent) requires API v60.0+. PriceAdjustmentTier requires API v47.0+. Verify the org's API version before deploying tiered pricing metadata.

Core Concepts

1. Pricebook Attachment via Junction Objects

Commerce stores do not use the standard Sales Cloud Pricebook2Id field on Account or Opportunity. Two dedicated junction objects control pricebook visibility:

  • WebStorePricebook — links a Pricebook2 to a WebStore. Maximum 5 pricebooks per store. This is the platform hard limit; the 6th record raises a validation error.
  • BuyerGroupPricebook — links a Pricebook2 to a BuyerGroup. Maximum 50 pricebooks per BuyerGroup and 100 BuyerGroups per pricebook.

During price resolution, the engine collects all pricebooks visible to the buyer (via their BuyerGroup memberships and the store's WebStorePricebook assignments), ranks them by the Priority field on the junction record, then evaluates at most 25 pricebooks. Pricebooks ranked 26th or higher are silently skipped — no error, no log entry.

Read the full file on GitHub · 215 lines

Files

What ships with it

6 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.

Changes

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.

  1. 8d ago First seen · 215 lines · 90 tokens per session scan A 8459cb4267bf

Subscribe to this mod's changes

commerce-pricing-and-promotions is a skill published in the GitHub repository BanibrataChatterjee/AwesomeSalesforceSkills (3 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 90 tokens to every session and 3,486 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

commerce-pricing-and-promotions

Configure pricebooks, tiered pricing, promotions, coupon codes, and cart discounts for B2B or D2C Commerce stores. Trigger keywords: WebStorePricebook, BuyerGroupPricebook, PriceAdjustmentSchedule, PromotionsCartCalculator, commerce coupon, cart-level discount, tiered price, Commerce promotion. NOT for Sales Cloud…

PranavNagrecha/AwesomeSalesforceSkills · 106 tokens

discount-engine

Create a flexible discount system supporting percentage off, fixed amounts, buy-one-get-one, tiered thresholds, and complex conditional rules.

finsilabs/awesome-ecommerce-skills · 28 tokens

b2b-vs-b2c-requirements

Use this skill to determine whether a Salesforce Commerce project should use B2B Commerce (account-gated, BuyerGroup-based, contract pricing) or D2C Commerce (consumer storefront, guest checkout, individual-based). Trigger keywords: B2B vs B2C, commerce platform selection, buyer journey, account-based purchasing…

PranavNagrecha/AwesomeSalesforceSkills · 126 tokens

commerce-checkout-configuration

Use this skill when configuring Salesforce B2B or D2C Commerce checkout: payment methods, shipping/tax integration, guest checkout, order summary setup, and CartCheckoutSession state orchestration. Trigger keywords: checkout flow, payment adapter, shipping tax integration, guest checkout, order summary…

PranavNagrecha/AwesomeSalesforceSkills · 116 tokens

commerce-checkout-flow-design

Use this skill when designing the checkout experience for a Salesforce B2B or D2C Commerce storefront — covering runtime model selection (LWR Managed Checkout vs Aura Flow Builder), cart and line-item requirements, payment option scoping, shipping rule definition, and guest vs. registered buyer experience design.…

PranavNagrecha/AwesomeSalesforceSkills · 142 tokens

b2b-commerce-store-setup

Use this skill to configure a Salesforce B2B Commerce storefront: creating the WebStore, linking BuyerGroups, assigning CommerceEntitlementPolicies, and granting buyer contacts transactional access. Trigger keywords: B2B Commerce, WebStore, BuyerGroup, entitlement policy, buyer account, storefront access. NOT for…

PranavNagrecha/AwesomeSalesforceSkills · 109 tokens