/sitecore-content-sdk:content-sdk-collection-data-modelfrom Sitecore Content SDK - Core
Guides selection of a data model for components displaying multiple items: owned rows, derived views, curated references, or shared libraries. Useful when migrating tree-walking lists or handling non-editable lists in Pages.
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.
Read when SKILL.md points to them; scripts run unread.
A component that shows many items is not one problem. The question that decides everything is who authors the rows, and where. Answer it before choosing a template, a query or a resolver.
| Class | Who authors the rows, where | Examples | Shape | Delivery | Editable in Pages |
|---|---|---|---|---|---|
| A. Owned rows | The author of this component, here | tabs, accordion panels, stats, a hand-made card row | Container datasource with row children | Rendering ComponentQuery, every field as jsonValue | Yes: row fields inline and reorder (confirmed in Pages 2026-11-04); add and delete through Manage items |
| B. Derived view | Someone else, on other pages | latest news, child-page lists, sibling menus | No datasource rows; the source pages, one level below a root | Within budget: rendering ComponentQuery on $contextItem (the page's children) or $datasource (a section root set as the datasource), fields as jsonValue. Beyond budget: server-side Edge fetch, cached, revalidated on publish | Within budget: yes, every row field inline (confirmed in Pages 2026-12-03); rows are added as pages, not through Manage items. Beyond budget: no |
| C. Curated reference | This author picks; the items live elsewhere | featured products, slides also used by other components | Multilist / Treelist field on the datasource | The field itself (items arrive in layout data) | Picking and ordering yes; the picked items' fields are edited at their source |
| D. Shared library | A team, in one folder, used by many components | client logos, team members, 100+ items | Folder with insert options, no rows in layout data | Ids first, then fetch the subset shown | Through Manage items on the folder, not inline |
Tie-breakers:
ComponentQuery holds about 14 to 21 rows by field count on Edge, 20 rows of 3-4 fields plus url on the CM editing layout; a server fetch with url about 10 to 12 per request) cannot be A, and cannot be an inline-editable B: choose C (curate a few) or D, or show the newest N of a flat B.ComponentQuery on the rendering with jsonValue fields (class A, and class B within budget). It returns the container fields and the children in one payload; jsonValue keeps them editable. In editing, the CM resolves the query while it builds the layout and adds metadata to every jsonValue, which is what draws the field chromes. It replaces the whole fields payload, so select everything the component renders. Clear the rendering's resolver: a resolver set alongside a query won in our projects [measured, not documented].client.getData) in a server component. It pages freely (cursor, variable first), has no republish dependency and needs caching plus revalidation. No editing metadata, so nothing it renders is editable in Pages.Mechanism details, the measured budget and the republish rule: references/mechanisms.md.
url and every named field per child. A ComponentQuery row past children(first: N) is dropped without an error; a query over budget arrives as isContentResolved: false. Size first above the authored row count and record that maximum next to the query; the probe sees only delivered < total, so it cannot enforce this headroom.ComponentQuery list reaches the page only after the page is republished. A server fetch sees it after the item is published and the cache revalidates.id name selection, choose the ids (sample, newest, tag), then fetch only those items' fields.__Sortorder in steps of 100; Edge returns children in sort order, alphabetical without it [measured 2026-09-27].ComponentQuery so its rows are edited where they are shown.$datasource does not fall back to the page. A query on $datasource on a placement with no datasource resolves nothing; set the section root (the news folder) as the placement's datasource, or use $contextItem when the rows are the page's own children [measured 2026-12-03].Title: field(name: "NewsTitle") { jsonValue }. A wrong field name returns an empty value with no error, a name fallback in the component hides it, and a test fixture captured from the same query locks the bug in. Read the field names from the row template, not from the component [measured 2026-12-03: the parity harness caught it, unit tests did not].children(first: 20) with 3-4 fields plus url resolves; 25, 30 and 50 rows, and every nested level (2 × 10, 3 × 5), arrive with no fields and no error [measured 2026-12-03].Most XSLT, WebForms and MVC lists walked the content tree. Translate each by who authors the rows: references/legacy-translation.md (./item loops, sc:item(id) reads, child folders of a page, tag-filtered galleries, "N random").
scripts/probe-list-delivery.mjs --context <id> --site <site> --route <path> on every route with lists. It classifies each placement's payload, compares delivered rows with the datasource's children.total (silent drop), flags rows not selected as jsonValue and any resolver payload, and reports a datasource with children but empty fields (read elsewhere, not editable). The drop check compares only rows under datasource.children with the datasource's own children; a query that reads another path is reported as not checked. Exit 1 on a drop, non-jsonValue rows or a rejected query; exit 2 when the route does not resolve or not one row count could be verified. A resolver payload is a WARN: the tool reports, the stop condition below decides.--editing-layout <file> is for a layout logged server-side in editing mode. Expect the edit to write to the CM [measured 2026-11-04, from the pull diff]: reordering sets __Sortorder, a rich text edit wraps the value in <div class="ck-content">, and Pages adds a thumbnail under the media System folder. ser pull afterwards, or the next push overwrites them.ComponentQuery, edit a row field inline in Pages on each page that shows the list (confirmed 2026-12-03 on a child-page list and a newest-news list in two looks). For server-fetched B and D, confirm a newly published item appears after revalidation.A derived list over a bucketed tree (News/yyyy/MM/dd/HH/mm/<article>) cannot be inline-editable: the rows sit five levels down and any nested level is over budget. The fix is a content change, so it is the operator's decision:
moveItem (Authoring GraphQL). Ids are kept, so links and references survive.Settings/Redirects (template {F4FB6125-F113-4373-8AA2-4648C2C1960E}): UrlMapping = encodeURIComponent(old)=encodeURIComponent(new) pairs joined by &, RedirectType = Redirect301, PreserveQueryString. Confirm on Edge with site { siteInfo(site: "<site>") { redirects { pattern target redirectType } } }; the head app's redirects proxy serves the 301.ser pull so a later push does not recreate them.Any restructure that changes a page's URL (flattening, renaming, moving a section) gets a redirect for every old URL in the same change.
jsonValue and rendered through an SDK field component with no editable={false}, then fall back to Manage items plus the source item.content-sdk-list-component: building a class A component (templates, __Masters, branch, Manage items bases, verify script).content-sdk-resolver-patterns: payload shapes a component receives.content-sdk-navigation-component, content-sdk-app-router-component-level-navigation: menus and other tree-derived navigation.sitecoreai-edge-graphql-capture § 2b: the measured ComponentQuery budget table.content-sdk-app-router-cache-components-and-osr: revalidating server-fetched lists on publish.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
data-model, collection, sitecore, content-sdk, component-architecture
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-component-naming-trapsTraps when adding or renaming Content SDK components: everything in src/components/ becomes a rendering, map keys are SDK-version sensitive, parameter names collide with template fields. Use when scaffolding, refactoring src/ or upgrading./content-sdk-component-reviewReviews one Content SDK component before promotion: verdict per axis (authorability, editing safety, naming, variants, data, scoping, lists, serialization), static and live read-only. Use before merge. Not planning or debugging./content-sdk-create-componentCreates a component (rendering) on a SitecoreAI tenant via Authoring GraphQL, by cloning an out-of-the-box component and customising templates and available renderings. Use when asked to create, clone or scaffold a rendering./content-sdk-debug-layout-probeDiagnostic toolkit for live Content SDK layout responses: a temporary layout-debug route, a resolver probe and an instrumented frame. Use when a component renders empty or wrong, a resolver's field shape is unknown, or Edge and Preview differ.Other plugins' skills for the same job