/storefront-next:sfnext-overviewfrom storefront-next
Entry point for Salesforce Commerce Storefront Next (sfnext) projects. Routes tasks to the correct skill, provides CLI cheat sheets for sfnext, b2c, and b2c-dx-mcp tools, and directs users to project AGENTS.md and docs.
Ships in storefront-next. 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.
Read when SKILL.md points to them.
AGENTS.md at your project root. It is the source of truth for project structure, commands, and conventions; skills never override it.docs/README-*.md (one per topic) and instructions/*.mdc in the project. Prefer them over memory.docs/COMPATIBILITY.md and package.json#storefrontNext.| I want to... | Skill |
|---|---|
| Create a project, install, run locally, pick a starter theme | storefront-next:sfnext-project-setup |
Change config.server.ts, env overrides, feature flags, multi-site config | storefront-next:sfnext-configuration |
| Build a bundle, push to Managed Runtime, deploy cartridges, env vars | storefront-next:sfnext-deployment |
| Add or change a route, loader, action, URL pattern | storefront-next:sfnext-routing |
| Fetch data, SCAPI calls in loaders, streaming, Suspense | storefront-next:sfnext-data-fetching |
| Control loader revalidation and caching after actions | storefront-next:sfnext-revalidation |
| Client state, contexts, stores | storefront-next:sfnext-state-management |
| Speed, bundle size, Lighthouse, web vitals | storefront-next:sfnext-performance |
| Login, SLAS, guest/registered sessions, passkeys, social login | storefront-next:sfnext-authentication |
| Add or inspect SCAPI endpoints and clients (including custom APIs) | storefront-next:sfnext-scapi |
| Serve some routes from another storefront (hybrid proxy) | storefront-next:sfnext-hybrid-storefronts |
| Build or modify UI components | storefront-next:sfnext-components |
| Design tokens, Tailwind, styling | storefront-next:sfnext-theming |
| Page Designer components and regions | storefront-next:sfnext-page-designer |
| Author or install extensions, UITargets | storefront-next:sfnext-extensions |
| Translations, locales, language switching | storefront-next:sfnext-i18n |
| Unit, component, Storybook and e2e tests | storefront-next:sfnext-testing |
| CSP, security headers, bot protection | storefront-next:sfnext-security |
| Analytics adapters, consent banner, attribution | storefront-next:sfnext-analytics-consent |
| Meta tags, JSON-LD, canonical URLs, seoRoutes | storefront-next:sfnext-seo |
| Shopper Context, order management, guest order lookup, email cartridge, shipped extensions | storefront-next:sfnext-commerce-features |
| Lint, typecheck, pre-merge checks | storefront-next:sfnext-quality-gates |
| Audit the deployed storefront before launch (performance, SEO, security, best practices) | storefront-next:sfnext-site-audit |
| Accessibility checks and fixes | storefront-next:sfnext-accessibility |
Figma-to-Page-Designer work lives in the separate figma-to-sfnext-pagedesigner plugin.
Installed with the project (@salesforce/storefront-next-dev). Prefer the package.json scripts, which wrap these.
| Command | Purpose |
|---|---|
sfnext create-storefront | Scaffold a project (--vertical picks the starter theme) |
sfnext dev / sfnext preview | Dev server / preview of the built app |
sfnext create-bundle, sfnext push | Build and push a bundle to Managed Runtime |
sfnext prepare-local | Prepare a local build |
sfnext generate-cartridge, validate-cartridge, deploy-cartridge | Cartridge build, check, upload |
sfnext setup-base-cartridge | Register the SLAS scope for the base cartridge |
sfnext create-instructions | Generate extension install instructions |
sfnext config inspect, config aggregate-extensions | Show resolved config; merge extension config |
| `sfnext extensions create | install |
| `sfnext scapi add | available |
sfnext locales aggregate-extensions | Merge extension locale files |
Run sfnext <command> --help for flags; check your project's package.json scripts for the exact invocations.
Use b2c (npx @salesforce/b2c-cli if not installed) for platform work around the storefront:
| Need | Command family |
|---|---|
| Managed Runtime projects, envs, env vars, bundles, logs | b2c mrt ... (skill b2c-cli:b2c-mrt) |
| Deploy or watch cartridges on an instance | b2c code deploy, b2c code watch |
| SCAPI schemas and custom APIs | b2c scapi schemas ..., b2c scapi custom ... |
| SLAS clients | b2c slas ... (skill b2c-cli:b2c-slas) |
| Instance and site data, WebDAV, jobs, logs | b2c sites, b2c webdav, b2c job, b2c logs |
| Documentation | b2c docs search, b2c docs read |
mrt_logs_watch, scapi_search, scapi_execute, scapi_snippet_save, scapi_schemas_list, scapi_custom_apis_get_status, plus the docs tools docs_search, docs_read, docs_list, docs_schema_search, docs_schema_read, docs_schema_list, validate_xml_schema. Availability depends on how the MCP server was started; list tools in your client.
When the project docs and skills do not answer it, search the Storefront Next developer guides:
b2c docs search "storefront next getting started" --category sfnext
b2c docs read <id-from-results>
MCP equivalent: docs_search with the storefront category, then docs_read. Workspace detection also boosts Storefront Next results automatically in a project. See b2c-cli:b2c-docs.
storefront-next:sfnext-project-setup - usual next step for new workstorefront-next:sfnext-configuration - config and envstorefront-next:sfnext-routing - routes and loadersstorefront-next:sfnext-quality-gates - checks before you finishb2c-cli:b2c-docs - documentation searchb2c-cli:b2c-mrt - Managed RuntimeWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub salesforcecommercecloud/b2c-developer-tooling --plugin storefront-next25 skills in this plugin
/sfnext-accessibilityBuild and fix accessible UI in a Storefront Next storefront (WCAG 2.1 AA): jsx-a11y lint findings, missing accessible names and labels, form error association, dialog focus management, aria-live status messages, keyboard behavior, color contrast, and verifying fixes with Storybook a11y/play() tests and the e2e axe scan with its baseline. Use for "accessibility", "a11y", "WCAG", "screen reader", "aria-label", "focus trap", "axe violation", pnpm lint:a11y, pnpm a11y, a11y-baseline.json, skip-a11y, STORYBOOK_A11Y_TEST_MODE, or an accessibility audit finding to fix. Do not use for general lint/typecheck gates (use `storefront-next:sfnext-quality-gates`), writing non-accessibility tests (use `storefront-next:sfnext-testing`), or color/token design (use `storefront-next:sfnext-theming`)./sfnext-analytics-consentStorefront Next analytics: engagement adapters (Einstein, Active Data, Data 360), adding a custom adapter, tracking consent gating, PageViewTracker, useAnalytics events, and first-touch attribution (dw_attribution). Use when configuring engagement.adapters in config.server.ts, writing an adapter with hasConsent, registering it in initializeEngagementAdapters, wiring the consent banner (trackingConsent, consentCategories, dw_dnt), firing trackViewProduct/trackCartItemAdd events, debugging why no analytics events are sent, or passing campaign attribution to orders. Do not use for general config loading or env vars (use `storefront-next:sfnext-configuration`), CSP/script allowlisting of third-party tags (use `storefront-next:sfnext-security`), or SEO meta/JSON-LD (use `storefront-next:sfnext-seo`)./sfnext-authenticationWork with Storefront Next's server-only authentication and session architecture (SLAS guest/registered tokens, httpOnly cookies, auth.server.ts middleware). Use for getAuth, useAuth, updateAuth, destroyAuth, protecting account routes, login/logout actions, guest-to-registered basket/wishlist merge, "session expired" redirects, 401 recovery loops, cc-at/cc-nx/usid/dwsid cookies, cookie names or expiry, passwordless login, social login, OTP email verification, passkeys, guest order lookup, or refresh-token lifetime settings. Do not use for Turnstile, CSP headers or cookie-domain config (use `storefront-next:sfnext-security`), calling SCAPI clients (use `storefront-next:sfnext-scapi`), or sharing sessions with SFRA (use `storefront-next:sfnext-hybrid-storefronts`)./sfnext-commerce-featuresCatalogue and router for optional Storefront Next commerce features: Shopper Context (qualifiers, source codes), Order Management returns/cancel/tracking (SOM/OMS), delivery estimates, feature stubs (@feature-stub), guest order lookup, the app_storefrontnext_base email cartridge, and the shipped extensions (bnpl, bopis, multiship, store-locator, ratings-reviews, customer-preferences, product-content, shipping-delivery, theme-switcher). For each: which flag, SLAS scope, Business Manager setting, cartridge, or extension registry entry it needs, and which in-project doc to read. Use when asked how to enable a feature, why a feature does not render, what prerequisites a feature has, or which stubs are mock data. Do not use for building a new extension (use `storefront-next:sfnext-extensions`), config loading (use `storefront-next:sfnext-configuration`), or SLAS login flows (use `storefront-next:sfnext-authentication`)./sfnext-componentsBuild and modify UI components in a Storefront Next storefront: page components with Suspense and use()/Await, createPage and withSuspense, Tailwind v4 token classes, shape tokens (rounded-ui, shadow-ui, border-ui), shadcn/ui primitives in src/components/ui (sync-shadcn), CVA variants, data-slot, DynamicImage, lazy-loaded overlays, and Storybook stories with snapshot tests. Use when creating or editing a component in src/components, adding a shadcn primitive, fixing styling that ignores the theme, writing a *.stories.tsx file, or running pnpm storybook:test. Do not use for re-branding colors, fonts, or logos (use `storefront-next:sfnext-theming`), route loaders (use `storefront-next:sfnext-data-fetching`), or Page Designer registration (use `storefront-next:sfnext-page-designer`)./sfnext-configurationConfigure a Storefront Next app: config.server.ts (defineConfig, metadata/runtime/app), AppConfig types in src/types/config.ts, PUBLIC__ environment variable overrides, getConfig(context) / useConfig(), extension config (app.extension, app.serverExtension), protected paths, server-only secrets, and multi-site settings (commerce.sites, url.prefix, seoRoutes, siteAliasMap, cookie domain). Use when editing config.server.ts, adding a config value, an env var is ignored or "not applied", `pnpm config:inspect` / `config:push-env`, "Ignoring environment variable" warnings, protected config path errors, setting up a second site or locale URLs, or going through the pre-launch config checklist. Do not use for creating a project or the npm script list (use `storefront-next:sfnext-project-setup`), pushing bundles or MRT env management (use `storefront-next:sfnext-deployment` / `b2c-cli:b2c-mrt`), or hybrid proxy and cookie-sharing with SFRA (use `storefront-next:sfnext-hybrid-storefronts`).Other plugins' skills for the same job