sfnext-extensions

Installation
SKILL.md

Extensions Skill

This skill covers the Storefront Next extension system — modular features that plug into the storefront via target points.

Overview

Extensions are self-contained feature modules that add components, routes, translations, and providers to a Storefront Next storefront without modifying core code.

Before You Build — Audit the Base First (Decision Gate)

An extension is the right tool for adding something the storefront does not already render. Before scaffolding one, confirm you actually need it — a duplicated section costs you on every page load, every test, and every design sync.

Run this gate before writing any extension code:

  1. Find the base. Open the relevant route in src/routes/ and trace every component it renders.
  2. Check each section you intend to add. Does the base already render equivalent content at that location (a description, accordion, badge, banner, title…)?
    • YES → do not create a parallel component. Restyle it through the token/brand layer (a CVA variant or brand.css value), or inject into a UITarget slot on the existing content. Adding a duplicate section is a bug, not a feature.
    • NO → an extension is justified. Continue to the structure below and register it at the correct targetId.
  3. Decide the layer for what's missing:
Installs
3
GitHub Stars
45
First Seen
Jun 17, 2026
sfnext-extensions — salesforcecommercecloud/b2c-developer-tooling