content-sdk-graphql-data-fetching

content-sdk-graphql-data-fetching is a skill for Claude Code, Codex from robearlam/sitecoreai-harness-engineering. It costs 0 tokens per session (697 once invoked), scanned A, original, Apache-2.0.

A guide for retrieving page and dictionary content from Sitecore through the app's shared client. It covers normal pages, static generation, and preview data for the editor.

In plain words
What is it for?
Use it when fetching page layouts, translated messages, preview content, error pages, or build-time routes.
Why use it?
It keeps content requests consistent and prevents separate or incorrectly configured clients from producing incomplete or mismatched page data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it when fetching page layouts, translated messages, preview content, error pages, or build-time routes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robearlam/sitecoreai-harness-engineering/content-sdk-graphql-data-fetching
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 robearlam/sitecoreai-harness-engineering --skill content-sdk-graphql-data-fetching
Clone the repo
git clone --depth 1 https://github.com/robearlam/sitecoreai-harness-engineering

Made for: Claude Code, Codex.

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 content-sdk-graphql-data-fetching

README.md
[![agentmods](https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-graphql-data-fetching/github.svg)](https://agentmods.dev/skills/robearlam/sitecoreai-harness-engineering/content-sdk-graphql-data-fetching)
Your own site
<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.

agentmods 80×15 button for content-sdk-graphql-data-fetching

Your own site · 80×15
<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>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 697 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.00000 $0.00697
Opus 5.5 $0.00000 $0.00279
Sonnet 5.5 $0.00000 $0.00139
Haiku 4.5 $0.00000 $0.00070

Measured 14d ago against content hash aca34c805025, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

src/headapps/rob-harness-engineering/.agents/skills/content-sdk-graphql-data-fetching/SKILL.md · 38 lines

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.ts only. In the catch-all page: await params, then client.getPage(path ?? [], { site, locale }). For SSG use generateStaticParams and client.getAppRouterStaticParams(siteNames, locales). For preview use draftMode() and getPreview/getDesignLibraryData from 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 params in 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+); use await params to get { site, locale, path? }.
  • Preview: Use draftMode(); if draft.isEnabled, use client.getPreview(editingParams) or client.getDesignLibraryData(editingParams) from searchParams. Otherwise use getPage with site and locale.
  • SSG: generateStaticParams — use client.getAppRouterStaticParams(siteNames, locales) where site names come from .sitecore/sites.json (e.g. sites.map((s) => s.name)), locales from src/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.

Read the full file on GitHub · 38 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. 14d ago First seen · 38 lines · 0 tokens per session scan A aca34c805025

Subscribe to this mod's changes

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.

Related

content-sdk-graphql-data-fetching compared with skills from other repositories

content-sdk-graphql-data-fetching next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
content-sdk-graphql-data-fetchingrobearlam/sitecoreai-harness-engineeringSkill116d agoApache-2.0A0Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k2d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.2k2d agoApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3k3d agoMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3k3d agoMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill6824d agoMITA105Claude Code, Codex