/salesforce-commerce:sf-b2c-jobsfrom salesforce-commerce
Builds and manages B2C Commerce jobs including script modules, pipelines, cron scheduling, import/export, and reindex jobs. Use for background processing in Salesforce Commerce Cloud.
Ships in salesforce-commerce. 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.
ALWAYS fetch live documentation BEFORE writing any job code:
Why: Job APIs, execution contexts, and best practices evolve with each B2C Commerce release. Always verify current patterns.
The job framework provides scheduled background processing in B2C Commerce:
| Type | Description | Approach |
|---|---|---|
| System jobs | Built-in import/export/reindex/cleanup | Configured in Business Manager |
| Script module steps | Custom JavaScript (modern approach) | exports.execute = function(jobStepExecution) {} |
| Pipeline steps | Legacy pipeline-based steps | Maintenance mode; avoid for new work |
| Chunk steps | Large dataset processing | Read-process-write pattern with commit intervals |
| Step Type | Use Case | Key Characteristic |
|---|---|---|
| Script | General custom logic | Single execute() entry point; return Status |
| Pipeline | Legacy flows | Deprecated for new development |
| Chunk | Large dataset processing | Framework manages read/process/write lifecycle with batching |
0 0 2 * * ? Every day at 2:00 AM
0 */15 * * * ? Every 15 minutes
0 0 0 1 * ? First day of month at midnight
0 0 18 ? * MON-FRI Weekdays at 6:00 PM
Format: seconds minutes hours day-of-month month day-of-week
Every job step must return a dw.system.Status object:
| Status | Constant | Meaning |
|---|---|---|
| Success | Status.OK | Step completed successfully |
| Error | Status.ERROR | Step failed; may halt job depending on configuration |
There is no Status.WARN. For partial success, return Status.OK with a descriptive message (e.g., 'PARTIAL' status code with error count in the message).
// Pattern: Status return
var Status = require('dw/system/Status');
return new Status(Status.OK, 'COMPLETED', 'message');
// Fetch live docs for Status constructor
For large datasets, chunk-oriented processing follows this lifecycle:
The framework manages batching, transaction boundaries, and error recovery. Fetch live docs for the exact chunk step interface (read, process, write, afterStep methods).
Job step parameters are configured in Business Manager per job and accessed at runtime:
jobStepExecution.getParameterValue('ParamName') -- retrieve config valuesjobStepExecution.isDisabled() -- check if step is disabled| Category | Examples |
|---|---|
| Import | Catalog, inventory, pricing, customer data (XML/CSV) |
| Export | Orders, products, customers |
| Reindex | Search index rebuild, product availability updates |
| Cleanup | Session cleanup, log rotation, temp file removal |
sfcc-ci job:run --job-id <id> and sfcc-ci job:status --job-execution-id <id>dw/system/Logger for structured logging within job stepsTransaction.wrap() per batch, not per itemStatus messages with item counts and error summariesStatus.ERROR on failureStatus.OK with descriptive messagedw/system/Logger including item identifiers for debuggingTransaction.wrap() (per batch, not per item)products.close()) in finally blocks to prevent resource leaksFetch the B2C Commerce job framework reference, cron syntax guide, and sfcc-ci documentation for exact step interfaces, parameter configuration, and chunk processing patterns before implementing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
24 skills in this plugin
/js-modernWrite modern JavaScript and TypeScript — ES6+ features, async/await, modules, destructuring, optional chaining, TypeScript types. Covers SFCC server-side JS (CommonJS, limited ES6), PWA Kit (full modern JS/TS), and LWC JavaScript (Lightning Locker constraints). Use when writing JavaScript for Salesforce Commerce./node-backendBuild Node.js backends for Salesforce Commerce — SFCC server-side JavaScript (not actual Node.js runtime), PWA Kit backend (Express-like SSR server), Commerce SDK for server-side SCAPI access, and async patterns for external service integration. Use when building server-side commerce logic./react-patternsBuild React applications for PWA Kit — hooks, composition, SSR, Commerce SDK integration, Chakra UI components, getProps data fetching, and client-side state management. PWA Kit uses React (NOT Remix/Next.js). Use when building PWA Kit storefronts./sf-b2b-apexBuild B2B Commerce Apex extensions using the CartExtension namespace — PricingCartCalculator, ShippingCartCalculator, TaxCartCalculator, InventoryCartCalculator implementations, governor limits, bulkification, test coverage (75% minimum), and checkout flow customization. Use when implementing server-side B2B commerce logic./sf-b2b-experienceBuild B2B Commerce storefronts with Experience Builder — LWR templates, page types (Home, Product, Category, Cart, Checkout), standard and custom components, theme layouts, navigation, SEO configuration, and site publishing. Use when assembling B2B/D2C storefronts./sf-b2b-lwcBuild B2B Commerce LWC components — Lightning Web Components with @api/@track/@wire decorators, commerce-specific wire adapters, custom events, Lightning Web Security, Jest unit testing, and component lifecycle. Use when building B2B storefront UI components.npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin salesforce-commerceOther plugins' skills for the same job