sfcc-script-evaluation

Execute JavaScript on SFCC instances via the script debugger.

27|9|Updated Aug 8, 2025
One-click install
npx skills add https://github.com/taurgis/sfcc-dev-mcp --skill sfcc-script-evaluation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sfcc-script-evaluation
Source: https://github.com/taurgis/sfcc-dev-mcp/tree/main/ai-instructions/skills/sfcc-script-evaluation
Command: npx skills add https://github.com/taurgis/sfcc-dev-mcp --skill sfcc-script-evaluation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured guide for safely executing JavaScript on SFCC instances using the evaluate_script tool through the script debugger, enabling rapid debugging without impacting live storefronts.

Core Features & Use Cases

  • Step-by-step guidance for creating a debugger session, setting breakpoints, triggering controllers, and evaluating expressions in the halted context.
  • Hands-on examples demonstrating common tasks such as inspecting site, product, and catalog data, and returning results for verification.
  • Best practices for error handling, avoiding unsafe patterns, and ensuring deterministic outcomes during development and testing.

Quick Start

Use the sfcc-script-evaluation skill to run a simple expression in the debugger against a sandbox SFCC instance.

Frequently Asked Questions about sfcc-script-evaluation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I execute JavaScript on SFCC instances without deploying code?

You can execute JavaScript on SFCC instances without deployment by using the script debugger's evaluate_script function to validate code paths and inspect objects in real-time.

What is the evaluate_script function used for in SFCC development?

The evaluate_script function in SFCC development is used to run server-side JavaScript within a halted debugger context, allowing developers to inspect site, product, and catalog data directly.

Can I inspect SFCC product and catalog data using the script debugger?

Yes, you can inspect SFCC product and catalog data using the script debugger by triggering controllers, setting breakpoints, and evaluating expressions within the halted execution context.

What are the best practices for handling timeouts during SFCC script evaluation?

Best practices for handling timeouts during SFCC script evaluation include managing breakpoint positions carefully and following structured error handling patterns to ensure deterministic outcomes.

Does server-side JavaScript debugging work safely on live SFCC storefronts?

Server-side JavaScript debugging via the script debugger is designed for sandbox instances to enable rapid testing without impacting live storefronts, avoiding unsafe patterns during development.