sfcc-cartridge-development

sfcc-cartridge-development is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 27 tokens per session (4,087 once invoked), scanned A, original, MIT.

A guide to extending Salesforce Commerce Cloud storefronts with reusable code packages called cartridges, including server-side JavaScript, templates, models, and scheduled jobs.

In plain words
What is it for?
It is for customizing checkout, controllers, templates, payments, data imports and exports, scheduled processing, and commerce API integrations.
Why use it?
It helps developers add or change store behavior while fitting into Salesforce Commerce Cloud's existing storefront structure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions Gemini CLI; mentions OpenCode.

Good fit It is for customizing checkout, controllers, templates, payments, data imports and exports, scheduled processing, and commerce API integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/sfcc-cartridge-development
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 finsilabs/awesome-ecommerce-skills --skill sfcc-cartridge-development
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

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 sfcc-cartridge-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/sfcc-cartridge-development/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/sfcc-cartridge-development)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/sfcc-cartridge-development"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/sfcc-cartridge-development/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 sfcc-cartridge-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/sfcc-cartridge-development"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/sfcc-cartridge-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,087 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.00027 $0.04087
Opus 5 $0.00014 $0.02044
Sonnet 5 $0.00005 $0.00817
Haiku 4.5 $0.00003 $0.00409

Measured 9d ago against content hash bc1c3ab8bed6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

sfcc-cartridge-development 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 9d 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/platform-salesforce-cc/sfcc-cartridge-development/SKILL.md · 511 lines

How it starts

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

SFCC Cartridge Development

Overview

Build custom cartridges for Salesforce Commerce Cloud (SFCC) using the Storefront Reference Architecture (SFRA), server-side JavaScript controllers, ISML templates, models, and the B2C Commerce Script API. This skill covers cartridge layering and the override mechanism, route handling with server.js, form handling, OCAPI/SCAPI integration, and Job Framework usage for scheduled data processing.

When to Use This Skill

  • When building a custom feature cartridge that extends SFRA functionality
  • When overriding or extending existing SFRA controllers, templates, or models
  • When implementing custom checkout steps or payment integrations on SFCC
  • When creating scheduled jobs for data import/export (product feeds, order sync)
  • When building OCAPI hooks or SCAPI integrations for headless storefronts

Core Instructions

  1. Set up the cartridge structure and layering

    SFCC uses a cartridge path for layering. Cartridges higher in the path override those lower. A custom cartridge extends app_storefront_base:

    int_acme_custom/
    ├── cartridge/
    │   ├── controllers/       # Server-side JS controllers
    │   ├── models/            # Data model wrappers
    │   ├── scripts/           # Business logic helpers
    │   ├── templates/
    │   │   └── default/       # ISML templates
    │   ├── forms/
    │   │   └── default/       # Form definitions (XML)
    │   ├── static/
    │   │   └── default/
    │   │       ├── css/
    │   │       └── js/
    │   └── int_acme_custom.properties  # Cartridge metadata
    └── package.json
    

    Set the cartridge path in Business Manager:

    int_acme_custom:app_storefront_base
    

    int_acme_custom.properties:

    ## cartridge.properties
    demandware.cartridges.int_acme_custom.multipleLanguageStorefront=true
    
  2. Create a server-side controller

    Controllers in SFRA use server.js for route registration:

    // controllers/CustomPage.js
    'use strict';
    
    var server = require('server');
    var cache = require('*/cartridge/scripts/middleware/cache');
    var consentTracking = require('*/cartridge/scripts/middleware/consentTracking');
    
    /**
     * CustomPage-Show : Renders a custom content page
     * @name CustomPage-Show
     * @function
     * @memberof CustomPage
     * @param {middleware} - server.middleware.https
     * @param {middleware} - consentTracking.consent
     * @param {middleware} - cache.applyDefaultCache
     * @param {querystringparameter} - cid : content asset ID
     * @param {renders} - isml
     * @param {serverfunction} - get
     */
    server.get('Show',
        server.middleware.https,
        consentTracking.consent,
        cache.applyDefaultCache,
        function (req, res, next) {
            var ContentMgr = require('dw/content/ContentMgr');
            var ContentModel = require('*/cartridge/models/content');
    
            var contentId = req.querystring.cid;
            var apiContent = ContentMgr.getContent(contentId);
    
            if (!apiContent) {
                res.setStatusCode(404);
                res.render('error/notFound');
                return next();
            }
    
            var contentModel = new ContentModel(apiContent);
    
            res.render('custom/contentPage', {
                content: contentModel,
                breadcrumbs: [
                    { htmlValue: 'Home', url: '/' },
                    { htmlValue: contentModel.name, url: '' }
                ]
            });
    
            next();
        }
    );
    
    /**
     * CustomPage-Submit : Handles form POST submissions
     */
    server.post('Submit',
        server.middleware.https,
        function (req, res, next) {
            var Transaction = require('dw/system/Transaction');
            var CustomObjectMgr = require('dw/object/CustomObjectMgr');
    
            var form = req.form;
            var name = form.name;
            var email = form.email;
    
            // Validate input
            if (!name || !email) {
                res.json({ success: false, error: 'Name and email are required.' });
                return next();
            }
    
            try {
                Transaction.wrap(function () {
                    var co = CustomObjectMgr.createCustomObject('AcmeSubmissions', email);
                    co.custom.name = name;
                    co.custom.submittedAt = new Date();
                });
    
                res.json({ success: true, message: 'Submission received.' });
            } catch (e) {
                var Logger = require('dw/system/Logger');
                Logger.error('Submission failed: {0}', e.message);
                res.json({ success: false, error: 'An error occurred. Please try again.' });
            }
    
            next();
        }
    );
    
    module.exports = server.exports();
    

