sf-performance

sf-performance is a skill for Claude Code from OrcaQubits/agentic-commerce-skills-plugins. It costs 56 tokens per session (1,397 once invoked), scanned A, original, MIT.

A performance guide for Salesforce Commerce storefronts and B2B applications. It covers caching, content delivery, page rendering, database queries, lazy loading, and image handling.

In plain words
What is it for?
Use it to tune B2C page, template, and data caches; configure a content delivery network; improve ISML and Lightning Web Component rendering; optimize SOQL queries; and load images or components later when appropriate.
Why use it?
It helps find and reduce slow pages and inefficient server work. It also uses Core Web Vitals, a set of browser measurements for loading speed, responsiveness, and visual stability.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the salesforce-commerce plugin — 22 skills, 1 agent shipped together

Good fit Use it to tune B2C page, template, and data caches; configure a content delivery network; improve ISML and Lightning Web Component rendering; optimize SOQL queries; and load images or components later when appropriate.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orcaqubits/agentic-commerce-skills-plugins/sf-performance
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 OrcaQubits/agentic-commerce-skills-plugins --skill sf-performance
Clone the repo
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins

Made for: Claude Code.

Or install salesforce-commerce, the plugin that ships this one along with the rest of its 22 skills, 1 agent.

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 sf-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/sf-performance/github.svg)](https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/sf-performance)
Your own site
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/sf-performance"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/sf-performance/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 sf-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/sf-performance"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/sf-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,397 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.
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.00056 $0.01397
Opus 5 $0.00028 $0.00698
Sonnet 5 $0.00011 $0.00279
Haiku 4.5 $0.00006 $0.00140

Measured 2d ago against content hash 191daad188cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-16, from the pricing page.

Security

Grade A, and why

sf-performance 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 2d 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.

salesforce-commerce/skills/sf-performance/SKILL.md · 131 lines

How it starts

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

sf-performance

Optimize Salesforce Commerce performance across B2C Commerce (SFCC) and B2B Commerce Cloud platforms.

Before Writing Code

Always fetch live documentation first:

  1. B2C Commerce Performance

    • Search: "Salesforce B2C Commerce performance optimization 2026"
    • Search: "SFCC caching strategies page cache template cache"
    • Search: "Salesforce eCDN configuration and cache invalidation"
  2. B2B Commerce Performance

    • Search: "Lightning Web Components performance optimization 2026"
    • WebFetch: developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_performance
  3. Core Web Vitals

    • Search: "Core Web Vitals 2026 targets LCP INP CLS" (INP replaced FID in March 2024)
    • WebFetch: web.dev/vitals/

Conceptual Architecture

Cache Levels (B2C)

Level Mechanism Scope Use Case
Page Cache res.cachePeriod / res.cachePeriodUnit Full controller response Product pages, category pages
Template Cache <iscache> ISML tag Individual template fragment Reusable components, static content
Object Cache CacheMgr.getCache() Arbitrary data API responses, computed results
CDN Cache Salesforce eCDN Static assets + pages Images, CSS, JS, edge-cached HTML

Page cache types:

  • Public cache: Shared content (product, category pages)
  • Private cache: User-specific content (cart, account)
  • No cache: Checkout, payment pages

Template cache varyby: Fetch live docs for current supported varyby attribute values -- they are limited and version-specific.

Core Web Vitals Targets

Metric Good Needs Improvement What It Measures
LCP (Largest Contentful Paint) < 2.5s < 4.0s Main content load time
INP (Interaction to Next Paint) < 200ms < 500ms Input responsiveness (replaced FID)
CLS (Cumulative Layout Shift) < 0.1 < 0.25 Visual stability

Read the full file on GitHub · 131 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. 2d ago First seen · 131 lines · 56 tokens per session scan A 191daad188cc

Subscribe to this mod's changes

sf-performance is a skill published in the GitHub repository OrcaQubits/agentic-commerce-skills-plugins (39 stars, last pushed 2d ago), licensed MIT. It adds 56 tokens to every session and 1,397 once invoked, about $0.0003 per session on Opus 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-09-15.