/b2c:b2c-onboardingfrom b2c
Guides new developers through first-time Salesforce B2C Commerce setup: CLI install, sandbox connection, and first cartridge deploy. Coordinates specialized sub-skills.
Ships in b2c. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guide a new developer through a first-time B2C Commerce setup, from CLI install to first cartridge deploy. Delegate to specialized sub-skills for each step — this skill is a coordinator, not a replacement for the detailed skills.
dw.json without confirmation.Silently identify the IDE from system context:
| Signal | Client |
|---|---|
| "Claude Code" | claude-code |
| "Cursor" | cursor |
| "VS Code" / "Visual Studio Code" | vscode |
| "Codex" | codex |
| "Gemini CLI" | gemini-cli |
| Unrecognized | other |
This onboarding skill is part of the b2c plugin. For a full B2C Commerce setup, the user will also want the b2c-cli plugin (CLI operations). Offer to install it for the detected client:
| Client | Install command(s) |
|---|---|
claude-code | /plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling then /plugin install b2c-cli@b2c-developer-tooling (and optionally /plugin install b2c-dx-mcp@b2c-developer-tooling for the MCP server) |
vscode (GitHub Copilot) | Command Palette (Cmd+Shift+P) → Chat: Install Plugin From Source → enter the repo SalesforceCommerceCloud/b2c-developer-tooling |
| GitHub Copilot CLI | copilot plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling then copilot plugin install b2c-cli@b2c-developer-tooling |
cursor | Cursor Settings → Plugins → add marketplace URL https://github.com/SalesforceCommerceCloud/b2c-developer-tooling, then install b2c-cli |
codex | codex plugin marketplace add SalesforceCommerceCloud/b2c-developer-tooling, then codex plugin add b2c-cli@b2c-developer-tooling (and optionally codex plugin add b2c-dx-mcp@b2c-developer-tooling for the MCP server) |
gemini-cli | gemini extensions install https://github.com/SalesforceCommerceCloud/b2c-developer-tooling (run in terminal, not inside the CLI) |
other | Use the file-copy installer below |
For clients without MCP-enabled plugin support, the b2c-dx-mcp server can be installed directly — see the MCP installation docs.
Alternative — file-copy installer for any IDE (also the right command to update already-installed skills or add a specific skill set):
# Interactive: select skill sets and IDEs
b2c setup skills
# Install a specific skill set to a specific IDE
b2c setup skills b2c-cli --ide cursor
b2c setup skills b2c --ide vscode
# Update existing skills to the latest release
b2c setup skills b2c-cli --ide cursor --update
b2c setup skills b2c --ide cursor --update
# Install globally (all projects)
b2c setup skills b2c-cli --ide cursor --global
If the user already has some skills installed and is asking how to upgrade, point them at b2c setup skills <set> --ide <ide> --update.
Run b2c --version. If the command is not found:
npx @salesforce/b2c-cli <command>.npm install -g @salesforce/b2c-cli (or the pnpm / yarn equivalent).Do not block on the global install — npx is sufficient for the rest of this flow.
B2C Commerce has no self-service signup. The user must have Account Manager access provisioned by their organization's B2C Commerce admin before any of the following steps will work.
Ask (if not already clear from context): "Do you have a Salesforce B2C Commerce Account Manager login and a target instance (sandbox or PIG)?"
Run b2c setup inspect to see whether a dw.json or credentials are already configured.
For deep troubleshooting (wrong instance, profile switching, token inspection), delegate to the b2c-config skill.
Guide the user to create a dw.json in the project root:
b2c setup
This prompts for hostname, client ID/secret (or username/password), and code version. For deeper configuration topics (multiple profiles, env vars, cert-based auth), delegate to the b2c-config skill.
If the user wants to work against an existing sandbox, confirm it is reachable:
b2c setup inspect
b2c sandbox list # requires API access
If the user needs a fresh sandbox, delegate to the b2c-sandbox skill for the full create flow. Only create a sandbox when explicitly asked.
If the user has cartridges locally:
b2c code deploy
For selective deploys, watch mode, or reload, delegate to the b2c-code skill.
If the user does not yet have cartridges, point them at the canonical starting points:
b2c-mrt skill on request.Once setup is working, ask a single directing question to hand off to the right skill:
"What do you want to work on first?
- Build or modify a storefront (SFRA cartridges, ISML, controllers)
- Build a Custom API (SCAPI)
- Operate an existing instance (deploy, run jobs, tail logs, manage sites)
Or if you have something else in mind, tell me."
Route by the answer:
b2c-controllers, b2c-isml, b2c-forms, b2c-hooksb2c-custom-api-development, b2c-scapi-admin, b2c-scapi-shopperb2c-code, b2c-job, b2c-logs, b2c-sitesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub salesforcecommercecloud/b2c-developer-tooling --plugin b2c20 skills in this plugin
/b2c-business-manager-extensionsBuild Business Manager extension cartridges with custom admin tools, menu items, and dialog actions. Use this skill whenever the user needs to create bm_* cartridges, add menu actions or dialog buttons in BM, configure bm_extensions.xml, or extend admin pages with form overlays. Also use when customizing the BM interface for back-office workflows -- even if they just say 'add a button to BM' or 'custom admin page'./b2c-controllersCreate storefront controllers using SFRA or classic patterns with server.get/post, middleware chains, and res.render/json. Use this skill whenever the user needs to build a page route, handle form submissions, create AJAX endpoints, extend or override existing controllers, or add middleware to a request pipeline. Also use when debugging route registration or response rendering -- even if they just say 'new page endpoint' or 'handle a POST request'./b2c-custom-api-developmentDevelop Custom SCAPI REST endpoints with api.json routes, schema.yaml definitions, and OAuth scope configuration. Use this skill whenever the user needs to create a custom API on the Commerce platform, define OpenAPI 3.0 schemas for request/response, structure the rest-apis cartridge folder, or debug endpoint registration and 404 issues. Also use when building headless commerce integrations, choosing between Shopper (`ShopperToken`) and Admin (`AmOAuth2`) APIs, or troubleshooting why a Custom API endpoint isn't appearing or returning 404 in `b2c scapi custom status` — even if they just say 'custom REST endpoint', 'expose my script as an API', or 'my admin custom API isn't registering'./b2c-custom-cachesImplement custom caching with CacheMgr, caches.json definitions, and cache region configuration. Use this skill whenever the user needs to cache expensive computations or API responses server-side, define cache regions with TTL and size limits, invalidate cache entries, or debug disappearing cache data. Also use when optimizing script performance with application-level caching -- even if they just say 'cache this data' or 'my cached values keep disappearing'./b2c-custom-job-stepsCreate custom job steps for B2C Commerce batch processing. Use this skill whenever the user needs to write a batch job, data export script, scheduled cleanup task, or any server-side processing that runs on a schedule. Also use when they ask about steptypes.json, chunk-oriented vs task-oriented job steps, read/process/write patterns, how to get a custom job to appear in Business Manager, or how to author and import a jobs.xml job definition (job/flow/step structure, step type, the required triggers element) so a step type becomes a runnable, schedulable job — even if they just say "I need a script that runs nightly" or "batch process orders"./b2c-custom-objectsStore and query custom business data using CustomObjectMgr, OCAPI Data API, and Shopper Custom Objects API. Use this skill whenever the user needs to create, read, update, or search custom object instances, build processing queues with status fields, choose between site-scoped and organization-scoped storage, or query custom objects with bool/term filters. Also use when persisting non-standard data -- even if they just say 'store config per site' or 'query my custom data'.Other plugins' skills for the same job