Read the full file on GitHub · 511 lines

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. 9d ago First seen · 511 lines · 27 tokens per session scan A bc1c3ab8bed6

Subscribe to this mod's changes

sfcc-cartridge-development is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 27 tokens to every session and 4,087 once invoked, about $0.0001 per session on Opus 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-09-03.

Related

Other skills, from other repositories

b2c-commerce-store-setup

Use when configuring or troubleshooting a Salesforce B2C Commerce (SFCC) storefront — including Business Manager site creation, SFRA cartridge path setup, customer groups, search index rebuilding, and key quota limits. Trigger keywords: SFCC, Commerce Cloud, Business Manager, storefront, cartridge, SFRA, site…

PranavNagrecha/AwesomeSalesforceSkills · 123 tokens

b2c-commerce-store-setup

Use when configuring or troubleshooting a Salesforce B2C Commerce (SFCC) storefront — including Business Manager site creation, SFRA cartridge path setup, customer groups, search index rebuilding, and key quota limits. Trigger keywords: SFCC, Commerce Cloud, Business Manager, storefront, cartridge, SFRA, site…

BanibrataChatterjee/AwesomeSalesforceSkills · 106 tokens

sfcc-scapi-hooks

Guide for implementing SCAPI hooks in Salesforce B2C Commerce. Use this when asked to create SCAPI hooks, extend Shopper API endpoints, validate API requests, or modify API responses for headless commerce.

taurgis/sfcc-dev-mcp · 47 tokens

sfcc-ocapi-hooks

Guide for implementing OCAPI hooks in Salesforce B2C Commerce. Use this when asked to create OCAPI hooks, extend API endpoints, validate API requests, or modify API responses.

taurgis/sfcc-dev-mcp · 43 tokens

sfcc-job-development

Guide for developing custom jobs in Salesforce B2C Commerce Job Framework. Use this when asked to create batch jobs, scheduled tasks, chunk-oriented processing, or task-oriented jobs.

taurgis/sfcc-dev-mcp · 40 tokens

sfcc-cartridge-development

Guide for creating, configuring, and deploying custom SFRA cartridges in Salesforce B2C Commerce. Use this when asked to create a new cartridge, set up a cartridge structure, or work with cartridge paths.

taurgis/sfcc-dev-mcp · 47 tokens