sfnext-scapi

sfnext-scapi is a skill for Claude Code from SalesforceCommerceCloud/b2c-developer-tooling. It costs 227 tokens per session (2,548 once invoked), scanned A, original, Apache-2.0.

A guide for using SCAPI, Salesforce Commerce APIs, from a Storefront Next project. It explains how to use typed clients for products, search, baskets, customers, and orders, and how to add custom APIs or custom product fields.

In plain words
What is it for?
Use it to inspect available tenant APIs, extend a built-in client, add a custom API, or type custom product attributes.
Why use it?
It removes guesswork when connecting a storefront to Salesforce Commerce data and keeps custom API responses described in TypeScript.

Skill for Claude Code

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

Part of the storefront-next plugin — 24 skills shipped together

Good fit Use it to inspect available tenant APIs, extend a built-in client, add a custom API, or type custom product attributes.

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

Made for: Claude Code.

Or install storefront-next, the plugin that ships this one along with the rest of its 24 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 sfnext-scapi

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/sfnext-scapi"><img src="https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/sfnext-scapi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 227 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,548 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.00227 $0.02548
Opus 5.5 $0.00091 $0.01019
Sonnet 5.5 $0.00045 $0.00510
Haiku 4.5 $0.00023 $0.00255

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

Security

Grade A, and why

sfnext-scapi 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 15d 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/storefront-next/skills/sfnext-scapi/SKILL.md · 127 lines

How it starts

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

Storefront Next SCAPI Clients and Custom APIs

The runtime (@salesforce/storefront-next-runtime/scapi) already ships typed clients for the standard shopper APIs (products, search, baskets, customers, orders, and so on). You do not "add" those. sfnext scapi add does one of two things on top:

  1. Override a built-in client (client key matches, for example shopperProducts) with a richer schema, typically your tenant's schema expanded with c_* custom attributes, so product.c_myAttr is typed.
  2. Add a custom API you deployed to B2C Commerce (a new property such as clients.loyalty).

Which one you get is decided automatically from the client key. Deep dive: docs/README-SCAPI.md in your project.

The CLI surface

Run as b2c sfnext scapi ..., or inside your project as pnpm sfnext scapi ... (the sfnext bin ships with the project). Add -d <dir> / --project-directory to target another directory.

Command What it does
scapi available Probes your tenant: for each of the built-in shopper APIs counts c_* attributes, lists tenant custom APIs, and prints the matching scapi add command. Needs OAuth. No filter flags.
scapi add <apiFamily> <apiName> <apiVersion> Pull mode: fetch the schema from the SCAPI Schemas API. Needs OAuth.
scapi add --schema <file> --name <clientKey> Local mode: use a YAML/JSON OpenAPI file. --name is required here.
scapi list Shows registered Overrides and Custom APIs (schema, base path, locale).
scapi remove <clientKey> Removes the registration and its generated files (one positional argument: the client key, for example loyalty).

add flags: --name <key> (defaults to camelCase of the API name in pull mode), --base-path <path> (derived from the schema servers[].url if omitted), --supports-locale / --no-supports-locale (overrides inherit the built-in default), --expand-custom-properties (default on, pull mode only; include c_*, use --no-expand-custom-properties to skip). Re-running add regenerates; there is no --force and no --json. There is no install step after add.

Read the full file on GitHub · 127 lines

Files

What ships with it

2 files 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. 15d ago First seen · 127 lines · 227 tokens per session scan A 19e3aca66aa6

Subscribe to this mod's changes

sfnext-scapi is a skill published in the GitHub repository SalesforceCommerceCloud/b2c-developer-tooling (56 stars, last pushed today), licensed Apache-2.0. It adds 227 tokens to every session and 2,548 once invoked, about $0.0009 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-10-05.

Related

Other skills, from other repositories

grow-payment-gateway

Integrate Grow by Meshulam payment gateway into Israeli applications -- covers payment pages (iframe/redirect/SDK), tokenization, recurring billing, payment links, refunds, invoices, webhooks, and 3DS authentication via the Grow Light API. Use when user asks to accept payments via Grow or Meshulam, set up "slikat…

squadcodercom/squadcoder · 274 tokens

shopify-app-development

Build embedded Shopify apps using the Remix framework, App Bridge for UI integration, Polaris components, and OAuth authentication flow.

finsilabs/awesome-ecommerce-skills · 27 tokens

israeli-shipping-manager

Build and manage shipping integrations with Israeli carriers, including Israel Post, Cheetah, HFD, Mahir Li, GetPackage, and UPS Israel, plus locker pickup services (BOX2GO, Shlager, Done, UPS lockers). Use when user asks about "shipping Israel", "Cheetah delivery", "meshloach", "shipping label", "HFD", "locker pickup…

squadcodercom/squadcoder · 207 tokens

sfcc-ocapi-scapi

Integrate with Salesforce Commerce Cloud's headless APIs (OCAPI and Shopper APIs) to build custom storefronts and mobile commerce experiences.

finsilabs/awesome-ecommerce-skills · 34 tokens

convex-billing

Add Stripe billing/payments to the Convex app via @convex-dev/stripe (checkout + webhook + gating).

openclaw/clawhub · 29 tokens

wikipedia

Search and read Wikipedia via x wkp — MediaWiki API, no API key, zero install; query, extract, suggest, and DDG route in one module. Load for wiki, wikipedia, encyclopedia lookup, article summary.

x-cmd/x-cmd · 49 tokens