sfcc-script-evaluation

sfcc-script-evaluation is a skill for Claude Code, Codex from taurgis/sfcc-dev-mcp. It costs 25 tokens per session (2,444 once invoked), scanned A, original, MIT.

A guide for running JavaScript on Salesforce B2C Commerce Cloud instances through the platform's script debugger. It explains how to create a debugger session, pause a controller, run code, and clean up.

In plain words
What is it for?
Use it to evaluate JavaScript with a site, locale, timeout, breakpoint file, or breakpoint line while debugging SFCC code.
Why use it?
It gives developers a documented way to inspect or change script state on an SFCC instance when ordinary local execution is not enough.

Skill for Claude CodeCodex

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

Good fit Use it to evaluate JavaScript with a site, locale, timeout, breakpoint file, or breakpoint line while debugging SFCC code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/taurgis/sfcc-dev-mcp/sfcc-script-evaluation
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-script-evaluation
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-script-evaluation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-script-evaluation"><img src="https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-script-evaluation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,444 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.00025 $0.02444
Opus 5.5 $0.00010 $0.00978
Sonnet 5.5 $0.00005 $0.00489
Haiku 4.5 $0.00003 $0.00244

Measured 1mo ago against content hash 35abeac2653f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sfcc-script-evaluation 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 1mo 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-script-evaluation/SKILL.md · 382 lines

How it starts

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

SFCC Script Evaluation Skill

This skill documents how to use the evaluate_script tool effectively for executing JavaScript code on an SFCC instance via the script debugger.

Overview

The evaluate_script tool allows you to execute arbitrary JavaScript code on an SFCC sandbox instance. It works by:

  1. Creating a debugger session
  2. Setting a breakpoint on a controller
  3. Triggering the controller via HTTP
  4. Evaluating your expression in the halted context
  5. Returning the result and cleaning up

Required Parameters

Parameter Required Default Description
script Yes - The JavaScript code to execute
siteId No RefArch The site ID (accepts either RefArch or Sites-RefArch-Site)
locale No default Storefront locale segment used when triggering the controller (tries without locale first, then retries with /{locale} if needed)
timeout No 30000 Maximum execution time in milliseconds
breakpointFile No Auto-detected Custom controller path for breakpoint
breakpointLine No 1,10,20,30,40,50 Specific line for a single breakpoint; if omitted, strategic lines (1,10,20,30,40,50) are used
triggerUrl No Auto-detected Custom storefront URL or path to trigger; site-relative paths are resolved to https://{hostname}/s/{siteId}/...

Script Syntax Rules

✅ DO: Use expressions that return a value

The last expression in your script is returned as the result.

// Simple expressions
1 + 1
// Result: 2

dw.system.Site.current.ID
// Result: "RefArchGlobal"

❌ DON'T: Use return at the top level

// WRONG - causes compilation error
return 1 + 1

// Error: "invalid return"

❌ DON'T: Use var assignments expecting the variable

// WRONG - var declarations return null in debugger context
var result = {}; result.foo = 'bar';

// Error: Cannot set property "foo" of null

Read the full file on GitHub · 382 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. 1mo ago First seen · 382 lines · 25 tokens per session scan A 35abeac2653f

Subscribe to this mod's changes

sfcc-script-evaluation is a skill published in the GitHub repository taurgis/sfcc-dev-mcp (28 stars, last pushed 6d ago), licensed MIT. It adds 25 tokens to every session and 2,444 once invoked, about $0.0001 per session on Opus 5.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

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

a1-yandex-kit

Core guide to the Yandex KIT e-commerce API (kit.yandex.ru store builder): authentication, base URL, rate limits, error contract, pagination and offline spec search/validation scripts. Use when a task involves the Yandex KIT API and no domain skill (catalog, orders, promotions, store, webhooks) clearly fits, or when…

ztemerbekov/a1-yandex-kit-skills · 134 tokens

a1-yandex-kit-webhooks

Manage Yandex KIT webhooks over its REST API: subscribe HTTPS endpoints to order status, payment and delivery events and handle the one-time signing secret. Use when creating, updating, validating or deleting KIT webhooks, verifying incoming calls, diagnosing missing order-status callbacks or migrating receipt-status…

ztemerbekov/a1-yandex-kit-skills · 109 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