sfcc-scapi-custom-endpoints

sfcc-scapi-custom-endpoints is a skill for Claude Code, Codex from taurgis/sfcc-dev-mcp. It costs 42 tokens per session (1,694 once invoked), scanned A, original, MIT.

A guide for creating custom REST APIs in Salesforce B2C Commerce using SCAPI, the platform's API framework. It covers the API contract, routing configuration, and JavaScript implementation.

In plain words
What is it for?
Use it to create schema.yaml, api.json, and script.js files, define operations and permissions, choose shopper or admin routing, and activate the code version.
Why use it?
It helps prevent structural and naming mistakes that can leave a custom endpoint unregistered or incompatible with SFCC.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create schema.yaml, api.json, and script.js files, define operations and permissions, choose shopper or admin routing, and activate the code version.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/taurgis/sfcc-dev-mcp/sfcc-scapi-custom-endpoints
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 taurgis/sfcc-dev-mcp --skill sfcc-scapi-custom-endpoints
Clone the repo
git clone --depth 1 https://github.com/taurgis/sfcc-dev-mcp

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-scapi-custom-endpoints

README.md
[![agentmods](https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-scapi-custom-endpoints/github.svg)](https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-scapi-custom-endpoints)
Your own site
<a href="https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-scapi-custom-endpoints"><img src="https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-scapi-custom-endpoints/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-scapi-custom-endpoints

Your own site · 80×15
<a href="https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-scapi-custom-endpoints"><img src="https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-scapi-custom-endpoints.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,694 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00042 $0.01694
Opus 5 $0.00021 $0.00847
Sonnet 5 $0.00008 $0.00339
Haiku 4.5 $0.00004 $0.00169

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

Security

Grade A, and why

sfcc-scapi-custom-endpoints 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 10d 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.

ai-instructions/skills/sfcc-scapi-custom-endpoints/SKILL.md · 238 lines

How it starts

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

Custom SCAPI Endpoint Development Skill

This skill guides you through developing Custom APIs for Salesforce B2C Commerce under the SCAPI framework.

Quick Checklist

[ ] Cartridge contains `cartridge/rest-apis/{api-name}/` with schema.yaml, script.js, api.json
[ ] operationId in schema matches exported function name with `.public = true`
[ ] Custom parameters and scopes use the `c_` prefix
[ ] Contract avoids unsupported features (no additionalProperties, only local $ref)
[ ] Shopper APIs include siteId; Admin APIs omit it
[ ] Code version is activated to register endpoints

URL Structure

https://{shortcode}.api.commercecloud.salesforce.com/custom/{api-name}/v{major}/organizations/{org-id}{path}?{params}

Version is derived from info.version: "1.2.0" → /v1/, "2.0.0" → /v2/

Cartridge Structure

my_cartridge/
└── cartridge/
    └── rest-apis/
        └── my-api-name/          # Lowercase alphanumeric + hyphens only
            ├── api.json          # Mapping file
            ├── schema.yaml       # OAS 3.0 contract
            └── script.js         # Implementation

The Three Components

1. API Contract (schema.yaml)

openapi: 3.0.0
info:
  title: My Custom API
  version: "1.0.0"
paths:
  /my-endpoint:
    get:
      operationId: getMyData        # Must match function name
      parameters:
        - name: siteId              # Required for Shopper APIs
          in: query
          required: true
          schema:
            type: string
            minLength: 1
        - name: c_my_param          # Custom params must have c_ prefix
          in: query
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
      security:
        - ShopperToken: [c_my_scope]

components:
  securitySchemes:
    ShopperToken:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/v1/organizations/{orgId}/oauth2/token
          scopes:
            c_my_scope: Description

Read the full file on GitHub · 238 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 238 lines · 42 tokens per session scan A c4f8ab26e188

Subscribe to this mod's changes

sfcc-scapi-custom-endpoints is a skill published in the GitHub repository taurgis/sfcc-dev-mcp (28 stars, last pushed 3d ago), licensed MIT. It adds 42 tokens to every session and 1,694 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

nebula-logger-instrumentation

Use this skill when the user wants to add or update Nebula Logger instrumentation in Apex, LWC, Aura, Flow, or OmniStudio. Covers logging APIs, save patterns, record association, scenarios, tags, async transaction linking, and save method selection.

jongpie/NebulaLogger · 60 tokens

ada-diamonds-api

Reference for the Ada Diamonds public REST API (https://www.adadiamonds.com/api/v1) covering every endpoint, self-serve API keys and OAuth 2.1 scopes, the public sandbox key, rate limits, error shapes, versioning, and working curl examples. Use when integrating with Ada Diamonds over HTTP, generating client code…

adadiamonds/agent-tools · 101 tokens

salesforce

Use when working with Salesforce orgs — executing Apex, writing SOQL/SOSL, managing records, running tests, deploying metadata, or analyzing code. Guidance for the Salesforce MCP Server's tools, prompts, and resources.

advancedcommunities/salesforce-mcp-server · 48 tokens

sfcc-cartridge-development

Build SFRA-based Salesforce Commerce Cloud cartridges with controllers, ISML templates, and hooks to customize storefront behavior.

finsilabs/awesome-ecommerce-skills · 27 tokens

sfcc-ocapi-scapi

Integrate with Salesforce Commerce Cloud's headless APIs (OCAPI and Shopper APIs) to build custom storefronts and mobile commerce experiences.

finsilabs/awesome-ecommerce-skills · 34 tokens

sf-knowledge-api-placeorder

Apply Salesforce knowledge and best practices for Place Order REST API Developer Guide.

Avinava/sf-documentation-knowledge · 20 tokens