Logo : Commerce Product Catalog

Commerce Product Catalog

Communauté
PranavNagrecha
commerce-product-catalog

Use when configuring or troubleshooting the B2B/B2C Commerce product catalog — ProductCatalog, ProductCategory, ProductCategoryProduct, WebStoreCatalog, CommerceEntitlementPolicy, product attributes, and product variants. Trigger keywords: product catalog, product category, commerce catalog, entitlement policy, product variants, product attributes, catalog visibility. NOT for taxonomy, attribute strategy or category navigation design — use admin/commerce-catalog-strategy. NOT for search ranking, facets or index rebuilds — use apex/commerce-search-customization. NOT for CPQ catalogs.

Présentation

ÉditeurPranavNagrecha
DépôtAwesomeSalesforceSkills
Nom de la compétencecommerce-product-catalog
Étoiles
26
Forks
5
Fichiers inclus
6
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 6

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par PranavNagrecha sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Commerce Product Catalog dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/admin/commerce-product-catalog
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PranavNagrecha/AwesomeSalesforceSkills.git /tmp/AwesomeSalesforceSkills
mkdir -p .claude/skills
cp -r /tmp/AwesomeSalesforceSkills/skills/admin/commerce-product-catalog .claude/skills/commerce-product-catalog
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Commerce Product Catalog dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Commerce Product Catalog dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Commerce Product Catalog n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Commerce Product Catalog

This skill activates when a practitioner needs to create, configure, or troubleshoot the B2B or B2C Commerce product catalog — including category hierarchy setup, product assignment to categories, entitlement policy configuration for buyer visibility, and product attribute/variant modeling. It does not cover CPQ catalog configuration or standard Product2/Pricebook2 data loading outside of a Commerce context.


Before Starting

Gather this context before working on anything in this domain:

  • Confirm which WebStore record the work targets and retrieve its Id. A store can be associated with only one ProductCatalog at a time via the WebStoreCatalog junction object.
  • Identify how many BuyerGroup records exist and which CommerceEntitlementPolicy records are linked to each. Buyer entitlement per product is capped at 2,000 buyer groups for search indexing — exceeding this silently drops products from search results.
  • Confirm whether the store uses Salesforce Search or Einstein Search. Both require a manual search index rebuild after catalog or entitlement changes — changes do not propagate automatically.
  • Check if products use attribute sets (for variants). ProductAttributeSet and ProductAttribute records drive the variant model and must be configured before Product2 variant records can be created.

Core Concepts

ProductCatalog and WebStoreCatalog

ProductCatalog is the top-level container for a Commerce catalog. Each store is linked to exactly one ProductCatalog through a WebStoreCatalog junction record. A single ProductCatalog can serve multiple stores, but a store may not reference multiple catalogs simultaneously. Attempting to create a second WebStoreCatalog for the same store results in a validation error.

ProductCategory records form the navigational and organizational hierarchy within a catalog. Categories are linked to their catalog via the CatalogId field on ProductCategory. Categories can be nested (parent–child) to arbitrary depth, though very deep hierarchies increase page-load time and are an operational anti-pattern.

Products are assigned to categories through ProductCategoryProduct junction records — one per Product2-per-category assignment. A product can belong to multiple categories within the same catalog.

CommerceEntitlementPolicy and Buyer Visibility

CommerceEntitlementPolicy records control which products a buyer group can see and purchase. A policy is linked to a BuyerGroup through CommerceEntitlementPolicyGroup. Products are explicitly included in a policy via CommerceEntitlementProduct records.

The platform limit that causes the most production incidents: a single product can be included in at most 2,000 buyer groups for search index purposes. If a product is assigned to more than 2,000 buyer groups (via entitlement policies), Salesforce silently excludes it from search results for those buyer groups beyond the cap. There is no error message. The product still appears via direct URL or catalog browsing, but search will not surface it.

Product Variants and Attribute Sets

Product variants in Commerce are modeled using ProductAttributeSet (the set of attributes, e.g., Color, Size) and ProductAttribute (individual attribute definitions). A parent product (Product2 with IsActive = true) holds the attribute set reference. Child variant products are separate Product2 records linked to the parent via the VariantParentId field. Each child represents a specific combination of attribute values (e.g., Blue + Large).

Attribute sets must be created and assigned to the parent product before child variants can be created. Attempting to create a variant product without a configured attribute set results in a validation error. Attribute values are stored on ProductAttributeSetProduct junction records.

Search Index Dependency

