nadolskimm-max/sf-skills/sf-commerce

Claude Code and agent skill by nadolskimm-max/sf-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Builds Salesforce B2B and B2C Commerce storefronts including product catalogs, carts, checkout flows, pricing, and order management. Use when configuring Commerce Cloud storefronts, building custom commerce components, managing product catalogs, or integrating payment gateways. Do NOT use for standard Salesforce UI (use sf-lwc) or CPQ pricing (use sf-cpq).

Install

npx vskill@latest install nadolskimm-max/sf-skills/sf-commerce

SKILL.md

The same SKILL.md was published earlier as nadolskimm-max/sf-skills/sf-commerce.

Salesforce Commerce Cloud

Core Responsibilities

  1. Configure B2B/B2C Commerce storefronts
  2. Manage product catalogs, categories, and entitlements
  3. Build custom checkout flows and cart components
  4. Integrate payment gateways and tax engines
  5. Configure order management and fulfillment

Commerce Editions

EditionTargetKey Features
B2B CommerceBusiness buyersAccount-based pricing, reorder, bulk
B2C Commerce (LWR)ConsumersSelf-service, guest checkout
D2C CommerceDirect to consumerQuick setup, templates

Commerce Data Model

Store (WebStore)
├── Product Catalog
│ ├── Product Category
│ │ └── Product Category Product
│ └── Product2
│ ├── Product Media
│ └── Product Attribute
├── Buyer Group
│ └── Buyer Account
├── Entitlement Policy
├── Price Book (Pricebook2)
│ └── Price Book Entry
├── Cart (WebCart)
│ └── Cart Item (CartItem)
├── Checkout Session
└── Order / Order Summary
└── Order Item / Order Item Summary

Key Objects

ObjectDescription
WebStoreThe storefront configuration
ProductCatalogContainer for product categories
ProductCategoryHierarchical product grouping
WebCartShopping cart
CartItemIndividual item in cart
OrderSummaryPost-checkout order record
FulfillmentOrderFulfillment tracking

Product Catalog Queries

sql
-- Products in a category
SELECT Id, Product2.Name, Product2.Description,
ProductCategory.Name
FROM ProductCategoryProduct
WHERE ProductCategory.Name = 'Electronics'
-- Cart items for a buyer
SELECT Id, Product2.Name, Quantity, TotalPrice
FROM CartItem
WHERE WebCart.AccountId = :accountId
AND WebCart.Status = 'Active'
-- Order history
SELECT Id, OrderNumber, Status, TotalAmount,
(SELECT Id, Product2.Name, Quantity, TotalPrice
FROM OrderItemSummaries)
FROM OrderSummary
WHERE AccountId = :accountId
ORDER BY CreatedDate DESC

Custom Commerce LWC

Commerce components use special targets:

xml
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>62.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__CommerceWebStore</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning__CommerceWebStore">
<property name="heading" type="String" label="Heading"/>
</targetConfig>
</targetConfigs>
</LightningComponentBundle>

Checkout Flow Customization

Cart Review
├── Validate inventory availability
├── Apply promotions / coupons
├── Calculate shipping
├── Calculate tax (external tax engine)
├── Payment capture (payment gateway)
└── Place Order → Create OrderSummary

Payment Gateway Integration

apex
// Custom payment gateway adapter
global class MyPaymentGatewayAdapter implements commercepayments.PaymentGatewayAdapter {
global commercepayments.GatewayResponse processRequest(
commercepayments.paymentGatewayContext gatewayContext
) {
commercepayments.RequestType requestType = gatewayContext.getPaymentRequestType();
if (requestType == commercepayments.RequestType.Authorize) {
return processAuthorization(gatewayContext);
} else if (requestType == commercepayments.RequestType.Capture) {
return processCapture(gatewayContext);
}
return new commercepayments.GatewayErrorResponse('400', 'Unsupported request');
}
}

CLI Commands

bash
# Retrieve store metadata
sf project retrieve start --metadata ExperienceBundle --target-org <alias>
# Index products for search
sf commerce store index --store-name "My Store" --target-org <alias>

Cross-Skill References

  • For storefront LWC: see sf-lwc
  • For product data: see sf-data
  • For payment integration: see sf-integration
  • For Experience Cloud sites: see sf-experience-cloud

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nadolskimm-max/sf-skills/sf-commerce/badge)](https://verified-skill.com/skills/nadolskimm-max/sf-skills/sf-commerce)

Something wrong with this skill or its page? Tell us.