content-sdk-troubleshoot-editing

content-sdk-troubleshoot-editing is a skill for Claude Code, Codex from robearlam/sitecoreai-harness-engineering. It costs 58 tokens per session (676 once invoked), scanned A, original, Apache-2.0.

A troubleshooting guide for Sitecore XM Cloud editing, preview, and design-library problems in a Next.js App Router application. It explains checks for preview data, locale setup, routes, component maps, and environment settings.

In plain words
What is it for?
It helps diagnose broken editor previews, missing editing markers, incorrect preview data, component-map issues, and related configuration problems.
Why use it?
It provides a structured way to find why content editing or preview differs from normal site behaviour.

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 It helps diagnose broken editor previews, missing editing markers, incorrect preview data, component-map issues, and related configuration problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robearlam/sitecoreai-harness-engineering/content-sdk-troubleshoot-editing
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-troubleshoot-editing
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-troubleshoot-editing

README.md
[![agentmods](https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-troubleshoot-editing/github.svg)](https://agentmods.dev/skills/robearlam/sitecoreai-harness-engineering/content-sdk-troubleshoot-editing)
Your own site
<a href="https://agentmods.dev/skills/robearlam/sitecoreai-harness-engineering/content-sdk-troubleshoot-editing"><img src="https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-troubleshoot-editing/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-troubleshoot-editing

Your own site · 80×15
<a href="https://agentmods.dev/skills/robearlam/sitecoreai-harness-engineering/content-sdk-troubleshoot-editing"><img src="https://agentmods.dev/badge/skills/robearlam/sitecoreai-harness-engineering/content-sdk-troubleshoot-editing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 676 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.00058 $0.00676
Opus 5.5 $0.00023 $0.00270
Sonnet 5.5 $0.00012 $0.00135
Haiku 4.5 $0.00006 $0.00068

Measured 14d ago against content hash bd6be0a2b755, 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-troubleshoot-editing 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-troubleshoot-editing/SKILL.md · 40 lines

How it starts

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

Content SDK Troubleshoot Editing (App Router)

This skill focuses on diagnosing editing, preview, and design library issues. For implementing editing-safe rendering (draftMode, getPreview/getDesignLibraryData, API routes), use the content-sdk-editing-safe-rendering skill; the two are complementary (implementation vs. troubleshooting).

Diagnose and fix editing, preview, and design library issues without breaking the single client or proxy order. This app uses draftMode() and searchParams for preview data.

When to Use

  • User reports that editing, preview, or design library is broken or inconsistent.
  • Task involves debugging "not working in editor," missing chromes, or wrong data in preview.
  • User mentions "editing broken," "preview not working," "design library," or "editor issues."

How to perform

  • Confirm draftMode() and searchParams-based getPreview/getDesignLibraryData; ensure setRequestLocale is called at the top of the page. Verify editing API routes are not rewritten (check proxy matcher) and both component maps include the component. Check env (editingSecret, API config) and .env.example documentation.

Hard Rules

  • Preview flow: Use draftMode() in Server Components; when enabled, use client.getPreview(editingParams) or client.getDesignLibraryData(editingParams) from searchParams. Ensure site/locale are passed correctly (e.g. from route params or editingParams).
  • next-intl: Ensure setRequestLocale(\${site}_${locale}`)` is called at the top of the page; missing setRequestLocale can cause locale or dictionary issues in editor.
  • Editing API routes (src/app/api/editing/config/route.ts, editing/render/route.ts) must be reachable and use the same component maps (component-map.ts and component-map.client.ts) and config as the app. Check matcher in proxy.ts so /api/editing is not rewritten or blocked.
  • Check that both component maps include all components used in the layout; missing registration causes "component not found" in editor.
  • Environment: editingSecret and API config must be set (in env); document in .env.example only. Do not log or commit secrets.

Read the full file on GitHub · 40 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 · 40 lines · 58 tokens per session scan A bd6be0a2b755

Subscribe to this mod's changes

content-sdk-troubleshoot-editing is a skill published in the GitHub repository robearlam/sitecoreai-harness-engineering (11 stars, last pushed 6d ago), licensed Apache-2.0. It adds 58 tokens to every session and 676 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.

Related

content-sdk-troubleshoot-editing compared with skills from other repositories

content-sdk-troubleshoot-editing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
content-sdk-troubleshoot-editingrobearlam/sitecoreai-harness-engineeringSkill116d agoApache-2.0A58Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7k4d agoMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9k2d agoApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill339todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
triaging-web-analytics-supportPostHog/posthogSkill41ktodaynoneA151Claude Code, Codex