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 robearlam/sitecoreai-harness-engineering --skill content-sdk-graphql-data-fetchinggit clone --depth 1 https://github.com/robearlam/sitecoreai-harness-engineeringWrote 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/robearlam/sitecoreai-harness-engineering/content-sdk-graphql-data-fetching)<a href="https://agentmods.dev/skills/robearlam/sitecoreai-harness-engineering/content-sdk-graphql-data-fetching"><img src="https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-graphql-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/robearlam/sitecoreai-harness-engineering/content-sdk-graphql-data-fetching"><img src="https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-graphql-data-fetching.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00000 | $0.00697 |
| Opus 5.5 | $0.00000 | $0.00279 |
| Sonnet 5.5 | $0.00000 | $0.00139 |
| Haiku 4.5 | $0.00000 | $0.00070 |
Grade A, and why
content-sdk-graphql-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 14d 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 — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Content SDK GraphQL Data Fetching (App Router)
All Sitecore data fetching goes through the single client in src/lib/sitecore-client.ts. Use getPage, getDictionary, and related methods correctly. This app does not use getComponentData; layout data comes from getPage.
When to Use
- User asks how to fetch page data, layout, or dictionary phrases.
- Task involves getPage, getDictionary, getErrorPage, getPreview, getDesignLibraryData, or getAppRouterStaticParams.
- User mentions "sitecore client," "Layout Service," "page data," or "dictionary."
How to perform
- Use the client from
src/lib/sitecore-client.tsonly. In the catch-all page:await params, thenclient.getPage(path ?? [], { site, locale }). For SSG usegenerateStaticParamsandclient.getAppRouterStaticParams(siteNames, locales). For preview usedraftMode()andgetPreview/getDesignLibraryDatafrom searchParams.
Hard Rules
- Use the single SitecoreClient instance in
src/lib/sitecore-client.ts. Do not create a second client or instantiate SitecoreClient elsewhere. - Pass site and locale from route params (e.g.
await paramsin the page). Do not rely on global state for site/locale in server code. - Catch-all page:
client.getPage(path ?? [], { site, locale }). Params are a Promise (Next.js 15+); useawait paramsto get{ site, locale, path? }. - Preview: Use
draftMode(); ifdraft.isEnabled, useclient.getPreview(editingParams)orclient.getDesignLibraryData(editingParams)from searchParams. Otherwise use getPage with site and locale. - SSG:
generateStaticParams— useclient.getAppRouterStaticParams(siteNames, locales)where site names come from.sitecore/sites.json(e.g.sites.map((s) => s.name)), locales fromsrc/i18n/routing.ts(e.g.routing.locales.slice()). Return at least one default param when not generating full paths (e.g.{ site, locale, path: [] }). - Config for the client comes from
sitecore.config.ts; use environment variables, never hardcode secrets.
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.
- 14d ago First seen · 38 lines · 0 tokens per session scan A aca34c805025
content-sdk-graphql-data-fetching is a skill published in the GitHub repository robearlam/sitecoreai-harness-engineering (11 stars, last pushed 6d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 697 tokens. 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-11-16.
content-sdk-graphql-data-fetching compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| content-sdk-graphql-data-fetchingrobearlam/sitecoreai-harness-engineering | Skill | 11 | 6d ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 2d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | 3d ago | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | 3d ago | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 682 | 4d ago | MIT | A | 105 | Claude Code, Codex |