forcedotcom avatar

Commerce B2b Open Code Components Replace

This handles the tedious work of swapping out-of-the-box B2B Commerce components for their open source equivalents in your site metadata. It scans your content.json files, cross-references an authoritative mapping table, and lets you pick which components to replace via checkboxes. The workflow is careful: it delegates to another skill to ensure the open source repo is cloned and components are copied first, then does a dry run to show you exactly what can be replaced, what's missing from the repo, and what has no mapping. Saves you from manually hunting through JSON files and mistyping component names. Most useful when you're migrating a store to open code components and want to avoid the manual grep and replace dance.

skills.sh installs
4.6K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill commerce-b2b-open-code-components-replace --agent claude-code

Installs into .claude/skills of the current project.

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>

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Frontend Development, Sales & Marketing
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1composiohq avatartheme-factorycomposiohq/awesome-claude-skillsToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fo4.6Kskills.sh installs
2axiomhq avatarbuilding-dashboardsaxiomhq/skillsDesigns and builds Axiom dashboards via API. Covers chart types, APL and metrics/MPL query patterns, SmartFilters, layout, and configuration options. Use when c4.5Kskills.sh installs
3dpearson2699 avatarswift-testingdpearson2699/swift-ios-skillsWrites and migrates Swift Testing framework tests with @Test, @Suite, #expect, #require, confirmation, traits, withKnownIssue, Attachment.record, processExitsWi4.5Kskills.sh installs
4anthropics avatardesign-systemanthropics/knowledge-work-pluginsAudit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a c4.5Kskills.sh installs
5grafana avatarfleet-managementgrafana/skillsManage a fleet of Grafana Alloy collectors with Fleet Management — author Alloy pipelines once, target them via attribute matchers (`env="production"`, regex `r4.5Kskills.sh installs
6dpearson2699 avatarios-localizationdpearson2699/swift-ios-skillsImplement, review, or improve localization and internationalization in iOS/macOS apps — String Catalogs (.xcstrings), generated localizable symbols, stable key 4.5Kskills.sh installs