commerce-b2b-open-code-components-replace

commerce-b2b-open-code-components-replace is a skill for Claude Code from forcedotcom/sf-skills. It costs 169 tokens per session (3,024 once invoked), scanned A, original, Apache-2.0.

A Salesforce B2B Commerce lookup and replacement tool that maps built-in component definitions to their open-source equivalents. Built-in, or out-of-the-box, components are supplied by Salesforce; site components are the open-code versions used in site metadata.

In plain words
What is it for?
Use it to look up equivalent components or replace built-in definitions in content.json files with their open-source counterparts.
Why use it?
It removes guesswork when replacing standard components and limits changes to the requested site metadata files or views.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the commerce-b2b plugin — 2 skills shipped together

Good fit Use it to look up equivalent components or replace built-in definitions in content.json files with their open-source counterparts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/forcedotcom/sf-skills/commerce-b2b-open-code-components-replace
About the project

forcedotcom/sf-skills is a collection of reusable instructions that help AI coding agents build and work with Salesforce applications and platform features. Developers use it for Agentforce agents, Lightning apps, Flow, Apex, SOQL, Lightning Web Components, and related Salesforce configuration. The catalogue entries are the repository’s skills, plugins, commands, MCP servers, and agents for AI tools that support skills.

forcedotcom/sf-skills · 1,201 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add forcedotcom/sf-skills --skill commerce-b2b-open-code-components-replace
Clone the repo
git clone --depth 1 https://github.com/forcedotcom/sf-skills

Made for: Claude Code.

Or install commerce-b2b, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for commerce-b2b-open-code-components-replace

README.md
[![agentmods](https://agentmods.dev/badge/skills/forcedotcom/sf-skills/commerce-b2b-open-code-components-replace/github.svg)](https://agentmods.dev/skills/forcedotcom/sf-skills/commerce-b2b-open-code-components-replace)
Your own site
<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/commerce-b2b-open-code-components-replace"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/commerce-b2b-open-code-components-replace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for commerce-b2b-open-code-components-replace

Your own site · 80×15
<a href="https://agentmods.dev/skills/forcedotcom/sf-skills/commerce-b2b-open-code-components-replace"><img src="https://agentmods.dev/badge/skills/forcedotcom/sf-skills/commerce-b2b-open-code-components-replace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 169 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,024 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 22 Sept 2026
  • Snyk pass 22 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00169 $0.03024
Opus 5.5 $0.00068 $0.01210
Sonnet 5.5 $0.00034 $0.00605
Haiku 4.5 $0.00017 $0.00302

Measured 2mo ago against content hash d71f2656c1ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

commerce-b2b-open-code-components-replace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/builder/commerce-b2b/skills/commerce-b2b-open-code-components-replace/SKILL.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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>

Read sfdx-project.json and pick the active package directory. Extract packageDirectories[] and use the entry with "default": true; if no entry is flagged default, use the first entry. Use this value as <package-dir> everywhere below. If sfdx-project.json is missing or has no packageDirectories, tell the user and abort.

Delegate setup

Before replacing components, delegate to the commerce-b2b-open-code-components-integrate skill to ensure:

  1. Open source repository is cloned at .tmp/b2b-commerce-open-source-components
  2. Store is selected and site metadata is retrieved locally
  3. Open code components are copied to the store's site metadata

The integrating skill owns the .tmp/ clone lifecycle (it prompts the user to reuse or re-clone an existing checkout); this skill assumes the clone is already present.

Send a plain-text chat reply to the user (per Rule 1): "Before replacing components, I need to verify that the open code components are set up in your store. Let me check..."

Read the full file on GitHub · 248 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -6 lines · +8 tokens per session d71f2656c1ad
  2. 3mo ago First seen · 254 lines · 161 tokens per session scan A e33f2841c443

Subscribe to this mod's changes

commerce-b2b-open-code-components-replace is a skill published in the GitHub repository forcedotcom/sf-skills (1,201 stars, last pushed 5d ago), licensed Apache-2.0. It adds 169 tokens to every session and 3,024 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

commerce-b2b-open-code-components-replace compared with skills from other repositories

commerce-b2b-open-code-components-replace next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
commerce-b2b-open-code-components-replaceforcedotcom/sf-skillsSkill1.2k5d agoApache-2.0A169Claude Code
amazon-reviews-api-skillbrowser-act/skillsSkill6.5k28d agoMITA124Claude Code, Codex
amazon-competitor-analyzerbrowser-act/skillsSkill6.5k28d agoMITA48Claude Code, Codex
cloudbase-wechat-integrationTencentCloudBase/CloudBase-AI-ToolkitSkill1.2ktodayMITA94Claude Code
asc-subscription-localizationrorkai/app-store-connect-cli-skillsSkill1.2k2d agoMITA60Claude Code
woo-guardamElnagdy/guard-skillsSkill1.3k8d agoMITA216Codex
product-description-generatornexscope-ai/eCommerce-SkillsSkill1.6k21d agoMITA126Claude Code, Codex