Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

commerce-b2b-open-code-components-replace

Skill by forcedotcom

Replaces out-of-the-box B2B Commerce components with open source site components in store site metadata. It can also look up the open code equivalent for OOTB definitions without changing any files.

  • Score 78
  • 1.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install commerce-b2b-open-code-components-replace

Built from the published package, never by AI.

git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/skills/commerce-b2b-open-code-components-replace ~/.claude/skills/commerce-b2b-open-code-components-replac

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install commerce-b2b-open-code-components-replace in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill swaps OOTB (out-of-the-box) B2B Commerce component definitions in site metadata content.json files for their open source site: equivalents. It scans the store's view and theme layout files for commerce_builder definitions, cross-checks them against a mapping file, and confirms each target exists in the cloned open code repository before writing changes.

It also supports a lookup-only mode that reports the equivalent site: component for named components or for definitions in a given view, without writing files. The skill depends on the commerce-b2b-open-code-components-integrate skill for setup. It is aimed at Salesforce B2B Commerce store builders who want to move from OOTB components to open source ones.

Written from the project's SKILL.md and checked against it.

What it can do

  • Full replaceScans site metadata, lets the user pick components, and updates their definitions in content.json files.
  • Lookup onlyReports the open code site: equivalent for OOTB definitions without changing any files.
  • View-scoped lookupLimits file discovery and reads to a single view folder when the user names one.
  • Mapping reportLists replaced, skipped, and unmapped components in a summary after the run.

What you need

  • A Salesforce B2B Commerce store with site metadata
  • Open source B2B Commerce components cloned to .tmp/b2b-commerce-open-source-components
  • The commerce-b2b-open-code-components-integrate skill
  • Salesforce CLI (sf) to deploy the changed metadata

Try asking

  • Replace OOTB components with open code versions in my store
  • What is the open code equivalent of commerce_builder:cartBadge?
  • Find open code equivalents for components in the Home view

Good to know

  • Only components listed in the mapping file are replaced; others are left unchanged.
  • Components missing from the cloned open code repo are skipped.
  • Lookup-only mode does not write files unless the user confirms replacement.
  • Changes must be deployed and the site published by the user.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/commerce-b2b-open-code-components-replace/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash(grep:*) Bash(ls:*) Read Write

Alternatives to commerce-b2b-open-code-components-replace

All alternatives →

Compare with shopify, shopify-development or ticketmaster

commerce-b2b-open-code-components-replace: common questions

Does this skill change my store files when I only ask for equivalents?

No. In lookup-only mode it reports the mapping and does not call Write unless the user confirms replacement.

Where does the component mapping come from?

The skill uses assets/ootb-to-open-code-mapping.json as the only source of truth for OOTB to open code mappings.

Which files does the replacement update?

It updates the "definition" values in content.json files under the store's sfdc_cms__view and sfdc_cms__themeLayout folders, leaving other properties unchanged.

How do I install commerce-b2b-open-code-components-replace?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is commerce-b2b-open-code-components-replace free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is commerce-b2b-open-code-components-replace safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to commerce-b2b-open-code-components-replace?

Similar skills: shopify, shopify-development, ticketmaster, seo-ecommerce.

commerce-b2b-open-code-components-replace Install

Add to stack

Loading.