/storefront-next:sfnext-commerce-featuresfrom storefront-next
Catalogue and router for enabling optional Storefront Next commerce features: Shopper Context, Order Management returns/cancel/tracking, delivery estimates, feature stubs, guest order lookup, email cartridge, and shipped extensions. Maps each feature to its flag, SLAS scope, Business Manager setting, cartridge, or extension registry entry.
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.
Start with the feature table, then read the named doc in your project's docs/ folder. Do not assume a feature is live: several ship as UI scaffolds with mock data (see Feature stubs).
| Feature | Enable with | Also needs | Read |
|---|---|---|---|
| Shopper Context | features.shopperContext.enabled (env: PUBLIC__app__features__shopperContext__enabled=true), default off | Shopper Context API access for the SLAS client; qualifiers arrive as URL params or via the useShopperContext hook, stored in cookies | docs/README-SHOPPER-CONTEXT.md |
| Returns, cancel, tracking (Order Management) | Nothing to toggle | Salesforce Order Management connected to the B2C instance; order loader expands ['oms','oms_shipments']; without omsData only tracking shows | docs/README-ORDER-MANAGEMENT.md |
| Delivery estimates | Keep extension SFDC_EXT_SHIPPING_DELIVERY installed | SLAS scopes sfcc.shopper-delivery-estimates and sfcc.shopper-standard, a delivery-estimate Commerce App bound to sfcc.app.shipping.estimate, online products on the site | docs/README-DELIVERY-ESTIMATES.md |
| Guest order lookup | guestOrderLookup.enabled: true in config.server.ts | GUEST_ORDER_LOOKUP_COOKIE_SECRET (or CLIENT_SECRET fallback) and a cartridge implementing hook sfcc.app.order.sendOrderAccessCode to email the code | docs/README-GUEST-ORDER-LOOKUP.md |
Email cartridge (app_storefrontnext_base) | Deploy cartridge, add to site cartridge path | SLAS scope c_sfnext_notify (sfnext setup-base-cartridge --slas-client-id <id>), import preference metadata, set Storefront Hosts global custom preference, callback mode in storefront config | docs/README-EMAIL-CARTRIDGE.md |
| Feature stubs | n/a | Mock UI scaffolds, not integrations | docs/README-FEATURE-STUBS.md |
Registry: src/extensions/config.json (keys SFDC_EXT_*). Each extension contributes components to UITarget points through its target-config.json. To install or remove one, follow the install/uninstall instructions in instructions/*.mdc when the registry entry references them; building new extensions is storefront-next:sfnext-extensions.
| Extension | Registry key | Notes |
|---|---|---|
| Store Locator | SFDC_EXT_STORE_LOCATOR | Find stores by location. Guided install/uninstall in instructions/. |
| Multiship | SFDC_EXT_MULTISHIP | Ship items to several addresses in one order. Guided install/uninstall. |
| Buy Online Pickup In Store | SFDC_EXT_BOPIS | Depends on Store Locator and Multiship. Guided install/uninstall. |
| Shipping and Delivery | SFDC_EXT_SHIPPING_DELIVERY | Registers sfcc.pdp.estimatedDelivery; see delivery estimates row. |
| Buy Now Pay Later (demo) | SFDC_EXT_BNPL | Mock fixtures; sfcc.pdp.bnpl.message target. Replace API function bodies to integrate a provider. |
| Ratings and Reviews (demo) | SFDC_EXT_RATINGS_REVIEWS | Mock fixtures for PDP, cart modal, order detail CTA. Integrate Bazaarvoice, PowerReviews, etc. by replacing API bodies. |
| Product Content (demo) | SFDC_EXT_PRODUCT_CONTENT | Returns/warranty card, FAQ, collapsibles (sfcc.pdp.returnsWarranty, sfcc.pdp.faq, sfcc.pdp.collapsibles). Fixtures in lib/api/product-content.server.ts. |
| Customer Preferences (demo) | SFDC_EXT_CUSTOMER_PREFERENCES | Interests/preferences on the account page. Mock data. |
| Theme switcher | none in registry | Folder src/extensions/theme-switcher has no registry entry in the shipped project; check your project before relying on it. |
Demo extensions are "(Demo)" in config.json. Treat them as reference implementations: read the extension README.md and replace fixture functions before go-live.
Working UI with no backend (express checkout buttons, BNPL, returns and warranty, customer interests, and others). Find all of them:
grep -r "@feature-stub" src/
Each marker explains how to strip or wire it. Review the list before launch so mock content does not ship.
shopperContext, guestOrderLookup) - check config.server.ts and env overrides.src/extensions/config.json, or dependencies not installed (BOPIS needs Store Locator and Multiship)?storefront-next:sfnext-authentication)? Confirm in your SLAS client config, then re-login to get a fresh token.More detail per group: references/FEATURE-PREREQUISITES.md.
storefront-next:sfnext-extensions - UITarget, target-config.json, authoring extensionsstorefront-next:sfnext-configuration - feature flags and env overridesstorefront-next:sfnext-authentication - SLAS scopes and clientsstorefront-next:sfnext-scapi - calling the backing SCAPI endpointsstorefront-next:sfnext-deployment - deploying cartridges and bundlesb2c-cli:b2c-mrt - Managed Runtime environment variablesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
storefront-next, commerce-features, sfcc, feature-enablement
25 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-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`)./sfnext-data-fetchingLoad and mutate data in a Storefront Next project: route loaders that call SCAPI through createApiClients from @/lib/api-clients.server, critical versus streamed (deferred) data, createBasketAction and BasketAction for cart actions, createActionError and ErrorCode, data() responses, useFetcher and the useScapiFetcher hook with its server allowlist, request-scoped dedupe and MRT timeouts, non-personalized SCAPI responses, shopper context, and custom API clients. Use for "fetch products in a loader", "stream data", "add a cart action", "call SCAPI from a component", "resource route", "NormalizedApiError", or "loader blocks the page". Do not use for route files or links (use `storefront-next:sfnext-routing`), when loaders re-run after actions (use `storefront-next:sfnext-revalidation`), Suspense/LCP tuning (use `storefront-next:sfnext-performance`), or defining SCAPI custom APIs (use `storefront-next:sfnext-scapi`).npx claudepluginhub salesforcecommercecloud/b2c-developer-tooling --plugin storefront-nextOther plugins' skills for the same job