commerce-catalog-strategy
Use this skill when designing a product catalog taxonomy, planning attribute strategy, or determining search and navigation structure for a B2B or B2C/D2C Commerce store. Triggers on: taxonomy design questions, attribute planning, search index strategy, category navigation structure, or merchandising hierarchy decisions. NOT for catalog configuration — object creation, WebStoreCatalog wiring, entitlement policies, or product assignment steps are covered by admin/commerce-product-catalog.
Best use case
commerce-catalog-strategy is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Use this skill when designing a product catalog taxonomy, planning attribute strategy, or determining search and navigation structure for a B2B or B2C/D2C Commerce store. Triggers on: taxonomy design questions, attribute planning, search index strategy, category navigation structure, or merchandising hierarchy decisions. NOT for catalog configuration — object creation, WebStoreCatalog wiring, entitlement policies, or product assignment steps are covered by admin/commerce-product-catalog.
Teams using commerce-catalog-strategy should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/commerce-catalog-strategy/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How commerce-catalog-strategy Compares
| Feature / Agent | commerce-catalog-strategy | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use this skill when designing a product catalog taxonomy, planning attribute strategy, or determining search and navigation structure for a B2B or B2C/D2C Commerce store. Triggers on: taxonomy design questions, attribute planning, search index strategy, category navigation structure, or merchandising hierarchy decisions. NOT for catalog configuration — object creation, WebStoreCatalog wiring, entitlement policies, or product assignment steps are covered by admin/commerce-product-catalog.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Commerce Catalog Strategy This skill activates when a practitioner needs to design — not configure — a product catalog for Salesforce B2B or B2C/D2C Commerce. It covers taxonomy design, attribute planning, search index strategy, storefront navigation structure, and merchandising hierarchy. For hands-on configuration tasks (creating WebStoreCatalog records, assigning products to categories, configuring entitlement policies), use the companion skill `admin/commerce-product-catalog`. --- ## Before Starting Gather this context before working on anything in this domain: - **Store type:** B2B and B2C/D2C stores use the same underlying product catalog data model but have different storefront catalog structures, search behaviors, and attribute visibility rules. Confirm which platform is in scope. - **Most common wrong assumption:** Practitioners conflate the *product catalog* (the system-of-record for all products, not site-assigned, shared across orgs) with the *storefront catalog* (the navigation structure visible to buyers, one per site). These are separate objects with different design concerns. - **50 searchable field limit:** D2C and B2C stores support a maximum of 50 searchable fields per product. Exceeding this limit silently breaks the next search index rebuild. This constraint must be resolved at taxonomy design time, not after catalog migration. - **Full-token search only:** Commerce search uses full-token matching. There is no prefix search or infix (substring) search. This constrains attribute naming conventions and significantly impacts how buyers can locate products by partial term. --- ## Core Concepts Understanding these four concepts is mandatory before making any taxonomy or attribute recommendation. ### Product Catalog vs. Storefront Catalog Salesforce Commerce uses two distinct catalog constructs that serve different purposes: - The **product catalog** (`ProductCatalog` object) is the system-of-record repository for all products and their attributes. It is not assigned to a storefront. Products exist in the product catalog independent of any store. This is where taxonomy (category hierarchy), product variants, and attribute definitions live as data. - The **storefront catalog** is the navigation structure used by a specific B2B or B2C site. It determines which categories buyers see, in what order, and which products appear in which category pages. A store has exactly one active storefront catalog. Design mistake: planning the storefront navigation hierarchy first and then trying to force it into the product catalog. The product catalog taxonomy must be designed for system-of-record integrity and reuse across storefronts. The storefront catalog is a filtered, ordered view layered on top. ### Search Index Architecture and the 50-Field Limit D2C Commerce (and Salesforce B2C Commerce) indexes product attributes for search using a flat field mapping. The platform supports a maximum of **50 searchable fields per product**. This limit applies across all attributes, custom fields, and standard fields that are marked as searchable. Key implications for taxonomy and attribute strategy: - Budget searchable fields at the attribute planning stage, before any data migration. - Not every attribute needs to be searchable. Distinguish between: searchable (keyword-indexed), filterable (facet), and display-only (rendered on PDP but not indexed). - If the total searchable field count exceeds 50, the search index rebuild job will fail silently on the next run, returning stale or incomplete results. There is no runtime error visible to buyers; the failure is visible only in index job logs. ### Full-Token Search and Naming Conventions Commerce search performs **full-token matching only**. There is no prefix search (typing "cab" will not return "cabinet") and no infix/substring matching. This is a platform constraint, not a configuration option. Practical impact on attribute and taxonomy design: - Product names and attribute values that rely on abbreviations or codes (e.g., "SKU-AX-2241") will not surface via partial-term search unless buyers type the complete token. - Category names used as search facet labels should use the buyer's natural vocabulary, not internal codes. - If buyers commonly search by partial term, consider denormalizing full descriptive names into a dedicated searchable field rather than relying on the attribute value format. ### Taxonomy Depth, Breadth, and Category Assignment A well-designed taxonomy balances navigability with maintainability: - **Depth:** Hierarchies deeper than 3–4 levels cause buyer navigation problems (excessive drilling) and increase the complexity of storefront catalog maintenance. The platform supports deeper nesting, but UX and search facet usability degrade. - **Breadth:** Categories with more than 20–30 direct children become unwieldy for faceted navigation. Group related subcategories under an intermediate level rather than flattening. - **Assignment:** A product can belong to multiple categories in the product catalog, but storefront catalog placement is managed separately. Design the category hierarchy to reflect logical groupings, not current navigation UI requirements — those requirements change, but the taxonomy should be stable. --- ## Common Patterns ### Attribute Budget Planning Before Data Migration **When to use:** When migrating products from a legacy PIM, ERP, or spreadsheet into Commerce and the source system has many attributes per product. **How it works:** 1. Export the full attribute list from the source system. 2. Classify each attribute as: searchable, filterable-only, display-only, or internal (not exposed to storefront). 3. Count searchable candidates. If count exceeds 50, work with stakeholders to de-prioritize lower-value searchable fields. 4. Document the classification in the catalog strategy document before any product import is attempted. 5. Use the `ProductAttribute` and `ProductAttributeSet` objects to model the agreed attribute structure. **Why not the alternative:** Waiting until post-migration to audit searchable fields means rework at scale. Changing a field from searchable to non-searchable after products are imported requires a full re-index, which is time-consuming for large catalogs. ### Two-Layer Taxonomy Design **When to use:** When a single storefront needs to present different navigation structures (e.g., by industry, by product type, or by buyer persona) while all products live in one product catalog. **How it works:** 1. Design the product catalog taxonomy for system-of-record accuracy: logical category hierarchy based on product nature, not buyer intent. 2. Design the storefront catalog as a curated view: select which product catalog categories to expose, rename them for buyer-facing vocabulary, and set their display order. 3. Use separate category records in the storefront catalog that map back to product catalog categories — do not try to serve two navigation intents with one taxonomy. **Why not the alternative:** Building a single flat taxonomy that tries to serve both system-of-record integrity and multiple storefront navigation styles creates a category hierarchy that is too broad, hard to maintain, and resistant to change when the storefront UX evolves. --- ## Decision Guidance | Situation | Recommended Approach | Reason | |---|---|---| | Attribute count in source system exceeds 50 | Classify attributes into searchable / filterable / display-only tiers; reduce searchable to ≤50 | Exceeding 50 searchable fields breaks search index rebuild | | Multiple storefronts need different navigation | Design product catalog taxonomy for system-of-record; create separate storefront catalogs per site | Storefront catalog is a view layer; product catalog is stable record of truth | | Buyers search by partial term or code fragment | Add a dedicated full-name searchable field; document the token-matching constraint | Full-token-only search means partial inputs return no results | | Category hierarchy is deeper than 4 levels | Flatten intermediate levels; use faceted filtering to compensate | Deep hierarchies degrade navigation UX and complicate storefront catalog maintenance | | Product belongs to multiple logical categories | Allow multi-category assignment in product catalog; manage storefront placement separately | Products can span categories at the product catalog level without storefront navigation conflict | | Migrating from legacy PIM with inconsistent naming | Normalize attribute values to buyer vocabulary during migration; do not import raw ERP codes | Full-token search makes raw codes unsearchable unless buyers know the exact string | --- ## Recommended Workflow Step-by-step instructions for an AI agent or practitioner working on this task: 1. **Identify store type and catalog scope.** Confirm whether this is B2B, B2C, or D2C. Identify whether there are multiple storefronts sharing a single product catalog. Collect the estimated product count and number of distinct product types. 2. **Audit existing or planned attributes.** List all attributes, custom fields, and standard fields that stakeholders want buyers to search or filter by. Classify each as: searchable, filterable-only, display-only, or internal. Confirm the searchable count is ≤50 before proceeding. 3. **Design the product catalog taxonomy.** Define the category hierarchy with a maximum of 3–4 levels. Ensure category names reflect product nature (system-of-record intent), not buyer navigation intent. Verify each leaf category is specific enough to support faceted filtering. 4. **Design storefront catalog navigation.** Map product catalog categories to the storefront catalog structure. Rename categories using buyer vocabulary. Define display order and which categories are visible on the storefront. If multiple storefronts exist, design a storefront catalog for each separately. 5. **Document attribute naming for search.** Identify any attributes that use codes, abbreviations, or internal terminology. Decide whether to add a parallel descriptive field or normalize values for buyer-facing vocabulary. Document this decision in the catalog strategy artifact. 6. **Validate against platform limits.** Run a final count of searchable fields. Confirm taxonomy depth. Confirm that no category hierarchy design decisions have been baked into the product catalog that should belong in the storefront catalog. 7. **Hand off to configuration.** Produce the catalog strategy document (taxonomy diagram, attribute classification table, storefront navigation plan) and transfer to the configuration workstream using the `admin/commerce-product-catalog` skill. --- ## Review Checklist Run through these before marking work in this area complete: - [ ] Searchable field count confirmed at ≤50 per product type - [ ] Product catalog taxonomy designed independently from storefront navigation structure - [ ] All attribute values that buyers search by use full vocabulary terms, not codes or abbreviations - [ ] Storefront catalog designed as a curated view over the product catalog, not merged with it - [ ] Category hierarchy depth is 4 levels or fewer - [ ] Attribute classification (searchable / filterable / display-only) is documented and signed off - [ ] Multi-storefront scenarios have separate storefront catalog designs --- ## Salesforce-Specific Gotchas Non-obvious platform behaviors that cause real production problems: 1. **Exceeding 50 searchable fields fails silently** — When the searchable field count exceeds 50, the next search index rebuild job completes without a user-visible error but returns stale or incomplete results. Buyers see no error; the failure is logged only in the index job history. By the time the symptom is noticed, the catalog may have grown significantly beyond the limit. 2. **Product catalog taxonomy changes do not automatically reflect in storefront catalog** — Modifying a category in the product catalog (renaming, restructuring) does not propagate to the storefront catalog. Storefront catalog records must be updated separately. Teams that design these as one object are surprised when navigation breaks after a product catalog reorganization. 3. **Full-token search cannot be made prefix-aware through configuration** — There is no admin setting or search configuration option that enables prefix or infix matching. This is a platform-level constraint. Workarounds require denormalizing data (adding extra searchable fields with expanded values), not configuration changes. --- ## Output Artifacts | Artifact | Description | |---|---| | Catalog Strategy Document | Taxonomy diagram, attribute classification table, searchable field count, and storefront catalog navigation plan | | Attribute Classification Table | Spreadsheet mapping each attribute to its role: searchable, filterable, display-only, or internal | | Storefront Catalog Navigation Plan | Category tree for each storefront with buyer-facing names, display order, and product catalog category mappings | --- ## Related Skills - `admin/commerce-product-catalog` — Use for the configuration execution that follows this strategy: creating ProductCatalog records, wiring WebStoreCatalog, assigning products to categories, configuring entitlement policies - `admin/b2b-vs-b2c-requirements` — Use when the store type has not yet been decided; determines which platform constraints apply before catalog strategy begins - `admin/commerce-search-customization` — Use after catalog strategy is complete to configure search boosting rules, synonym management, and search result merchandising
Related Skills
shield-event-log-retention-strategy
Use when designing Salesforce Shield Event Monitoring retention, SIEM routing, and storage-tier strategy — which event types to keep, for how long, where, and how to answer audit queries across hot/warm/cold tiers. Triggers: 'shield event log retention', 'route event monitoring to splunk', 'how long to keep login history', 'siem salesforce integration', 'event monitoring storage tier'. NOT for enabling Shield (see salesforce-shield-deployment).
oauth-redirect-and-domain-strategy
Design Connected App OAuth callback URLs, My Domain naming, Enhanced Domains cutover, and cross-environment redirect handling. Trigger keywords: oauth redirect uri, connected app callback, my domain, enhanced domains, sandbox url change, oauth login host. Does NOT cover: end-user login flow UX, Experience Cloud branding, or SAML-only SSO configuration.
mfa-enforcement-strategy
Plan and operate Salesforce org-wide multi-factor authentication (MFA) enforcement: verification methods, phased rollout, SSO and API-only considerations, exemptions, and operational readiness. NOT for designing Login Flow post-authentication logic, IP allowlists, or conditional step-up policies—use ip-range-and-login-flow-strategy, network-security-and-trusted-ips, or transaction-security-policies instead.
ip-range-and-login-flow-strategy
Design and implement Salesforce Login Flows (Screen Flows assigned to profiles or Experience Cloud sites) that run post-authentication to enforce conditional MFA, IP-based branching, terms-of-service acceptance, or user data collection. Covers Login Flow creation in Flow Builder, profile/site assignment, IP-aware decision logic, and ConnectedAppPlugin extension points. NOT for static IP allowlisting or profile Login IP Ranges (see network-security-and-trusted-ips), org-wide session policies, or SSO/SAML IdP configuration.
commerce-lwc-components
Use this skill when building or customizing Lightning Web Components for B2B Commerce or D2C LWR storefronts — product display tiles, cart line-item components, checkout step components, wishlist buttons, and product comparison widgets that rely on Commerce Storefront wire adapters from the commerce namespace. NOT for standard LWC development outside a Commerce store context, not for Aura-based Community Builder components, and not for legacy B2B Commerce (CloudCraze) Aura widgets.
data-cloud-integration-strategy
Use this skill when designing or troubleshooting the data pipeline strategy for connecting source systems to Data Cloud — including ingestion API pattern selection (streaming vs. batch), connector type decisions, DSO-to-DLO-to-DMO pipeline lag, and lakehouse federation patterns. Triggers on: Data Cloud ingestion API setup, streaming vs batch connector decision, Data Cloud connector types, MuleSoft Direct for Data Cloud, data pipeline lag for segmentation. NOT for standard Salesforce integration patterns (use integration-patterns skill), not for querying Data Cloud once data is ingested (use data-cloud-query-api), not for configuring standard admin connectors through the UI only.
api-versioning-strategy
Design versioning for custom Apex REST endpoints: URI versioning, backward compatibility, deprecation sunset. NOT for consuming external APIs.
flow-versioning-strategy
Manage Flow versions: activation policy, paused interview compatibility, cleanup cadence, and breaking-change detection. Trigger keywords: flow version management, activate flow version, paused interview, flow cleanup, flow breaking change, flow rollback. Does NOT cover: FlowDefinition metadata deploy order (see devops skill), Process Builder retirement, or Flow test coverage (separate skill).
rollback-and-hotfix-strategy
Planning and executing metadata rollbacks and emergency hotfixes in Salesforce orgs. Use when a production deployment causes regression and needs to be reverted, or when an urgent fix must bypass the normal release pipeline. Covers pre-deploy archive bundles, quick deploy for hotfixes, non-rollbackable component handling, and hotfix branch isolation. NOT for routine CI/CD pipeline setup (use continuous-integration-testing). NOT for destructive changes authoring (use destructive-changes-deployment).
package-development-strategy
Use this skill when deciding between Salesforce package development approaches — unmanaged, unlocked, 1GP managed, or 2GP managed — including namespace selection, ISV distribution requirements, upgrade path design, and AppExchange packaging strategy. Trigger keywords: should I use managed or unlocked package, Salesforce package type selection, 2GP vs 1GP managed package, namespace decision Salesforce, ISV AppExchange packaging, unlocked package strategy. NOT for individual package creation steps, scratch org setup, or day-to-day package version build commands.
environment-strategy
Use when designing the full environment topology for a Salesforce program — selecting which org types to provision, how many, and how they map to your branching strategy and release pipeline. Trigger keywords: 'environment strategy', 'org topology', 'scratch org vs sandbox', 'how many environments do I need', 'environment planning', 'DevOps environment design'. NOT for sandbox-type-only decisions (use admin/sandbox-strategy), NOT for scratch org lifecycle or daily usage (use devops/scratch-org-management), NOT for release pipeline mechanics (use devops/release-management).
product-catalog-migration-cpq
Use when bulk-loading or migrating Salesforce CPQ product catalog configuration data — SBQQ-namespaced objects including Product2, ProductOption, PriceRule, PriceAction, DiscountSchedule, DiscountCategory, ConfigurationAttribute, and OptionConstraint — across orgs or from an external source system. Trigger keywords: CPQ bulk load, SBQQ product migration, ProductOption insert order, CPQ trigger disable, price rule migration, CPQ sandbox refresh catalog, bundle migration. NOT for standard product import or CRM product migration (use product-catalog-data-model). NOT for CPQ quote or subscription data migration. NOT for Industries CPQ (Vlocity) catalog migration.