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.
npx skills add SalesforceCommerceCloud/b2c-developer-tooling --skill sfnext-data-fetchinggit clone --depth 1 https://github.com/SalesforceCommerceCloud/b2c-developer-toolingWrote 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.
[](https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/sfnext-data-fetching)<a href="https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/sfnext-data-fetching"><img src="https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/sfnext-data-fetching/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.
<a href="https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/sfnext-data-fetching"><img src="https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/sfnext-data-fetching.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00224 | $0.02456 |
| Opus 5.5 | $0.00090 | $0.00982 |
| Sonnet 5.5 | $0.00045 | $0.00491 |
| Haiku 4.5 | $0.00022 | $0.00246 |
Grade A, and why
sfnext-data-fetching 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Storefront Next Data Fetching
All data comes from the server. Loaders and actions run on the server with the shopper's session; the browser never calls SCAPI directly. Your project ships docs/README-DATA.md, docs/README-SUSPENSE.md, docs/README-SCAPI-NON-PERSONALIZED-RESPONSES.md and docs/README-SHOPPER-CONTEXT.md, plus the "Performance & Data Rules" in AGENTS.md; this skill is the quick path, those are authoritative.
The rules (same as AGENTS.md)
- Fetch on the server in
loader(reads) andaction(writes). There is noclientLoaderorclientAction. - Classify every piece of data:
- Critical (needed for SEO, LCP, layout stability or the HTTP status):
awaitit in the loader. - Non-critical (below the fold, recommendations, reviews, secondary panels): start the request, do not await it, and return the unresolved promise so it streams.
- Interaction-driven (only after a click, hover or input): fetch on demand with a fetcher.
- Critical (needed for SEO, LCP, layout stability or the HTTP status):
- Never block a loader on non-critical data.
- Pass the promise through
loaderDataand read it under its own<Suspense>withuse()or<Await>. Keep the promise identity stable (compose it in the loader, neverPromise.allor.thenin render). - Export
shouldRevalidateon routes whose loaders depend on URL filters (seestorefront-next:sfnext-revalidation).
Loader with critical and streamed data
import { Suspense } from 'react';
import { Await } from 'react-router';
import type { Route } from './+types/_app.example';
import { createApiClients } from '@/lib/api-clients.server';
import { fetchProductById } from '@/lib/api/products.server';
import { NormalizedApiError } from '@/lib/api/normalized-api-error';
export async function loader({ context, params }: Route.LoaderArgs) {
const clients = createApiClients(context);
// Non-critical: start now, do not await.
const related = clients.shopperSearch
.productSearch({ params: { query: { q: 'shirt', limit: 8 } } })
.then(({ data }) => data.hits ?? []);
// Critical: needed for status, SEO and LCP.
try {
const product = await fetchProductById(context, params.id ?? '', { expand: ['images', 'prices'] });
if (!product) throw new Response('Not found', { status: 404 });
return { product, related };
} catch (e) {
if (e instanceof NormalizedApiError && e.status) throw new Response(e.message, { status: e.status });
throw e;
}
}
export default function Example({ loaderData }: Route.ComponentProps) {
return (
<>
<h1>{loaderData.product.name}</h1>
<Suspense fallback={<div className="h-40" aria-busy="true" />}>
<Await resolve={loaderData.related}>{(hits) => <ul>{hits.map((h) => <li key={h.productId}>{h.productName}</li>)}</ul>}</Await>
</Suspense>
</>
);
}
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago Changed · -50 lines · +149 tokens per session 4c20956cee09
- 3mo ago First seen · 191 lines · 75 tokens per session scan A 247b77fb8035
sfnext-data-fetching is a skill published in the GitHub repository SalesforceCommerceCloud/b2c-developer-tooling (58 stars, last pushed today), licensed Apache-2.0. It adds 224 tokens to every session and 2,456 once invoked, about $0.0009 per session on Opus 5.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-03.
sfnext-data-fetching compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sfnext-data-fetchingSalesforceCommerceCloud/b2c-developer-tooling | Skill | 58 | today | Apache-2.0 | A | 224 | Claude Code |
| shopify-app-developmentfinsilabs/awesome-ecommerce-skills | Skill | 71 | 1mo ago | MIT | A | 27 | Claude Code, Codex |
| sfcc-ocapi-scapifinsilabs/awesome-ecommerce-skills | Skill | 71 | 1mo ago | MIT | B | 34 | Claude Code, Codex |
| pp-delhivery-mapsmvanhorn/printing-press-library | Skill | 2.2k | yesterday | Apache-2.0 | E | 104 | Claude Code |
| grow-payment-gatewaysquadcodercom/squadcoder | Skill | 12 | 5mo ago | MIT | A | 274 | Claude Code, Codex |
| israeli-shipping-managersquadcodercom/squadcoder | Skill | 12 | 5mo ago | MIT | A | 207 | Claude Code |
| convex-billingopenclaw/clawhub | Skill | 9.6k | yesterday | MIT | A | 29 | Claude Code, Codex |