B2C Slas
Optimizes B2C product recommendations in real-time based on customer behavior, boosting engagement and driving revenue growth.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add b2c-slas npx -- -y @trustedskills/b2c-slas
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"b2c-slas": {
"command": "npx",
"args": [
"-y",
"@trustedskills/b2c-slas"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides command-line interface (CLI) tools to manage Shopper Login and API Access Service (SLAS) API clients and credentials within a Salesforce Commerce Cloud environment. SLAS is specifically used for shopper authentication in storefronts and headless commerce implementations, not for administrative access. The tool allows you to create, list, and retrieve details of these SLAS clients, enabling development and testing workflows.
When to use it
- Testing Custom APIs: Create a client with custom scopes to test your Custom API endpoints.
- PWA/Headless Development: Configure clients for composable storefronts.
- Integration Testing: Create dedicated test clients with specific scope sets.
Key capabilities
- Lists all SLAS clients for a given tenant ID.
- Retrieves details of a specific SLAS client.
- Creates new SLAS clients, including specifying channels, scopes, redirect URIs, and whether to create the tenant if it doesn't exist.
- Supports creation of public clients.
- Allows outputting commands in JSON format for capturing generated secrets or automating tasks.
Example prompts
b2c slas client list --tenant-id abcd_123(Lists all SLAS clients)b2c slas client create --tenant-id abcd_123 --channels RefArch --default-scopes --redirect-uri http://localhost:3000/callback(Creates a new SLAS client with default scopes)b2c slas client create my-client-id --tenant-id abcd_123 --scopes sfcc.shopper-products,sfcc.shopper-search --redirect-uri http://localhost:3000/callback(Creates a new SLAS client with specific scopes)
Tips & gotchas
- Ensure the
b2cCLI is installed globally or usenpx @salesforce/b2c-clito execute commands. - This skill manages clients for shopper authentication only; use the
b2c-configskill for admin tokens (OCAPI, Admin APIs). - Use
--scopes(plural) when specifying client scopes, not--auth-scope.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.