Commerce B2b Open Code Components Replace
Replaces OOTB B2B Commerce components with open source equivalents in store content.json files.
- CCM score
- 72 of 100
- skills.sh installs
- 4.6K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers replacing OOTB
commerce_builder:definitions with mappedsite:components across view and theme layout metadata - Includes a scan step that lists skipped, unmapped, and replaceable components before any file is changed
- Enforces that only mapping-table
site:targets confirmed present in the open source repo are substituted - Designed for store developers who want to swap OOTB components for open code, or look up equivalents without editing
Install
$ npx -y skills add forcedotcom/sf-skills --skill commerce-b2b-open-code-components-replace -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Replacing OOTB B2B Commerce Components with Open Code
This skill replaces OOTB (out-of-the-box) B2B Commerce component definitions in site metadata content.json files with their open source site: equivalents, or looks up the equivalent open code component for given OOTB definitions without making changes. It uses an authoritative mapping loaded from assets/ootb-to-open-code-mapping.json.
Scope
Modes: Full replace runs the scan (Step 1), user selection if needed, then content.json updates (Step 2–3). Lookup only (user asks for equivalents but not to change files): apply the mapping-authority rule and report OOTB → site: for the named components or for definitions found in the scoped content.json — do not call Write unless the user confirms replacement. View-scoped work: limit file discovery and reads to sfdc_cms__view/<ViewName>/ (or the path the user gives) instead of all views.
Prerequisites
Resolve <package-dir>
Details
- Repository
- github.com/forcedotcom/sf-skills
- Category
- Frontend & UI Code
- First seen
- Jul 14, 2026
Questions
What does the commerce-b2b-open-code-components-replace skill do?
It replaces out-of-the-box B2B Commerce component definitions in site metadata content.json files with their open source site: equivalents. It can also look up the open code equivalent for given OOTB definitions without changing any files.
How do I install the commerce-b2b-open-code-components-replace skill?
Run npx -y skills add forcedotcom/sf-skills --skill commerce-b2b-open-code-components-replace -y in your project. Once installed, the agent can scan your store's site metadata and swap OOTB components for their open code versions.
Which skills lead the Frontend & UI Code category, and where does this skill fit?
This skill is in the Frontend & UI Code category alongside vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. Its focus is narrower than those: it targets B2B Commerce store metadata rather than general frontend guidance.
What do I need before using this skill to replace components?
You need a Salesforce project with sfdx-project.json listing packageDirectories, and the open source components repository cloned at .tmp/b2b-commerce-open-source-components. The related commerce-b2b-open-code-components-integrate skill sets these up, selects the store and retrieves its site metadata.
More from forcedotcom/sf-skills
All 78- Platform Apex Generate7.8K
- Platform Apex Test Generate7.7K
- Platform Apex Test Run7.5K
- Platform Apex Logs Debug7.4K
- Platform Soql Query7.4K
- Platform Metadata Deploy7.3K
- Platform Metadata Retrieve7.2K
- Platform Custom Field Generate7.1K
- Platform Docs Get7K
- Platform Permission Set Generate7K
- Dx Code Analyzer Run6.9K
- Platform Custom Object Generate6.9K
- Automation Flow Generate6.8K
- Experience Lwc Generate6.7K
- Platform Validation Rule Generate6.5K
- Platform Flexipage Generate6.5K
- Dx Org Manage6.4K
- Platform Data Manage6.4K
- Platform Sharing Rules Generate6.4K
- Platform Metadata Api Context Get6.3K
- Design Systems Slds Apply6.3K
- Design Systems Slds Validate6.1K
- Platform Custom Tab Generate6.1K
- Agentforce Generate6.1K
Similar to Commerce B2b Open Code Components Replace
More Frontend & UI Codecommerce-b2bPluginforcedotcom/sf-skills1.2K starsCustomize an existing Salesforce B2B Commerce storefront with the Salesforce Open Code storefront library: bring the official open-source library into site meta
commerce-b2b-open-code-components-integrateSkillforcedotcom/sf-skills4.7K installsCopies Salesforce B2B Commerce open source LWC components and labels into a store for Experience Builder.
Spree Commerce developer docs for AI agentsMCP serverspree15.9K starsHeadless commerce APIs, storefront, and admin docs for building B2B and marketplace stores.
crm-builderSkillcustomware-ai/skills1.4K installsCustomer relationship management skill that maps a DOMAIN.md into contacts, companies, deals, pipeline, and activity views.