The Commerce search index is a separate, asynchronous data store derived from the catalog. It must be explicitly rebuilt — via Setup > B2B Commerce > [Store] > Search Index — after any of the following:

  • Adding or removing products from categories
  • Creating or modifying CommerceEntitlementPolicy records
  • Activating or deactivating Product2 records
  • Changing WebStoreCatalog associations

Until the index rebuild completes, buyer-facing search results will reflect the previous state.


Common Patterns

Pattern A: Single Catalog, Flat Category Hierarchy

When to use: Stores with fewer than 200 SKUs and a single buyer segment where all buyers see the same products.

How it works:

  1. Create one ProductCatalog record.
  2. Create ProductCategory records directly under the catalog (no nesting) or with one level of nesting.
  3. Create ProductCategoryProduct for each Product2 → Category assignment.
  4. Create one WebStoreCatalog linking the catalog to the store.
  5. Create one CommerceEntitlementPolicy and one BuyerGroup; link all products to the policy.
  6. Rebuild the search index.

Why not the alternative: Nesting categories deeply (3+ levels) for small catalogs adds configuration overhead and slows storefront category navigation without benefit.

Pattern B: Single Catalog, Segmented Entitlement Policies

When to use: Multiple buyer tiers (e.g., Gold, Silver, Public) need different product visibility within the same store and catalog structure.

How it works:

  1. Create one ProductCatalog and assign it to the store via WebStoreCatalog.
  2. Create ProductCategory records shared across all buyer tiers.
  3. Create separate BuyerGroup and CommerceEntitlementPolicy per tier.
  4. Assign products to the appropriate policies via CommerceEntitlementProduct records.
  5. Monitor total buyer group assignments per product — stay below 2,000.
  6. Rebuild the search index after any policy change.

Why not the alternative: Separate catalogs per buyer tier requires separate stores (one catalog per store) and multiplies administrative overhead. Segmented entitlement within one catalog is the canonical Commerce approach.

Pattern C: Variant Products with Attribute Sets

When to use: Products that come in multiple configurations (e.g., clothing in multiple sizes and colors, equipment in multiple voltages).

How it works:

  1. Create a ProductAttributeSet record (e.g., "Apparel Attributes").
  2. Create ProductAttribute records linked to the set (e.g., Color, Size).
  3. Create the parent Product2 record and link the attribute set.
  4. Create child Product2 variant records — one per attribute combination — with VariantParentId pointing to the parent.
  5. Set attribute values on each child via ProductAttributeSetProduct.
  6. Add only the parent product to ProductCategoryProduct; children are discoverable via the parent on the PDP.
  7. Assign the parent and children to CommerceEntitlementProduct records as needed.

Why not the alternative: Creating separate, unrelated Product2 records for each variant breaks the storefront PDP variant selector and prevents buyers from switching between variants on the same page.


Decision Guidance

SituationRecommended ApproachReason
All buyers see the same productsSingle BuyerGroup + Single EntitlementPolicySimplest setup; fewest records; easiest to maintain
Multiple buyer tiers, different product visibilityMultiple BuyerGroups + multiple EntitlementPoliciesNative Commerce entitlement model; stays within one catalog and one store
Need separate pricing AND separate product catalogsSeparate stores with separate catalogsOne catalog per store is a platform constraint; pricing differences alone don't require separate catalogs
Products in multiple configurationsVariant Products with ProductAttributeSetProvides storefront variant selector UX; keeps SKU navigation coherent
Product visible in admin but missing from buyer searchRebuild search index; verify entitlement; check 2,000 group capSearch index is async; entitlement is separate from category assignment
Need to move product from one catalog to anotherDelete ProductCategoryProduct in old catalog; create new in new catalog; check entitlement policyProducts themselves (Product2) are org-wide; catalog membership is controlled by junction records

Recommended Workflow

Step-by-step instructions for an AI agent or practitioner working on this task:

  1. Identify the target store and current catalog. Query WebStoreCatalog for the store's WebStoreId to confirm the active ProductCatalogId. Note: only one record is allowed per store.
  2. Design the category hierarchy. Sketch the top-level categories and any sub-categories. Prefer 2 levels maximum for operational simplicity. Create ProductCategory records with CatalogId pointing to the active catalog.
  3. Assign products to categories. Create ProductCategoryProduct junction records for each Product2 → ProductCategory pairing. A product can belong to multiple categories.
  4. Configure entitlement policies. For each buyer segment, create or verify a CommerceEntitlementPolicy linked to the appropriate BuyerGroup via CommerceEntitlementPolicyGroup. Create CommerceEntitlementProduct records for each product the segment should see. Verify total buyer group assignments per product remain under 2,000.
  5. Configure variant products if applicable. Ensure ProductAttributeSet and ProductAttribute records are in place before creating child variant Product2 records. Set VariantParentId on each child.
  6. Rebuild the search index. Navigate to Setup > B2B Commerce > [Store Name] > Search Index and initiate a full rebuild. Wait for the job to complete before testing buyer-facing search.
  7. Validate buyer visibility end-to-end. Log in as a buyer user in the appropriate BuyerGroup, search for a product, and confirm it appears. Confirm that products outside the buyer's entitlement policy do not appear.

