b2c-config

b2c-config is a skill for Claude Code from SalesforceCommerceCloud/b2c-developer-tooling. It costs 46 tokens per session (6,715 once invoked), scanned A, original, Apache-2.0.

A configuration and troubleshooting guide for Salesforce's B2C CLI, a command-line tool for developing and managing B2C Commerce projects. It covers setup, authentication, instance connections, and project defaults.

In plain words
What is it for?
Use it to configure or diagnose B2C CLI access, inspect environment and project settings, troubleshoot credentials, and connect to Salesforce B2C Commerce instances.
Why use it?
It helps explain where the CLI gets credentials and settings when commands cannot find an instance or authentication fails. It can inspect resolved configuration and its sources.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the b2c-cli plugin — 22 skills shipped together

Good fit Use it to configure or diagnose B2C CLI access, inspect environment and project settings, troubleshoot credentials, and connect to Salesforce B2C Commerce instances.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/salesforcecommercecloud/b2c-developer-tooling/b2c-config
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 SalesforceCommerceCloud/b2c-developer-tooling --skill b2c-config
Clone the repo
git clone --depth 1 https://github.com/SalesforceCommerceCloud/b2c-developer-tooling

Made for: Claude Code.

Or install b2c-cli, the plugin that ships this one along with the rest of its 22 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 b2c-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-config/github.svg)](https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-config)
Your own site
<a href="https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-config"><img src="https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-config/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 b2c-config

Your own site · 80×15
<a href="https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-config"><img src="https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,715 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 3
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 363
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 366
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium MCP Rug Pull · line 10
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Rogue Agent · line 192
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Excessive Agency · line 234
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00046 $0.06715
Opus 5.5 $0.00018 $0.02686
Sonnet 5.5 $0.00009 $0.01343
Haiku 4.5 $0.00005 $0.00671

Measured 12d ago against content hash 66c53c4108a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

b2c-config scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Use in curl for OCAPI calls
skills/b2c-cli/skills/b2c-config/SKILL.md · 482 lines

How it starts

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

B2C Config Skill

For routine inspection, call config_inspect or b2c setup inspect directly; no skill read is required. Keep secrets redacted; manually reading dw.json is usually unnecessary. Read the relevant section here when configuring sources or diagnosing unexpected/missing values.

Task CLI MCP Preference / difference Fallback
Inspect resolved configuration b2c setup inspect config_inspect Either; same resolver, redacted by default. MCP accepts per-call project/instance overrides. Inspect source files only for edits or unresolved issues.
Change configuration or authenticate b2c setup set, b2c setup, b2c auth No configuration-writing equivalent CLI; inspect command help for the requested operation. Edit the intended configuration source.

If b2c is unavailable, use npx @salesforce/b2c-cli.

How the CLI Discovers Configuration

The CLI automatically detects instance hostname, credentials, tenant ID, MRT API key, and other settings from multiple sources. You usually do not need to pass --server, --client-id, --client-secret, --username, --password, --tenant-id, --short-code, or --api-key as flags — the CLI picks them up from the environment or config files.

Sources, in resolution order (highest priority first):

  1. CLI flags and environment variables — explicit values always win. Shell variables win over the env file; toolkit variables (SFCC_*, MRT_*) in the project's .env (or the file selected with --dotenv-file / SFCC_DOTENV_FILE) come next.
  2. Plugin sources (high priority) — custom configuration plugins (e.g., secret managers).
  3. dw.json — selected by --config / SFCC_CONFIG, the env file, the project-local file, or the shared global dw.json. Supports a single instance or a configs[] array with active: true / -i <name> selection.
  4. Storefront Next variables — fallbacks that only fill fields missing from the selected dw.json entry (see below).
  5. ~/.mobify — home-directory file (MRT API key only).
  6. Plugin sources (low priority).
  7. package.json under the b2c key — non-sensitive project defaults (e.g., shortCode, clientId, mrtProject). Sensitive fields like clientSecret/password are intentionally not allowed here.

Read the full file on GitHub · 482 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. 12d ago Changed · +19 lines 66c53c4108a1
  2. 14d ago Changed · +2 lines 29686f950e62
  3. 15d ago Changed · +8 lines f32a08131d9b
  4. 17d ago Changed · +366 lines · +9 tokens per session 86f9a266b0e3
  5. 1mo ago Changed · -314 lines · -180 tokens per session 1ce8eed9bb68
  6. 1mo ago Changed · +6 lines c64f48bf6f23
  7. 1mo ago First seen · 395 lines · 217 tokens per session scan A 0db689e4ef8f

Subscribe to this mod's changes

b2c-config is a skill published in the GitHub repository SalesforceCommerceCloud/b2c-developer-tooling (56 stars, last pushed today), licensed Apache-2.0. It adds 46 tokens to every session and 6,715 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

voiden

Create and edit Voiden .void files for API testing. Covers the .void file format and all enabled extension block types.

VoidenHQ/voiden · 28 tokens

scaffold-project

Scaffold a new app, API, backend, fullstack project, mobile app, polyglot service, monorepo, or starter with Better Fullstack. Use when the user wants to create, start, bootstrap, initialize, or generate a project from a stack description. Prefer the bundled Better Fullstack MCP server: guidance, schema…

Marve10s/Better-Fullstack · 80 tokens

csharp-dotnet

Use when writing, reviewing, testing, or shipping C# / .NET code — ASP.NET Core APIs (minimal APIs vs controllers), EF Core data access, async correctness, solution layout in .cs/.csproj/.sln. NOT a Java/Spring backend (that is spring-boot), NOT a Node/TypeScript backend (that is nestjs), NOT framework-neutral REST…

ericrisco/rsc-harness · 89 tokens

migrate-oracle-forms

Assess and migrate Oracle Forms applications to Mendix — .fmb forms to pages, PL/SQL to microflows, and a staged migration strategy. Use when analysing or converting an Oracle Forms system.

mendixlabs/mxcli · 47 tokens

business-events

Define event-driven APIs over Kafka with Mendix business event services — publish and subscribe contracts, CREATE/DROP/DESCRIBE. Use when building publish/subscribe integration between apps, or inspecting the business event services a project already has.

mendixlabs/mxcli · 50 tokens

opencli-explorer

Use when creating a new OpenCLI adapter from scratch, adding support for a new website or platform, exploring a site's API endpoints via browser DevTools, or when a user asks to automatically generate a CLI for a website. Covers automated generation, API discovery workflow, authentication strategy selection, TS…

zxfccmm4/Obsidian-OpenCode-Knowledge · 68 tokens