b2c-security

b2c-security is a skill for Claude Code from SalesforceCommerceCloud/b2c-developer-tooling. It costs 156 tokens per session (1,826 once invoked), scanned A, original, Apache-2.0.

A local security scanner and fix workflow for Salesforce B2C Commerce storefront code and site data. Salesforce B2C Commerce is a platform for building online shops; cartridges are its reusable code packages.

In plain words
What is it for?
Use it to scan SFRA, SiteGenesis, or custom cartridges and import/export data such as OCAPI settings, services, and preferences, then investigate and fix findings.
Why use it?
It finds known security problems without needing a live store connection or credentials, helping you review risky code and configuration before deployment.

Skill for Claude Code

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

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

Good fit Use it to scan SFRA, SiteGenesis, or custom cartridges and import/export data such as OCAPI settings, services, and preferences, then investigate and fix findings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/salesforcecommercecloud/b2c-developer-tooling/b2c-security
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-security
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 28 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-security

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-security"><img src="https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,826 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.
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.00156 $0.01826
Opus 5.5 $0.00062 $0.00730
Sonnet 5.5 $0.00031 $0.00365
Haiku 4.5 $0.00016 $0.00183

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

Security

Grade A, and why

b2c-security 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 14d 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.

skills/b2c-cli/skills/b2c-security/SKILL.md · 102 lines

How it starts

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

B2C Security Skill

Use b2c security scan (preview) to find security problems in B2C Commerce cartridge code, then triage and fix them. The scan runs locally on the working tree, needs no instance or credentials, and takes well under a second for a typical storefront.

Tip: If b2c is not installed globally, use npx @salesforce/b2c-cli instead.

MCP parity: If the b2c-dx-mcp server is connected, security_scan covers b2c security scan with the same rules, suppressions, and baseline. Route findings depend on cartridge order: check cartridgePathSource and pass siteId to use a site's path from the instance.

Scan

# Scan all cartridges under the current directory (folders with a .project file)
b2c security scan

# Scan one cartridge or file
b2c security scan cartridges/app_custom

# Structured output for analysis (prefer this when you will read the results)
b2c security scan --json

# List the rules and what they find
b2c security rules

Findings in SFRA and SiteGenesis base cartridges (app_storefront_base, modules, app_storefront_controllers, ...) are reported with referenceCartridge set. They are real for any storefront that deploys those cartridges; fix them from the project's own cartridge (for example server.prepend()), not by editing the base. --exclude-reference-cartridges leaves them out.

Site data in the project (such as a site_template folder) is checked too: services.xml, preferences.xml, attribute definitions, csrf-whitelists.xml, and OCAPI settings JSON. Server-side .js and .ds files are scanned; cartridge/client/, cartridge/static/, node_modules/, and minified files are skipped. Legacy .ds files with type annotations can't be parsed yet and are reported under errors.

Triage findings

Each finding in --json output has ruleId, severity, confidence, message, location (file, startLine, startColumn), snippet, remediation, and docsUrl.

  1. Read the code around each finding before changing it. Rules decide from one file at a time.
  2. Treat confidence: high findings as real unless the code proves otherwise.
  3. For medium and low confidence, check what the rule could not see: whether a redirect target is validated in a helper, whether a "secret" is a test value, whether a query value is constant.
  4. Explain each finding to the user in terms of impact (what an attacker could do) and the fix.

Read the full file on GitHub · 102 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. 14d ago Changed fc947238c60b
  2. 17d ago First seen · 102 lines · 156 tokens per session scan A 126258156ce1

Subscribe to this mod's changes

b2c-security is a skill published in the GitHub repository SalesforceCommerceCloud/b2c-developer-tooling (58 stars, last pushed today), licensed Apache-2.0. It adds 156 tokens to every session and 1,826 once invoked, about $0.0006 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-11-17.

Related

b2c-security compared with skills from other repositories

b2c-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
b2c-securitySalesforceCommerceCloud/b2c-developer-toolingSkill58todayApache-2.0A156Claude Code
shoppingHmbown/CodewhaleSkill41k2mo agoMITA0Claude Code, Codex
goofish-publish-itemfancyboi999/goofish-cliSkill5293d agoApache-2.0A151Claude Code
goofish-reply-buyerfancyboi999/goofish-cliSkill5293d agoApache-2.0A160Claude Code
goofish-shop-diagnosisfancyboi999/goofish-cliSkill5293d agoApache-2.0A149Claude Code
daiso-clihmmhmmhm/daiso-mcpSkill357yesterdayMITA165Claude Code, Codex
goofish-overviewfancyboi999/goofish-cliSkill5293d agoApache-2.0A143Claude Code, Codex