Agent skill · forcedotcom

commerce-b2b-open-code-components-integrate

Integrate the official Salesforce B2B Commerce open source component library from GitHub into an existing store's site metadata. Use this skill to copy the library's components and labels so they become available in Experience Builder. TRIGGER when: the user asks to integrate or add open code components, names forcedotcom/b2b-commerce-open-source-components, or wants the official open source library copied into a B2B store. DO NOT TRIGGER when: the user needs to create or retrieve a B2B store (use commerce-b2b-store-create), only map or replace OOTB component definitions (use commerce-b2b-open-code-components-replace), author custom LWCs, or perform general Experience Builder work unrelated to this library.

What it needs

About 5k tokens when loaded.

What this skill does

When to Use This Skill Use this skill when you need to: Integrate all open source B2B Commerce components into a store Add open source components to a new or existing B2B Commerce store Make open code components available in Experience Builder Rules 1. Always explain before executing. Before running any command, you MUST tell the user what the command does and why you are running it. Never just show a raw command and ask for permission. The user should be able to read your explanation and understand the purpose before approving. Overview This skill copies all open source B2B Commerce components from the official Salesforce repository (https://github.com/forcedotcom/b2b-commerce-open-source-components) into a B2B Commerce store's site metadata. After integration, the components appear in the Experience Builder component palette. --- Startup Flow When this skill is triggered, perform these checks automatically before copying. Check 0: Resolve Package Directory Run the plugin's deterministic resolver from the Salesforce project root: Use its single stdout line as <package-dir> everywhere below. The resolver parses sfdx-project.json, selects the entry with "default": true, or the first entry when no default is declared. If it exits nonzero, relay its diagnostic to the user and abort; do not guess a package directory or reimplement the selection logic inline. Check 1: Open Source Repository Verify the repo is cloned at .tmp/b2b-commerce-open-source-components: 1. If directory does not exist: Tell user: "I'm cloning the official B2B Commerce open source components repository from GitHub into a local .tmp/ folder. This gives us access to all the open code components." Then run: git clone https://github.com/forcedotcom/b2b-commerce-open-source-components .tmp/b2b-commerce-open-source-components 2. If directory exists and contains force-app/main/default/sfdccmslwc and sfdccmslabel, present options: "Open source repository is already cloned. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills forcedotcom/commerce-b2b-open-code-components-integrate--2f665d

View the source on GitHub

Browse the @skills marketplace