Review Checklist

Run through these before marking work in this area complete:

  • WebStoreCatalog has exactly one record for the target store with the correct ProductCatalogId
  • All ProductCategory records have a valid CatalogId and correct ParentCategoryId hierarchy
  • ProductCategoryProduct records exist for all products that should appear in at least one category
  • Each buyer group has an active CommerceEntitlementPolicy linked via CommerceEntitlementPolicyGroup
  • CommerceEntitlementProduct records exist for every product the buyer group should see
  • No product is assigned to more than 2,000 buyer groups across all entitlement policies
  • Search index rebuild was initiated and completed successfully after all catalog and entitlement changes
  • Variant products have VariantParentId set and all child variants are linked to the parent's attribute set

Salesforce-Specific Gotchas

Non-obvious platform behaviors that cause real production problems:

  1. One catalog per store — hard constraint — A WebStore record can have exactly one active WebStoreCatalog junction. Attempting to insert a second WebStoreCatalog for the same store raises a validation rule error. To switch catalogs, delete the existing WebStoreCatalog first, then create the new one.
  2. 2,000 buyer group cap is silent — If a product is included in more than 2,000 CommerceEntitlementPolicy records (and thus more than 2,000 buyer groups), it is silently excluded from search index results for buyer groups beyond the 2,000 limit. No error, no warning, no Apex trigger fires. The product still appears via direct navigation but buyers cannot discover it via search.
  3. Search index does not auto-rebuild — Adding a product to a category or an entitlement policy does not trigger any automatic search reindex. Buyers will not see new products in search until an admin initiates a full or incremental index rebuild from Setup.
  4. Category assignment does not equal buyer visibility — Assigning a product to a ProductCategory makes it organizationally visible in the Commerce admin but does not make it visible to buyers. Buyer visibility requires a CommerceEntitlementProduct record in the buyer group's active entitlement policy AND an up-to-date search index.
  5. Variant children require attribute set before creation — A child variant Product2 record cannot be saved without an existing, valid ProductAttributeSet linked to the parent product. Creating variants before the attribute set is configured results in a validation error that does not always provide a clear field-level message in the UI.

Output Artifacts

ArtifactDescription
ProductCatalog recordTop-level catalog container associated to the store via WebStoreCatalog
ProductCategory recordsHierarchical category structure within the catalog
ProductCategoryProduct recordsJunction records assigning Product2 to categories
WebStoreCatalog recordJunction linking one ProductCatalog to one WebStore
CommerceEntitlementPolicy recordsControls which products each buyer group can see and buy
CommerceEntitlementProduct recordsJunction records listing products visible under a given policy
Search Index rebuild confirmationSetup record showing successful completion of search index rebuild
Variant configurationProductAttributeSet, ProductAttribute, and child Product2 records with VariantParentId set

Related Skills

  • admin/b2b-commerce-store-setup — Use when setting up the WebStore, BuyerGroup, and storefront configuration before the catalog is populated
  • data/product-catalog-data-model — Use when bulk-loading Product2, Pricebook2, and PricebookEntry records outside a Commerce context

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Commerce Product Catalog ?

Use when configuring or troubleshooting the B2B/B2C Commerce product catalog — ProductCatalog, ProductCategory, ProductCategoryProduct, WebStoreCatalog, CommerceEntitlementPolicy, product attributes, and product variants. Trigger keywords: product catalog, product category, commerce catalog, entitlement policy, product variants, product attributes, catalog visibility. NOT for taxonomy, attribute strategy or category navigation design — use admin/commerce-catalog-strategy. NOT for search ranking, facets or index rebuilds — use apex/commerce-search-customization. NOT for CPQ catalogs.

Pourquoi utiliser Commerce Product Catalog sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Commerce Product Catalog se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Commerce Product Catalog dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/admin/commerce-product-catalog. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Commerce Product Catalog ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Commerce Product Catalog ?

Autant que vous le souhaitez. Vous pouvez utiliser Commerce Product Catalog avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Commerce Product Catalog est-elle gratuite ?

Cette compétence est publiée sur GitHub par PranavNagrecha. Consultez le dépôt pour connaître les conditions de licence. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