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/
commerce-b2b-open-code-components-replace
安装
npx skills add https://github.com/forcedotcom/sf-skills --skill commerce-b2b-open-code-components-replace