/sitecore-content-sdk:content-sdk-field-usage-image-link-textfrom Sitecore Content SDK - Core
Renders Sitecore fields using Content SDK components (Text, RichText, Image, Link) with guards and fallbacks. Helps fix empty or broken images and links in Next.js apps.
Ships in Sitecore Content SDK - Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use SDK field components to render Sitecore fields with proper validation and fallbacks. This concern is the same in App Router and Pages Router — the components, props, and guards below are identical. Only the way fields is delivered to the component differs by router, and that wiring belongs to the component-data-strategy skill (pointer in Hard Rules), not here.
<Text field={fields?.title} />, <RichText field={fields?.content} />, <Image field={fields?.image} />, <Link field={fields?.link} />. Guard with fields?. when optional; use tag prop on Text when needed. Do not hardcode media or link URLs from Sitecore.<Text field={fields?.title} />, <RichText field={fields?.content} />, <Image field={fields?.image} />, <Link field={fields?.link} />. Use tag prop for Text when needed (e.g. tag="h1").fields?.title (existence) is correct — it stops undefined being fed to a helper for a field absent from the datasource. But do not gate a helper on an empty value (e.g. {field?.value?.href && <Link/>}): that also hides the field in the editor, leaving the author nothing to click. The SDK helpers already render an editable empty-field placeholder in edit mode and null when empty + published — so render the helper and let it decide. When you must conditionally render a wrapper, admit edit mode: {fields?.x && (isEditing || hasValue) && <Helper/>}. For the full edit-mode contract (empty-field visibility, inert forms, field-backed labels) see content-sdk-app-router-editing-safe-rendering / content-sdk-pages-router-editing-safe-rendering → "Authoring-safe components."'#' (href: link?.value?.href || '#'). On a published page it produces a live, dead anchor, and a test can end up asserting the bug as intended. Pass undefined so the attribute is omitted, or let <Link> render nothing for an empty field. Assert getAttribute('href') is null on an empty Link field.<Link> text in an element is authoring-safe: <Link field={f}><span>{f.value.text}</span></Link>. withFieldMetadata wraps the whole <a> in the field chrome, whatever its children, so the field stays inline-editable, and an empty link still renders nothing unless renderChildrenWhenEmpty is set. showLinkTextWithChildrenPresent does not do this: it renders the text as a sibling of the children, for an icon next to the text.<a><span>Text</span></a> on one hero widget and bare <a>Text</a> on every other CTA. Wrapping every call site to fix the one broke all the others (2026-09-29). Make the wrap an opt-in prop.fields comes from is router-specific and out of scope here: App Router resolves it from getPage (and may pass it as serializable props from a Server Component to a Client Component); Pages Router resolves it via getComponentData from the [[...path]].tsx catch-all. For that wiring use content-sdk-app-router-component-data-strategy or content-sdk-pages-router-component-data-strategy.RichText field, or bypassing the SDK field components for it, without sanitizing it.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub chris1415/sitecore-skills-pocs --plugin sitecore-content-sdk23 skills in this plugin
/content-sdk-analytics-eventsSends Content SDK analytics events: analytics and events plugins, pageView, event, form, identity, field limits, client vs server, bot and editing suppression. Use when adding or debugging tracking calls. Not consent or personalization./content-sdk-atomic-design-assessmentAssesses a Content SDK head app for Atomic Design: scan src/components, rate each low-code candidate / partial / keep-code, derive the atom set, plan a side-by-side migration. Use when asked which components could become atoms. Not writing atoms./content-sdk-Other plugins' skills for the same job