Skip to content
forcedotcom avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers replacing OOTB commerce_builder: definitions with mapped site: 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 -y

Installs 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

Similar to Commerce B2b Open Code Components Replace

More Frontend & UI Code