AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

B2c Isml

skill-salesforcecommercecloud-b2c-developer-tooling-b2c-isml · by SalesforceCommerceCloud

Build ISML templates with isprint, isset, isloop, isdecorate, isinclude tags, and ${...} expression syntax. Use this skill whenever the user needs to write or debug storefront templates, create decorator layouts with isreplace, build reusable template modules, control HTML encoding in output, or use ISML expression language for dynamic content. Also use when fixing template rendering issues -- ev…

No reviews yet
0 installs
21 views
0.0% view→install

Install

$ agentstack add skill-salesforcecommercecloud-b2c-developer-tooling-b2c-isml

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-salesforcecommercecloud-b2c-developer-tooling-b2c-isml)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of B2c Isml? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

ISML Skill

This skill guides you through creating and working with ISML (Isomorphic Markup Language) templates in Salesforce B2C Commerce. ISML templates combine HTML with dynamic server-side tags.

Overview

ISML templates are server-side templates that generate HTML. They use special tags prefixed with is and expressions in ${...} syntax to embed dynamic content.

File Location

Templates reside in the cartridge's templates directory:

/my-cartridge
    /cartridge
        /templates
            /default                    # Default locale
                /product
                    detail.isml
                    tile.isml
                /home
                    homepage.isml
                /util
                    modules.isml        # Custom tag definitions
            /fr_FR                      # French-specific templates
                /product
                    detail.isml

Essential Tags

Conditional Logic


    In Stock

    Pre-order

    Out of Stock

Loops


    
        ${loopstate.count}. ${product.name}
        
            Featured
        
    

Loop status properties:

  • count - Iteration number (1-based)
  • index - Current index (0-based)
  • first - Boolean, true on first iteration
  • last - Boolean, true on last iteration
  • odd - Boolean, true on odd iterations
  • even - Boolean, true on even iterations

Variables


${productName}

Scopes (required): page, request, session, pdict

Output

Include Templates

Decorator Pattern

Base decorator (layouts/pagelayout.isml):


    ${pdict.pageTitle}

    
        
    
    
          
    
    
        
    

Page using decorator:


    
    
        ${pdict.welcomeMessage}
    

Expressions

Expressions use ${...} syntax to embed dynamic values:


${product.name}
${product.price.sales.value}

${product.getAvailabilityModel().isInStock()}

${pdict.myVariable}           
${session.customer.firstName} 
${request.httpParameterMap.pid.stringValue}

${price > 100 ? 'expensive' : 'affordable'}
${firstName + ' ' + lastName}
${quantity * unitPrice}

Built-in Utilities

URLUtils


View

My Account

Home

Resource (Localization)


${Resource.msg('button.addtocart', 'product', null)}

${Resource.msgf('cart.items', 'cart', null, cartCount)}

StringUtils


${StringUtils.truncate(description, 100, '...')}

${StringUtils.formatNumber(quantity, '###,###')}

Custom Modules

Define reusable custom tags in util/modules.isml:

Component template (components/productcard.isml):


    
    ${product.name}
    
        ${product.price.sales.formatted}
    
    
        ${product.rating} stars
    

Caching

Place `` at the beginning of the template.

Content Type

Embedded Scripts


    var ProductMgr = require('dw/catalog/ProductMgr');
    var product = ProductMgr.getProduct(pdict.pid);
    var price = product.priceModel.price;

${price.toFormattedString()}

Best Practice: Keep `` blocks minimal. Move complex logic to controllers or helper scripts.

Comments


    ISML comment - stripped from output.
    Use for documentation and hiding sensitive info.

Tag Location Constraints

Not all ISML tags can be used anywhere. Important constraints:

| Tag | Allowed Location | |-----|------------------| | ` | Must be before DOCTYPE declaration | | | Must be before DOCTYPE declaration | | | Only in | | | Only in , inside | | | Only in , inside | | | Inside | | | Must be within tags | | | Only in ` |

Tags that can be used anywhere: `, , , , , , , , , `.

Best Practices

  1. Use `` instead of HTML comments for sensitive info
  2. Place `` first in templates that need it
  3. Define modules in util/modules.isml for consistency
  4. Keep templates simple - move logic to controllers/helpers
  5. Use decorators for consistent page layouts
  6. Enable caching on cacheable pages with ``
  7. Encode output - default encoding prevents XSS

Detailed Reference

For comprehensive tag documentation:

  • [Tags Reference](references/TAGS.md) - All ISML tags with examples
  • [Expressions Reference](references/EXPRESSIONS.md) - Expression syntax and built-in functions

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.