sfcc-sfra-controllers

Implement SFRA controllers for storefront routes with middleware and Page Designer integration.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Guide developers to build SFRA storefront controllers for Salesforce B2C Commerce Cloud, enabling routing, middleware orchestration, and Page Designer integration without modifying base cartridges.

Core Features & Use Cases

  • Patterns for creating, extending, and composing SFRA controllers.
  • Middleware chains, route definitions, CSRF protection, caching, and error handling.
  • Page Designer integration and standard ISML fallback templates for common storefront pages (Home, Product, Cart, Checkout, Account).

Quick Start

Start by opening the SFRA controllers section and begin implementing controllers following the basic patterns shown in the guide.

Frequently Asked Questions about sfcc-sfra-controllers

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

FAQPage Schema
How do I create SFRA controllers for storefront routes in Salesforce B2C Commerce?

To create SFRA controllers, you define route definitions and orchestrate middleware chains to manage storefront logic for product pages, cart actions, and checkout flows without modifying base cartridges.

How does middleware chaining work in SFRA controller development?

Middleware chaining in SFRA controller development works by sequentially executing route-specific functions for CSRF protection, caching, and error handling before reaching the main controller logic, ensuring production-ready storefront routes.

Can I use Page Designer integration with standard ISML fallback templates in SFRA?

Yes, you can implement Page Designer integration in SFRA controllers with a standard ISML fallback for common pages like Home, Product, Cart, Checkout, and Account, ensuring content renders even if Page Designer is unavailable.

Do I need to modify base cartridges to add CSRF protection and caching to SFRA controllers?

No, you do not need to modify base cartridges to add CSRF protection and caching. You can apply these production-ready patterns by extending and composing SFRA controllers within your custom cartridges.

What is the best way to handle error handling and route definitions in SFRA projects?

The best way to handle error handling and route definitions in SFRA projects is by enforcing consistent controller patterns that chain middleware for caching and CSRF protection, keeping storefront logic separate from base cartridges.