commerce-b2b-open-code-components-integrate

Copies Salesforce B2B Commerce open source LWC components and labels into store site metadata.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Build --skill commerce-b2b-open-code-components-integrate-padjei
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: commerce-b2b-open-code-components-integrate
Source: https://github.com/padjei/SF_Build/tree/main/.claude/skills/commerce-b2b-open-code-components-integrate
Command: npx skills add https://github.com/padjei/SF_Build --skill commerce-b2b-open-code-components-integrate-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Adding Salesforce's open source B2B Commerce components to a store normally requires manually cloning the GitHub repository, locating the correct store site metadata, and copying dozens of component and label files into the right directories. This Skill automates that entire integration so the components appear in Experience Builder. ## Core Features & Use Cases - Repository Management: Clones the official forcedotcom/b2b-commerce-open-source-components repository into a local .tmp folder, with options to reuse or re-clone an existing copy. - Store Metadata Detection: Resolves the default package directory from sfdx-project.json, finds local DigitalExperienceBundle site metadata, or retrieves it from a connected org when missing. - Controlled Copying: Copies all sfdc_cms__lwc components and sfdc_cms__label files into the store's site directory, with overwrite or copy-only-new options when files already exist. - Use Case: A developer setting up a new B2B Commerce store wants all open source components available in Experience Builder; the Skill clones the repo, resolves the store, copies 45 components and 38 label sets, and outputs the deploy command. ## Quick Start Integrate the open source B2B Commerce components into my store so they appear in Experience Builder.

Frequently Asked Questions about commerce-b2b-open-code-components-integrate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add open source B2B Commerce components to my Salesforce store?▼

Clone the forcedotcom/b2b-commerce-open-source-components repository, then copy its sfdc_cms__lwc and sfdc_cms__label directories into your store's digitalExperiences/site folder. After deploying, the components appear in the Experience Builder palette.

How to integrate forcedotcom b2b-commerce-open-source-components with SFDX?▼

Resolve your default package directory from sfdx-project.json, ensure DigitalExperienceBundle site metadata exists locally or retrieve it with sf project retrieve start, then copy the repo's components and labels into the site directory and deploy.

What if my project has no B2B store site metadata locally?▼

The Skill checks for a connected org with sf org list, lists DigitalExperienceBundle site bundles, and retrieves the selected one with sf project retrieve start. If no org or bundles are available, it delegates to the commerce-b2b-store-create skill.

Can I update existing open code components without overwriting everything?▼

Yes. When components already exist in the store's site metadata, you can choose to overwrite all files with the latest repo versions or copy only new components that are not yet present.

Why does the git clone of the B2B Commerce components repo fail?▼

Clone failures are typically caused by network or connectivity issues when reaching GitHub. The Skill reports the failure and aborts; verify your internet connection and retry the clone.