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-editing-safe-renderinggit 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-editing-safe-rendering)<a href="https://agentmods.dev/skills/robearlam/sitecoreai-harness-engineering/content-sdk-editing-safe-rendering"><img src="https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-editing-safe-rendering/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-editing-safe-rendering"><img src="https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-editing-safe-rendering.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.00054 | $0.00639 |
| Opus 5.5 | $0.00022 | $0.00256 |
| Sonnet 5.5 | $0.00011 | $0.00128 |
| Haiku 4.5 | $0.00005 | $0.00064 |
Grade A, and why
content-sdk-editing-safe-rendering 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 Editing-Safe Rendering (App Router)
Ensure components behave correctly in XM Cloud editing, preview, and design library. This app uses draftMode() and searchParams for editing data.
When to Use
- User asks about editing, preview, design library, or "component not working in editor."
- Task involves draft mode, editing chromes, or design library integration.
- Fixing issues where components render differently or break in editor vs published.
- User mentions getPreview, getDesignLibraryData, or editing API routes.
How to perform
- In the page or layout: call
draftMode(); when enabled, read editing params from searchParams, useisDesignLibraryPreviewData(editingParams)to choose getDesignLibraryData vs getPreview; otherwise use getPage. Editing routes: config route usescreateEditingConfigRouteHandler, render route usescreateEditingRenderRouteHandlers; setdynamic = 'force-dynamic'on both.
Hard Rules
- Use
draftMode()in Server Components (e.g. in the page or [site] layout). Whendraft.isEnabled, get editing params from searchParams and useisDesignLibraryPreviewData(editingParams)to distinguish: if true, useclient.getDesignLibraryData(editingParams); otherwise useclient.getPreview(editingParams). When not in draft mode, usegetPage(path ?? [], { site, locale }). - Do not assume editing/preview context in components that might run in static or non-editing contexts; guard on
draftMode(). - Editing API routes:
src/app/api/editing/config/route.tsusescreateEditingConfigRouteHandler({ components, clientComponents, metadata })(import from.sitecore/component-map,.sitecore/component-map.client,.sitecore/metadata.json).src/app/api/editing/render/route.tsusescreateEditingRenderRouteHandlers({}). Setexport const dynamic = 'force-dynamic'on both. Do not duplicate client creation; config and render routes use the same component maps as the app. - Never commit editing secrets; use environment variables and document in .env.example only.
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 · 54 tokens per session scan A 2ffed68c3ac7
content-sdk-editing-safe-rendering is a skill published in the GitHub repository robearlam/sitecoreai-harness-engineering (11 stars, last pushed 6d ago), licensed Apache-2.0. It adds 54 tokens to every session and 639 once invoked, about $0.0002 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-11-16.
content-sdk-editing-safe-rendering compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| content-sdk-editing-safe-renderingrobearlam/sitecoreai-harness-engineering | Skill | 11 | 6d ago | Apache-2.0 | A | 54 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 330k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |